summaryrefslogtreecommitdiff
path: root/gui-wm/wayfire/files/wayfire-0.11.0-srcux-keymap.patch
blob: f75d7a9c8f4378377a049460515d03b91944b41c (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
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
diff -ruN -x _build a/wayfire.ini b/wayfire.ini
--- a/wayfire.ini	2026-10-28 03:12:33.982804261 -0500
+++ b/wayfire.ini	2026-10-28 03:13:01.800896505 -0500
@@ -45,13 +45,15 @@
 
 # List of plugins to be enabled.
 # See the Configuration document for a complete list.
+# SrcUX: the desktop stack (IPC, shell, window actions, panel desktop, idle sky,
+# lock, live wallpaper, per-workspace backgrounds) and Scale are on; Pixdecor
+# replaces decoration.
 plugins = \
   alpha \
   animate \
   autostart \
   command \
   cube \
-  decoration \
   expo \
   fast-switcher \
   fisheye \
@@ -60,18 +62,28 @@
   gtk-shell \
   idle \
   invert \
+  ipc \
+  ipc-rules \
+  live-wallpaper \
   move \
   oswitch \
+  panel-desktop \
+  pixdecor \
   place \
   resize \
+  scale \
+  screensaver \
   session-lock \
   shortcuts-inhibit \
   switcher \
   vswitch \
+  wayfire-lock \
   wayfire-shell \
+  window-actions \
   window-rules \
   wm-actions \
   wobbly \
+  workspace-backgrounds \
   wrot \
   zoom
 
@@ -81,7 +93,8 @@
 # https://github.com/WayfireWM/wayfire/wiki/Configuration#blur
 
 # Close focused window.
-close_top_view = <super> KEY_Q | <alt> KEY_F4
+# SrcUX: Super+W closes as well.
+close_top_view = <super> KEY_Q | <super> KEY_W | <alt> KEY_F4
 
 # Workspaces arranged into a grid: 3 × 3.
 vwidth = 3
@@ -111,6 +124,8 @@
 # Rotate windows with the mouse.
 [wrot]
 activate = <super> <ctrl> BTN_RIGHT
+# SrcUX: Super+R opens the Run box, so resetting one rotated window moves to Super+Alt+R.
+reset-one = <super> <alt> KEY_R
 
 # Fisheye effect.
 [fisheye]
@@ -125,7 +140,12 @@
 
 # Automatically start background and panel.
 # Set to false if you want to override the default clients.
-autostart_wf_shell = true
+# SrcUX: the SrcUX desktop below provides the panel, dock and background.
+autostart_wf_shell = false
+
+# SrcUX: start the desktop (session resident, panel, dock, menu, files and
+# notifications). The Super bindings in [command] run inside it.
+srcux_desktop = wayfire-desktop-session --desktop
 
 # Set the wallpaper, start a panel and dock if you want one.
 # https://github.com/WayfireWM/wf-shell
@@ -142,20 +162,27 @@
 
 # Output configuration
 # https://wayland.emersion.fr/kanshi/
-outputs = kanshi
+# SrcUX: off; Wayfire's own [output:...] sections and the stitched output own the
+# layout, and kanshi would fight them.
+# outputs = kanshi
 
 # Notifications
 # https://wayland.emersion.fr/mako/
-notifications = mako
+# SrcUX: off; the desktop session owns org.freedesktop.Notifications.
+# notifications = mako
 
 # Screen color temperature
 # https://sr.ht/~kennylevinsen/wlsunset/
-gamma = wlsunset
+# SrcUX: off; wlsunset is not part of the desktop. Install it and uncomment.
+# gamma = wlsunset
 
 # Idle configuration
 # https://github.com/swaywm/swayidle
 # https://github.com/swaywm/swaylock
-idle = swayidle before-sleep swaylock
+# SrcUX: off; swayidle and swaylock are not part of the desktop. Lock with
+# Super+Ctrl+L (wayfire-lock); the [idle] options below set the screensaver and
+# screen blanking (blanking is off by default).
+# idle = swayidle before-sleep swaylock
 
 # XDG desktop portal
 # Needed by some GTK applications
@@ -181,39 +208,45 @@
 binding_terminal = <super> KEY_ENTER
 command_terminal = alacritty
 
-# Start your launcher
-# https://hg.sr.ht/~scoopta/wofi
-# Note: Add mode=run or mode=drun to ~/.config/wofi/config.
-# You can also specify the mode with --show option.
-binding_launcher = <super> <shift> KEY_ENTER
-command_launcher = wofi
-
-# Screen locker
-# https://github.com/swaywm/swaylock
-binding_lock = <super> <shift> KEY_ESC
-command_lock = swaylock
-
-# Logout
-# https://github.com/ArtsyMacaw/wlogout
-binding_logout = <super> KEY_ESC
-command_logout = wlogout
+# SrcUX: Run box and application menu (the menu also holds the power actions).
+binding_run = <super> KEY_R
+command_run = wayfire-desktop-session --exec -- wayfire-run
+binding_menu = <super> KEY_SPACE
+command_menu = wayfire-desktop-session --exec -- wayfire-appmenu
+
+# SrcUX: cheat sheet of every binding.
+binding_keys = <super> KEY_K
+command_keys = wayfire-desktop-session --exec -- wayfire-keys
+
+# SrcUX: screen locker.
+binding_lock = <super> <ctrl> KEY_L
+command_lock = wayfire-lock
+
+# SrcUX: Files and Settings.
+binding_files = <super> <shift> KEY_F
+command_files = wayfire-desktop-session --exec -- wayfire-files-open
+binding_settings = <super> KEY_COMMA
+command_settings = wayfire-desktop-session --exec -- wayfire-settings
 
-# Screenshots
-# https://wayland.emersion.fr/grim/
-# https://wayland.emersion.fr/slurp/
+# SrcUX: screenshots and colour picker.
 binding_screenshot = KEY_PRINT
-command_screenshot = grim $(date '+%F_%T').webp
+command_screenshot = wayfire-screenshot focused-output --save
 binding_screenshot_interactive = <shift> KEY_PRINT
-command_screenshot_interactive = slurp | grim -g - $(date '+%F_%T').webp
+command_screenshot_interactive = wayfire-screenshot select
+binding_colour = <super> KEY_PRINT
+command_colour = hyprpicker -a
+
+# SrcUX: log out, suspend and power off from the menu's power actions (with confirmation).
+binding_logout = <super> KEY_ESC
+command_logout = wayfire-desktop-session --exec -- wayfire-appmenu
 
-# Volume controls
-# https://alsa-project.org
+# SrcUX: volume controls through WirePlumber instead of amixer.
 repeatable_binding_volume_up = KEY_VOLUMEUP
-command_volume_up = amixer set Master 5%+
+command_volume_up = wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+
 repeatable_binding_volume_down = KEY_VOLUMEDOWN
-command_volume_down = amixer set Master 5%-
+command_volume_down = wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
 binding_mute = KEY_MUTE
-command_mute = amixer set Master toggle
+command_mute = wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
 
 # Screen brightness
 # https://haikarainen.github.io/light/
@@ -225,11 +258,15 @@
 # Windows ──────────────────────────────────────────────────────────────────────
 
 # Actions related to window management functionalities.
+# SrcUX: fullscreen, maximize, show desktop and minimize are bound.
+[wm-actions]
+toggle_fullscreen = <super> KEY_F
+toggle_maximize = <super> <alt> KEY_F
+toggle_showdesktop = <super> KEY_D
+minimize = <super> KEY_N
 #
-# Example configuration:
+# More examples:
 #
-# [wm-actions]
-# toggle_fullscreen = <super> KEY_F
 # toggle_always_on_top = <super> KEY_X
 # toggle_sticky = <super> <shift> KEY_X
 
@@ -265,19 +302,40 @@
 
 # Switch to workspace.
 [vswitch]
-binding_left = <ctrl> <super> KEY_LEFT
+# SrcUX: Super+Alt+Left/Right and Super+(Shift+)Tab step through workspaces.
+binding_left = <super> <alt> KEY_LEFT | <super> <shift> KEY_TAB
 binding_down = <ctrl> <super> KEY_DOWN
 binding_up = <ctrl> <super> KEY_UP
-binding_right = <ctrl> <super> KEY_RIGHT
+binding_right = <super> <alt> KEY_RIGHT | <super> KEY_TAB
 # Move the focused window with the same key-bindings, but add Shift.
 with_win_left = <ctrl> <super> <shift> KEY_LEFT
 with_win_down = <ctrl> <super> <shift> KEY_DOWN
 with_win_up = <ctrl> <super> <shift> KEY_UP
 with_win_right = <ctrl> <super> <shift> KEY_RIGHT
+# SrcUX: Super+N goes to workspace N, Super+Shift+N takes the focused window along.
+binding_1 = <super> KEY_1
+binding_2 = <super> KEY_2
+binding_3 = <super> KEY_3
+binding_4 = <super> KEY_4
+binding_5 = <super> KEY_5
+binding_6 = <super> KEY_6
+binding_7 = <super> KEY_7
+binding_8 = <super> KEY_8
+binding_9 = <super> KEY_9
+with_win_1 = <super> <shift> KEY_1
+with_win_2 = <super> <shift> KEY_2
+with_win_3 = <super> <shift> KEY_3
+with_win_4 = <super> <shift> KEY_4
+with_win_5 = <super> <shift> KEY_5
+with_win_6 = <super> <shift> KEY_6
+with_win_7 = <super> <shift> KEY_7
+with_win_8 = <super> <shift> KEY_8
+with_win_9 = <super> <shift> KEY_9
 
 # Show the current workspace row as a cube.
 [cube]
-activate = <ctrl> <alt> BTN_LEFT
+# SrcUX: Super+Alt+C shows the cube from the keyboard.
+activate = <ctrl> <alt> BTN_LEFT | <super> <alt> KEY_C
 # Switch to the next or previous workspace.
 #rotate_left = <super> <ctrl> KEY_H
 #rotate_right = <super> <ctrl> KEY_L