{ 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"; modifier = "Mod4"; # Use kitty as default terminal terminal = "ghostty"; }; extraConfig = let incr = "5"; brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl"; in '' # home-manager inlines these values instead of emitting `set` lines output * scale 1.75 output * bg ${config.theme.desktop.wallpaper} fill bindsym XF86MonBrightnessDown exec ${brightnessctl} set -e ${incr}%- bindsym XF86MonBrightnessUp exec ${brightnessctl} set -e +${incr}% 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 } ''; }; }