repos / dotfiles

my dotfiles

dotfiles / dot_config / sway
Eric Bower  ·  2026-03-07

config

  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
  8client.focused		#bd93f9 #282a36 #f2f2f2 #50fa7b #bd93f9
  9client.unfocused	#81859b #282a36 #81859b #50fa7b #44475a
 10
 11default_border pixel 1
 12
 13floating_modifier $mod normal
 14bindsym $mod+Return exec foot
 15bindsym $mod+q kill
 16bindsym $mod+d exec qs -c noctalia-shell ipc call launcher toggle
 17bindsym $mod+Comma exec qs -c noctalia-shell ipc call settings toggle
 18bindsym $mod+c exec wl-copy
 19bindsym $mod+v exec wl-paste
 20bindsym $mod+z splith
 21bindsym $mod+x splitv
 22bindsym $mod+w layout tabbed
 23bindsym $mod+e layout toggle split
 24bindsym $mod+f fullscreen
 25bindsym $mod+space focus mode_toggle
 26bindsym $mod+Shift+s exec grim -g "$(slurp)" -t png ~/screenshot_$(date +%s).png
 27bindsym $mod+Shift+c reload
 28bindsym $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'
 29bindsym $mod+Shift+space floating toggle
 30bindsym $mod+Shift+minus move scratchpad
 31bindsym $mod+minus scratchpad show
 32bindsym XF86AudioRaiseVolume exec qs -c noctalia-shell ipc call volume increase
 33bindsym XF86AudioLowerVolume exec qs -c noctalia-shell ipc call volume decrease
 34bindsym XF86AudioMute exec qs -c noctalia-shell ipc call volume muteOutput
 35bindsym XF86MonBrightnessUp exec qs -c noctalia-shell ipc call brightness increase
 36bindsym XF86MonBrightnessDown exec qs -c noctalia-shell ipc call brightness decrease
 37# Move your focus around
 38bindsym $mod+$left focus left
 39bindsym $mod+$down focus down
 40bindsym $mod+$up focus up
 41bindsym $mod+$right focus right
 42# Move the focused window with the same, but add Shift
 43bindsym $mod+Shift+$left move left
 44bindsym $mod+Shift+$down move down
 45bindsym $mod+Shift+$up move up
 46bindsym $mod+Shift+$right move right
 47# Switch to workspace
 48bindsym $mod+1 workspace number 1
 49bindsym $mod+2 workspace number 2
 50bindsym $mod+3 workspace number 3
 51bindsym $mod+4 workspace number 4
 52bindsym $mod+5 workspace number 5
 53bindsym $mod+6 workspace number 6
 54bindsym $mod+7 workspace number 7
 55bindsym $mod+8 workspace number 8
 56bindsym $mod+9 workspace number 9
 57bindsym $mod+0 workspace number 10
 58# Move focused container to workspace
 59bindsym $mod+Shift+1 move container to workspace number 1
 60bindsym $mod+Shift+2 move container to workspace number 2
 61bindsym $mod+Shift+3 move container to workspace number 3
 62bindsym $mod+Shift+4 move container to workspace number 4
 63bindsym $mod+Shift+5 move container to workspace number 5
 64bindsym $mod+Shift+6 move container to workspace number 6
 65bindsym $mod+Shift+7 move container to workspace number 7
 66bindsym $mod+Shift+8 move container to workspace number 8
 67bindsym $mod+Shift+9 move container to workspace number 9
 68bindsym $mod+Shift+0 move container to workspace number 10
 69
 70set $home DP-1
 71set $home3 DP-3
 72output $home3 mode 2560x1440@144Hz
 73output $home3 scale 1
 74
 75# set $cahoots DP-4 # Dell Inc. DELL U2713HM JMPXK44LA7AL
 76# output $cahoots mode 2560x1440@59.951Hz
 77# output $cahoots scale 1.2
 78
 79set $laptop eDP-1
 80output $laptop mode 2256x1504@59.999Hz
 81output $laptop scale 1.7
 82
 83bindswitch lid:on output $laptop disable
 84bindswitch --reload lid:off output $laptop enable; exec qs -c noctalia-shell
 85exec qs -c noctalia-shell
 86
 87input "type:touchpad" {
 88    tap enabled
 89    natural_scroll disabled
 90    dwt disabled
 91    accel_profile "flat"  # disable mouse acceleration
 92    pointer_accel 0.0     # set mouse sensitivity (between -1 and 1)
 93}
 94input "type:keyboard" {
 95    repeat_delay 300
 96    repeat_rate 30
 97}
 98input "20547:23623:Ploopy_Corporation_Ploopy_Adept_Trackball_Mouse" {
 99  accel_profile "flat"
100  pointer_accel -0.5 # between -1 and 1
101}