Order sway configuration file
This commit is contained in:
parent
b745ea72f1
commit
50c485a8cf
6 changed files with 69 additions and 5 deletions
25
templates/50-keybindings.config.j2
Normal file
25
templates/50-keybindings.config.j2
Normal file
|
@ -0,0 +1,25 @@
|
|||
set $mod Mod4
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
|
||||
# Dynamic workspace keybindings
|
||||
{% for k,v in sway_workspaces.items() %}
|
||||
bindsym $mod+{{ k }} workspace $ws{{ k }}
|
||||
bindsym $mod+Shift+{{ k }} move container to workspace $ws{{ k }}
|
||||
{% endfor %}
|
||||
|
||||
{% for section in sway_keybindings %}
|
||||
{% if section.mode != "normal" %}
|
||||
mode {{ section.mode }} {
|
||||
{% endif %}
|
||||
|
||||
{% for bind in section.bindings %}
|
||||
bindsym {{ bind.bindsym }} {{ bind.action}}
|
||||
{% endfor %}
|
||||
|
||||
{% if section.mode != "normal" %}
|
||||
}
|
||||
{% endif %}
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue