blob: 0cf97f7d07e3418214401f3d945a03d9e467489c (
plain)
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
|
{
pkgs,
config,
...
}:
{
programs.swaylock.enable = true;
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true; # Fixes common issues with GTK 3 apps
config = {
window.titlebar = false;
menu = "fuzzel";
gaps = {
};
modifier = "Mod4";
# Use kitty as default terminal
terminal = "foot";
};
extraConfig = let incr = "5"; in ''
output * scale 2
bindsym XF86MonBrightnessDown exec brightnessctl set -e 5%-
bindsym XF86MonBrightnessUp exec brightnessctl set -e +5%
bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_SINK@ ${incr}%+
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_SINK@ ${incr}%-
input "type:keyboard" {
xkb_options caps:escape
}
input "type:touchpad" {
natural_scroll enabled
dwt disabled
}
'';
};
}
|