blob: 2ea2e85d5eac9750d93a01ca8392f6b5eb414e6c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
{
config,
lib,
options,
...
}:
{
options.desktop.windowManager = lib.mkOption { type = with lib.types; nullOr (enum [ "swayfx" ]); };
config.wayland.windowManager.sway =
if (config.desktop.windowManager == "swayfx") then
{
enable = lib.mkForce true;
package = null; # use the nixos module
config = {
bars = [ ];
bindswitches = {
"lid:off" = {
action = "output eDP-1 power on";
locked = true;
};
"lid:on" = {
action = "output eDP-1 power off";
locked = true;
};
};
floating.titlebar = false;
focus.followMouse = false;
gaps = {
inner = 4;
outer = 8;
};
input = {
"*" = {
accel_profile = "flat";
};
"type:touchpad" = {
drag = "enabled";
dwt = "enabled";
natural_scroll = "enabled";
tap = "enabled";
};
};
keybindings =
let
mod = config.wayland.windowManager.sway.config.modifier;
in
lib.mkOptionDefault {
"${mod}+Return" = "exec foot";
"${mod}+Q" = "kill";
};
modifier = "Mod4";
output = {
"eDP-1" = {
mode = "2256x1504@60Hz";
position = "0 0";
scale = "1.5";
};
};
window.titlebar = false;
};
extraConfig = ''
blur enable
corner_radius 10
shadows enable
'';
}
else
{ };
}
|