2020-08-12 14:06:20 -04:00
|
|
|
#+TITLE: Sway Config
|
2020-08-18 08:43:06 -04:00
|
|
|
#+PROPERTY: header-args+ :mkdirp yes
|
2020-08-12 22:56:21 -04:00
|
|
|
#+PROPERTY: header-args+ :tangle ~/.config/sway/config
|
2020-08-12 14:06:20 -04:00
|
|
|
|
2020-08-18 08:43:06 -04:00
|
|
|
* Variables
|
|
|
|
Logo key
|
|
|
|
#+begin_src conf
|
|
|
|
set $mod Mod4
|
|
|
|
#+end_src
|
|
|
|
#+begin_src conf
|
|
|
|
set $term gnome-terminal --hide-menubar
|
|
|
|
set $menu dmenu_run
|
|
|
|
#+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
|
2020-08-12 22:17:09 -04:00
|
|
|
|
2020-08-18 08:43:06 -04:00
|
|
|
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
|
|
|
|
}
|
2020-08-12 22:17:09 -04:00
|
|
|
|
2020-08-18 08:43:06 -04:00
|
|
|
input * kxb_numlock enable
|
|
|
|
#+end_src
|
2020-08-12 22:17:09 -04:00
|
|
|
|
2020-08-18 08:43:06 -04:00
|
|
|
* Theme
|
|
|
|
=class border background text indicator child-border=
|
|
|
|
#+begin_src conf
|
|
|
|
client.focused #C0C5CE #C0C5CE #1B2229 #C0C5CE #C0C5CE
|
|
|
|
client.focused_inactive #232830 #232830 #C0C5CE #232830 #232830
|
|
|
|
client.unfocused #1B2229 #1B2229 #C0C5CE #1B2229 #1B2229
|
|
|
|
client.urgent #65737E #65737E #D08770 #65737E #65737E
|
|
|
|
client.placeholder #4F5B66 #4F5B66 #D08770 #4F5B66 #4F5B66
|
|
|
|
client.background #2B303B
|
|
|
|
#+end_src
|