[desktop] Setup brightness controls
This commit is contained in:
@@ -10,6 +10,86 @@ let
|
|||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
terminal = "kitty";
|
terminal = "kitty";
|
||||||
defaultWorkspace = "workspace number 1";
|
defaultWorkspace = "workspace number 1";
|
||||||
|
|
||||||
|
keybindings = {
|
||||||
|
"${shared_config.modifier}+Return" = "exec ${i3_cfg.terminal}";
|
||||||
|
"${shared_config.modifier}+Shift+q" = "kill";
|
||||||
|
"${shared_config.modifier}+d" = "exec ${i3_cfg.menu}";
|
||||||
|
|
||||||
|
"${shared_config.modifier}+h" = "focus left";
|
||||||
|
"${shared_config.modifier}+j" = "focus down";
|
||||||
|
"${shared_config.modifier}+k" = "focus up";
|
||||||
|
"${shared_config.modifier}+l" = "focus right";
|
||||||
|
|
||||||
|
"${shared_config.modifier}+Shift+h" = "move left";
|
||||||
|
"${shared_config.modifier}+Shift+j" = "move down";
|
||||||
|
"${shared_config.modifier}+Shift+k" = "move up";
|
||||||
|
"${shared_config.modifier}+Shift+l" = "move right";
|
||||||
|
|
||||||
|
"${shared_config.modifier}+Left" = "focus left";
|
||||||
|
"${shared_config.modifier}+Down" = "focus down";
|
||||||
|
"${shared_config.modifier}+Up" = "focus up";
|
||||||
|
"${shared_config.modifier}+Right" = "focus right";
|
||||||
|
|
||||||
|
"${shared_config.modifier}+Shift+Left" = "move left";
|
||||||
|
"${shared_config.modifier}+Shift+Down" = "move down";
|
||||||
|
"${shared_config.modifier}+Shift+Up" = "move up";
|
||||||
|
"${shared_config.modifier}+Shift+Right" = "move right";
|
||||||
|
|
||||||
|
#"${shared_config.modifier}+h" = "split h";
|
||||||
|
"${shared_config.modifier}+v" = "split v";
|
||||||
|
"${shared_config.modifier}+f" = "fullscreen toggle";
|
||||||
|
|
||||||
|
"${shared_config.modifier}+s" = "layout stacking";
|
||||||
|
"${shared_config.modifier}+w" = "layout tabbed";
|
||||||
|
"${shared_config.modifier}+e" = "layout toggle split";
|
||||||
|
|
||||||
|
"${shared_config.modifier}+Shift+space" = "floating toggle";
|
||||||
|
"${shared_config.modifier}+space" = "focus mode_toggle";
|
||||||
|
|
||||||
|
"${shared_config.modifier}+a" = "focus parent";
|
||||||
|
|
||||||
|
"${shared_config.modifier}+Shift+minus" = "move scratchpad";
|
||||||
|
"${shared_config.modifier}+minus" = "scratchpad show";
|
||||||
|
|
||||||
|
"${shared_config.modifier}+1" = "workspace number 1";
|
||||||
|
"${shared_config.modifier}+2" = "workspace number 2";
|
||||||
|
"${shared_config.modifier}+3" = "workspace number 3";
|
||||||
|
"${shared_config.modifier}+4" = "workspace number 4";
|
||||||
|
"${shared_config.modifier}+5" = "workspace number 5";
|
||||||
|
"${shared_config.modifier}+6" = "workspace number 6";
|
||||||
|
"${shared_config.modifier}+7" = "workspace number 7";
|
||||||
|
"${shared_config.modifier}+8" = "workspace number 8";
|
||||||
|
"${shared_config.modifier}+9" = "workspace number 9";
|
||||||
|
"${shared_config.modifier}+0" = "workspace number 10";
|
||||||
|
|
||||||
|
"${shared_config.modifier}+Shift+1" =
|
||||||
|
"move container to workspace number 1";
|
||||||
|
"${shared_config.modifier}+Shift+2" =
|
||||||
|
"move container to workspace number 2";
|
||||||
|
"${shared_config.modifier}+Shift+3" =
|
||||||
|
"move container to workspace number 3";
|
||||||
|
"${shared_config.modifier}+Shift+4" =
|
||||||
|
"move container to workspace number 4";
|
||||||
|
"${shared_config.modifier}+Shift+5" =
|
||||||
|
"move container to workspace number 5";
|
||||||
|
"${shared_config.modifier}+Shift+6" =
|
||||||
|
"move container to workspace number 6";
|
||||||
|
"${shared_config.modifier}+Shift+7" =
|
||||||
|
"move container to workspace number 7";
|
||||||
|
"${shared_config.modifier}+Shift+8" =
|
||||||
|
"move container to workspace number 8";
|
||||||
|
"${shared_config.modifier}+Shift+9" =
|
||||||
|
"move container to workspace number 9";
|
||||||
|
"${shared_config.modifier}+Shift+0" =
|
||||||
|
"move container to workspace number 10";
|
||||||
|
|
||||||
|
"${shared_config.modifier}+Shift+c" = "reload";
|
||||||
|
"${shared_config.modifier}+Shift+r" = "restart";
|
||||||
|
|
||||||
|
"XF86MonBrightnessUp" = "exec brightnessctl s +5%";
|
||||||
|
"XF86MonBrightnessDown" = "exec brightnessctl s 5%-";
|
||||||
|
};
|
||||||
} cfg.extraSharedConfig;
|
} cfg.extraSharedConfig;
|
||||||
in {
|
in {
|
||||||
options.home.i3_sway = {
|
options.home.i3_sway = {
|
||||||
@@ -28,80 +108,6 @@ in {
|
|||||||
xsession.windowManager.i3 = let
|
xsession.windowManager.i3 = let
|
||||||
base_i3_config = recursiveUpdate shared_config {
|
base_i3_config = recursiveUpdate shared_config {
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"${shared_config.modifier}+Return" = "exec ${i3_cfg.terminal}";
|
|
||||||
"${shared_config.modifier}+Shift+q" = "kill";
|
|
||||||
"${shared_config.modifier}+d" = "exec ${i3_cfg.menu}";
|
|
||||||
|
|
||||||
"${shared_config.modifier}+h" = "focus left";
|
|
||||||
"${shared_config.modifier}+j" = "focus down";
|
|
||||||
"${shared_config.modifier}+k" = "focus up";
|
|
||||||
"${shared_config.modifier}+l" = "focus right";
|
|
||||||
|
|
||||||
"${shared_config.modifier}+Shift+h" = "move left";
|
|
||||||
"${shared_config.modifier}+Shift+j" = "move down";
|
|
||||||
"${shared_config.modifier}+Shift+k" = "move up";
|
|
||||||
"${shared_config.modifier}+Shift+l" = "move right";
|
|
||||||
|
|
||||||
"${shared_config.modifier}+Left" = "focus left";
|
|
||||||
"${shared_config.modifier}+Down" = "focus down";
|
|
||||||
"${shared_config.modifier}+Up" = "focus up";
|
|
||||||
"${shared_config.modifier}+Right" = "focus right";
|
|
||||||
|
|
||||||
"${shared_config.modifier}+Shift+Left" = "move left";
|
|
||||||
"${shared_config.modifier}+Shift+Down" = "move down";
|
|
||||||
"${shared_config.modifier}+Shift+Up" = "move up";
|
|
||||||
"${shared_config.modifier}+Shift+Right" = "move right";
|
|
||||||
|
|
||||||
#"${shared_config.modifier}+h" = "split h";
|
|
||||||
"${shared_config.modifier}+v" = "split v";
|
|
||||||
"${shared_config.modifier}+f" = "fullscreen toggle";
|
|
||||||
|
|
||||||
"${shared_config.modifier}+s" = "layout stacking";
|
|
||||||
"${shared_config.modifier}+w" = "layout tabbed";
|
|
||||||
"${shared_config.modifier}+e" = "layout toggle split";
|
|
||||||
|
|
||||||
"${shared_config.modifier}+Shift+space" = "floating toggle";
|
|
||||||
"${shared_config.modifier}+space" = "focus mode_toggle";
|
|
||||||
|
|
||||||
"${shared_config.modifier}+a" = "focus parent";
|
|
||||||
|
|
||||||
"${shared_config.modifier}+Shift+minus" = "move scratchpad";
|
|
||||||
"${shared_config.modifier}+minus" = "scratchpad show";
|
|
||||||
|
|
||||||
"${shared_config.modifier}+1" = "workspace number 1";
|
|
||||||
"${shared_config.modifier}+2" = "workspace number 2";
|
|
||||||
"${shared_config.modifier}+3" = "workspace number 3";
|
|
||||||
"${shared_config.modifier}+4" = "workspace number 4";
|
|
||||||
"${shared_config.modifier}+5" = "workspace number 5";
|
|
||||||
"${shared_config.modifier}+6" = "workspace number 6";
|
|
||||||
"${shared_config.modifier}+7" = "workspace number 7";
|
|
||||||
"${shared_config.modifier}+8" = "workspace number 8";
|
|
||||||
"${shared_config.modifier}+9" = "workspace number 9";
|
|
||||||
"${shared_config.modifier}+0" = "workspace number 10";
|
|
||||||
|
|
||||||
"${shared_config.modifier}+Shift+1" =
|
|
||||||
"move container to workspace number 1";
|
|
||||||
"${shared_config.modifier}+Shift+2" =
|
|
||||||
"move container to workspace number 2";
|
|
||||||
"${shared_config.modifier}+Shift+3" =
|
|
||||||
"move container to workspace number 3";
|
|
||||||
"${shared_config.modifier}+Shift+4" =
|
|
||||||
"move container to workspace number 4";
|
|
||||||
"${shared_config.modifier}+Shift+5" =
|
|
||||||
"move container to workspace number 5";
|
|
||||||
"${shared_config.modifier}+Shift+6" =
|
|
||||||
"move container to workspace number 6";
|
|
||||||
"${shared_config.modifier}+Shift+7" =
|
|
||||||
"move container to workspace number 7";
|
|
||||||
"${shared_config.modifier}+Shift+8" =
|
|
||||||
"move container to workspace number 8";
|
|
||||||
"${shared_config.modifier}+Shift+9" =
|
|
||||||
"move container to workspace number 9";
|
|
||||||
"${shared_config.modifier}+Shift+0" =
|
|
||||||
"move container to workspace number 10";
|
|
||||||
|
|
||||||
"${shared_config.modifier}+Shift+c" = "reload";
|
|
||||||
"${shared_config.modifier}+Shift+r" = "restart";
|
|
||||||
"${shared_config.modifier}+Shift+e" =
|
"${shared_config.modifier}+Shift+e" =
|
||||||
"exec i3-nagbar -t warning -m 'Do you want to exit i3?' -b 'Yes' 'i3-msg exit'";
|
"exec i3-nagbar -t warning -m 'Do you want to exit i3?' -b 'Yes' 'i3-msg exit'";
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ let
|
|||||||
cfg = config.roles.desktop;
|
cfg = config.roles.desktop;
|
||||||
|
|
||||||
basePackages = with pkgs; [
|
basePackages = with pkgs; [
|
||||||
|
brightnessctl
|
||||||
];
|
];
|
||||||
|
|
||||||
x11BasePackages = with pkgs; [
|
x11BasePackages = with pkgs; [
|
||||||
|
|||||||
Reference in New Issue
Block a user