diff --git a/README.md b/README.md index da3eca7..9b8b35b 100644 --- a/README.md +++ b/README.md @@ -49,3 +49,14 @@ In no particular order: * using a self-made WIP Solarized based [colorscheme](./configs/nvim/lua/malo/theme.lua) with Neovim; and * a [Fish shell config](./home/fish.nix), which provides a `toggle-background` function (and an alias `tb`) which toggles a universal environment variable (`$term_background`) between the values `"light"` and `"dark"`, along with `set-shell-colors` function which trigger automatically when `$term_background` changes. * A nice [shell prompt config](./home/starship.nix) for Fish using Starship. + + + + + +# i3wm example configs: + +https://github.com/srid/nix-config/blob/705a70c094da53aa50cf560179b973529617eb31/nix/home/i3.nix + +https://nixos.wiki/wiki/i3 +https://nix-community.github.io/home-manager/options.html#opt-programs.i3status-rust.enable diff --git a/home-manager/home.nix b/home-manager/home.nix index 9a6d34f..88ee5c6 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -6,11 +6,45 @@ let in { +programs.i3status-rust = { + enable = true; + bars = { + top = { + blocks = [ + { + block = "time"; + #format = "%a %d/%m %k:%M %p"; + interval = 1; + format = " $timestamp.datetime(f:'%Y.%m.%d %H:%M:%S') "; + } + { + block = "cpu"; + } + ]; + }; + }; + }; + # todo move to own file xsession.windowManager.i3 = { enable = true; config = { + + + bars = [ + { + + fonts = ["DejaVu Sans Mono, FontAwesome 15"]; + position = "top"; + statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-top.toml"; + } + ]; + + + + + modifier = mod; keybindings = { # Focus @@ -72,20 +106,16 @@ in "${mod}+u" = "exec --no-startup-id dmenu_run"; -# TODO "${mod}+s" = "split h"; "${mod}+y" = "split v"; "${mod}+m" = "fullscreen"; - "${mod}+Shift+s" = "layout splith"; "${mod}+Shift+y" = "layout splitv"; "${mod}+Shift+b" = "layout stacking"; "${mod}+Shift+comma" = "layout tabbed"; "${mod}+space" = "floating toggle"; - "${mod}+Shift+space" = "focus mode_toggle"; - - + # TODO what is this?? "${mod}+Shift+space" = "focus mode_toggle"; }; };