Move wayland scripts

This commit is contained in:
Kiana Sheibani 2024-05-11 19:25:27 -04:00
parent 07eac39788
commit d3b14d2698
6 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Background
swaybg -o '*' -i "$background" -m fill &
# Status Bar
eww open "$platform"_bar --screen 0
# Idle Handler
swayidle timeout 120 'swaylock -f --grace=180' \
timeout 600 'systemctl suspend' \
before-sleep 'swaylock -f' &

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"

View file

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

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 -t 3000

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
if region="$(slurp)"; then
grim -g "$region" - | wl-copy
notify-send "Screenshot saved to clipboard" \
-a grim -c screenshot -u low -t 3000
else
notify-send "Screenshot cancelled" \
-a grim -c screenshot -u low -t 3000
fi