diff --git a/.config/lf/lfrc b/.config/lf/lfrc index ce03c1f..b9358bb 100755 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -76,7 +76,7 @@ cmd moveto ${{ for x in $fx; do eval mv -iv \"$x\" \"$dest\" done && - notify-send -u low "File(s) moved." "File(s) moved to $dest." + notify-send "File(s) moved." "File(s) moved to $dest." }} cmd copyto ${{ @@ -87,7 +87,7 @@ cmd copyto ${{ for x in $fx; do eval cp -ivr \"$x\" \"$dest\" done && - notify-send -u low "File(s) copied." "File(s) copies to $dest." + notify-send "File(s) copied." "File(s) copies to $dest." }} cmd setbg "$1" diff --git a/.config/nsxiv/exec/key-handler b/.config/nsxiv/exec/key-handler index 91e66aa..b33b8e5 100755 --- a/.config/nsxiv/exec/key-handler +++ b/.config/nsxiv/exec/key-handler @@ -4,13 +4,13 @@ while read -r file; do "w") setbg "$file" & ;; "c") [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | dmenu -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")" - [ ! -d "$destdir" ] && notify-send -u low "$destdir is not a directory, cancelled." && exit - cp "$file" "$destdir" && notify-send -u low -i "$(readlink -f "$file")" "$file copied to $destdir." & + [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit + cp "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file copied to $destdir." & ;; "m") [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | dmenu -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")" - [ ! -d "$destdir" ] && notify-send -u low "$destdir is not a directory, cancelled." && exit - mv "$file" "$destdir" && notify-send -u low -i "$(readlink -f "$file")" "$file moved to $destdir." & + [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit + mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." & ;; "r") convert -rotate 90 "$file" "$file" @@ -23,15 +23,15 @@ while read -r file; do ;; "y") printf "%s" "$file" | tr -d '\n' | xclip -selection clipboard && - notify-send -u low "$file copied to clipboard" & + notify-send "$file copied to clipboard" & ;; "Y") readlink -f "$file" | tr -d '\n' | xclip -selection clipboard && - notify-send -u low "$(readlink -f "$file") copied to clipboard" & + notify-send "$(readlink -f "$file") copied to clipboard" & ;; "d") - [ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send -u low "$file deleted." + [ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;; - "i") notify-send -u low "File information" "$(mediainfo "$file" | sed "s/[ ]\+:/:/g;s/: /: /;s/$/<\/b>/" | grep "")" ;; + "i") notify-send "File information" "$(mediainfo "$file" | sed "s/[ ]\+:/:/g;s/: /: /;s/$/<\/b>/" | grep "")" ;; esac done diff --git a/.local/bin/scripts/setbg b/.local/bin/scripts/setbg index 26a9e4f..b47630e 100755 --- a/.local/bin/scripts/setbg +++ b/.local/bin/scripts/setbg @@ -22,17 +22,17 @@ shift $((OPTIND - 1)) trueloc="$(readlink -f "$1")" && case "$(file --mime-type -b "$trueloc")" in - image/*) ln -sf "$trueloc" "$bgloc" && [ -z "$silent" ] && notify-send -u low -i "$bgloc" "Changing wallpaper..." ;; - inode/directory) ln -sf "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc" && [ -z "$silent" ] && notify-send -u low -i "$bgloc" "Random Wallpaper chosen." ;; + image/*) ln -sf "$trueloc" "$bgloc" && [ -z "$silent" ] && notify-send -i "$bgloc" "Changing wallpaper..." ;; + inode/directory) ln -sf "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc" && [ -z "$silent" ] && notify-send -i "$bgloc" "Random Wallpaper chosen." ;; *) - [ -z "$silent" ] && notify-send -u low "🖼️ Error" "Not a valid image or directory." + [ -z "$silent" ] && notify-send "🖼️ Error" "Not a valid image or directory." exit 1 ;; esac # If pywal is installed, use it. if command -v wal >/dev/null 2>&1; then - wal -c + wal -c wal --cols16 lighten -n -i "$(readlink -f $bgloc)" -o "$XDG_CONFIG_HOME/wal/postrun" # If pywal is removed, return config files to normal. else diff --git a/.local/bin/statusbar/sb-battery b/.local/bin/statusbar/sb-battery index 706d965..4a5e4f4 100755 --- a/.local/bin/statusbar/sb-battery +++ b/.local/bin/statusbar/sb-battery @@ -4,7 +4,7 @@ # to charge status (󰂄 for plugged up, 󰁿 for discharging on battery, etc.). case $BLOCK_BUTTON in -3) notify-send -u low "󱟢 Battery module" "󰁿 : discharging +3) notify-send "󱟢 Battery module" "󰁿 : discharging 󰂄 : charging 󰁹 : charged 󰂃 : battery very low! diff --git a/.local/bin/statusbar/sb-clock b/.local/bin/statusbar/sb-clock index 57f366e..1d633cc 100755 --- a/.local/bin/statusbar/sb-clock +++ b/.local/bin/statusbar/sb-clock @@ -4,9 +4,9 @@ day=$(date +'%e') case $BLOCK_BUTTON in 1) - notify-send -u low ' Calendar' "$(cal -m | sed -e "s/$day\b/$day<\/span>/g")" + notify-send ' Calendar' "$(cal -m | sed -e "s/$day\b/$day<\/span>/g")" ;; -3) notify-send -u low " Time/date module" "\- Left click to show the month via \`cal\`" ;; +3) notify-send " Time/date module" "\- Left click to show the month via \`cal\`" ;; 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac diff --git a/.local/bin/statusbar/sb-cpu b/.local/bin/statusbar/sb-cpu index 2d79069..d59d4ad 100755 --- a/.local/bin/statusbar/sb-cpu +++ b/.local/bin/statusbar/sb-cpu @@ -1,9 +1,9 @@ #!/bin/sh case $BLOCK_BUTTON in -1) notify-send -u low " CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head -n 7)" ;; +1) notify-send " CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head -n 7)" ;; 2) setsid -f "$TERMINAL" -e htop ;; -3) notify-send -u low " CPU module " "\- Shows CPU usage. +3) notify-send " CPU module " "\- Shows CPU usage. - Click to show intensive processes. - Middle click to open htop." ;; 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast index c29997d..339d040 100755 --- a/.local/bin/statusbar/sb-forecast +++ b/.local/bin/statusbar/sb-forecast @@ -40,7 +40,7 @@ showweather() { case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e less -Srf "$weatherreport" ;; 2) getforecast && showweather ;; -3) notify-send -u low "󰼯 Weather module" "\- Left click for full forecast. +3) notify-send "󰼯 Weather module" "\- Left click for full forecast. - Middle click to update forecast. 󰖗: Chance of rain/snow diff --git a/.local/bin/statusbar/sb-gpu b/.local/bin/statusbar/sb-gpu index 1495c2f..b92590e 100755 --- a/.local/bin/statusbar/sb-gpu +++ b/.local/bin/statusbar/sb-gpu @@ -7,9 +7,9 @@ gpu_processes=$(amdgpu_top -p | tail -n +4 | awk '!/Requested/ && !/Evicted/') process_info=$(echo "$gpu_processes" | awk '{print $1, substr($8, 1, length($8)-2)}') case $BLOCK_BUTTON in -1) notify-send -u low " GPU hogs" "$process_info" ;; +1) notify-send " GPU hogs" "$process_info" ;; 2) setsid -f "$TERMINAL" -e nvtop ;; -3) notify-send -u low " GPU module " "\- Shows GPU usage. +3) notify-send " GPU module " "\- Shows GPU usage. - Click to show extended GPU Information. - Middle click to open nvtop." ;; 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; diff --git a/.local/bin/statusbar/sb-internet b/.local/bin/statusbar/sb-internet index 69f1d0e..ef3a4f6 100755 --- a/.local/bin/statusbar/sb-internet +++ b/.local/bin/statusbar/sb-internet @@ -9,7 +9,7 @@ case $BLOCK_BUTTON in "$TERMINAL" -e nmtui pkill -RTMIN+4 dwmblocks ;; -3) notify-send -u low "󰖟 Internet module" "\- Click to connect +3) notify-send "󰖟 Internet module" "\- Click to connect 󰖪: wifi disabled 󰤯: no wifi connection 󰖩: wifi connection with quality diff --git a/.local/bin/statusbar/sb-music b/.local/bin/statusbar/sb-music index 34ace4f..31d9581 100755 --- a/.local/bin/statusbar/sb-music +++ b/.local/bin/statusbar/sb-music @@ -14,7 +14,7 @@ case $BLOCK_BUTTON in 2) mpc toggle | filter ;; # right click, pause/unpause 3) mpc status | filter - notify-send -u low " Music module" "\- Shows mpd song playing. + notify-send " Music module" "\- Shows mpd song playing. - Left click opens ncmpcpp. - Middle click pauses. - Scroll changes track." diff --git a/.local/bin/statusbar/sb-ram b/.local/bin/statusbar/sb-ram index 809c81b..b5f99da 100755 --- a/.local/bin/statusbar/sb-ram +++ b/.local/bin/statusbar/sb-ram @@ -1,12 +1,12 @@ #!/bin/sh case $BLOCK_BUTTON in -1) notify-send -u low " Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head -n 7)" ;; +1) notify-send " Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head -n 7)" ;; 2) setsid -f "$TERMINAL" -e htop ;; -3) notify-send -u low " Memory module" "\- Shows Memory usage. +3) notify-send " Memory module" "\- Shows Memory usage. - Click to show intensive processes. - Middle click to open htop." ;; - 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; +6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac echo "[  RAM: $(free -m | awk '/Mem:/ {printf "%2.1f%%", $3/$2 * 100}') ]" diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index 6211129..bd2432a 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -10,7 +10,7 @@ case $BLOCK_BUTTON in 2) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;; 4) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ ;; 5) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- ;; -3) notify-send -u low "󰕾 Volume module" "\- Shows volume 󰕾, 󰖁 if muted. +3) notify-send "󰕾 Volume module" "\- Shows volume 󰕾, 󰖁 if muted. - Middle click to mute. - Scroll to change." ;; 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;