Skip to content

Commit

Permalink
inlude minimal i3status-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Sep 4, 2023
1 parent 2e6abc7 commit 0f190ea
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
40 changes: 35 additions & 5 deletions home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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";

};
};
Expand Down

0 comments on commit 0f190ea

Please sign in to comment.