Compare commits
No commits in common. "60344ec940331d688b1f60b5368efbaf1ce18cc7" and "c2cb64efea3dd41db6a60bc6ec110a124e5588ab" have entirely different histories.
60344ec940
...
c2cb64efea
|
@ -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,5 +2,6 @@
|
||||||
if [ -z ${SWAYSOCK+x} ]; then
|
if [ -z ${SWAYSOCK+x} ]; then
|
||||||
i3 reload
|
i3 reload
|
||||||
else
|
else
|
||||||
${HOME}/scripts/sway/restore_display.sh -w
|
cd ${HOME}/scripts/sway
|
||||||
|
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 -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}%)
|
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}%)
|
||||||
else
|
else
|
||||||
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}%)
|
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}%)
|
||||||
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 -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}%)
|
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}%)
|
||||||
else
|
else
|
||||||
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}%)
|
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}%)
|
||||||
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