nix-conf/home-modules/sway/default.nix

66 lines
1.6 KiB
Nix
Raw Normal View History

2024-07-13 22:43:44 +02:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.jopejoe1.sway;
in
{
options.jopejoe1.sway = {
enable = lib.mkEnableOption "Enable Sway";
};
config = lib.mkIf cfg.enable {
wayland.windowManager.sway = {
enable = true;
config = {
output = {
2024-07-15 09:01:43 +02:00
# Main Desktop
2024-07-14 00:07:34 +02:00
"Acer Technologies Acer AL1717 0x70201097" = {
2024-07-13 22:43:44 +02:00
mode = "1280x1024@75.025Hz";
2024-07-13 23:42:25 +02:00
pos = "2560 0";
2024-07-13 22:43:44 +02:00
};
2024-07-14 00:07:34 +02:00
"LG Electronics LG ULTRAGEAR+ 305NTLE00976" = {
2024-07-13 22:43:44 +02:00
mode = "2560x1440@143.991Hz";
adaptive_sync = "on";
2024-07-13 23:42:25 +02:00
pos = "0 0";
2024-07-13 22:43:44 +02:00
};
2024-07-14 00:07:34 +02:00
"Eizo Nanao Corporation EV2316W 36270122" = {
2024-07-13 22:43:44 +02:00
mode = "1920x1080@60.000Hz";
2024-07-13 23:42:25 +02:00
transform = "270";
pos = "-1080 0";
2024-07-13 22:43:44 +02:00
};
2024-07-15 09:01:43 +02:00
# FrameWork 16
"BOE 0x0BC9 Unknown" = {
mode = "2560x1600@165.000Hz";
pos = "0 0";
};
2024-07-15 13:57:16 +02:00
# Msi Laptop
"LG Display 0x0259 Unknown" = {
mode = "1920x1080@59.934Hz";
pos = "0 0";
};
2024-07-15 09:01:43 +02:00
};
input = {
"12972:18:Framework_Laptop_16_Keyboard_Module_-_ANSI_Keyboard" = {
"xkb_layout" = "us";
"xkb_variant" = "altgr-intl";
"xkb_model" = "pc104";
};
2024-07-15 11:39:58 +02:00
"5426:515:Razer_Razer_BlackWidow_Chroma" = {
"xkb_layout" = "de";
"xkb_model" = "pc105";
};
2024-07-15 13:57:16 +02:00
"1:1:AT_Translated_Set_2_keyboard" = {
"xkb_layout" = "de";
"xkb_model" = "pc105";
};
2024-07-13 22:43:44 +02:00
};
};
};
};
}