added battery widget to laptops
This commit is contained in:
@@ -47,4 +47,5 @@
|
||||
(datetime)
|
||||
(stray)
|
||||
(volume)
|
||||
(battery)
|
||||
(swaync)))
|
||||
|
@@ -9,3 +9,4 @@
|
||||
@import 'widgets/swaync.scss';
|
||||
@import 'widgets/volume.scss';
|
||||
@import 'widgets/hyprscreencast.scss';
|
||||
@import 'widgets/battery.scss';
|
||||
|
@@ -9,3 +9,4 @@
|
||||
(include "widgets/swaync.yuck")
|
||||
(include "widgets/volume.yuck")
|
||||
(include "widgets/hyprscreencast.yuck")
|
||||
(include "widgets/battery.yuck")
|
||||
|
8
.config/eww/widgets/battery.scss
Normal file
8
.config/eww/widgets/battery.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
.battery{
|
||||
background: lightgreen;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.Discharging{
|
||||
background: orange;
|
||||
}
|
6
.config/eww/widgets/battery.yuck
Normal file
6
.config/eww/widgets/battery.yuck
Normal file
@@ -0,0 +1,6 @@
|
||||
(defwidget battery []
|
||||
(box
|
||||
:class "battery ${EWW_BATTERY.BAT1.status}"
|
||||
:halign "center"
|
||||
:valign "center"
|
||||
(label :text " ${EWW_BATTERY.BAT1.capacity} %")))
|
1
.config/eww/widgets/sysmon.yuck
Symbolic link
1
.config/eww/widgets/sysmon.yuck
Symbolic link
@@ -0,0 +1 @@
|
||||
sysmon.yuck##hostname.owlenlap01
|
@@ -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
1
.config/hypr/hyprpaper.conf
Symbolic link
@@ -0,0 +1 @@
|
||||
hyprpaper.conf##hostname.owlenlap01
|
Reference in New Issue
Block a user