diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2025-09-25 15:50:13 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2025-09-25 15:50:13 +0530 |
| commit | 420555802ec4d0070238f53d12e7102180526e9f (patch) | |
| tree | d7c65e9cc983c56f3c9d97709b25bdb69b40ac1a | |
| parent | 37db49b851cef0e79a9c4b07f28406828edc8f77 (diff) | |
some notification bugs
| -rwxr-xr-x | hypr/battery-notif.sh | 8 | ||||
| -rw-r--r-- | hypr/hyprland.conf | 7 | ||||
| -rw-r--r-- | waybar/battery_critical.png | bin | 0 -> 2574 bytes | |||
| -rw-r--r-- | waybar/style.css | 9 |
4 files changed, 9 insertions, 15 deletions
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 Binary files differnew file mode 100644 index 0000000..cf73f50 --- /dev/null +++ b/waybar/battery_critical.png 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; } |
