{ pkgs, lib, ... }: let mod = "Mod4"; in { xsession.windowManager.i3 = { enable = true; config = { defaultWorkspace = "workspace number 1"; # defaults to 10 for some reason modifier = mod; gaps.inner = 12; startup = [ { command = "systemctl --user restart polybar"; always = true; notification = false; } ]; keybindings = lib.mkOptionDefault { "${mod}+Return" = "exec kitty"; "${mod}+Shift+e" = "exec i3-msg exit"; # bypass default session exit confirmation menu "Mod1+Q" = "exec /etc/profiles/per-user/elnu/bin/rofi-power"; "XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%"; "XF86AudioLowerVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%"; "XF86AudioMute" = "exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle"; "XF86AudioMicMute" = "exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle"; }; keycodebindings = { "133" = "--release exec rofi -show run -theme"; }; window.commands = [ { command = "border pixel 0"; criteria = { class = "^.*"; }; } ]; bars = []; }; }; }