-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.conf
164 lines (126 loc) · 4.2 KB
/
default.conf
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# Mac-Like Configuration
#
# Uses "Alt" button to the left of spacebar as "Cmd" key
# keyd Meta key === Super key in PopOS
#
[ids]
# *
046d:b35b
1044:7a3f
046d:408a
[main]
# Create a new "Cmd" button, with various Mac OS-like features below
leftalt = layer(mac_cmd)
# Assign right-alt to emit right-control
rightalt = rightcontrol
# Assign right-control to emit right-meta/right-super
rightcontrol = rightmeta
# Swap meta/alt
# we use overload here in order to prevent Gnome's standard Alt-key behavior in which if you tab Alt it will move focus to the application menu
leftmeta = overload(mac_alt, noop)
##############################################################################################################
# mac_cmd modifier layer; inherits from 'Ctrl' modifier layer
#
# The main part! Using this layer, we can remap our new "Cmd" key to
# do almost everything our muscle memory might need...
[mac_cmd:C]
# shift = swap(mac_cmd_shift)
# As soon as tab is pressed (but not yet released), we switch to the
# "app_switch_state" overlay where we can handle Meta-Backtick differently.
# Also, send a 'M-tab' key tap before entering app_switch_sate.
tab = swapm(app_switch_state, M-tab)
# Meta-Backtick: Switch to next window in the application group
# - M-` is the default binding for 'switch-group' in gnome
# - keybinding: `gsettings get org.gnome.desktop.wm.keybindings switch-group`
` = swapm(app_window_cycle_state, M-`)
# Lock screen
esc = M-esc
######################## windows and tabs
# Quit
q = M-q
# maximize window
m = M-m
# maximize vertically
pageup = M-pageup
# minimize
pagedown = M-pagedown
# switch between open tabs
1 = A-1
2 = A-2
3 = A-3
4 = A-4
5 = A-5
6 = A-6
7 = A-7
8 = A-8
9 = A-9
# Meta-Space: Open the Launcher (a feature of gnome-shell)
# keybinding: "Naviage applications and windows -> Launch and switch applications"
#space = M-/
######################## cursor navigation and editing
# move cursor to top and bottom of editor
up = C-home
down = C-end
# Move cursor to beginning of line
left = home
# Move cursor to end of Line
right = end
# delete everything on the current line to the left of the cursor
backspace = C-S-backspace
# delete everything on the current line to the right of the cursor
delete = C-S-delete
# back
leftbrace=A-left
# forward
rightbrace=A-right
##############################################################################################################
# [mac_cmd_shift:C-S]
# # highlight from cursor to top and bottom of editor
# up = C-S-home
# down = C-S-end
# # Highlight to beginning of line
# left = S-home
# # Highlight to end of Line
# right = S-end
# # switch to the previous open tab
# leftbrace=C-pageup
# # siwtch to teh next open tab
# rightbrace=C-pagedown
##############################################################################################################
# app_switch_state modifier layer; inherits from 'Meta' modifier layer
[app_switch_state:M]
# Meta-Tab: Switch to next application
# - keybinding: `gsettings get org.gnome.desktop.wm.keybindings switch-applications`
tab = M-tab
right = M-tab
# Meta-Backtick: Switch to previous application
# - keybinding: `gsettings get org.gnome.desktop.wm.keybindings switch-applications-backward`
` = M-S-tab
left = M-S-tab
##############################################################################################################
# app_switch_state modifier layer; inherits from 'Meta' modifier layer
[app_window_cycle_state:M]
# Meta-Backtick: Switch to previous application
# - keybinding: `gsettings get org.gnome.desktop.wm.keybindings switch-applications-backward`
` = M-`
##############################################################################################################
# Mac-like Alt behavior
[mac_alt:A]
backspace = C-backspace
delete = C-delete
left = C-left
right = C-right
##############################################################################################################
# cmd+shift behavior
[shift+mac_cmd]
# highlight from cursor to top and bottom of editor
up = C-S-home
down = C-S-end
# Highlight to beginning of line
left = S-home
# Highlight to end of Line
right = S-end
# switch to the previous open tab
leftbrace=C-pageup
# switch to teh next open tab
rightbrace=C-pagedown