profiles/sway: Migrated to host-specific input+output+...

This commit is contained in:
kat witch 2021-04-28 22:36:00 +01:00
parent 9123407777
commit ed5eb10d0e
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
3 changed files with 75 additions and 62 deletions

View file

@ -1,4 +1,53 @@
{ config, pkgs, ... }: {
wayland.windowManager.sway.config.startup =
[{ command = "${pkgs.ckb-next}/bin/ckb-next -b"; }];
{ config, pkgs, ... }:
{
wayland.windowManager.sway = {
config = {
startup = [{ command = "${pkgs.ckb-next}/bin/ckb-next -b"; }];
output = let
left = {
res = "1920x1080";
pos = "0 0";
bg = "${../../../private/files/wallpapers/left.jpg} fill";
};
middle = {
res = "1920x1080";
pos = "1920 0";
bg = "${../../../private/files/wallpapers/main.png} fill";
};
right = {
res = "1920x1080";
pos = "3840 0";
bg = "${../../../private/files/wallpapers/right.jpg} fill";
};
in {
"DP-1" = left;
"DVI-D-1" = right;
"HDMI-A-1" = middle;
};
input = {
"5824:1503:screenstub-tablet" = { events = "disabled"; };
"5824:1503:screenstub-mouse" = { events = "disabled"; };
"5824:1503:screenstub-kbd" = { events = "disabled"; };
"1386:215:Wacom_BambooPT_2FG_Small_Pen" = {
map_to_output = "HDMI-A-1";
};
"1386:215:Wacom_BambooPT_2FG_Small_Finger" = {
natural_scroll = "enabled";
middle_emulation = "enabled";
tap = "enabled";
dwt = "enabled";
accel_profile = "flat";
pointer_accel = "0.05";
};
};
};
extraConfig = ''
workspace "1" output "DP-1"
workspace "11:F1" output "HDMI-A-1"
workspace "12:F2" output "DVI-D-1"
'';
};
}

View file

@ -1 +1,23 @@
{ ... }: { }
{ config, pkgs, ... }:
{
wayland.windowManager.sway.config = {
output = let
laptop = {
res = "1920x1080";
pos = "0 0";
bg = "${../../../private/files/wallpapers/main.png} fill";
};
in { "eDP-1" = laptop; };
input = {
"1739:33362:Synaptics_TM3336-002" = {
dwt = "enabled";
tap = "enabled";
natural_scroll = "enabled";
middle_emulation = "enabled";
click_method = "clickfinger";
};
};
};
}