added battery widget to laptops

This commit is contained in:
2025-03-31 20:38:29 +02:00
parent f42d3a20b2
commit f6c8c405dc
8 changed files with 22 additions and 3 deletions

View File

@@ -47,4 +47,5 @@
(datetime)
(stray)
(volume)
(battery)
(swaync)))

View File

@@ -9,3 +9,4 @@
@import 'widgets/swaync.scss';
@import 'widgets/volume.scss';
@import 'widgets/hyprscreencast.scss';
@import 'widgets/battery.scss';

View File

@@ -9,3 +9,4 @@
(include "widgets/swaync.yuck")
(include "widgets/volume.yuck")
(include "widgets/hyprscreencast.yuck")
(include "widgets/battery.yuck")

View File

@@ -0,0 +1,8 @@
.battery{
background: lightgreen;
color: black;
}
.Discharging{
background: orange;
}

View File

@@ -0,0 +1,6 @@
(defwidget battery []
(box
:class "battery ${EWW_BATTERY.BAT1.status}"
:halign "center"
:valign "center"
(label :text "󱈑 ${EWW_BATTERY.BAT1.capacity} %")))

View File

@@ -0,0 +1 @@
sysmon.yuck##hostname.owlenlap01

View File

@@ -29,11 +29,11 @@ listener {
}
listener {
timeout = 1800 # 30min
timeout = 600 # 10min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
listener {
timeout = 3600 # 60min
on-timeout = systemctl hibernate # hibernate and suspend pc
timeout = 1200 # 20min
on-timeout = systemctl suspend # suspend pc
}

1
.config/hypr/hyprpaper.conf Symbolic link
View File

@@ -0,0 +1 @@
hyprpaper.conf##hostname.owlenlap01