The big variable overhaul
This commit is contained in:
parent
3f0a235dc8
commit
6dab8fc029
36 changed files with 269 additions and 326 deletions
|
@ -1,12 +1,9 @@
|
|||
{config, pkgs, ...}: {
|
||||
# Enable Sway and write some scripts
|
||||
{config, pkgs, outputs, ...}: {
|
||||
wayland.windowManager.sway = {
|
||||
config = let
|
||||
displays = import ../common/displays.nix;
|
||||
in {
|
||||
# Define hardware
|
||||
config = {
|
||||
# Define monitors
|
||||
output = {
|
||||
${displays.d1} = {
|
||||
${outputs.displays.d1} = {
|
||||
pos = "1920 405";
|
||||
mode = "1920x1080@143.980Hz";
|
||||
max_render_time = "3";
|
||||
|
@ -14,28 +11,25 @@
|
|||
scale = "1";
|
||||
adaptive_sync = "on";
|
||||
};
|
||||
${displays.d2} = {
|
||||
${outputs.displays.d2} = {
|
||||
pos = "0 405";
|
||||
mode = "1920x1080@60Hz";
|
||||
max_render_time = "3";
|
||||
bg = "~/.wallpapers/2.png fill";
|
||||
};
|
||||
${displays.d3} = {
|
||||
${outputs.displays.d3} = {
|
||||
pos = "3840 0";
|
||||
mode = "1680x1050@59.883Hz";
|
||||
transform = "270";
|
||||
max_render_time = "3";
|
||||
bg = "~/.wallpapers/3.png fill";
|
||||
};
|
||||
${displays.dTouch} = {
|
||||
#scale = "1.4";
|
||||
};
|
||||
"*" = {
|
||||
bg = "~/.wallpapers/1.png fill";
|
||||
};
|
||||
};
|
||||
|
||||
# Mouse sensitivity, disable acceleration, allow touch while typing
|
||||
# HID device config
|
||||
input = {
|
||||
"9610:4103:SINOWEALTH_Game_Mouse" = {
|
||||
pointer_accel = "-0.9";
|
||||
|
@ -51,11 +45,6 @@
|
|||
dwt = "disabled";
|
||||
natural_scroll = "disabled";
|
||||
};
|
||||
|
||||
# Map touchscreen to output
|
||||
"1386:806:Wacom_ISDv5_326_Finger" = {
|
||||
map_to_output = "${displays.dTouch}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue