Nicer usage of dunst
This commit is contained in:
parent
b81ed80698
commit
6bc42fb451
@ -236,9 +236,9 @@
|
|||||||
# invoke it. If there are multiple and no default, open the context menu.
|
# invoke it. If there are multiple and no default, open the context menu.
|
||||||
# * close_current: Close current notification.
|
# * close_current: Close current notification.
|
||||||
# * close_all: Close all notifications.
|
# * close_all: Close all notifications.
|
||||||
mouse_left_click = close_current
|
mouse_left_click = do_current
|
||||||
mouse_middle_click = do_action
|
mouse_middle_click = close_all
|
||||||
mouse_right_click = close_all
|
mouse_right_click = close_current
|
||||||
|
|
||||||
# Experimental features that may or may not work correctly. Do not expect them
|
# Experimental features that may or may not work correctly. Do not expect them
|
||||||
# to have a consistent behaviour across releases.
|
# to have a consistent behaviour across releases.
|
||||||
|
@ -66,13 +66,13 @@ function mountandroid -d "Mount an Android device"
|
|||||||
echo $newchosen
|
echo $newchosen
|
||||||
sudo -A umount $mp
|
sudo -A umount $mp
|
||||||
jmtpfs -device=$newchosen $mp
|
jmtpfs -device=$newchosen $mp
|
||||||
notify-send "🤖 Android Mounting" "Android device mounted to $mp."
|
notify-send -a "dmount" "🤖 Android Mounting" "Android device mounted to $mp."
|
||||||
end
|
end
|
||||||
|
|
||||||
function mountcd
|
function mountcd
|
||||||
set chosen (echo $cddrives)
|
set chosen (echo $cddrives)
|
||||||
getmount "$HOME -maxdepth 3 -type d"
|
getmount "$HOME -maxdepth 3 -type d"
|
||||||
sudo -A mount $chosen $mp && notify-send "💿 CD mounting" "$chosen mounted." && exit 0
|
sudo -A mount $chosen $mp && notify-send -a "dmount" "💿 CD mounting" "$chosen mounted." && exit 0
|
||||||
end
|
end
|
||||||
|
|
||||||
function asktype
|
function asktype
|
||||||
@ -89,7 +89,7 @@ end
|
|||||||
|
|
||||||
switch (wc -l < /tmp/drives)
|
switch (wc -l < /tmp/drives)
|
||||||
case 0
|
case 0
|
||||||
notify-send "No USB drive or Android device or CD detected"
|
notify-send "No USB drive or Android device or CD detected" -a "dmount"
|
||||||
case 1
|
case 1
|
||||||
switch (cat /tmp/drives)
|
switch (cat /tmp/drives)
|
||||||
case "USB"
|
case "USB"
|
||||||
|
@ -20,19 +20,19 @@ function unmountusb
|
|||||||
test -z "$drives" && rm $undrivefile && return 0
|
test -z "$drives" && rm $undrivefile && return 0
|
||||||
set chosen (echo $drives | rofi -dmenu -i -p "Unmount which drive?" | awk '{print $1}')
|
set chosen (echo $drives | rofi -dmenu -i -p "Unmount which drive?" | awk '{print $1}')
|
||||||
test -z "$chosen" && rm $undrivefile && return 0
|
test -z "$chosen" && rm $undrivefile && return 0
|
||||||
sudo -A umount $chosen && notify-send "💻 USB unmounting" "$chosen unmounted."
|
sudo -A umount $chosen && notify-send "💻 USB unmounting" "$chosen unmounted." -a "dumount"
|
||||||
end
|
end
|
||||||
|
|
||||||
function unmountandroid
|
function unmountandroid
|
||||||
set chosen (echo $androids | rofi -dmenu -i -p "Unmount which device?")
|
set chosen (echo $androids | rofi -dmenu -i -p "Unmount which device?")
|
||||||
test -z "$chosen" && rm $undrivefile && return 0
|
test -z "$chosen" && rm $undrivefile && return 0
|
||||||
sudo -A umount -l $chosen && notify-send "🤖 Android unmounting" "$chosen unmounted."
|
sudo -A umount -l $chosen && notify-send "🤖 Android unmounting" "$chosen unmounted." -a "dumount"
|
||||||
end
|
end
|
||||||
|
|
||||||
function unmountcd
|
function unmountcd
|
||||||
set chosen (echo "$cds" | rofi -dmenu -i -p "Unmount which CD?")
|
set chosen (echo "$cds" | rofi -dmenu -i -p "Unmount which CD?")
|
||||||
test -z "$chosen" && rm $undrivefile && return 0
|
test -z "$chosen" && rm $undrivefile && return 0
|
||||||
sudo -A umount -l $chosen && notify-send "💿 CD unmounting" "$chosen unmounted."
|
sudo -A umount -l $chosen && notify-send "💿 CD unmounting" "$chosen unmounted." -a "dumount"
|
||||||
end
|
end
|
||||||
|
|
||||||
function asktype
|
function asktype
|
||||||
@ -48,7 +48,7 @@ end
|
|||||||
|
|
||||||
switch (wc -l < $undrivefile)
|
switch (wc -l < $undrivefile)
|
||||||
case 0
|
case 0
|
||||||
notify-send "No USB drive or Android device or CD to unmount"
|
notify-send "No USB drive or Android device or CD to unmount" -a "dumount"
|
||||||
case 1
|
case 1
|
||||||
switch (cat $undrivefile)
|
switch (cat $undrivefile)
|
||||||
case 'USB'
|
case 'USB'
|
||||||
|
Loading…
Reference in New Issue
Block a user