Switch from sway to hyprland

This commit is contained in:
Kiana Sheibani 2024-02-09 17:17:48 -05:00
parent 524bffc068
commit 2be0e3847b
16 changed files with 194 additions and 204 deletions

9
scripts/autostart Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
swaybg -o '*' -i "$1" -m fill &
waybar &
swayidle timeout 120 'swaylock -f --grace=180' \
timeout 600 'systemctl suspend' \
before-sleep 'swaylock -f' &

4
scripts/exit Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
pkill -0 swaynag || \
swaynag -t exit -m "Do you really want to exit?" \
-B "Reboot" "reboot" -B "Shutdown" "poweroff" -b "Exit" "hyprctl dispatch exit"

4
scripts/multimedia Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
notify-send "$1" -c multimedia -a "$2" \
$(makoctl list | jq -r 'first(.data[][]|select(.category.data=="multimedia")|.id.data|["-r",.])[]') \
-h "INT:value:$3"

4
scripts/screenshot Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
grim - | wl-copy
notify-send "Screenshot saved to clipboard" \
-a grim -c screenshot -u low

4
scripts/screenshot-slurp Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
grim -g "$(slurp)" - | wl-copy
notify-send "Screenshot saved to clipboard" \
-a grim -c screenshot -u low