Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/dotfiles
Path: blob/master/linux/files/popshell_rebuild.sh
245 views
1
set -xe
2
3
# Build and install extension
4
make all
5
make install
6
7
left="h"
8
down="j"
9
up="k"
10
right="l"
11
12
KEYS_GNOME_WM=/org/gnome/desktop/wm/keybindings
13
KEYS_GNOME_SHELL=/org/gnome/shell/keybindings
14
KEYS_MUTTER=/org/gnome/mutter/keybindings
15
KEYS_MEDIA=/org/gnome/settings-daemon/plugins/media-keys
16
17
# Disable incompatible shortcuts
18
# Restore the keyboard shortcuts: disable <Super>Escape
19
dconf write /org/gnome/mutter/wayland/keybindings/restore-shortcuts "@as []"
20
# Hide window: disable <Super>h
21
dconf write ${KEYS_GNOME_WM}/minimize "@as ['<Super>comma']"
22
# Open the application menu: disable <Super>m
23
dconf write ${KEYS_GNOME_SHELL}/open-application-menu "@as []"
24
# Toggle message tray: disable <Super>m
25
dconf write ${KEYS_GNOME_SHELL}/toggle-message-tray "@as ['<Super>v']"
26
# Switch to workspace left: disable <Super>Left
27
dconf write ${KEYS_GNOME_WM}/switch-to-workspace-left "@as []"
28
# Switch to workspace right: disable <Super>Right
29
dconf write ${KEYS_GNOME_WM}/switch-to-workspace-right "@as []"
30
31
# Super + direction keys, move window left and right monitors, or up and down workspaces
32
# Move window one monitor to the left
33
dconf write ${KEYS_GNOME_WM}/move-to-monitor-left "['<Shift><Super>Left','<Shift><Super>${left}']"
34
# Move window one workspace down
35
dconf write ${KEYS_GNOME_WM}/move-to-workspace-down "['<Shift><Super>Down','<Shift><Super>${down}']"
36
# Move window one workspace up
37
dconf write ${KEYS_GNOME_WM}/move-to-workspace-up "['<Shift><Super>Up','<Shift><Super>${up}']"
38
# Move window one monitor to the right
39
dconf write ${KEYS_GNOME_WM}/move-to-monitor-right "['<Shift><Super>Right','<Shift><Super>${right}']"
40
41
# Super + Ctrl + direction keys, change workspaces, move focus between monitors
42
# Move to workspace below
43
dconf write ${KEYS_GNOME_WM}/switch-to-workspace-down "['<Primary><Super>Down','<Primary><Super>${down}']"
44
# Move to workspace above
45
dconf write ${KEYS_GNOME_WM}/switch-to-workspace-up "['<Primary><Super>Up','<Primary><Super>${up}']"
46
47
# Disable tiling to left / right of screen
48
dconf write ${KEYS_MUTTER}/toggle-tiled-left "@as []"
49
dconf write ${KEYS_MUTTER}/toggle-tiled-right "@as []"
50
51
# Toggle maximization state
52
dconf write ${KEYS_GNOME_WM}/toggle-maximized "['<Super>f']"
53
# Lock screen
54
dconf write ${KEYS_MEDIA}/screensaver "['<Super>Escape']"
55
# Home folder
56
dconf write ${KEYS_MEDIA}/home "@as []"
57
# Launch email client
58
dconf write ${KEYS_MEDIA}/email "@as []"
59
# Launch web browser
60
dconf write ${KEYS_MEDIA}/www "@as []"
61
# Rotate Video Lock
62
dconf write ${KEYS_MEDIA}/rotate-video-lock-static "@as []"
63
64
# Close Window
65
dconf write ${KEYS_GNOME_WM}/close "['<Shift><Super>q']"
66
67
# Use a window placement behavior which works better for tiling
68
gnome-extensions enable native-window-placement
69
70
# Enable extension
71
make enable
72
73
make restart-shell
74
make listen
75
76