Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.3 KiB

2 years ago
{ pkgs, lib, ... }:
let
mod = "Mod4";
in {
xsession.windowManager.i3 = {
enable = true;
config = {
defaultWorkspace = "workspace number 1"; # defaults to 10 for some reason
2 years ago
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
2 years ago
"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";
2 years ago
};
keycodebindings = {
"133" = "--release exec rofi -show run -theme";
};
window.commands = [
{
command = "border pixel 0";
criteria = { class = "^.*"; };
}
];
bars = [];
};
};
}