Change dunstify to notidy-send

This commit is contained in:
2022-02-06 21:45:41 +01:00
parent 2c108d1682
commit b1de90b743
9 changed files with 69 additions and 73 deletions

View File

@@ -135,7 +135,7 @@ if [ ! -z "$ps_line" ]; then
name=$(echo $ps_line | awk '{print $4}')
kill -15 $pid && \
dunstify "Kill" "$name (PID $pid)" &
notify-send "Kill" "$name (PID $pid)" &
fi
#+end_src
@@ -152,14 +152,14 @@ tmpfile="/tmp/vpnstatus";
if [[ $(nordvpn status) == *"Connected"* ]]; then
nordvpn disconnect && \
dunstify --replace=23198 "VPN" "Disconnected" && \
notify-send "VPN" "Disconnected" && \
echo "off" > $tmpfile;
else
# Select Country to connect to
country=`cat ~/.local/data/nordvpn_countries.txt | rofi -i -dmenu | sed 's/\s/_/g'`;
dunstify --replace=23198 "VPN" "Connecting to $country...";
notify-send "VPN" "Connecting to $country...";
nordvpn connect $country && \
dunstify --replace=23198 "VPN" "Connected to $country" && \
notify-send "VPN" "Connected to $country" && \
echo "on" > $tmpfile;
fi
#+end_src
@@ -715,7 +715,7 @@ if [ -n "$1" ]; then
xdotool key Shift+Insert
else
echo "$chosen" | tr -d '\n' | xsel -ib
dunstify "'$chosen' copied to clipboard." &
notify-send "'$chosen' copied to clipboard." &
fi
#+end_src
@@ -739,7 +739,7 @@ if [ -n "$1" ]; then
xdotool key Shift+Insert
else
echo "$chosen" | tr -d '\n' | xsel -ib
dunstify "'$chosen' copied to clipboard." &
notify-send "'$chosen' copied to clipboard." &
fi
#+end_src
@@ -850,8 +850,8 @@ if [ $TMUX ]; then
tmux split -v -l 1 "curl --progress-bar -F\"file=@$1\" https://0x0.st | xsel -ib;" && tmux select-pane -U
else
curl --progress-bar -F"file=@$1" https://0x0.st | xsel -ib && \
dunstify 'Upload' 'Successful' || \
dunstify --urgency=critical 'Upload' 'Failed'
notify-send 'Upload' 'Successful' || \
notify-send --urgency=critical 'Upload' 'Failed'
fi
#+end_src
@@ -914,8 +914,8 @@ fi
if [ -n "$1" ]; then
doi2bib $doi | xsel -ib && \
dunstify 'BibTeX' 'Copied to Clipboard' || \
dunstify --urgency=critical 'BibTeX' 'Failed'
notify-send 'BibTeX' 'Copied to Clipboard' || \
notify-send --urgency=critical 'BibTeX' 'Failed'
fi
#+end_src