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 = [
|
imports = [
|
||||||
./wayland.nix
|
./wayland.nix
|
||||||
./eww.nix
|
./eww.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
./login-tuigreeter.nix
|
./login-tuigreeter.nix
|
||||||
# ./login-lightdm.nix
|
# ./login-lightdm.nix
|
||||||
];
|
];
|
||||||
@@ -845,7 +845,6 @@ This file installs and configures eww
|
|||||||
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
|
#+BEGIN_SRC nix :tangle generated/system/core/eww.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ lib, config, pkgs, flakeRoot, user, ... }:
|
{ lib, config, pkgs, flakeRoot, user, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
ewwConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/eww";
|
ewwConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/eww";
|
||||||
# Dynamically read all files in assets/system/conf/eww/
|
# Dynamically read all files in assets/system/conf/eww/
|
||||||
|
|||||||
@@ -56,13 +56,15 @@
|
|||||||
(setq pulseaudio-muted (exec "pamixer --get-mute"))
|
(setq pulseaudio-muted (exec "pamixer --get-mute"))
|
||||||
(if (string= pulseaudio-muted "true")
|
(if (string= pulseaudio-muted "true")
|
||||||
(eww update pulseaudio_label="\uF026")
|
(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
|
;; Update network status
|
||||||
(setq network-essid (exec "nmcli -t -f TYPE,NAME dev status | awk -F: '/wifi/{print $2}'"))
|
(setq network-essid (exec "nmcli -t -f TYPE,NAME dev status | awk -F: '/wifi/{print $2}'"))
|
||||||
(if (string-empty? network-essid)
|
(if (string-empty? network-essid)
|
||||||
(eww update network_label="Disconnected !")
|
(eww update network_label="Disconnected !")
|
||||||
(eww update network_label=(strfmt "\uF1EB ({})" network-essid)))
|
(eww update network_label=(strfmt "\uF1EB ({})" network-essid))
|
||||||
|
)
|
||||||
|
|
||||||
;; Update clock
|
;; Update clock
|
||||||
(eww update clock_label=(strftime "%a, %d %b %Y - %H:%M"))
|
(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"))
|
(setq battery-status (exec "cat /sys/class/power_supply/BAT0/status"))
|
||||||
(if (string= battery-status "Charging")
|
(if (string= battery-status "Charging")
|
||||||
(eww update battery_label=(strfmt "{}% \uF0E4" battery-capacity))
|
(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, ... }:
|
{ lib, config, pkgs, flakeRoot, user, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
ewwConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/eww";
|
ewwConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/eww";
|
||||||
# Dynamically read all files in assets/system/conf/eww/
|
# Dynamically read all files in assets/system/conf/eww/
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./wayland.nix
|
./wayland.nix
|
||||||
./eww.nix
|
./eww.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
./login-tuigreeter.nix
|
./login-tuigreeter.nix
|
||||||
# ./login-lightdm.nix
|
# ./login-lightdm.nix
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user