diff options
| author | mirenn <me@mirenn.dev> | 2026-09-21 23:09:33 +0200 |
|---|---|---|
| committer | mirenn <me@mirenn.dev> | 2026-10-06 14:13:32 +0200 |
| commit | 8f9c77878f8742a47d34a50748023d1b552cfbf1 (patch) | |
| tree | f749dff061451ab8427100c452f8175de8e39c53 /scripts | |
| parent | 8501a38d7c3bbc2e99466e6658be134c72d4f47a (diff) | |
| download | dotfiles-8f9c77878f8742a47d34a50748023d1b552cfbf1.tar.gz dotfiles-8f9c77878f8742a47d34a50748023d1b552cfbf1.zip | |
guix primer
Diffstat (limited to '')
| -rwxr-xr-x | mirenn/home/files/dotfiles/.config/scripts/powermenu (renamed from scripts/powermenu) | 11 | ||||
| -rwxr-xr-x | mirenn/home/files/dotfiles/.config/scripts/set_background (renamed from scripts/set_background) | 7 | ||||
| -rwxr-xr-x | mirenn/home/files/dotfiles/.config/scripts/set_random (renamed from scripts/set_random) | 6 | ||||
| -rwxr-xr-x | scripts/wallpapermenu | 10 |
4 files changed, 13 insertions, 21 deletions
diff --git a/scripts/powermenu b/mirenn/home/files/dotfiles/.config/scripts/powermenu index ef68e29..d118a69 100755 --- a/scripts/powermenu +++ b/mirenn/home/files/dotfiles/.config/scripts/powermenu @@ -1,4 +1,5 @@ -#!/usr/bin/fish +#!/usr/bin/env fish + set poweroff "" set reboot "" set lock "" @@ -10,17 +11,17 @@ set chosen (echo -e "$poweroff\n$reboot\n$lock\n$exit\n$sleep\n$hibernate" | rof switch $chosen case $poweroff - shutdown now + loginctl poweroff case $reboot - reboot + loginctl reboot case $lock loginctl lock-session case $exit niri msg action quit case $sleep - systemctl suspend + loginctl suspend case $hibernate - systemctl hibernate + loginctl hibernate case '*' exit 1 end diff --git a/scripts/set_background b/mirenn/home/files/dotfiles/.config/scripts/set_background index 0dd7347..7fea3d9 100755 --- a/scripts/set_background +++ b/mirenn/home/files/dotfiles/.config/scripts/set_background @@ -1,7 +1,8 @@ -#!/usr/bin/fish +#!/usr/bin/env fish + if test (count $argv) -lt 1; or not test -f $argv[1] - echo "Usage: $(status filename) <img>" - exit 1 + echo "Usage: $(status filename) <img>" + exit 1 end wallust run $argv[1] -Ts; and begin diff --git a/scripts/set_random b/mirenn/home/files/dotfiles/.config/scripts/set_random index 6c4a76d..33cf267 100755 --- a/scripts/set_random +++ b/mirenn/home/files/dotfiles/.config/scripts/set_random @@ -1,8 +1,8 @@ -#!/usr/bin/fish +#!/usr/bin/env fish if test (count $argv) -lt 1; or not test -d $argv[1] - echo "Usage: $(status filename) <dir>" - exit 1 + echo "Usage: $(status filename) <dir>" + exit 1 end ~/.config/scripts/set_background "$(fd -a -t f -d 1 -E "$(basename "$IMG")" -e jpg -e png -e webp . "$argv[1]" | shuf -n1)" diff --git a/scripts/wallpapermenu b/scripts/wallpapermenu deleted file mode 100755 index b60c646..0000000 --- a/scripts/wallpapermenu +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/fish - -if test -z $argv[1] - echo "Provide a directory" -else - ~/.config/scripts/set_background ( - for file in (fd -a -t f -d 1 -E "$(basename "$IMG")" -e jpg -e png -e webp . "$argv[1]") - echo -en "$file\0icon\x1fthumbnail://$file\n" - end | rofi -dmenu -p " " -show-icons -theme ~/.config/rofi/wallpapermenu.rasi) -end |
