feat(symlinks, hyprlock): add battery label config for laptops and update hyprlock to source battery fragment
This commit is contained in:
parent
98e2dfe5a4
commit
4f06bad41b
@ -52,6 +52,8 @@ label {
|
|||||||
shadow_size = 10
|
shadow_size = 10
|
||||||
}
|
}
|
||||||
|
|
||||||
|
source = hyprlock-battery.conf
|
||||||
|
|
||||||
image {
|
image {
|
||||||
monitor =
|
monitor =
|
||||||
path = ~/.local/share/avatar.jpg
|
path = ~/.local/share/avatar.jpg
|
||||||
|
|||||||
12
.config/hypr/includes/battery-label.conf
Normal file
12
.config/hypr/includes/battery-label.conf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:10000] cat /sys/class/power_supply/BAT0/capacity | awk '{print $1 "%"}'
|
||||||
|
color = rgb(221, 194, 160) # Rose Pine text
|
||||||
|
font_size = 20
|
||||||
|
font_family = JetBrainsMono
|
||||||
|
position = 40, 160
|
||||||
|
halign = left
|
||||||
|
valign = bottom
|
||||||
|
shadow_passes = 5
|
||||||
|
shadow_size = 10
|
||||||
|
}
|
||||||
@ -96,6 +96,10 @@ if [ -d "$CONFIG_DIR" ]; then
|
|||||||
"hypr/includes/hypridle-$DOTFILES_DEVICE.conf:hypr/hypridle.conf" # Idle config per device type
|
"hypr/includes/hypridle-$DOTFILES_DEVICE.conf:hypr/hypridle.conf" # Idle config per device type
|
||||||
"waybar/config-$DOTFILES_DEVICE:waybar/config" # Waybar config per device type
|
"waybar/config-$DOTFILES_DEVICE:waybar/config" # Waybar config per device type
|
||||||
)
|
)
|
||||||
|
# Add battery label for laptops
|
||||||
|
if [ "$DOTFILES_DEVICE" = "laptop" ]; then
|
||||||
|
fragment_types+=("hypr/includes/battery-label.conf:hyprlock-battery.conf")
|
||||||
|
fi
|
||||||
|
|
||||||
# Symlink each device-specific fragment
|
# Symlink each device-specific fragment
|
||||||
for fragment in "${fragment_types[@]}"; do
|
for fragment in "${fragment_types[@]}"; do
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user