aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/hypr/UserConfigs/WindowRules.conf4
-rw-r--r--config/hypr/hyprlock-1080p.conf12
-rw-r--r--config/hypr/hyprlock.conf12
-rw-r--r--config/hypr/scripts/Battery.sh9
4 files changed, 35 insertions, 2 deletions
diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf
index 661b3a17..099cd2c8 100644
--- a/config/hypr/UserConfigs/WindowRules.conf
+++ b/config/hypr/UserConfigs/WindowRules.conf
@@ -44,7 +44,7 @@ windowrule = tag +screenshare, class:^(com.obsproject.Studio)$
windowrule = tag +im, class:^([Dd]iscord|[Ww]ebCord|[Vv]esktop)$
windowrule = tag +im, class:^([Ff]erdium)$
windowrule = tag +im, class:^([Ww]hatsapp-for-linux)$
-windowrule = tag +im, class:^(ZapZap|com.rtosta.zapzap)$
+windowrule = tag +im, class:^(ZapZap|com.rtosta.zapzap)$
windowrule = tag +im, class:^(org.telegram.desktop|io.github.tdesktop_x64.TDesktop)$
windowrule = tag +im, class:^(teams-for-linux)$
@@ -219,4 +219,4 @@ layerrule = ignorezero, notifications
#layerrule = ignorezero, <rofi>
#layerrule = ignorezero, overview
-#layerrule = blur, overview \ No newline at end of file
+#layerrule = blur, overview
diff --git a/config/hypr/hyprlock-1080p.conf b/config/hypr/hyprlock-1080p.conf
index a0e105e0..14f2f35e 100644
--- a/config/hypr/hyprlock-1080p.conf
+++ b/config/hypr/hyprlock-1080p.conf
@@ -156,6 +156,18 @@ label {
valign = bottom
}
+# battery information
+label {
+ monitor =
+ text = cmd[update:1000] echo "<b> "$($Scripts/Battery.sh)" </b>"
+ color = $color13
+ font_size = 16
+ font_family = Victor Mono Bold Oblique
+ position = 0, 30
+ halign = right
+ valign = bottom
+}
+
# weather edit the scripts for locations
# weather scripts are located in ~/.config/hypr/UserScripts Weather.sh and/or Weather.py
# see https://github.com/JaKooLit/Hyprland-Dots/wiki/TIPS#%EF%B8%8F-weather-app-related-for-waybar-and-hyprlock
diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf
index 48b09b85..b67bba51 100644
--- a/config/hypr/hyprlock.conf
+++ b/config/hypr/hyprlock.conf
@@ -157,6 +157,18 @@ label {
valign = bottom
}
+# battery information
+label {
+ monitor =
+ text = cmd[update:1000] echo "<b> "$($Scripts/Battery.sh)" </b>"
+ color = $color13
+ font_size = 18
+ font_family = Victor Mono Bold Oblique
+ position = 0, 30
+ halign = right
+ valign = bottom
+}
+
# weather edit the scripts for locations
# weather scripts are located in ~/.config/hypr/UserScripts Weather.sh and/or Weather.py
# see https://github.com/JaKooLit/Hyprland-Dots/wiki/TIPS#%EF%B8%8F-weather-app-related-for-waybar-and-hyprlock
diff --git a/config/hypr/scripts/Battery.sh b/config/hypr/scripts/Battery.sh
new file mode 100644
index 00000000..d7830058
--- /dev/null
+++ b/config/hypr/scripts/Battery.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+for i in {0..3}; do
+ if [ -f /sys/class/power_supply/BAT$i/capacity ]; then
+ battery_level=$(cat /sys/class/power_supply/BAT$i/status)
+ battery_capacity=$(cat /sys/class/power_supply/BAT$i/capacity)
+ echo "Battery: $battery_capacity% ($battery_level)"
+ fi
+done
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage