-
Notifications
You must be signed in to change notification settings - Fork 3
/
i3-shortcuts
executable file
·122 lines (84 loc) · 6.39 KB
/
i3-shortcuts
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#!/bin/bash
script=$(basename -- "${BASH_SOURCE[0]}")
shortcuts='
[ Modifier ] Modifier Alt-Left Key
[ Bar ] Show bar Modifier
[ Launch ] Open launcher Modifier + Space
[ Lookup ] Open file [l]ookup Modifier + L
[ Shortcuts ] Show shortcuts [i]nformation Modifier + Shift + I
[ Backgrounds ] Change back[g]round image Modifier + G
[ Files ] Open file manager Modifier + M
[ Manuals ] System manuals [q]uery Modifier + Q
[ Navigation ] N[a]vigate filesystem Modifier + A
[ Notes ] Open / take [n]otes Modifier + N
[ Processes ] Search / terminate proc[e]ss Modifier + E
[ Terminal ] Open [t]erminal Modifier + T
[ Terminate ] Terminate focused application instance Modifier + X
[ Terminate ] Kill application instance Modifier + Shift + X
[ Window Focus ] Change focus [up] Modifier + Up
Change focus [left] Modifier + Left
Change focus [down] Modifier + Down
Change focus [right] Modifier + Right
[ Window Move] Move focused window [up] Modifier + Shift + Up
Move focused window [left] Modifier + Shift + Left
Move focused window [down] Modifier + Shift + Down
Move focused window [right] Modifier + Shift + Right
[ Window Layout ] Move floating window Modifier + Mouse
Toggle [f]ullscreen windows Modifier + F
Toggle floating [w]indows Modifier + W
Change [w]indow focus - tiling / floating Modifier + Shift + W
[ Container Layout ] Change container layout - [s]plit Modifier + S
Change container layout - stac[k] Modifier + K
Change container layout - ta[b] Modifier + B
Split container - [h]orizontal layout Modifier + H
Split container - [v]ertical layout Modifier + V
Focus [p]arent container Modifier + P
Focus [c]hild container Modifier + C
Move floating container to [a]bsolute center Modifier + Shift + A
Move container to current [m]ouse cursor position Modifier + Shift + M
[ Workspaces ] Switch to workspace [1] Modifier + 1
Switch to workspace [2] Modifier + 2
Switch to workspace [3] Modifier + 3
Switch to workspace [4] Modifier + 4
Switch to workspace [5] Modifier + 5
Switch to workspace [6] Modifier + 6
Switch to workspace [7] Modifier + 7
Switch to workspace [8] Modifier + 8
Move container to workspace [1] Modifier + Shift + 1
Move container to workspace [2] Modifier + Shift + 2
Move container to workspace [3] Modifier + Shift + 3
Move container to workspace [4] Modifier + Shift + 4
Move container to workspace [5] Modifier + Shift + 5
Move container to workspace [6] Modifier + Shift + 6
Move container to workspace [7] Modifier + Shift + 7
Move container to workspace [8] Modifier + Shift + 8
[ Gaps ] Enter [g]aps management mode Modifier + Shift + G
[ Resize Mode ] Enter tile resi[z]e mode Modifier + Z
Resize - reset window to configured size Modifier + Shift + Z
Resize - shrink window height by 10 px Up
Resize - shrink window width by 10 px Left
Resize - grow window height by 10 px Down
Resize - grow window width by 10 px Right
Resize - Exit resi[z]e mode Modifier + Z
[ Session ] [R]eload i3 configuration Modifier + R
[R]estart i3 Modifier + Shift + R
[E]xit i3 Modifier + Shift + E
'
separator=" // "
font_name="Monospace"
font_size=10
font="${font_name}:size=${font_size}"
lines=$(echo "${shortcuts}" | wc -l)
prompt="SHORTCUTS${separator}"
indent=' '
shortcuts_parse () {
while read line
do
if [[ ! "${line}" =~ ^\[ ]]
then
line="${indent}${line}"
fi
echo "${line}"
done <<< "${shortcuts}"
}
shortcuts_parse | dmenu -i -l "${lines}" -p "${prompt}" -fn "${font}" -nb '#000000' -nf '#FFFFFF' -sb '#666666' -sf '#000000'