From 33e8251917aa5539a290ef90c69f80d9e34d8757 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sat, 5 Aug 2023 00:00:31 +0300 Subject: [PATCH] fix battery script --- config/dwm/scripts/bar.sh | 2 +- config/kitty/kitty.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/dwm/scripts/bar.sh b/config/dwm/scripts/bar.sh index aeef35d0..4fb9175a 100755 --- a/config/dwm/scripts/bar.sh +++ b/config/dwm/scripts/bar.sh @@ -23,7 +23,7 @@ battery() { Discharging) if (( $get_capacity <= 20)); then printf "^c$lightred^ 󰂃 $get_capacity" if [ $sent_notification = false ]; then - dunstify -u critical "Battery low" "Please charge battery" + sudo -u sako DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dunstify -u critical "Battery low" "Please charge battery" sent_notification=true fi else diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf index f1e15a90..fe56eff0 100644 --- a/config/kitty/kitty.conf +++ b/config/kitty/kitty.conf @@ -13,4 +13,4 @@ scrollback_lines 2000 enable_audio_bell no # maxmium productivity probably -window_padding_width 10 +window_padding_width 15