Started moving the (external) sway config into sway.hod.nix

This commit is contained in:
Ittihadyya 2024-11-24 15:12:20 +02:00
parent aa1ca3ffd4
commit a74bf20876
2 changed files with 86 additions and 11 deletions

View file

@ -32,6 +32,7 @@
#┃ Ctrl ┃ Meta ┃ Alt ┃ Space ┃AltGr ⇮┃ Menu ┃ Ctrl ┃ #┃ Ctrl ┃ Meta ┃ Alt ┃ Space ┃AltGr ⇮┃ Menu ┃ Ctrl ┃
#┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛ #┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛
# monospace has fallen # monospace has fallen
# this might (should) be changed to actually fit our keyboard !!!!!!!!1
}; };
}; };
} }

View file

@ -9,16 +9,6 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
swayrbar swayrbar
];
}
)
];
personal.home_modules = [
(
{ pkgs, ... }:
{
home.packages = with pkgs; [
slurp slurp
grim grim
rofi-wayland rofi-wayland
@ -28,4 +18,88 @@
} }
) )
]; ];
personal.home_modules = [
(
{ lib, pkgs, ... }:
wayland.windowManager.sway.config {
modifier = "Mod4";
fonts = {
names = [ "pango" ];
style = "monospace";
size = 8.0;
};
terminal = "$\{pkgs.terminator}/bin/terminator";
keybindings =
let
mod = wayland.windowManager.sway.config.modifier;
term = wayland.windowManager.sway.config.terminal;
in
lib.mkOptionDefault {
"${mod}+Return" = "exec ${term}"; # opens a terminal 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";
};
assigns = {
"1:" = [ { title = "^Signal$|Discord$"; } ];
"2:main" = [ ];
"3:browsing" = [ { title = "Librewolf$"; } ];
"4:misc" = [ ];
"5:5" = [ ];
"6:6" = [ ];
"7:7" = [ ];
"8:8" = [ ];
"9:9" = [ ];
"0:audio" = [ { title = "pwvucontrol$|noisetorch$"; } ];
};
bars = [
{
statusCommand = "\${pkgs.swayrbar}/bin/swayrbar";
position = "bottom";
trayOutput = "primary";
separatorSymbol = "·";
workspaceButtons = true;
workspaceNumbers = false;
colors = {
};
}
];
output = {
DP-3 = {
mode = "3440x1440@144.000Hz";
};
};
input = {
"10429:2335:UGTABLET_11.6_inch_PenDisplay" = {
map_to_output = "UGD Artist 12 pro 0x19201012";
};
"type:keyboard" = {
xkb_layout = [
"us(colemak_dh)"
"us"
# "rulemak"
];
xkb_options = "grp:rctrl_toggle";
};
};
gaps = {
smartGaps = true;
inner = 8.0;
outer = 2.0;
};
workspaceAutoBackAndForth = true;
workspaceLayout = "tabbed";
}
)
];
} }