Krolyxon
Commit 4df279d

Branches

Refs →

aurora4df279d

setwall: use nsxiv for menu

Author
krolxon
Date
2025-08-17 18:29 +0530
Parent
9226cef
Commit
4df279d8cc55103b46df9531616e41d08b7288b2

+7 −15

5 files changed

  1. M .config/hypr/hyprland.conf +2 −1
  2. D .config/hypr/hyprpaper.conf +0 −2
  3. M .config/nsxiv/exec/key-handler +1 −1
  4. M .local/bin/setwall +2 −8
  5. M .local/bin/upfile +2 −3
M .config/hypr/hyprland.conf View
@@ -11,7 +11,8 @@ $browser = zen-browser
1111 #################
1212 ### AUTOSTART ###
1313 #################
14−exec-once = (hyprpm reload -n & kanshi & waybar & swaync & gammastep & hypridle & foot --server)
14+exec-once = foot --server
15+exec-once = (hyprpm reload -n & kanshi & waybar & swaync & gammastep & hypridle)
1516 exec-once = ~/.local/bin/setwall
1617 exec-once = systemctl --user start hyprpolkitagent
1718
D .config/hypr/hyprpaper.conf View
@@ -1,2 +0,0 @@
1−preload = /home/krolyxon/pix/wallpapers/onedarkwallpapers/19.png
2−wallpaper = ,/home/krolyxon/pix/wallpapers/onedarkwallpapers/19.png
M .config/nsxiv/exec/key-handler View
@@ -5,7 +5,7 @@ do
55 case "$1" in
66 "d")
77 [ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
8− "w") setwall -p $file;;
8+"w") setwall -p $(realpath $file);;
99 "c") cat "$file" | xclip -sel c -t image/png && notify-send "$file Copied ";;
1010 esac
1111 done
M .local/bin/setwall View
@@ -1,5 +1,5 @@
11 #!/bin/bash
2−WALL_DIR="$HOME/pix/wallpapers/onedarkwallpapers/"
2+WALL_DIR="$HOME/pix/wallpapers/catppuccin/"
33 MODE="random"
44 CUSTOM_PATH=""
55
@@ -27,13 +27,7 @@ case $MODE in
2727 fi
2828 ;;
2929 menu)
30− WALLPAPER_LIST=$(find "$WALL_DIR" -type f | sort | sed "s|$WALL_DIR||")
31− CHOSEN=$(echo "$WALLPAPER_LIST" | rofi -dmenu -i -p "Choose wallpaper:")
32− if [[ -z "$CHOSEN" ]]; then
33− NEW_WALL=$(find "$WALL_DIR" -type f | shuf -n 1)
34− else
35− NEW_WALL="$WALL_DIR$CHOSEN"
36− fi
30+ NEW_WALL=$(nsxiv -tfpo $WALL_DIR)
3731 ;;
3832 esac
3933
M .local/bin/upfile View
@@ -8,6 +8,5 @@ fi
88
99 [ -z "$file" ] && exit
1010
11−# curl -F"file=@$file" 0x0.st | xclip -sel c
12−curl -F"file=@$file" 0.vern.cc | xclip -sel c
13−notify-send "The url has been copied to your clipboard. $(xclip -sel c -o)"
11+curl -F"file=@$file" 0x0.st | wl-copy
12+notify-send "The url has been copied to your clipboard. $(wl-paste)"