From 420555802ec4d0070238f53d12e7102180526e9f Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Thu, 25 Sep 2025 15:50:13 +0530 Subject: some notification bugs --- hypr/battery-notif.sh | 8 ++++---- hypr/hyprland.conf | 7 +++---- waybar/battery_critical.png | Bin 0 -> 2574 bytes waybar/style.css | 9 ++------- 4 files changed, 9 insertions(+), 15 deletions(-) create mode 100644 waybar/battery_critical.png diff --git a/hypr/battery-notif.sh b/hypr/battery-notif.sh index 4298192..4a0165e 100755 --- a/hypr/battery-notif.sh +++ b/hypr/battery-notif.sh @@ -4,10 +4,10 @@ while true; do status=$(cat /sys/class/power_supply/BAT1/status) if [[ "$status" = "Discharging" ]]; then battery=$(cat /sys/class/power_supply/BAT1/capacity) - if [[ battery -lt 15 ]]; then - notify-send -u critical Very Low Battery -i ~/.config/waybar/battery_low.png - elif [[ battery -lt 30 ]]; then - notify-send -u normal Low Battery -i ~/.config/waybar/battery_low.png + if [[ battery -lt 16 ]]; then + notify-send -u critical "Very Low Battery" -i ~/.config/waybar/battery_critical.png + elif [[ battery -lt 31 ]]; then + notify-send -u normal "Low Battery" -i ~/.config/waybar/battery_low.png fi fi pid=$! diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index f9d8c8f..0e073a1 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -188,13 +188,14 @@ $mainMod = SUPER # Sets "Windows" key as main modifier # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, T, exec, $terminal bind = $mainMod, Q, killactive, -bind = $mainMod, L, exit, +bind = $mainMod SHIFT, L, exit, +bind = $mainMod, L, exec, hyprlock bind = $mainMod, E, exec, $fileManager bind = $mainMod, F, togglefloating, bind = $mainMod, R, exec, $menu bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle -bind = CTRL+SHIFT, ESC, exec, $taskManager +bind = CTRL SHIFT, escape, exec, $taskManager # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l @@ -212,7 +213,6 @@ bind = $mainMod, 6, workspace, 6 bind = $mainMod, 7, workspace, 7 bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 -bind = $mainMod, 0, workspace, 10 # Move active window to a workspace with mainMod + SHIFT + [0-9] bind = $mainMod SHIFT, 1, movetoworkspace, 1 @@ -224,7 +224,6 @@ bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 -bind = $mainMod SHIFT, 0, movetoworkspace, 10 # Example special workspace (scratchpad) bind = $mainMod, S, togglespecialworkspace, magic diff --git a/waybar/battery_critical.png b/waybar/battery_critical.png new file mode 100644 index 0000000..cf73f50 Binary files /dev/null and b/waybar/battery_critical.png differ diff --git a/waybar/style.css b/waybar/style.css index a9b80a6..9efc646 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -3,6 +3,8 @@ font-weight: bold; font-size: 16px; color: #c6d0f5; + margin: 0; + border-radius: 0px; } #waybar { @@ -18,11 +20,4 @@ #workspaces button.active { background-color: #28CD41; color: #ea999c; - margin: 0; - border-radius: 0px; -} - -#window { - font-weight: 500; - font-style: italic; } -- cgit v1.2.3