diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-05-27 03:58:55 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-05-27 03:58:55 +0900 |
| commit | c6c06f0448413454b9ea58af7526c55c360b0e97 (patch) | |
| tree | ddb9f1f9a66ecf78973b836e37716c2e0b0c5d25 | |
| parent | d9c558b45866503c6903a5286407a4efc692a4b1 (diff) | |
updated Power.sh, renamed to Battery.sh since it is about battery information
| -rw-r--r-- | config/hypr/hyprlock-1080p.conf | 12 | ||||
| -rw-r--r-- | config/hypr/hyprlock.conf | 4 | ||||
| -rw-r--r-- | config/hypr/scripts/Battery.sh (renamed from config/hypr/scripts/Power.sh) | 2 |
3 files changed, 15 insertions, 3 deletions
diff --git a/config/hypr/hyprlock-1080p.conf b/config/hypr/hyprlock-1080p.conf index a0e105e0..70c00c16 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, 50 + 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 80a94fb1..b67bba51 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -157,10 +157,10 @@ label { valign = bottom } -# battery +# battery information label { monitor = - text = cmd[update:1000] echo "<b> "$($Scripts/Power.sh)" </b>" + text = cmd[update:1000] echo "<b> "$($Scripts/Battery.sh)" </b>" color = $color13 font_size = 18 font_family = Victor Mono Bold Oblique diff --git a/config/hypr/scripts/Power.sh b/config/hypr/scripts/Battery.sh index 42431ea9..d7830058 100644 --- a/config/hypr/scripts/Power.sh +++ b/config/hypr/scripts/Battery.sh @@ -4,6 +4,6 @@ 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 "Power: $battery_capacity% ($battery_level)" + echo "Battery: $battery_capacity% ($battery_level)" fi done |
