-
Notifications
You must be signed in to change notification settings - Fork 0
/
s_distro_gnome
executable file
·143 lines (116 loc) · 8.48 KB
/
s_distro_gnome
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
#!/usr/bin/env bash
# Bin is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Bin is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Bin. If not, see <https://www.gnu.org/licenses/>.
# gsettings list-recursively | grep WORD
# gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings
# DEBUG OPTIONS
set -euo pipefail
# SWITCH
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Super>1']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['<Super>2']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "['<Super>3']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "['<Super>4']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 "['<Super>5']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-6 "['<Super>6']"
gsettings set org.gnome.desktop.wm.keybindings cycle-windows "['<Super>z']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['<Super>b']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['<Super>f']"
# MOVE
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-1 "['<Super><Shift>1']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-2 "['<Super><Shift>2']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-3 "['<Super><Shift>3']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-4 "['<Super><Shift>4']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-5 "['<Super><Shift>5']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-6 "['<Super><Shift>6']"
# VOLUME
gsettings set org.gnome.settings-daemon.plugins.media-keys volume-step 3
gsettings set org.gnome.settings-daemon.plugins.media-keys volume-up "['<Ctrl><Super>w']"
gsettings set org.gnome.settings-daemon.plugins.media-keys volume-down "['<Ctrl><Super>s']"
gsettings set org.gnome.settings-daemon.plugins.media-keys volume-mute "['<Ctrl><Super>e']"
gsettings set org.gnome.settings-daemon.plugins.media-keys mic-mute "['<Alt><Super>q']"
# MEDIA
gsettings set org.gnome.settings-daemon.plugins.media-keys next "['<Shift><Super>d']"
gsettings set org.gnome.settings-daemon.plugins.media-keys previous "['<Shift><Super>a']"
gsettings set org.gnome.settings-daemon.plugins.media-keys play "['<Alt><Super>e']"
gsettings set org.gnome.settings-daemon.plugins.media-keys previous "['<Alt><Super>a']"
gsettings set org.gnome.settings-daemon.plugins.media-keys next "['<Alt><Super>d']"
gsettings set org.gnome.settings-daemon.plugins.media-keys volume-step 2
gsettings set org.gnome.settings-daemon.plugins.media-keys screenreader "['<Super><Alt>t']"
# SOUND
gsettings set org.gnome.desktop.wm.preferences audible-bell false
gsettings set org.gnome.desktop.sound allow-volume-above-100-percent true
gsettings set org.gnome.desktop.sound event-sounds false
gsettings set org.gnome.settings-daemon.plugins.media-keys screen-brightness-up "['<Ctrl><Super>a']"
gsettings set org.gnome.settings-daemon.plugins.media-keys screen-brightness-down "['<Ctrl><Super>d']"
# THEMES
#gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'
#gsettings set org.gnome.desktop.interface icon-theme 'Adwaita'
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
gsettings set org.gnome.desktop.background show-desktop-icons false
gsettings set org.gnome.desktop.interface enable-animations false
# POWER
gsettings set org.gnome.settings-daemon.plugins.power idle-dim false
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing'
gsettings set org.gnome.settings-daemon.plugins.power power-button-action suspend
# gsettings set org.gnome.settings-daemon.plugins.xrandr default-monitors-setup do-nothing
# MISC
gsettings set org.gnome.desktop.calendar show-weekdate true
gsettings set org.gnome.desktop.interface enable-hot-corners false
gsettings set org.gnome.desktop.interface show-battery-percentage true
gsettings set org.gnome.desktop.interface clock-show-weekday true
gsettings set org.gnome.desktop.wm.preferences num-workspaces 5
gsettings set org.gnome.desktop.wm.preferences workspace-names "['emacs','read', 'term','www', 'media']"
gsettings set org.gnome.desktop.wm.keybindings toggle-maximized "['<Super>m']"
gsettings set org.gnome.desktop.wm.keybindings panel-run-dialog "['<Super><Alt>x']"
gsettings set org.gnome.desktop.wm.keybindings toggle-fullscreen "['<Super><Alt>f']"
gsettings set org.gnome.desktop.wm.keybindings close "['<Super><Alt>c']"
gsettings set org.gnome.desktop.wm.preferences auto-raise 'true'
gsettings set org.gnome.desktop.wm.preferences focus-new-windows 'smart'
gsettings set org.gnome.desktop.peripherals.mouse natural-scroll false
gsettings set org.gnome.desktop.peripherals.mouse left-handed true
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false
gsettings set org.gnome.desktop.lockdown disable-lock-screen false
gsettings set org.gnome.shell.app-switcher current-workspace-only true
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true
#gsettings set org.gnome.system.locale region "pt_BR.UTF-8"
#gsettings set org.gnome.desktop.input-sources mru-sources "[('xkb', 'br'),
#('xkb', 'us')]"
#gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('xkb',
#'br')]"
# APPS
# gsettings set org.gnome.Evince.Default fullscreen 'true'
# gsettings set org.gnome.Evince.Default show-sidebar 'false'
# gsettings set org.gnome.Evince.Default show-toolbar 'false'
# CUSTOM BINDINGS
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom4/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom5/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom6/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom7/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom8/','/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom9/']"
DMENU=('dmenu_run -fn "-xos4-terminus-medium-r-*-*-14-*"' 'dmenu' "<Super>x")
PLAYER_DOWN=('playerctl volume 0.1-' 'player_down' "<Super><Alt>s")
PLAYER_UP=('playerctl volume 0.1+' 'player_up' "<Super><Alt>w")
PLAYER_UP=('playerctl volume 0.1+' 'player_up' "<Super><Alt>w")
BRIGTH_UP=('playerctl volume 0.1+' 'player_up' "<Super><Alt>w")
BRIGTH_DOWN=('playerctl volume 0.1+' 'player_up' "<Super><Alt>w")
var=0
bindings=(DMENU[@] PLAYER_DOWN[@] PLAYER_UP[@])
for foo in "${bindings[@]}"; do
entry=("${!foo}")
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom$var/ command "${entry[0]}"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom$var/ name "${entry[1]}"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom$var/ binding "${entry[2]}"
var=$((var + 1))
done
# EXTENSIONS
gsettings set org.gnome.shell enabled-extensions "org.gnome.shell enabled-extensions ['[email protected]', 'freon@UshakovVasilii_Github.yahoo.com', '[email protected]']"
gsettings set org.gnome.shell.extensions.auto-move-windows application-list "['firefox_firefox.desktop:4', 'thunderbird_thunderbird.desktop:4', 'org.gnome.Terminal.desktop:3', 'mpv.desktop:5', 'thunderbird.desktop:4', 'emacs.desktop:1']"
#gsettings set org.gnome.rhythmbox.plugins.alternative_toolbar volume-control true