Compare commits
2 Commits
c2cb64efea
...
60344ec940
Author | SHA1 | Date |
---|---|---|
John Mertz | 60344ec940 | |
John Mertz | eacff1a815 |
|
@ -4,6 +4,6 @@ OLDPWD=$OLDPWD
|
||||||
PWD=$PWD
|
PWD=$PWD
|
||||||
cd $HOME/scripts/sway/
|
cd $HOME/scripts/sway/
|
||||||
source ~/.dotfiles/bash/plenv-path.sh
|
source ~/.dotfiles/bash/plenv-path.sh
|
||||||
perl -Ilocal/lib/perl5/5.38.2 displays.pl
|
perl -Ilocal/lib/perl5/5.38.2 displays.pl $@
|
||||||
cd $OLDPWD
|
cd $OLDPWD
|
||||||
cd $PWD
|
cd $PWD
|
||||||
|
|
|
@ -2,6 +2,5 @@
|
||||||
if [ -z ${SWAYSOCK+x} ]; then
|
if [ -z ${SWAYSOCK+x} ]; then
|
||||||
i3 reload
|
i3 reload
|
||||||
else
|
else
|
||||||
cd ${HOME}/scripts/sway
|
${HOME}/scripts/sway/restore_display.sh -w
|
||||||
perl -Ilocal/lib/perl5/5.38.2 display.pl -w
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -42,9 +42,9 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z $NOTIFY_ID ]; then
|
if [ -z $NOTIFY_ID ]; then
|
||||||
NOTIFY_ID=$(notify-send --category=backlight --urgency=low --hint=int:value:$BRIGHTNESS --icon=${HOME}/.icons/Gruvbox/48x48@2x/devices/notification-display-brightness${ICON}.svg -p -t 1000 Backlight ${BRIGHTNESS}%)
|
NOTIFY_ID=$(notify-send -e --app-name=waybar-backlight --category=backlight --urgency=low --hint=int:value:$BRIGHTNESS --icon=${HOME}/.icons/Gruvbox/48x48@2x/devices/notification-display-brightness${ICON}.svg -p -t 1000 Backlight ${BRIGHTNESS}%)
|
||||||
else
|
else
|
||||||
NOTIFY_ID=$(notify-send --category=backlight --urgency=low --hint=int:value:$BRIGHTNESS --icon=${HOME}/.icons/Gruvbox/48x48@2x/status/notification-display-brightness${ICON}.svg -p -t 1000 -r $NOTIFY_ID Backlight ${BRIGHTNESS}%)
|
NOTIFY_ID=$(notify-send -e --app-name=waybar-backlight --category=backlight --urgency=low --hint=int:value:$BRIGHTNESS --icon=${HOME}/.icons/Gruvbox/48x48@2x/status/notification-display-brightness${ICON}.svg -p -t 1000 -r $NOTIFY_ID Backlight ${BRIGHTNESS}%)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $NOTIFY_ID > /tmp/brightness-notification
|
echo $NOTIFY_ID > /tmp/brightness-notification
|
||||||
|
|
|
@ -46,9 +46,9 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $NOTIFY_ID ]]; then
|
if [[ -z $NOTIFY_ID ]]; then
|
||||||
NOTIFY_ID=$(notify-send --category=volume --urgency=low --hint=int:value:$VOLUME --icon=${HOME}/.icons/Gruvbox/48x48@2x/devices/notification-audio-volume${ICON}.svg -p -t 1000 Volume ${VOLUME}%)
|
NOTIFY_ID=$(notify-send -e --app-name=waybar-volume --category=volume --urgency=low --hint=int:value:$VOLUME --icon=${HOME}/.icons/Gruvbox/48x48@2x/devices/notification-audio-volume${ICON}.svg -p -t 1000 Volume ${VOLUME}%)
|
||||||
else
|
else
|
||||||
NOTIFY_ID=$(notify-send --category=volume --urgency=low --hint=int:value:$VOLUME --icon=${HOME}/.icons/Gruvbox/48x48@2x/status/notification-audio-volume${ICON}.svg -p -r $NOTIFY_ID -t 1000 Volume ${VOLUME}%)
|
NOTIFY_ID=$(notify-send -e --app-name=waybar-volume --category=volume --urgency=low --hint=int:value:$VOLUME --icon=${HOME}/.icons/Gruvbox/48x48@2x/status/notification-audio-volume${ICON}.svg -p -r $NOTIFY_ID -t 1000 Volume ${VOLUME}%)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VOLUME=$(pactl get-sink-volume $SINK | grep Volume | sed -r 's/.* (1?[0-9]?[0-9])% \/.*/\1/')
|
VOLUME=$(pactl get-sink-volume $SINK | grep Volume | sed -r 's/.* (1?[0-9]?[0-9])% \/.*/\1/')
|
||||||
|
|
Loading…
Reference in New Issue