Integrate i3blocks via nix

This was missing after migrating to i3 via nix.
i3blocks was installed via apt before.

home-manager doesn't provide options, I keep my old file. It is updated
for the used version.
This commit is contained in:
Daniel Siepmann 2022-05-19 07:02:56 +02:00
parent 4edeb38471
commit 48a0c8fa5a
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 10 additions and 2 deletions

View file

@ -24,8 +24,6 @@
# #
# The top properties below are applied to every block, but can be overridden. # The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate. # Each block command defaults to the script name to avoid boilerplate.
command=/usr/share/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=pango markup=pango
# Versions for development # Versions for development

View file

@ -63,13 +63,18 @@ in {
bars = [{ bars = [{
mode = "hide"; mode = "hide";
position = "top"; position = "top";
workspaceButtons = true; workspaceButtons = true;
workspaceNumbers = true; workspaceNumbers = true;
statusCommand = "${pkgs.i3blocks}/bin/i3blocks";
fonts = { fonts = {
names = ["monospace"]; names = ["monospace"];
style = "Bold"; style = "Bold";
size = 12.0; size = 12.0;
}; };
colors = { colors = {
background = "#000000"; background = "#000000";
statusline = "#72B3CC"; statusline = "#72B3CC";
@ -100,6 +105,11 @@ in {
text = "#FFFFFF"; text = "#FFFFFF";
}; };
}; };
extraConfig = ''
separator_symbol " "
'';
}]; }];
window = { window = {