working on waybar
This commit is contained in:
+343
-344
File diff suppressed because it is too large
Load Diff
+1
-2
@@ -822,7 +822,7 @@ This is top file of this level which contains just an import statement for all r
|
||||
imports = [
|
||||
./wayland.nix
|
||||
./eww.nix
|
||||
./waybar.nix
|
||||
./waybar.nix
|
||||
./login-tuigreeter.nix
|
||||
# ./login-lightdm.nix
|
||||
];
|
||||
@@ -845,7 +845,6 @@ This file installs and configures eww
|
||||
This file installs and configures eww
|
||||
#+BEGIN_SRC nix :tangle generated/system/core/eww.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ lib, config, pkgs, flakeRoot, user, ... }:
|
||||
|
||||
let
|
||||
ewwConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/eww";
|
||||
# Dynamically read all files in assets/system/conf/eww/
|
||||
|
||||
@@ -56,13 +56,15 @@
|
||||
(setq pulseaudio-muted (exec "pamixer --get-mute"))
|
||||
(if (string= pulseaudio-muted "true")
|
||||
(eww update pulseaudio_label="\uF026")
|
||||
(eww update pulseaudio_label=(strfmt "{}% {}" pulseaudio-volume (if (> (string->number pulseaudio-volume) 50) "\uF028" "\uF027")))
|
||||
(eww update pulseaudio_label=(strfmt "{}% {}" pulseaudio-volume (if (> (string->number pulseaudio-volume) 50) "\uF028" "\uF027"))
|
||||
)
|
||||
|
||||
;; Update network status
|
||||
(setq network-essid (exec "nmcli -t -f TYPE,NAME dev status | awk -F: '/wifi/{print $2}'"))
|
||||
(if (string-empty? network-essid)
|
||||
(eww update network_label="Disconnected !")
|
||||
(eww update network_label=(strfmt "\uF1EB ({})" network-essid)))
|
||||
(eww update network_label=(strfmt "\uF1EB ({})" network-essid))
|
||||
)
|
||||
|
||||
;; Update clock
|
||||
(eww update clock_label=(strftime "%a, %d %b %Y - %H:%M"))
|
||||
@@ -72,5 +74,5 @@
|
||||
(setq battery-status (exec "cat /sys/class/power_supply/BAT0/status"))
|
||||
(if (string= battery-status "Charging")
|
||||
(eww update battery_label=(strfmt "{}% \uF0E4" battery-capacity))
|
||||
(eww update battery_label=(strfmt "{}% \uF079" battery-capacity)))
|
||||
)
|
||||
(eww update battery_label=(strfmt "{}% \uF079" battery-capacity))
|
||||
)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ lib, config, pkgs, flakeRoot, user, ... }:
|
||||
|
||||
let
|
||||
ewwConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/eww";
|
||||
# Dynamically read all files in assets/system/conf/eww/
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
imports = [
|
||||
./wayland.nix
|
||||
./eww.nix
|
||||
./waybar.nix
|
||||
./waybar.nix
|
||||
./login-tuigreeter.nix
|
||||
# ./login-lightdm.nix
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user