summaryrefslogtreecommitdiff
path: root/home/config/i3/default.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-08-06 18:51:59 +0200
committerQuentin Aristote <quentin@aristote.fr>2021-08-06 18:51:59 +0200
commita1f7f43c95c049628e826856ec589b339cd4f5db (patch)
treea0f5bb10fc36f02ad6dbaebf1232ca2548f9ccfa /home/config/i3/default.nix
initial commit
Diffstat (limited to 'home/config/i3/default.nix')
-rw-r--r--home/config/i3/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/home/config/i3/default.nix b/home/config/i3/default.nix
new file mode 100644
index 0000000..172f964
--- /dev/null
+++ b/home/config/i3/default.nix
@@ -0,0 +1,36 @@
+{ config, pkgs, lib, ... }:
+
+{
+ imports = [ ./bar ./keybindings.nix ./startup.nix ];
+
+ xsession.windowManager.i3 = {
+ enable = true;
+ package = pkgs.i3-gaps;
+
+ config = rec {
+ assigns = {
+ "8: media" = [{ class = "^Steam$"; }];
+ "9: social" = [ { class = "^Thunderbird$"; } { class = "^Signal$"; } ];
+ };
+
+ window.border = 0;
+ gaps = {
+ inner = 15;
+ outer = 5;
+ };
+ };
+ };
+
+ home.file.".config/i3/i3status.sh" = {
+ text = ''
+ #!${pkgs.bash}/bin/sh
+ ${pkgs.i3status}/bin/i3status | while :
+ do
+ read line
+ echo "☼ $(${pkgs.brightnessctl}/bin/brightnessctl -m | cut -d',' -f4) |\
+ $line" || exit 1
+ done
+ '';
+ executable = true;
+ };
+}