From 262641678133b5f7f839f073607e11e00d7486a1 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Sun, 11 Jun 2023 13:28:21 +0200 Subject: [PATCH] Revert "Remove i3blocks" This reverts commit f84c23773dc59cd670b0353e31bf76269319b21c. As I noticed I still need to check the date quite often. --- home/files/i3-blocks | 36 ++++++++++++++++++++++++++++++++++++ home/packages.nix | 1 + home/windowManager/i3.nix | 2 ++ home/xdg.nix | 2 ++ 4 files changed, 41 insertions(+) create mode 100644 home/files/i3-blocks 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;