diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/powermenu | 26 | ||||
| -rwxr-xr-x | scripts/set_background | 17 | ||||
| -rwxr-xr-x | scripts/set_random | 8 | ||||
| -rwxr-xr-x | scripts/wallpapermenu | 10 |
4 files changed, 0 insertions, 61 deletions
diff --git a/scripts/powermenu b/scripts/powermenu deleted file mode 100755 index ef68e29..0000000 --- a/scripts/powermenu +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/fish -set poweroff "" -set reboot "" -set lock "" -set exit "" -set sleep "" -set hibernate "" - -set chosen (echo -e "$poweroff\n$reboot\n$lock\n$exit\n$sleep\n$hibernate" | rofi -dmenu -theme ~/.config/rofi/powermenu.rasi) - -switch $chosen -case $poweroff - shutdown now -case $reboot - reboot -case $lock - loginctl lock-session -case $exit - niri msg action quit -case $sleep - systemctl suspend -case $hibernate - systemctl hibernate -case '*' - exit 1 -end diff --git a/scripts/set_background b/scripts/set_background deleted file mode 100755 index 0dd7347..0000000 --- a/scripts/set_background +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/fish -if test (count $argv) -lt 1; or not test -f $argv[1] - echo "Usage: $(status filename) <img>" - exit 1 -end - -wallust run $argv[1] -Ts; and begin - niri msg action do-screen-transition - set -U IMG $argv[1] & - wallust -q run $IMG & - killall swaybg ; swaybg -i $IMG -m fill & - makoctl reload & - notify-send -i $IMG "Wallust" "Changed wallpaper and palette." -end; or begin - notify-send -i $argv[1] -u critical "Wallust" "Failed to change palette" -end; - diff --git a/scripts/set_random b/scripts/set_random deleted file mode 100755 index 6c4a76d..0000000 --- a/scripts/set_random +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/fish - -if test (count $argv) -lt 1; or not test -d $argv[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 |
