Skip to content

Commit daaf20b

Browse files
committed
for_each: Do not automatically insert space
1 parent d59d37b commit daaf20b

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

DistroAgnostic/gnome/30gsettings.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ gsettings set org.gnome.settings-daemon.plugins.media-keys home "['<Super>e']"
2222
# Ptyxis and accent-color are not present on Ubuntu 24.04 - check and skip
2323
if gsettings get org.gnome.Ptyxis scrollbar-policy && gsettings get org.gnome.desktop.interface accent-color; then
2424

25-
for_each "gsettings set org.gnome.Ptyxis" << 'BASH'
25+
for_each "gsettings set org.gnome.Ptyxis " << 'BASH'
2626
restore-session "false"
2727
restore-window-size "false"
2828
scrollbar-policy "always"
2929
BASH
3030

31-
for_each "gsettings set org.gnome.Ptyxis.Shortcuts" << 'BASH'
31+
for_each "gsettings set org.gnome.Ptyxis.Shortcuts " << 'BASH'
3232
close-tab "<Control>w"
3333
move-next-tab "<Control>Tab"
3434
move-previous-tab "<Shift><Control>Tab"
@@ -44,13 +44,13 @@ BASH
4444
focus-tab-10 "<Control>0"
4545
BASH
4646

47-
for_each "gsettings set org.gnome.desktop.input-sources" << 'BASH'
47+
for_each "gsettings set org.gnome.desktop.input-sources " << 'BASH'
4848
per-window true
4949
sources "[('xkb', 'us'), ('xkb', 'sk+qwerty')]"
5050
xkb-options "['terminate:ctrl_alt_bksp', 'shift:both_capslock_cancel', 'caps:none']"
5151
BASH
5252

53-
for_each "gsettings set org.gnome.desktop.interface" << 'BASH'
53+
for_each "gsettings set org.gnome.desktop.interface " << 'BASH'
5454
# WARNING: text-scaling-factor can break Chromium (or other GTK apps) and cause
5555
# the app window to increase in size on refocus (due to floating point rounding
5656
# errors). Always set the value to decimal that can be represented as float without
@@ -76,7 +76,7 @@ BASH
7676

7777
fi # Ubuntu 24.04
7878

79-
for_each "gsettings set org.gnome.desktop.wm.keybindings" << 'BASH'
79+
for_each "gsettings set org.gnome.desktop.wm.keybindings " << 'BASH'
8080
# TODO rethink workspace switching keybindings
8181
# TODO add home row keybindings for workspaces 9 and 10
8282
always-on-top "['<Control><Super>space']"
@@ -109,7 +109,7 @@ for_each "gsettings set org.gnome.desktop.wm.keybindings" << 'BASH'
109109
toggle-fullscreen "['F11']"
110110
BASH
111111

112-
for_each "gsettings set org.gnome.desktop.wm.preferences" << 'BASH'
112+
for_each "gsettings set org.gnome.desktop.wm.preferences " << 'BASH'
113113
action-double-click-titlebar "toggle-maximize"
114114
action-middle-click-titlebar "lower" # 'minimize'
115115
auto-raise "true"
@@ -123,7 +123,7 @@ for_each "gsettings set org.gnome.desktop.wm.preferences" << 'BASH'
123123
workspace-names "['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11']"
124124
BASH
125125

126-
for_each "gsettings set org.gnome.shell.keybindings" << 'BASH'
126+
for_each "gsettings set org.gnome.shell.keybindings " << 'BASH'
127127
screenshot "['Print']"
128128
show-screenshot-ui "['<Shift><Super>s']"
129129
toggle-overview "['<Control><Alt><Super>o']"

DistroAgnostic/gnome/40extensions_gsettings.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export GSETTINGS_SCHEMA_DIR="${SCHDIR}"
1313
# 2. All keys in a specific for_each block are sorted alphabetically
1414

1515
16-
for_each "gsettings set org.gnome.shell.extensions.clipboard-history" << 'BASH'
16+
for_each "gsettings set org.gnome.shell.extensions.clipboard-history " << 'BASH'
1717
cache-size "1000"
1818
display-mode "1"
1919
history-size "10000"
@@ -26,7 +26,7 @@ for_each "gsettings set org.gnome.shell.extensions.clipboard-history" << 'BASH'
2626
BASH
2727

2828
29-
for_each "gsettings set org.gnome.shell.extensions.dash-to-dock" << 'BASH'
29+
for_each "gsettings set org.gnome.shell.extensions.dash-to-dock " << 'BASH'
3030
always-center-icons "true"
3131
animation-time "0.01"
3232
click-action "previews"
@@ -49,23 +49,23 @@ for_each "gsettings set org.gnome.shell.extensions.dash-to-dock" << 'BASH'
4949
BASH
5050

5151
# focus-changer@heartmire
52-
for_each "gsettings set org.gnome.shell.extensions.focus-changer" << 'BASH'
52+
for_each "gsettings set org.gnome.shell.extensions.focus-changer " << 'BASH'
5353
focus-down "['<Shift><Control><Alt><Super>Down']"
5454
focus-left "['<Shift><Control><Alt><Super>Left']"
5555
focus-right "['<Shift><Control><Alt><Super>Right']"
5656
focus-up "['<Shift><Control><Alt><Super>Up']"
5757
BASH
5858

5959
# [email protected]@gmail.com
60-
for_each "gsettings set org.gnome.shell.extensions.panelScroll" << 'BASH'
60+
for_each "gsettings set org.gnome.shell.extensions.panelScroll " << 'BASH'
6161
debounce "0"
6262
left "workspace"
6363
right "workspace"
6464
wrap "false"
6565
BASH
6666

6767
68-
for_each "gsettings set org.gnome.shell.extensions.quake-terminal" << 'BASH'
68+
for_each "gsettings set org.gnome.shell.extensions.quake-terminal " << 'BASH'
6969
always-on-top "true"
7070
animation-time "0"
7171
auto-hide-window "false"
@@ -75,7 +75,7 @@ for_each "gsettings set org.gnome.shell.extensions.quake-terminal" << 'BASH'
7575
BASH
7676

7777
78-
for_each "gsettings set org.gnome.shell.extensions.system-monitor-next-applet" << 'BASH'
78+
for_each "gsettings set org.gnome.shell.extensions.system-monitor-next-applet " << 'BASH'
7979
cpu-system-color "#c01c28ff"
8080
rotate-labels "true"
8181
show-tooltip "true"
@@ -85,7 +85,7 @@ BASH
8585
if gsettings get org.gnome.shell.extensions.tiling-assistant focus-hint; then
8686

8787
88-
for_each "gsettings set org.gnome.shell.extensions.tiling-assistant" << 'BASH'
88+
for_each "gsettings set org.gnome.shell.extensions.tiling-assistant " << 'BASH'
8989
dynamic-keybinding-behavior "0"
9090
enable-advanced-experimental-features "true"
9191
enable-tiling-popup "false"
@@ -101,7 +101,7 @@ BASH
101101
fi # Ubuntu 24.04 CI
102102

103103
104-
for_each "gsettings set org.gnome.shell.extensions.tilingshell" << 'BASH'
104+
for_each "gsettings set org.gnome.shell.extensions.tilingshell " << 'BASH'
105105
enable-move-keybindings "false"
106106
107107
# TODO - this setting probably also sets and unsets stuff in org.gnome.mutter -
@@ -112,17 +112,17 @@ for_each "gsettings set org.gnome.shell.extensions.tilingshell" << 'BASH'
112112
BASH
113113

114114
115-
for_each "gsettings set org.gnome.shell.extensions.vitals" << 'BASH'
115+
for_each "gsettings set org.gnome.shell.extensions.vitals " << 'BASH'
116116
fixed-widths "false"
117117
BASH
118118

119119
# window-title-is-back@fthx
120-
for_each "gsettings set org.gnome.shell.extensions.window-title-is-back" << 'BASH'
120+
for_each "gsettings set org.gnome.shell.extensions.window-title-is-back " << 'BASH'
121121
fixed-width "false"
122122
BASH
123123

124124
125-
for_each "gsettings set org.gnome.shell.extensions.workspaces-indicator-by-open-apps" << 'BASH'
125+
for_each "gsettings set org.gnome.shell.extensions.workspaces-indicator-by-open-apps " << 'BASH'
126126
indicator-show-background "true"
127127
scroll-enable "false"
128128
BASH

prelude.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

3+
# TODO write a naming convention and set up shfmt accordingly
34
# TODO make this into the library so that the
45
# testing of distro version can be used in if/else
56
#
@@ -174,7 +175,7 @@ if [[ "${__INITPC_PRELUDE_SOURCED__}" != "true" ]]; then
174175
while read -r line; do # Read a line and strip leading and trailing spaces
175176
# Skip empty lines and comments
176177
[[ "$line" =~ ^[[:space:]]*(#|$) ]] && continue
177-
bash -cx "$prefix $line"
178+
bash -cx "$prefix$line"
178179
done
179180
set -x
180181
}

0 commit comments

Comments
 (0)