diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-02-21 08:33:52 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-02-21 08:43:35 -0800 |
| commit | 0636d7ac99e6b25a0f9df986333a3cb4395bc112 (patch) | |
| tree | 0a9474c00200c7905b4e11cec0dfac508ba8ff1c /users/fcuny/desktop/sway/i3status.nix | |
| parent | terminal: a few more tweaks to alacritty (diff) | |
| download | infra-0636d7ac99e6b25a0f9df986333a3cb4395bc112.tar.gz | |
sway: switch to i3status and set keybindings
Replace waybar with i3status. I keep running into issues with
waybar (does not start, for example), and i3 status is a bit easier to
configure.
Set some keybindings so I can adjust volume and brightness.
Diffstat (limited to '')
| -rw-r--r-- | users/fcuny/desktop/sway/i3status.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/users/fcuny/desktop/sway/i3status.nix b/users/fcuny/desktop/sway/i3status.nix new file mode 100644 index 0000000..9eb5733 --- /dev/null +++ b/users/fcuny/desktop/sway/i3status.nix @@ -0,0 +1,36 @@ +{ 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 = "backlight"; + } + { + block = "sound"; + on_click = "${pkgs.pavucontrol}/bin/pavucontrol"; + } + { + block = "time"; + interval = 1; + format = "%b-%d %H:%M:%S"; + icons_format = ""; + } + ]; + }; + }; +} |
