spring cleaning

This commit is contained in:
alisceon 2025-12-06 23:47:07 +01:00
parent 190901ae30
commit 0a11161655
8 changed files with 130 additions and 283 deletions

View file

@ -98,13 +98,13 @@
hostnameWorkspaceAssign =
if hostName == "tower" then [
{ output = "DP-2"; workspace = "1"; }
{ output = "DP-3"; workspace = "2"; }
{ output = "DP-1"; workspace = "3"; }
{ output = "DP-2"; workspace = "4"; }
{ output = "DP-2"; workspace = "2"; }
{ output = "DP-2"; workspace = "3"; }
{ output = "DP-3"; workspace = "4"; }
{ output = "DP-3"; workspace = "5"; }
{ output = "DP-1"; workspace = "6"; }
{ output = "DP-2"; workspace = "7"; }
{ output = "DP-3"; workspace = "8"; }
{ output = "DP-3"; workspace = "6"; }
{ output = "DP-1"; workspace = "7"; }
{ output = "DP-1"; workspace = "8"; }
{ output = "DP-1"; workspace = "9"; }
]
else if hostName == "electra" then []
@ -194,6 +194,7 @@
"${key_mod}+Return" = "exec ${term}";
"${key_mod}+d" = "exec ${dmenu}";
"${key_mod}+Shift+q" = "kill";
"${key_mod}+F4" = "kill";
"${key_mod}+L" = "exec ${lock}";
# Workspaces
"${key_mod}+f" = "fullscreen";
@ -234,20 +235,25 @@
# Focus
"${key_mod}+${key_left}" = "focus left";
"${key_mod}+${key_right}" = "focus right";
"${key_mod}+${key_down}" = "focus down";
"${key_mod}+${key_up}" = "focus up";
"${key_mod}+${key_right}" = "focus right";
"${key_mod}+Ctrl+${key_left}" = "move workspace to output left";
"${key_mod}+Ctrl+${key_down}" = "move workspace to output down";
"${key_mod}+Ctrl+${key_up}" = "move workspace to output up";
"${key_mod}+Ctrl+${key_right}" = "move workspace to output right";
# Move
"${key_mod}+Shift+${key_left}" = "move left";
"${key_mod}+Shift+${key_down}" = "move down";
"${key_mod}+Shift+${key_up}" = "move up";
"${key_mod}+Shift+${key_right}" = "move right";
# Sparkly alt-tab
"${key_mod}+Tab" = "focus right";
"${key_mod}+Shift+Tab" = "focus left";
"${key_mod}+Ctrl+Tab" = "move right";
"${key_mod}+Ctrl+Shift+Tab" = "move left";
"${key_mod}+Mod4+Tab" = "workspace next";
"${key_mod}+Mod4+Shift+Tab" = "workspace prev";
# System
"Mod4+space" = ''exec ${notify} -t 2000 "$(xonsh ~/.nixos_config/util/get_xkb.xonsh)"'';
#Screenshot region
@ -260,6 +266,22 @@
"XF86AudioPlay" = "exec 'playerctl play-pause'";
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 10";
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 10";
# Function layer 4 esc-pgdn
"KP_End" = "exec";
"KP_Down" = "exec";
"KP_Next" = "exec";
"KP_Left" = "exec";
"KP_Begin" = "exec";
"KP_Right" = "exec";
"KP_Home" = "exec";
"KP_Up" = "exec";
"KP_Prior" = "exec";
"KP_Insert" = "exec";
"KP_Divide" = "exec";
"KP_Multiply" = "exec";
"KP_Subtract" = "exec";
"KP_Add" = "exec";
}; # end keybindings
window = {
titlebar = false;
@ -304,10 +326,14 @@
}; # end colors
assigns = {
"1" = [{app_id = "firefox";}];
"2" = [{class = "Code";}];
"3" = [{class = "discord";}];
"2" = [{class = "steam";}];
"3" = [];
"4" = [{class = "Code";}];
"5" = [{app_id = "obsidian";}];
"6" = [{app_id = "signal";}];
"6" = [];
"7" = [];
"8" = [{app_id = "discord";}];
"9" = [{app_id = "signal";}];
};
output = {} // hostnameOutput;
workspaceOutputAssign = hostnameWorkspaceAssign;
@ -680,6 +706,17 @@
gesture pinch in 4 ${swaymsg} kill
gesture swipe up 4 ${lock}
'';
xdg.configFile."electron-flags.conf".text = ''
--enable-features=WaylandWindowDecorations,AllowQt
--ozone-platform=wayland
--gtk-version=4
'';
xdg.configFile."chromium-flags.conf".text = ''
--enable-features=WaylandWindowDecorations,AllowQt
--ozone-platform=wayland
--gtk-version=4
'';
# this right here offends me https://source.chromium.org/chromium/chromium/src/+/main:base/nix/xdg_util.cc;l=179-180
systemd.user.sessionVariables = {
GNOME_DESKTOP_SESSION_ID = "999";