summaryrefslogtreecommitdiff
path: root/files/sway
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-10-17 12:22:00 -0400
committerAndrew Opalach <andrew@akon.city> 2025-10-17 12:32:42 -0400
commit544da1ba50d9cbf51a18ca0abf1db66b3baa7460 (patch)
tree1caa87664ea4937c5f4e6e8dc83c49b3132ddd70 /files/sway
parent85a47287e56ba9100420246531ebea5996cc0486 (diff)
downloaddotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.tar.gz
dotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.tar.bz2
dotfiles-544da1ba50d9cbf51a18ca0abf1db66b3baa7460.zip
Gentoo desktop
Diffstat (limited to 'files/sway')
-rw-r--r--files/sway/config108
-rw-r--r--files/sway/window_rules25
2 files changed, 133 insertions, 0 deletions
diff --git a/files/sway/config b/files/sway/config
new file mode 100644
index 0000000..3ec0052
--- /dev/null
+++ b/files/sway/config
@@ -0,0 +1,108 @@
+set $mod1 Mod1
+set $mod4 Mod4
+
+set $left h
+set $down j
+set $up k
+set $right l
+
+set $term kitty -1
+set $menu dmenu-path | bemenu-colored | xargs swaymsg exec --
+
+font pango:monospace 10
+
+default_border normal 1
+titlebar_border_thickness 1
+titlebar_padding 4 3
+
+floating_modifier $mod1 normal
+
+bindsym $mod1+Shift+q kill
+bindsym $mod1+Return exec $term
+bindsym $mod1+d exec $menu
+bindsym $mod1+Shift+c reload
+
+bindsym $mod1+Shift+e exec swaynag -t warning -m 'Do you really want to exit?' -B 'Yes' 'swaymsg exit'
+
+bindsym $mod1+$left focus left
+bindsym $mod1+$down focus down
+bindsym $mod1+$up focus up
+bindsym $mod1+$right focus right
+
+bindsym $mod1+Shift+$left move left
+bindsym $mod1+Shift+$down move down
+bindsym $mod1+Shift+$up move up
+bindsym $mod1+Shift+$right move right
+
+workspace 1 output DP-1
+workspace 2 output DP-1
+workspace 3 output DP-1
+workspace 4 output DP-1
+workspace 5 output DP-2
+workspace 6 output DP-2
+workspace 7 output DP-2
+workspace 8 output DP-2
+workspace 9 output HDMI-A-1
+
+bindsym $mod1+1 workspace number 1
+bindsym $mod1+2 workspace number 2
+bindsym $mod1+3 workspace number 3
+bindsym $mod1+4 workspace number 4
+bindsym $mod4+1 workspace number 5
+bindsym $mod4+2 workspace number 6
+bindsym $mod4+3 workspace number 7
+bindsym $mod4+4 workspace number 8
+bindsym $mod4+5 workspace number 9
+
+bindsym $mod1+Shift+1 move container to workspace number 1
+bindsym $mod1+Shift+2 move container to workspace number 2
+bindsym $mod1+Shift+3 move container to workspace number 3
+bindsym $mod1+Shift+4 move container to workspace number 4
+bindsym $mod4+Shift+1 move container to workspace number 5
+bindsym $mod4+Shift+2 move container to workspace number 6
+bindsym $mod4+Shift+3 move container to workspace number 7
+bindsym $mod4+Shift+4 move container to workspace number 8
+bindsym $mod4+Shift+5 move container to workspace number 9
+
+bindsym $mod1+b splith
+bindsym $mod1+v splitv
+
+bindsym $mod1+f fullscreen
+bindsym $mod1+space floating toggle
+
+bindsym $mod1+r mode "resize"
+mode "resize" {
+ bindsym $left resize shrink width 1px
+ bindsym $down resize grow height 1px
+ bindsym $up resize shrink height 1px
+ bindsym $right resize grow width 1px
+ bindsym Escape mode "default"
+}
+
+bindsym $mod1+Shift+s exec screenshot
+bindsym Print exec screenshot main
+bindsym Shift+Print exec screenshot full
+bindsym $mod1+q exec screenshot qrcode
+bindsym $mod1+c exec screenshot color
+
+bindsym button4 nop
+bindsym button5 nop
+
+xwayland force
+
+include config.d/*
+
+# class border bground text indicator child_border
+client.focused $c1_light $c1 $fg $c1 $c1
+client.focused_inactive $c1 $c2 $fg $c1 $c1
+client.unfocused $c2 $c2 $fg $bg $bg
+client.urgent $urgent $urgent $fg $urgent $urgent
+client.placeholder $bg $bg $fg $bg $bg
+client.background $bg
+
+exec dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
+exec_always swaymsg 'seat * hide_cursor 4000'
+exec swayidle -w \
+ timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
+exec mako
+exec gentoo-pipewire-launcher restart
diff --git a/files/sway/window_rules b/files/sway/window_rules
new file mode 100644
index 0000000..f6ee9ee
--- /dev/null
+++ b/files/sway/window_rules
@@ -0,0 +1,25 @@
+for_window [shell="xwayland"] title_format "(Xwayland) %title"
+for_window [app_id=kitty] allow_tearing yes
+for_window [app_id=gamescope] inhibit_idle fullscreen, allow_tearing yes, floating enable
+for_window [app_id=cmv] inhibit_idle fullscreen, floating enable
+for_window [class=cmv] floating enable
+for_window [class=cmv.exe] floating enable
+for_window [app_id=mauri] floating enable
+for_window [app_id=imv] floating enable
+for_window [app_id=Waydroid] floating enable
+for_window [title=Parsec] inhibit_idle fullscreen
+for_window [class=streaming_client] inhibit_idle fullscreen
+for_window [class=steam_app_.*] inhibit_idle fullscreen, allow_tearing yes
+for_window [app_id=gamescope] inhibit_idle fullscreen, allow_tearing yes, floating enable
+for_window [class=.gamescope-wrapped] inhibit_idle fullscreen, allow_tearing yes
+for_window [app_id=osu!] inhibit_idle fullscreen, allow_tearing yes
+for_window [app_id=cs2] inhibit_idle fullscreen, allow_tearing yes
+for_window [class=Minecraft*] inhibit_idle fullscreen, allow_tearing yes
+for_window [title=Overwatch] inhibit_idle fullscreen, allow_tearing yes
+for_window [class=Ryujinx] inhibit_idle fullscreen
+for_window [app_id=org.yuzu_emu.yuzu] inhibit_idle fullscreen
+for_window [app_id=info.cemu.Cemu] inhibit_idle fullscreen
+for_window [class=dolphin-emu] inhibit_idle fullscreen
+# Ishiiruka-Dolphin
+for_window [class=AppRun] inhibit_idle fullscreen
+for_window [class=SuperMeatBoy] inhibit_idle fullscreen