working on eww
This commit is contained in:
@@ -61,7 +61,8 @@
|
||||
;; Update network status
|
||||
(setq network-essid (exec "nmcli -t -f TYPE,NAME dev status | awk -F: '/wifi/{print $2}' | xargs -I {} sh -c 'nmcli -t -f SIGNAL dev wifi list ifname {} | awk -F: \"NR==2{print \\$1}\"'"))
|
||||
(if (string-empty? network-essid)
|
||||
(eww update network_label="Disconnected !")
|
||||
(eww update network_label="Disconnected !eww reload
|
||||
")
|
||||
(eww update network_label=(strfmt " ({}%)" network-essid)))
|
||||
|
||||
;; Update clock
|
||||
@@ -72,5 +73,5 @@
|
||||
(setq battery-status (exec "cat /sys/class/power_supply/BAT0/status"))
|
||||
(if (string= battery-status "Charging")
|
||||
(eww update battery_label=(strfmt "{}% " battery-capacity))
|
||||
(eww update battery_label=(strfmt "{}% " battery-capacity)))
|
||||
(eww update battery_label=(strfmt "{}% " battery-capacity))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user