updated sway.nix & related
This commit is contained in:
parent
f72e4ca251
commit
d4532db5b7
2 changed files with 17 additions and 27 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
|
|
@ -10,18 +10,17 @@ let
|
||||||
up = "k";
|
up = "k";
|
||||||
right = "l";
|
right = "l";
|
||||||
|
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
|
|
||||||
## Application binds
|
## Application binds
|
||||||
"${modifier}+Tab" = "exec ${wofi}/bin/wofi";
|
"${modifier}+Tab" = "exec ${wofi}/bin/wofi";
|
||||||
"${modifier}+q" = "kill";
|
"${modifier}+q" = "kill";
|
||||||
#"${modifier}+Space" = "exec ${cfg.config.menu}";
|
"${modifier}+Space" = "exec ${wofi}/bin/wofi";
|
||||||
"${modifier}+Return" = "exec ${kitty}/bin/kitty";
|
"${modifier}+Return" = "exec ${kitty}/bin/kitty";
|
||||||
"${modifier}+Shift+Return" = "exec ${kitty}/bin/kitty --floating";
|
"${modifier}+Shift+Return" = "exec ${kitty}/bin/kitty --floating";
|
||||||
"${modifier}+Shift+r" = "reload";
|
"${modifier}+Shift+r" = "reload";
|
||||||
"${modifier}+Alt+Shift+r" = "restart";
|
"${modifier}+Alt+Shift+r" = "restart";
|
||||||
"${modifier}+L" = "exec ${hyprlock}/bin/hyprlock";
|
"${modifier}+Escape" = "exec ${hyprlock}/bin/hyprlock";
|
||||||
|
|
||||||
## Screenshot binds
|
## Screenshot binds
|
||||||
"Print" = "exec screenshot window";
|
"Print" = "exec screenshot window";
|
||||||
|
|
@ -31,9 +30,12 @@ in
|
||||||
## Brightness, volume, and media controls
|
## Brightness, volume, and media controls
|
||||||
XF86MonBrightnessUp = "exec ${xorg.xbacklight} -inc 20";
|
XF86MonBrightnessUp = "exec ${xorg.xbacklight} -inc 20";
|
||||||
XF86MonBrightnessDown = "exec ${xorg.xbacklight} -dec 20";
|
XF86MonBrightnessDown = "exec ${xorg.xbacklight} -dec 20";
|
||||||
XF86AudioRaiseVolume = "exec ${pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
XF86AudioRaiseVolume =
|
||||||
XF86AudioLowerVolume = "exec ${pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
"exec ${pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||||
XF86AudioMute = "exec ${pulseaudio}/bin/pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
XF86AudioLowerVolume =
|
||||||
|
"exec ${pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||||
|
XF86AudioMute =
|
||||||
|
"exec ${pulseaudio}/bin/pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||||
XF86AudioPlay = "exec ${playerctl}/bin/playerctl play";
|
XF86AudioPlay = "exec ${playerctl}/bin/playerctl play";
|
||||||
XF86AudioPause = "exec ${playerctl}/bin/playerctl pause";
|
XF86AudioPause = "exec ${playerctl}/bin/playerctl pause";
|
||||||
XF86AudioNext = "exec ${playerctl}/bin/playerctl next";
|
XF86AudioNext = "exec ${playerctl}/bin/playerctl next";
|
||||||
|
|
@ -67,7 +69,7 @@ in
|
||||||
"${modifier}+7" = "workspace number 7";
|
"${modifier}+7" = "workspace number 7";
|
||||||
"${modifier}+8" = "workspace number 8";
|
"${modifier}+8" = "workspace number 8";
|
||||||
"${modifier}+9" = "workspace number 9";
|
"${modifier}+9" = "workspace number 9";
|
||||||
"${modifier}+0" = "workspace number 10";
|
"${modifier}+0" = "workspace number 0";
|
||||||
"${modifier}+Shift+1" = "move container to workspace number 1";
|
"${modifier}+Shift+1" = "move container to workspace number 1";
|
||||||
"${modifier}+Shift+2" = "move container to workspace number 2";
|
"${modifier}+Shift+2" = "move container to workspace number 2";
|
||||||
"${modifier}+Shift+3" = "move container to workspace number 3";
|
"${modifier}+Shift+3" = "move container to workspace number 3";
|
||||||
|
|
@ -77,7 +79,7 @@ in
|
||||||
"${modifier}+Shift+7" = "move container to workspace number 7";
|
"${modifier}+Shift+7" = "move container to workspace number 7";
|
||||||
"${modifier}+Shift+8" = "move container to workspace number 8";
|
"${modifier}+Shift+8" = "move container to workspace number 8";
|
||||||
"${modifier}+Shift+9" = "move container to workspace number 9";
|
"${modifier}+Shift+9" = "move container to workspace number 9";
|
||||||
"${modifier}+Shift+0" = "move container to workspace number 10";
|
"${modifier}+Shift+0" = "move container to workspace number 0";
|
||||||
"${modifier}+Alt+${up}" = "move workspace to output up";
|
"${modifier}+Alt+${up}" = "move workspace to output up";
|
||||||
"${modifier}+Alt+${down}" = "move workspace to output down";
|
"${modifier}+Alt+${down}" = "move workspace to output down";
|
||||||
"${modifier}+Alt+${left}" = "move workspace to output left";
|
"${modifier}+Alt+${left}" = "move workspace to output left";
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,6 @@ with lib;
|
||||||
with pkgs;
|
with pkgs;
|
||||||
let
|
let
|
||||||
|
|
||||||
left = "h";
|
|
||||||
down = "j";
|
|
||||||
up = "k";
|
|
||||||
right = "l";
|
|
||||||
|
|
||||||
in {
|
in {
|
||||||
imports = [ ./swayfx.nix ];
|
imports = [ ./swayfx.nix ];
|
||||||
|
|
||||||
|
|
@ -65,7 +60,11 @@ in {
|
||||||
{ command = "kitty btop"; }
|
{ command = "kitty btop"; }
|
||||||
];
|
];
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
floating = { modifier = "Mod4"; };
|
floating = {
|
||||||
|
modifier = "Mod4";
|
||||||
|
border = 0;
|
||||||
|
titlebar = false;
|
||||||
|
};
|
||||||
|
|
||||||
## Window and focus settings
|
## Window and focus settings
|
||||||
window = { };
|
window = { };
|
||||||
|
|
@ -77,17 +76,6 @@ in {
|
||||||
|
|
||||||
keybindings = mkOptionDefault (import ./keybinds.nix { inherit pkgs; });
|
keybindings = mkOptionDefault (import ./keybinds.nix { inherit pkgs; });
|
||||||
|
|
||||||
#modes = {
|
|
||||||
#resize = {
|
|
||||||
#Escape = "mode default";
|
|
||||||
#Return = "mode default";
|
|
||||||
#"${down}" = "resize grow height 10 px or 10 ppt";
|
|
||||||
#"${left}" = "resize shrink width 10 px or 10 ppt";
|
|
||||||
#"${right}" = "resize grow width 10 px or 10 ppt";
|
|
||||||
#"${up}" = "resize shrink height 10 px or 10 ppt";
|
|
||||||
#};
|
|
||||||
#};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue