Move wayland scripts
This commit is contained in:
parent
07eac39788
commit
d3b14d2698
6 changed files with 1 additions and 1 deletions
12
home-manager/wayland/scripts/autostart
Executable file
12
home-manager/wayland/scripts/autostart
Executable 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' &
|
||||
4
home-manager/wayland/scripts/exit
Executable file
4
home-manager/wayland/scripts/exit
Executable 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
home-manager/wayland/scripts/multimedia
Executable file
4
home-manager/wayland/scripts/multimedia
Executable 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"
|
||||
4
home-manager/wayland/scripts/screenshot
Executable file
4
home-manager/wayland/scripts/screenshot
Executable 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
|
||||
9
home-manager/wayland/scripts/screenshot-slurp
Executable file
9
home-manager/wayland/scripts/screenshot-slurp
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue