summaryrefslogtreecommitdiff
path: root/users/kassouni/desktop/sway/sway.nix
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-09-02 21:20:10 -0700
committerAlexander Kassouni <alex@kassouni.net>2026-09-02 21:20:10 -0700
commit47dde98fd2cf11ea544bb1c8d8d548ee0bda0f54 (patch)
treefb79c45ef1c0f0016e480e06dff625cf3fc1c91a /users/kassouni/desktop/sway/sway.nix
parent1c5fa1c205f2bb78f8e1179b0576f3c3578dad69 (diff)
some sway stuff
Diffstat (limited to 'users/kassouni/desktop/sway/sway.nix')
-rw-r--r--users/kassouni/desktop/sway/sway.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/users/kassouni/desktop/sway/sway.nix b/users/kassouni/desktop/sway/sway.nix
new file mode 100644
index 0000000..2e73d5f
--- /dev/null
+++ b/users/kassouni/desktop/sway/sway.nix
@@ -0,0 +1,42 @@
+{
+ 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
+ }
+ '';
+
+ };
+}
+