Files
hyprland/config/kitty/kitty-slurp.sh
T
2024-06-06 15:33:57 +05:45

8 lines
308 B
Bash
Executable File

#!/bin/bash
# execute slurp with -f "%x %y %w %h" and set variables
read -r X Y W H < <(slurp -f "%x %y %w %h" -b 00000080 -c DB4740)
# execute kitty with override and disown
hyprctl dispatch -- exec "[move $X $Y]kitty -o initial_window_width="$W" -o initial_window_height="$H" --class kitty-floating"
exit