mostly finished porting the config over. that's cool

This commit is contained in:
Ittihadyya 2024-11-24 18:43:24 +02:00
parent 57b7e38d2a
commit ebaff5eea6

View file

@ -20,9 +20,20 @@
];
personal.home_modules = [
(
{ lib, pkgs, ... }:
{
wayland.windowManager.sway.config = {
lib,
pkgs,
config,
...
}:
{
wayland.windowManager.sway = {
enable = true;
systemd.enable = true;
package = pkgs.sway;
config = lib.mkForce {
modifier = "Mod4";
fonts = {
names = [ "pango" ];
@ -33,11 +44,11 @@
keybindings =
let
mod = wayland.windowManager.sway.config.modifier;
term = wayland.windowManager.sway.config.terminal;
mod = config.wayland.windowManager.sway.config.modifier;
term = config.wayland.windowManager.sway.config.terminal;
rofi = "$\{pkgs.rofi-wayland}/bin/rofi";
in
lib.mkOptionDefault {
{
"${mod}+Return" = "exec ${term}"; # opens a terminal window
"${mod}+Shift+q" = "kill"; # kills the active window
@ -156,11 +167,11 @@
};
bars = [
{
({
statusCommand = "\${pkgs.swayrbar}/bin/swayrbar";
position = "bottom";
trayOutput = "primary";
separatorSymbol = "·";
# separatorSymbol = "·";
workspaceButtons = true;
workspaceNumbers = false;
@ -196,7 +207,7 @@
};
};
}
})
];
output = {
DP-3 = {
@ -206,27 +217,24 @@
input = {
"10429:2335:UGTABLET_11.6_inch_PenDisplay" = {
map_to_output = "UGD Artist 12 pro 0x19201012";
map_to_output = ''"UGD Artist 12 pro 0x19201012"'';
};
"type:keyboard" = {
xkb_layout = [
"us(colemak_dh)"
"us"
# "rulemak"
];
xkb_layout = "us(colemak_dh),us";
xkb_options = "grp:rctrl_toggle";
};
};
gaps = {
smartGaps = true;
inner = 8.0;
outer = 2.0;
inner = 8;
outer = 2;
};
workspaceAutoBackAndForth = true;
workspaceLayout = "tabbed";
};
};
}
)
];