Compare commits

...

3 Commits

4 changed files with 9 additions and 6 deletions

View File

@ -37,7 +37,7 @@ my $waybar_template = "$ENV{'HOME'}/.dotfiles/waybar/config.template";
my $swaysock = $ENV{'SWAYSOCK'} || $ENV{'HOME'} . "/.spool/sway-ipc.sock";
# Path to actual config file generated from template
my $waybar_config = "$ENV{'HOME'}/.config/waybar/config";
my $waybar_config = "$ENV{'HOME'}/.dotfiles/waybar/config";
# Path to waybar binary
#my $waybar_bin = "$ENV{'HOME'}/.dotfiles/nix/bin/waybar";

View File

@ -3,5 +3,7 @@ if [ -z ${SWAYSOCK+x} ]; then
i3 reload
else
swaymsg reload
distrobox-enter -n debian -- ${HOME}/scripts/sway/displays.pl
source ${HOME}/.dotfile/bash/bashrc
cd ${HOME}/scripts/sway
perl -Ilocal/lib/perl5/5.38.2 display.pl
fi

View File

@ -2,5 +2,6 @@
if [ -z ${SWAYSOCK+x} ]; then
i3 reload
else
${HOME}/scripts/sway/displays.pl -w
cd ${HOME}/scripts/sway
perl -Ilocal/lib/perl5/5.38.2 display.pl -w
fi

View File

@ -41,10 +41,10 @@ else
fi
fi
if [ -n $NOTIFY_ID ]; then
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}%)
else
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}%)
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}%)
fi
echo $NOTIFY_ID > /tmp/brightness-notification