diff options
| author | krolxon <krolyxon@tutanota.com> | 2025-08-17 18:29:43 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2025-08-17 18:29:43 +0530 |
| commit | 4df279d8cc55103b46df9531616e41d08b7288b2 (patch) | |
| tree | fddaf58c90c03bcd31823fca609dcef3913423a9 /.local/bin | |
| parent | 9226cefdd3bf54157213a5cc2c550deaf353d043 (diff) | |
setwall: use nsxiv for menu
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/setwall | 10 | ||||
| -rwxr-xr-x | .local/bin/upfile | 5 |
2 files changed, 4 insertions, 11 deletions
diff --git a/.local/bin/setwall b/.local/bin/setwall index 36c46db..a18a971 100755 --- a/.local/bin/setwall +++ b/.local/bin/setwall @@ -1,5 +1,5 @@ #!/bin/bash -WALL_DIR="$HOME/pix/wallpapers/onedarkwallpapers/" +WALL_DIR="$HOME/pix/wallpapers/catppuccin/" MODE="random" CUSTOM_PATH="" @@ -27,13 +27,7 @@ case $MODE in fi ;; menu) - WALLPAPER_LIST=$(find "$WALL_DIR" -type f | sort | sed "s|$WALL_DIR||") - CHOSEN=$(echo "$WALLPAPER_LIST" | rofi -dmenu -i -p "Choose wallpaper:") - if [[ -z "$CHOSEN" ]]; then - NEW_WALL=$(find "$WALL_DIR" -type f | shuf -n 1) - else - NEW_WALL="$WALL_DIR$CHOSEN" - fi + NEW_WALL=$(nsxiv -tfpo $WALL_DIR) ;; esac diff --git a/.local/bin/upfile b/.local/bin/upfile index 78c0321..fd6cd33 100755 --- a/.local/bin/upfile +++ b/.local/bin/upfile @@ -8,6 +8,5 @@ fi [ -z "$file" ] && exit -# curl -F"file=@$file" 0x0.st | xclip -sel c -curl -F"file=@$file" 0.vern.cc | xclip -sel c -notify-send "The url has been copied to your clipboard. $(xclip -sel c -o)" +curl -F"file=@$file" 0x0.st | wl-copy +notify-send "The url has been copied to your clipboard. $(wl-paste)" |
