Revert: I've found a way to keep dunst and notify about yubikey in the statusbar.
This commit is contained in:
parent
b45a8b3c70
commit
ee352e389e
5 changed files with 16 additions and 21 deletions
|
@ -40,6 +40,7 @@ onescreen() {
|
|||
|
||||
postrun() {
|
||||
feh --no-fehbg --bg-scale ~/.local/share/wallpaper.jpg
|
||||
{ killall dunst ; setsid -f dunst ;} >/dev/null 2>&1 # Restart dunst to ensure proper location on screen
|
||||
}
|
||||
|
||||
# Get all possible displays
|
||||
|
@ -50,7 +51,7 @@ screens=$(echo "$allposs" | awk '/ connected/ {print $1}')
|
|||
|
||||
# If there's only one screen
|
||||
[ "$(echo "$screens" | wc -l)" -lt 2 ] &&
|
||||
{ onescreen "$screens" "native"; postrun; notify-send -t 1000 ' no device to switch'; exit ;}
|
||||
{ onescreen "$screens" "native"; postrun; dunstify -u critical ' no device to switch'; exit ;}
|
||||
|
||||
# Get user choice including both and manual selection:
|
||||
chosen=$(printf -- "%s\\nmulti" "$screens" | dmenu -c -l 5 -i -p "select output") &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue