sway: key assignments

This commit is contained in:
Kabbone 2022-11-06 12:51:13 +01:00
parent 115b139f1c
commit 9255a8a83d
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY

View File

@ -20,7 +20,7 @@
enable = true; enable = true;
config = rec { config = rec {
menu = "${pkgs.bemenu}/bin/bemenu-run -m -1 --hf '#ffff00' --tf '#888888' --nf '#00ff40' --hb '#424242' | xargs ${pkgs.sway}/bin/swaymsg exec --"; menu = "${pkgs.bemenu}/bin/bemenu-run -m -1 --hf '#ffff00' --tf '#888888' --nf '#00ff40' --hb '#424242' | xargs ${pkgs.sway}/bin/swaymsg exec --";
left = "h"; left = "m";
down = "n"; down = "n";
up = "e"; up = "e";
right = "i"; right = "i";
@ -48,20 +48,20 @@
bg = "$HOME/.config/wall fill"; bg = "$HOME/.config/wall fill";
}; };
"DP-1" = { "DP-1" = {
mode = "2560x1080"; mode = "1920x1080";
pos = "0,0"; pos = "0,0";
}; };
#"HDMI-A-1" = { "HDMI-A-1" = {
# mode = "2560x1080"; mode = "2560x1080";
# pos = "1920,0"; pos = "1920,0";
#};
"eDP-1" = {
mode = "1920x1080";
#pos = "4480,0";
pos = "2560,0";
subpixel = "none";
scale = "1.3";
}; };
#"eDP-1" = {
# mode = "1920x1080";
# #pos = "4480,0";
# pos = "2560,0";
# subpixel = "none";
# scale = "1.3";
#};
}; };
terminal = "${pkgs.alacritty}/bin/alacritty"; terminal = "${pkgs.alacritty}/bin/alacritty";
@ -72,15 +72,15 @@
}; };
colors.focused = { colors.focused = {
background = "#999999"; background = "#212121";
border = "#999999"; border = "#999999";
childBorder = "#999999"; childBorder = "#999999";
indicator = "#212121"; indicator = "#999999";
text = "#999999"; text = "#FFFFFF";
}; };
startup = [ startup = [
{ command = "$HOME/.config/sway/scripts/2in1screen"; } #{ command = "$HOME/.config/sway/scripts/2in1screen"; }
{ command = "xrdb -load ~/.Xresources"; } { command = "xrdb -load ~/.Xresources"; }
{ command = "gsettings set org.gnome.desktop.interface gtk-theme Arc"; } { command = "gsettings set org.gnome.desktop.interface gtk-theme Arc"; }
{ command = "gsettings set org.gnome.desktop.interface icon-theme ePapirus"; } { command = "gsettings set org.gnome.desktop.interface icon-theme ePapirus"; }
@ -96,16 +96,16 @@
gaps.inner = 8; gaps.inner = 8;
gaps.outer = 4; gaps.outer = 4;
assigns = { #assigns = {
"3: web" = [{ class = "^Firefox$"; }]; # "3: web" = [{ class = "$Firefox$"; }];
"2: mail" = [{ class = "^Thunderbird$"; }]; # "2: mail" = [{ class = "$Thunderbird$"; }];
"4: im" = [{ class = "^Element$"; }]; # "4: im" = [{ class = "^Element$"; }];
}; #};
window.commands = [ window.commands = [
{ command = "floating enable"; criteria = { class = "Pavucontrol"; }; } { command = "floating enable"; criteria = { class = "Pavucontrol"; }; }
{ command = "floating enable"; criteria = { class = "Galculator"; }; } { command = "floating enable"; criteria = { class = "Galculator"; }; }
{ command = "floating enable"; criteria = { class = "yubioath-desktop"; }; } { command = "floating enable"; criteria = { class = "^Yubi$"; }; }
{ command = "floating enable"; criteria = { window_role = "pop-up"; }; } { command = "floating enable"; criteria = { window_role = "pop-up"; }; }
]; ];
@ -209,7 +209,7 @@
"${mod}+f" = "fullscreen"; "${mod}+f" = "fullscreen";
"${mod}+Shift+space" = "floating toggle"; "${mod}+Shift+space" = "floating toggle";
"${mod}+m" = "focus mode_toggle"; "${mod}+h" = "focus mode_toggle";
"${mod}+a" = "focus parent"; "${mod}+a" = "focus parent";
"${mod}+Shift+minus" = "move scratchpad"; "${mod}+Shift+minus" = "move scratchpad";