Skip to content

Commit

Permalink
Removed -u low from all notify-send commands
Browse files Browse the repository at this point in the history
  • Loading branch information
NecRaul committed Mar 16, 2024
1 parent b882f2b commit 20b3613
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .config/lf/lfrc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ${{
Expand All @@ -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"
Expand Down
16 changes: 8 additions & 8 deletions .config/nsxiv/exec/key-handler
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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/: /: <b>/;s/$/<\/b>/" | grep "<b>")" ;;
"i") notify-send "File information" "$(mediainfo "$file" | sed "s/[ ]\+:/:/g;s/: /: <b>/;s/$/<\/b>/" | grep "<b>")" ;;
esac
done
8 changes: 4 additions & 4 deletions .local/bin/scripts/setbg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .local/bin/statusbar/sb-battery
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
4 changes: 2 additions & 2 deletions .local/bin/statusbar/sb-clock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ day=$(date +'%e')

case $BLOCK_BUTTON in
1)
notify-send -u low ' Calendar' "$(cal -m | sed -e "s/$day\b/<span color='red'>$day<\/span>/g")"
notify-send ' Calendar' "$(cal -m | sed -e "s/$day\b/<span color='red'>$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

Expand Down
4 changes: 2 additions & 2 deletions .local/bin/statusbar/sb-cpu
Original file line number Diff line number Diff line change
@@ -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" ;;
Expand Down
2 changes: 1 addition & 1 deletion .local/bin/statusbar/sb-forecast
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .local/bin/statusbar/sb-gpu
Original file line number Diff line number Diff line change
Expand Up @@ -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" ;;
Expand Down
2 changes: 1 addition & 1 deletion .local/bin/statusbar/sb-internet
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .local/bin/statusbar/sb-music
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
6 changes: 3 additions & 3 deletions .local/bin/statusbar/sb-ram
Original file line number Diff line number Diff line change
@@ -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}') ]"
2 changes: 1 addition & 1 deletion .local/bin/statusbar/sb-volume
Original file line number Diff line number Diff line change
Expand Up @@ -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" ;;
Expand Down

0 comments on commit 20b3613

Please sign in to comment.