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 /hypr | |
| parent | 37db49b851cef0e79a9c4b07f28406828edc8f77 (diff) | |
some notification bugs
Diffstat (limited to 'hypr')
| -rwxr-xr-x | hypr/battery-notif.sh | 8 | ||||
| -rw-r--r-- | hypr/hyprland.conf | 7 |
2 files changed, 7 insertions, 8 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 |
