mirror of
https://github.com/rileyrg/linux-init.git
synced 2024-09-29 05:37:29 +02:00
check for notify-send in sway-screen-menu
This commit is contained in:
parent
1b539cf1de
commit
ee6a13375d
3 changed files with 3 additions and 3 deletions
|
@ -1632,7 +1632,7 @@ if [ ! -z "$SCREEN" ]; then
|
|||
ENABLED="$(zenity --list --title "Enable ${SCREEN}?" --text "" --radiolist --column "Pick" --column "Enabled" TRUE enable FALSE disable)"
|
||||
if [ ! -z "$ENABLED" ]; then
|
||||
swaymsg "output $SCREEN $ENABLED"
|
||||
(sleep 0.5 && notify-send -t 3000 "$SCREEN:$ENABLED") &
|
||||
command -v notify-send &> /dev/null && (sleep 0.5 && notify-send -t 3000 "$SCREEN:$ENABLED") &
|
||||
fi
|
||||
fi
|
||||
```
|
||||
|
|
|
@ -5,6 +5,6 @@ if [ ! -z "$SCREEN" ]; then
|
|||
ENABLED="$(zenity --list --title "Enable ${SCREEN}?" --text "" --radiolist --column "Pick" --column "Enabled" TRUE enable FALSE disable)"
|
||||
if [ ! -z "$ENABLED" ]; then
|
||||
swaymsg "output $SCREEN $ENABLED"
|
||||
(sleep 0.5 && notify-send -t 3000 "$SCREEN:$ENABLED") &
|
||||
command -v notify-send &> /dev/null && (sleep 0.5 && notify-send -t 3000 "$SCREEN:$ENABLED") &
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -2076,7 +2076,7 @@ Just a gathering place of locky/suspendy type things...
|
|||
ENABLED="$(zenity --list --title "Enable ${SCREEN}?" --text "" --radiolist --column "Pick" --column "Enabled" TRUE enable FALSE disable)"
|
||||
if [ ! -z "$ENABLED" ]; then
|
||||
swaymsg "output $SCREEN $ENABLED"
|
||||
(sleep 0.5 && notify-send -t 3000 "$SCREEN:$ENABLED") &
|
||||
command -v notify-send &> /dev/null && (sleep 0.5 && notify-send -t 3000 "$SCREEN:$ENABLED") &
|
||||
fi
|
||||
fi
|
||||
#+end_src
|
||||
|
|
Loading…
Reference in a new issue