main dotfiles / dot_config / sway / config
Eric Bower  ·  2026-07-11
  1# Read `man 5 sway` for a complete reference.
  2set $mod Mod4
  3set $left h
  4set $down j
  5set $up k
  6set $right l
  7
  8set $bg0     #282828
  9set $bg1     #3c3836
 10set $bg3     #665c54
 11set $fg0     #fbf1c7
 12set $fg2     #d5c4a1
 13set $fg4     #a89984
 14set $bred    #fb4934
 15set $bgreen  #b8bb26
 16set $bblue   #83a598
 17
 18# Color scheme               border    bg        text      indicator child_border
 19client.focused               $bblue    $bg0      $fg0      $bred     $bblue
 20client.focused_inactive      $bg3      $bg1      $fg2      $bg3      $bg3
 21client.unfocused             $bg3      $bg0      $fg4      $bg3      $bg3
 22client.urgent                $bred     $bred     $fg0      $bred     $bred
 23client.placeholder           $bg3      $bg0      $fg4      $bg3      $bg3
 24client.background            $bg0
 25
 26default_border pixel 2
 27
 28set $ipc noctalia msg
 29bindsym $mod+d exec $ipc panel-toggle launcher
 30bindsym --locked XF86AudioRaiseVolume exec $ipc volume-up
 31bindsym --locked XF86AudioLowerVolume exec $ipc volume-down
 32bindsym --locked XF86AudioMute exec $ipc volume-mute
 33bindsym --locked XF86MonBrightnessUp exec $ipc brightness-up
 34bindsym --locked XF86MonBrightnessDown exec $ipc brightness-down
 35
 36floating_modifier $mod normal
 37# bindsym $mod+Return exec foot
 38bindsym $mod+Return exec monstar
 39bindsym $mod+q kill
 40
 41bindsym $mod+c exec wl-copy
 42bindsym $mod+v exec wl-paste
 43bindsym $mod+z splith
 44bindsym $mod+x splitv
 45bindsym $mod+w layout tabbed
 46bindsym $mod+e layout toggle split
 47bindsym $mod+f fullscreen
 48bindsym $mod+space focus mode_toggle
 49bindsym $mod+Shift+s exec grim -g "$(slurp)" -t png ~/screenshot_$(date +%s).png
 50bindsym $mod+Shift+c reload
 51bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
 52bindsym $mod+Shift+space floating toggle
 53bindsym $mod+Shift+minus move scratchpad
 54bindsym $mod+minus scratchpad show
 55
 56# bindsym $mod+d exec qs -c noctalia-shell ipc call launcher toggle
 57# bindsym $mod+Comma exec qs -c noctalia-shell ipc call settings toggle
 58# bindsym XF86AudioRaiseVolume exec qs -c noctalia-shell ipc call volume increase
 59# bindsym XF86AudioLowerVolume exec qs -c noctalia-shell ipc call volume decrease
 60# bindsym XF86AudioMute exec qs -c noctalia-shell ipc call volume muteOutput
 61# bindsym XF86MonBrightnessUp exec qs -c noctalia-shell ipc call brightness increase
 62# bindsym XF86MonBrightnessDown exec qs -c noctalia-shell ipc call brightness decrease
 63# Move your focus around
 64bindsym $mod+$left focus left
 65bindsym $mod+$down focus down
 66bindsym $mod+$up focus up
 67bindsym $mod+$right focus right
 68# Move the focused window with the same, but add Shift
 69bindsym $mod+Shift+$left move left
 70bindsym $mod+Shift+$down move down
 71bindsym $mod+Shift+$up move up
 72bindsym $mod+Shift+$right move right
 73# Switch to workspace
 74bindsym $mod+1 workspace number 1
 75bindsym $mod+2 workspace number 2
 76bindsym $mod+3 workspace number 3
 77bindsym $mod+4 workspace number 4
 78bindsym $mod+5 workspace number 5
 79bindsym $mod+6 workspace number 6
 80bindsym $mod+7 workspace number 7
 81bindsym $mod+8 workspace number 8
 82bindsym $mod+9 workspace number 9
 83bindsym $mod+0 workspace number 10
 84# Move focused container to workspace
 85bindsym $mod+Shift+1 move container to workspace number 1
 86bindsym $mod+Shift+2 move container to workspace number 2
 87bindsym $mod+Shift+3 move container to workspace number 3
 88bindsym $mod+Shift+4 move container to workspace number 4
 89bindsym $mod+Shift+5 move container to workspace number 5
 90bindsym $mod+Shift+6 move container to workspace number 6
 91bindsym $mod+Shift+7 move container to workspace number 7
 92bindsym $mod+Shift+8 move container to workspace number 8
 93bindsym $mod+Shift+9 move container to workspace number 9
 94bindsym $mod+Shift+0 move container to workspace number 10
 95
 96set $home DP-3
 97# "LG Electronics LG ULTRAGEAR 312NTQD43916"
 98output $home mode 2560x1440@144Hz
 99output $home scale 1
100
101set $laptop eDP-1
102output $laptop mode 2256x1504@59.999Hz
103output $laptop scale 1.5
104
105# set $cahoots DP-2
106# Samsung Electric Company U32J59x HCJTB01080
107# output $cahoots scale 1.5
108
109bindswitch lid:on output $laptop disable
110bindswitch --reload lid:off output $laptop enable; exec noctalia
111
112exec noctalia
113# exec qs -c noctalia-shell
114
115# required for xdg-desktop-portal-gtk.service
116exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DISPLAY MOZ_ENABLE_WAYLAND
117exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway DISPLAY MOZ_ENABLE_WAYLAND=1
118
119input "type:touchpad" {
120    tap enabled
121    natural_scroll disabled
122    dwt disabled
123    accel_profile "flat"  # disable mouse acceleration
124    pointer_accel 0.0     # set mouse sensitivity (between -1 and 1)
125}
126input "type:keyboard" {
127    repeat_delay 300
128    repeat_rate 30
129}
130input "20547:23623:Ploopy_Corporation_Ploopy_Adept_Trackball_Mouse" {
131  accel_profile "flat"
132  pointer_accel -0.5 # between -1 and 1
133}