summaryrefslogtreecommitdiffhomepage
path: root/unbox.toml
blob: 398d5501ad04b9eba593d3fd642f3a7bd2638afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# unbox.toml — sample configuration
#
# Copy to $XDG_CONFIG_HOME/unbox/unbox.toml (i.e. ~/.config/unbox/unbox.toml)
# and edit. If no config file is found, unbox uses these exact defaults.
#
# Keybindings -------------------------------------------------------------------
# Each [[keybind]] maps a key combo to one action.
#
#   keys    "Mod+...+Key" — modifiers (Super, Alt, Ctrl, Shift; order/case
#           insensitive) then an xkb key name (Tab, F1, Return, space,
#           BackSpace, d, ...). A BARE modifier with no "+Key" (e.g. "Super")
#           is a TAP binding: it fires only when that modifier is pressed and
#           released with nothing pressed in between.
#   action  one of: spawn (needs `command`) · focus-next · focus-prev ·
#           close-active · quit
#   command (spawn only) shell line, run via `sh -c`, so args/quoting work.

[[keybind]]
keys    = "Super"             # tap the Windows key: toggle the launcher
action  = "spawn"
# Toggle: if fuzzel is already open, close it; otherwise launch it. `pkill -x`
# matches the exact process name and returns 0 when it killed something (so the
# `|| fuzzel` is skipped); when nothing was running it returns non-zero and
# fuzzel launches. Runs via `sh -c`.
command = "pkill -x fuzzel || fuzzel"

[[keybind]]
keys   = "Alt+Tab"           # next window (all windows, wraps around)
action = "focus-next"

[[keybind]]
keys   = "Alt+Shift+Tab"     # previous window
action = "focus-prev"

[[keybind]]
keys   = "Alt+F1"            # legacy focus cycle (kept from the tinywl port)
action = "focus-next"

[[keybind]]
keys   = "Ctrl+Alt+Backspace" # quit the unbox session
action = "quit"