From 713d0476c69c06d6baad9568c0d4def8c1e9fae9 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 25 Feb 2022 06:42:48 -0800 Subject: sway: re-organize the modules Rename 'sway' to 'wm' to make it more generic; rename some of the other modules (e.g. 'wofi' to 'launcher'), for the same reason. --- users/fcuny/desktop/wm/bar.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 users/fcuny/desktop/wm/bar.nix (limited to 'users/fcuny/desktop/wm/bar.nix') diff --git a/users/fcuny/desktop/wm/bar.nix b/users/fcuny/desktop/wm/bar.nix new file mode 100644 index 0000000..265513d --- /dev/null +++ b/users/fcuny/desktop/wm/bar.nix @@ -0,0 +1,33 @@ +{ pkgs, ... }: + +{ + programs.i3status-rust = { + enable = true; + bars.default = { + settings.theme.name = "plain"; + icons = "awesome5"; + blocks = [ + { + block = "net"; + format = "{ssid} {signal_strength} {ip}"; + interval = 5; + } + { + block = "battery"; + interval = 30; + format = "{percentage} {time}"; + } + { + block = "sound"; + on_click = "${pkgs.pavucontrol}/bin/pavucontrol"; + } + { + block = "time"; + interval = 1; + format = "%b-%d %H:%M:%S"; + icons_format = ""; + } + ]; + }; + }; +} -- cgit 1.4.1