#+TITLE: Sway Config #+PROPERTY: header-args+ :mkdir p yes #+PROPERTY: header-args+ :tangle ~/.config/sway/config * Sway :PROPERTIES: :header-args: :tangle ~/.config/sway/config :mkdirp true :END: ** Variables #+begin_src conf set $mod Mod4 set $term gnome-terminal #+end_src ** Window Borders #+begin_src conf default_border pixel 0 default_floating_border normal #+end_src ** Layouts Changing the container layout #+begin_src conf bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split #+end_src ** Focus Change focus between tiling / floating windows #+begin_src conf bindsym $mod+space focus mode_toggle #+end_src Focus the parent container #+begin_src conf bindsym $mod+a focus parent #+end_src ** Workspaces Define name for default workspaces for which key bindings will be configured. Use variables to avoid repeating the names in multiple places. #+begin_src conf set $ws1 "1" set $ws2 "2" set $ws3 "3" set $ws4 "4" set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" #+end_src Switching to workspaces #+begin_src conf bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 bindsym $mod+3 workspace $ws3 bindsym $mod+4 workspace $ws4 bindsym $mod+5 workspace $ws5 bindsym $mod+6 workspace $ws6 bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 bindsym $mod+0 workspace $ws10 #+end_src Move focused container to workspace #+begin_src conf bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+3 move container to workspace $ws3 bindsym $mod+Shift+4 move container to workspace $ws4 bindsym $mod+Shift+5 move container to workspace $ws5 bindsym $mod+Shift+6 move container to workspace $ws6 bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 #+end_src ** Input Configurations Swap `ctrl` for `caps lock` #+begin_src conf input * { xkb_options ctrl:swapcaps } #+end_src ** Theme =class border background text indicator child-border= #+begin_src conf client.focused #c0c5ce #c0c5ce #1e1e1e #000000 #000000 client.focused_inactive #000000 #232830 #6b0000 #000000 #000000 client.unfocused #c0c5ce #2f3237 #6b6b6b #000000 #000000 client.urgent #000000 #000000 #bbbbbb #000000 #000000 client.placeholder #000000 #000000 #bbbbbb #000000 #000000 client.background #FFFFFF #+end_src