diff --git a/home/files/i3-blocks b/home/files/i3-blocks new file mode 100644 index 0000000..d1ebc39 --- /dev/null +++ b/home/files/i3-blocks @@ -0,0 +1,36 @@ +# i3blocks config file +# +# TODO: Use nix to reload the blocks on config change +# +# Please see man i3blocks for a complete reference! +# The man page is also hosted at http://vivien.github.io/i3blocks +# +# List of valid properties: +# +# align +# color +# command +# full_text +# instance +# interval +# label +# min_width +# name +# separator +# separator_block_width +# short_text +# signal +# urgent + +# Global properties +# +# The top properties below are applied to every block, but can be overridden. +# Each block command defaults to the script name to avoid boilerplate. +markup=pango + +# Date Time +[time] +command=LC_TIME=en_US.utf8 date '+📅 %a %B %Y-%m-%d %H:%M:%S'; date '+📅 %a %d. %H:%M:%S' +interval=1 + +# vi: ft=conf diff --git a/home/packages.nix b/home/packages.nix index 9b3be36..01590cb 100644 --- a/home/packages.nix +++ b/home/packages.nix @@ -10,6 +10,7 @@ with pkgs; [ gnome.gnome-screenshot networkmanager_dmenu + i3blocks st ncdu tree diff --git a/home/windowManager/i3.nix b/home/windowManager/i3.nix index cf55724..37448e0 100644 --- a/home/windowManager/i3.nix +++ b/home/windowManager/i3.nix @@ -79,6 +79,8 @@ in { workspaceButtons = true; workspaceNumbers = true; + statusCommand = "i3blocks"; + fonts = { names = ["monospace"]; style = "Bold"; diff --git a/home/xdg.nix b/home/xdg.nix index 7d14b7c..784fc5a 100644 --- a/home/xdg.nix +++ b/home/xdg.nix @@ -5,6 +5,8 @@ configFile = { + "i3blocks/config".source = ./files/i3-blocks; + "borg/exclude".source = ./files/borg-exclude; "ctags/config.ctags".source = ./files/ctags; "sc-im/scimrc".source = ./files/scimrc;