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, ... }: { { config, pkgs, ... }:
wayland.windowManager.sway.config.startup =
[{ command = "${pkgs.ckb-next}/bin/ckb-next -b"; }]; {
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";
};
};
};
}

View file

@ -78,62 +78,7 @@
in { in {
bars = [{ command = "${pkgs.waybar}/bin/waybar"; }]; bars = [{ command = "${pkgs.waybar}/bin/waybar"; }];
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";
};
laptop = {
res = "1920x1080";
pos = "0 0";
bg = "${../../../private/files/wallpapers/main.png} fill";
};
mbp = {
res = "1280x800";
pos = "0 0";
bg = "${../../../private/files/wallpapers/main.png} fill";
};
in {
"DP-1" = left;
"DVI-D-1" = right;
"HDMI-A-1" = middle;
"eDP-1" = laptop;
"LVDS-1" = mbp;
};
input = { input = {
"1739:33362:Synaptics_TM3336-002" = {
dwt = "enabled";
tap = "enabled";
natural_scroll = "enabled";
middle_emulation = "enabled";
click_method = "clickfinger";
};
"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";
};
"*" = { "*" = {
xkb_layout = "gb"; xkb_layout = "gb";
# xkb_variant = "nodeadkeys"; # xkb_variant = "nodeadkeys";
@ -276,9 +221,6 @@
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
extraConfig = '' extraConfig = ''
seat seat0 xcursor_theme breeze_cursors 20 seat seat0 xcursor_theme breeze_cursors 20
workspace "1" output "DP-1"
workspace "11:F1" output "HDMI-A-1"
workspace "12:F2" output "DVI-D-1"
workspace_auto_back_and_forth yes workspace_auto_back_and_forth yes
${workspaceBindingsStr} ${workspaceBindingsStr}
''; '';