mostly finished porting the config over. that's cool
This commit is contained in:
parent
57b7e38d2a
commit
ebaff5eea6
1 changed files with 198 additions and 190 deletions
40
sway.mod.nix
40
sway.mod.nix
|
@ -20,9 +20,20 @@
|
||||||
];
|
];
|
||||||
personal.home_modules = [
|
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";
|
modifier = "Mod4";
|
||||||
fonts = {
|
fonts = {
|
||||||
names = [ "pango" ];
|
names = [ "pango" ];
|
||||||
|
@ -33,11 +44,11 @@
|
||||||
|
|
||||||
keybindings =
|
keybindings =
|
||||||
let
|
let
|
||||||
mod = wayland.windowManager.sway.config.modifier;
|
mod = config.wayland.windowManager.sway.config.modifier;
|
||||||
term = wayland.windowManager.sway.config.terminal;
|
term = config.wayland.windowManager.sway.config.terminal;
|
||||||
rofi = "$\{pkgs.rofi-wayland}/bin/rofi";
|
rofi = "$\{pkgs.rofi-wayland}/bin/rofi";
|
||||||
in
|
in
|
||||||
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
|
||||||
|
|
||||||
|
@ -156,11 +167,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
bars = [
|
bars = [
|
||||||
{
|
({
|
||||||
statusCommand = "\${pkgs.swayrbar}/bin/swayrbar";
|
statusCommand = "\${pkgs.swayrbar}/bin/swayrbar";
|
||||||
position = "bottom";
|
position = "bottom";
|
||||||
trayOutput = "primary";
|
trayOutput = "primary";
|
||||||
separatorSymbol = "·";
|
# separatorSymbol = "·";
|
||||||
workspaceButtons = true;
|
workspaceButtons = true;
|
||||||
workspaceNumbers = false;
|
workspaceNumbers = false;
|
||||||
|
|
||||||
|
@ -196,7 +207,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
})
|
||||||
];
|
];
|
||||||
output = {
|
output = {
|
||||||
DP-3 = {
|
DP-3 = {
|
||||||
|
@ -206,27 +217,24 @@
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
"10429:2335:UGTABLET_11.6_inch_PenDisplay" = {
|
"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" = {
|
"type:keyboard" = {
|
||||||
xkb_layout = [
|
xkb_layout = "us(colemak_dh),us";
|
||||||
"us(colemak_dh)"
|
|
||||||
"us"
|
|
||||||
# "rulemak"
|
|
||||||
];
|
|
||||||
xkb_options = "grp:rctrl_toggle";
|
xkb_options = "grp:rctrl_toggle";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gaps = {
|
gaps = {
|
||||||
smartGaps = true;
|
smartGaps = true;
|
||||||
inner = 8.0;
|
inner = 8;
|
||||||
outer = 2.0;
|
outer = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
workspaceAutoBackAndForth = true;
|
workspaceAutoBackAndForth = true;
|
||||||
workspaceLayout = "tabbed";
|
workspaceLayout = "tabbed";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue