added more of the keybinds
This commit is contained in:
parent
a74bf20876
commit
93fb9b210b
1 changed files with 100 additions and 4 deletions
104
sway.mod.nix
104
sway.mod.nix
|
@ -34,18 +34,46 @@
|
||||||
let
|
let
|
||||||
mod = wayland.windowManager.sway.config.modifier;
|
mod = wayland.windowManager.sway.config.modifier;
|
||||||
term = wayland.windowManager.sway.config.terminal;
|
term = wayland.windowManager.sway.config.terminal;
|
||||||
|
rofi = "$\{pkgs.rofi-wayland}/bin/rofi";
|
||||||
in
|
in
|
||||||
lib.mkOptionDefault {
|
lib.mkOptionDefault {
|
||||||
"${mod}+Return" = "exec ${term}"; # opens a terminal window
|
"${mod}+Return" = "exec ${term}"; # opens a terminal window
|
||||||
"${mod}+Shift+q" = "kill"; # kills the active window
|
"${mod}+Shift+q" = "kill"; # kills the active window
|
||||||
"${mod}+s" = ''exec --no-startup-id rofi -run-command "/bin/sh -i -c '{cmd}'" -show combi'';
|
|
||||||
"${mod}+Tab" = "exec --no-startup-id rofi -show window";
|
|
||||||
|
|
||||||
|
"${mod}+s" = ''exec --no-startup-id ${rofi} -run-command "/bin/sh -i -c '{cmd}'" -show combi''; # opens rofi
|
||||||
|
"${mod}+Tab" = "exec --no-startup-id ${rofi} -show window";
|
||||||
|
|
||||||
|
"${mod}+p" = ''mode "resize"'';
|
||||||
|
"${mod}+o" = "exec \${pkgs.swaylock}/bin/swaylock"; # locks the session, requiring password to unlock.
|
||||||
|
|
||||||
|
### moves user around
|
||||||
|
"${mod}+1" = "workspace number 1";
|
||||||
|
"${mod}+2" = "workspace number 2";
|
||||||
|
"${mod}+3" = "workspace number 3";
|
||||||
|
"${mod}+4" = "workspace number 4";
|
||||||
|
"${mod}+5" = "workspace number 5";
|
||||||
|
"${mod}+6" = "workspace number 6";
|
||||||
|
"${mod}+7" = "workspace number 7";
|
||||||
|
"${mod}+8" = "workspace number 8";
|
||||||
|
"${mod}+9" = "workspace number 9";
|
||||||
|
"${mod}+0" = "workspace number 10";
|
||||||
|
|
||||||
|
### moves containers around
|
||||||
|
"${mod}+Shift+1" = "move container to workspace number 1";
|
||||||
|
"${mod}+Shift+2" = "move container to workspace number 2";
|
||||||
|
"${mod}+Shift+3" = "move container to workspace number 3";
|
||||||
|
"${mod}+Shift+4" = "move container to workspace number 4";
|
||||||
|
"${mod}+Shift+5" = "move container to workspace number 5";
|
||||||
|
"${mod}+Shift+6" = "move container to workspace number 6";
|
||||||
|
"${mod}+Shift+7" = "move container to workspace number 7";
|
||||||
|
"${mod}+Shift+8" = "move container to workspace number 8";
|
||||||
|
"${mod}+Shift+9" = "move container to workspace number 9";
|
||||||
|
"${mod}+Shift+0" = "move container to workspace number 10";
|
||||||
};
|
};
|
||||||
|
|
||||||
assigns = {
|
assigns = {
|
||||||
"1:说" = [ { title = "^Signal$|Discord$"; } ];
|
"1:说" = [ { title = "^Signal$|Discord$"; } ];
|
||||||
"2:main" = [ ];
|
"2:main" = [ { title = "VSCodium$"; } ];
|
||||||
"3:browsing" = [ { title = "Librewolf$"; } ];
|
"3:browsing" = [ { title = "Librewolf$"; } ];
|
||||||
"4:misc" = [ ];
|
"4:misc" = [ ];
|
||||||
"5:5" = [ ];
|
"5:5" = [ ];
|
||||||
|
@ -56,6 +84,46 @@
|
||||||
"0:audio" = [ { title = "pwvucontrol$|noisetorch$"; } ];
|
"0:audio" = [ { title = "pwvucontrol$|noisetorch$"; } ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
colors = {
|
||||||
|
# should probably use a let ... in ... here
|
||||||
|
background = "#212121";
|
||||||
|
focused = {
|
||||||
|
border = "#2b83a6";
|
||||||
|
background = "#2b83a6";
|
||||||
|
text = "#ffffff";
|
||||||
|
indicator = "#dddddd";
|
||||||
|
childBorder = "#2b83a6";
|
||||||
|
};
|
||||||
|
focusedInactive = {
|
||||||
|
border = "#212121";
|
||||||
|
background = "#212121";
|
||||||
|
text = "#86888c";
|
||||||
|
indicator = "#292d2e";
|
||||||
|
childBorder = "#5a5a5a";
|
||||||
|
};
|
||||||
|
unfocused = {
|
||||||
|
border = "#212121";
|
||||||
|
background = "#212121";
|
||||||
|
text = "#86888c";
|
||||||
|
indicator = "#292d2e";
|
||||||
|
childBorder = "#5a5a5a";
|
||||||
|
};
|
||||||
|
urgent = {
|
||||||
|
border = "#d64e4e";
|
||||||
|
background = "#d64e4e";
|
||||||
|
text = "#ffffff";
|
||||||
|
indicator = "#d64e4e";
|
||||||
|
childBorder = "#d64e4e";
|
||||||
|
};
|
||||||
|
placeholder = {
|
||||||
|
border = "#212121";
|
||||||
|
background = "#0c0c0c";
|
||||||
|
text = "#ffffff";
|
||||||
|
indicator = "#212121";
|
||||||
|
childBorder = "#262626";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
bars = [
|
bars = [
|
||||||
{
|
{
|
||||||
statusCommand = "\${pkgs.swayrbar}/bin/swayrbar";
|
statusCommand = "\${pkgs.swayrbar}/bin/swayrbar";
|
||||||
|
@ -66,7 +134,35 @@
|
||||||
workspaceNumbers = false;
|
workspaceNumbers = false;
|
||||||
|
|
||||||
colors = {
|
colors = {
|
||||||
|
# again, should probably use a let ... in ... statement here.
|
||||||
|
background = "#212121";
|
||||||
|
statusline = "#dddddd";
|
||||||
|
separator = "#666666";
|
||||||
|
focusedWorkspace = {
|
||||||
|
border = "#2b83a6";
|
||||||
|
background = "#2b83a6";
|
||||||
|
text = "#ffffff";
|
||||||
|
};
|
||||||
|
activeWorkspace = {
|
||||||
|
border = "#212121";
|
||||||
|
background = "#212121";
|
||||||
|
text = "#ffffff";
|
||||||
|
};
|
||||||
|
inactiveWorkspace = {
|
||||||
|
border = "#212121";
|
||||||
|
background = "#212121";
|
||||||
|
text = "#86888c";
|
||||||
|
};
|
||||||
|
urgentWorkspace = {
|
||||||
|
border = "#d64e4e";
|
||||||
|
background = "#d64e4e";
|
||||||
|
text = "#ffffff";
|
||||||
|
};
|
||||||
|
bindingMode = {
|
||||||
|
border = "#229c56";
|
||||||
|
background = "#229c56";
|
||||||
|
text = "#ffffff";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue