-
Notifications
You must be signed in to change notification settings - Fork 0
/
.shrc
314 lines (277 loc) · 18.7 KB
/
.shrc
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
# prompt
gitrepo() {
echo "$(git remote -v 2>/dev/null | grep "(fetch)" | awk -F'\t' '{print $1}')"/"$(git branch 2>/dev/null | grep -e '\* ' | sed 's/^..\(.*\)/\1/')"
}
COLOR_RESET="$({ exists tput && tput sgr0; } 2>/dev/null || printf '\033[0m')"
COLOR_BBLACK="$({ exists tput && tput bold && tput setaf 1; } 2>/dev/null || printf '\033[1;30m')"
COLOR_BRED="$({ exists tput && tput bold && tput setaf 1; } 2>/dev/null || printf '\033[1;31m')"
COLOR_BGREEN="$({ exists tput && tput bold && tput setaf 2; } 2>/dev/null || printf '\033[1;32m')"
COLOR_BYELLOW="$({ exists tput && tput bold && tput setaf 3; } 2>/dev/null || printf '\033[1;33m')"
COLOR_BBLUE="$({ exists tput && tput bold && tput setaf 6; } 2>/dev/null || printf '\033[1;34m')"
COLOR_BPURPLE="$({ exists tput && tput bold && tput setaf 6; } 2>/dev/null || printf '\033[1;35m')"
COLOR_BCYAN="$({ exists tput && tput bold && tput setaf 6; } 2>/dev/null || printf '\033[1;36m')"
COLOR_BWHITE="$({ exists tput && tput bold && tput setaf 6; } 2>/dev/null || printf '\033[1;37m')"
# PS1=$(echo "\n$COLOR_BBLUE\$(git status -s 2> /dev/null)$COLOR_RESET\n $COLOR_BGREEN·$COLOR_RESET $COLOR_BYELLOW\$(echo $USER)$COLOR_RESET $COLOR_BRED\$(gitrepo)$COLOR_RESET $COLOR_BCYAN\$(pwd | sed "s:${HOME}:~:g")$COLOR_RESET\n · ")
# # zsh
# precmd() {
# PS1=$(echo -e "\n$COLOR_BBLUE$(git status -s 2> /dev/null)$COLOR_RESET\n $COLOR_BGREEN·$COLOR_RESET $COLOR_BYELLOW$(echo $USER)$COLOR_RESET $COLOR_BRED$(gitrepo)$COLOR_RESET $COLOR_BCYAN$(pwd | sed s:${HOME}:~:g)$COLOR_RESET\n · ")
# }
# export PATH="$PATH:/var/lib/flatpak/exports/bin"
export PATH="$PATH:$HOME/.local/bin"
# export PATH="$PATH:/usr/sbin"
# export PATH="$PATH:/usr/bin"
# export PATH="$PATH:/sbin"
# export PATH="$PATH:/bin"
export NIXPKGS_ALLOW_UNFREE=1
export NP_RUNTIME=bwrap
export BEMENU_OPTS='-i -l 20 --fb "#24273a" --ff "#cad3f5" --nb "#24273a" --nf "#cad3f5" --tb "#24273a" --hb "#24273a" --tf "#ed8796" --hf "#eed49f" --nf "#cad3f5" --af "#cad3f5" --ab "#24273a"'
# export GPG_TTY=$(tty)
export ANDROID_HOME='/storage/emulated/0'
# alias sway='WLR_RENDERER=vulkan WLR_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1 sway'
alias xwayland="env -u WAYLAND_DISPLAY"
alias grubupdate="sudo grub-mkconfig -o /boot/grub/grub.cfg"
alias killwindows="ps -aux | grep windows | awk -Fa '{ print $2 }' | awk -F0.0 '{ print $1 }' | xargs kill -9"
alias setup-distrobox='curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sh -s -- --prefix ~/.local'
tb() {
if [ "$#" -eq 0 ]; then
container_name="my-distrobox"
else
container_name="$1"
fi
if [ "$#" -eq 2 ]; then
distrobox ls | awk -F'|' '{printf $2}' | grep "$container_name" || rm -rf "$HOME/.local/share/containers/homes/$container_name"
mkdir -p "$HOME/.local/share/containers/homes/$container_name"
distrobox ls | awk -F'|' '{printf $2}' | grep "$container_name" || distrobox create --no-entry -H "$HOME/.local/share/containers/homes/$container_name" -n "$container_name"
distrobox enter "$container_name"
else
distrobox ls | awk -F'|' '{printf $2}' | grep "$container_name" || rm -rf "$HOME/.local/share/containers/homes/$container_name"
mkdir -p "$HOME/.local/share/containers/homes/$container_name"
distrobox ls | awk -F'|' '{printf $2}' | grep "$container_name" || distrobox create -i archlinux:latest --no-entry --unshare-all --init --additional-packages "systemd docker docker-compose" -H "$HOME/.local/share/containers/homes/$container_name" --init-hooks "sudo usermod --add-subuids 10000-65536 $USER && sudo usermod --add-subgids 10000-65536 $USER" -n "$container_name"
distrobox enter "$container_name"
fi
}
tb-setup() {
if command -v pacman > /dev/null 2>&1; then
# workspace
sudo pacman-key --init && sudo pacman -Syyuu archlinux-keyring --noconfirm && sudo pacman -S git wl-clipboard neovim chromium --noconfirm
# nix
mkdir -p $HOME/.config/nix
echo 'experimental-features = nix-command flakes' > $HOME/.config/nix/nix.conf
echo 'http-download-buffer-size = 5368709120' >> $HOME/.config/nix/nix.conf
sh <(curl -L https://nixos.org/nix/install) --daemon --yes
# aur-helper
sudo pacman -Sy --needed --noconfirm base-devel && sudo pacman -Sy git --noconfirm && git clone https://aur.archlinux.org/paru-bin.git paru && cd paru && makepkg -si --noconfirm && cd .. && rm paru/ -rf
else
sudo dnf update -y && sudo dnf install wl-clipboard neovim chromium -y
# nix-portable
mkdir -p $HOME/.local/bin && curl -L https://github.com/DavHau/nix-portable/releases/latest/download/nix-portable-$(uname -m) > $HOME/.local/bin/nix-portable && chmod +x $HOME/.local/bin/nix-portable
fi
# repo
CURRENT_DIR=$(pwd)
mkdir -p $HOME/.config
cd $HOME/.config
git init
git remote add origin https://github.com/iruzo/dot
git fetch
git checkout origin/main
cd $HOME
echo "" >> $HOME/.bashrc && echo "source $HOME/.config/.shrc" >> $HOME/.bashrc
# remove default PS1 from $HOME/.bashrc
sed -i '/PS1/d' "$HOME/.bashrc"
cd $CURRENT_DIR
}
alias setup-termux='echo "source $HOME/.config/.shrc" > $HOME/.bashrc && pkg install neovim termux-api'
alias setup-fonts-symbols='rm -rf ~/.local/share/fonts && mkdir -p ~/.local/share/fonts && curl https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/NerdFontsSymbolsOnly.zip -o ~/.local/share/fonts/NerdFontsSymbolsOnly.zip && cd ~/.local/share/fonts && unzip NerdFontsSymbolsOnly.zip && rm NerdFontsSymbolsOnly.zip && fc-cache -f -v && fc-list | grep NerdFont'
e() {
nvim "$@" || flatpak run io.neovim.nvim "$@" || vim "$@" || vi "$@"
}
alias v='e'
alias d='dash'
alias ..='cd ..'
alias cal='cal -m'
alias grep='grep -i --color=auto'
alias dd='dd status=progress'
alias curl='curl -L'
alias ls='ls --color=auto'
alias ll='ls --color=auto -lahF'
alias ff='coincidence=$(find . 2>/dev/null | BEMENU_BACKEND=curses bemenu); if [ -f $coincidence ]; then $EDITOR $coincidence; else cd $coincidence; fi'
alias fh='coincidence=$(find ~ 2>/dev/null | BEMENU_BACKEND=curses bemenu); if [ -f $coincidence ]; then $EDITOR $coincidence; else cd $coincidence; fi'
alias fg='coincidence=$(find / 2>/dev/null | BEMENU_BACKEND=curses bemenu); if [ -f $coincidence ]; then $EDITOR $coincidence; else cd $coincidence; fi'
alias monitor-mem='ps axch -o cmd:15,rss --sort=-rss | numfmt --from-unit=1024 --to=iec --field 2 2> /dev/null'
alias monitor-mempercent='ps axch -o cmd:15,%mem --sort=-%mem'
alias monitor-cpu='ps axch -o cmd:15,%cpu --sort=-%cpu'
alias reload-cache-fonts='fc-cache -fv'
alias weather='curl "wttr.in/a-coruna?format=\"%t(%C)\"" && echo'
alias publicip='curl ipinfo.io/json'
alias createswap='sudo fallocate -l 16G /swap && sudo chmod 600 /swap && sudo mkswap /swap && sudo swapon /swap'
alias enableswap='sudo swapon /swap'
alias port_listen='sudo netstat -tunlp'
alias edit_crontab='sudo crontab -e'
alias clean_chromium='rm -rf $HOME/.config/chromium 2> /dev/null && rm -rf XDG_CONFIG_HOME/chromium 2> /dev/null && rm -rf $HOME/.cache/chromium 2> /dev/null'
alias container_filebrowser_public='podman run -d --rm --name public-filebrowser -v $HOME/Public/:/srv:z -p 30002:80 filebrowser/filebrowser:latest'
alias umount-ssh='fusermount -u'
alias umount-usb='udisksctl umount -b'
alias eject-usb='udisksctl power-off -b'
alias bt-connect-headphones="bluetoothctl devices | grep 'SH03' | awk -F' ' '{printf \$2}' | xargs bluetoothctl connect"
alias bt-disconnect-headphones="bluetoothctl devices | grep 'SH03' | awk -F' ' '{printf \$2}' | xargs bluetoothctl disconnect"
alias bt-connect-trackpad="bluetoothctl devices | grep 'Magic Trackpad' | awk -F' ' '{printf \$2}' | xargs bluetoothctl connect"
alias bt-disconnect-trackpad="bluetoothctl devices | grep 'Magic Trackpad' | awk -F' ' '{printf \$2}' | xargs bluetoothctl disconnect"
alias android-fastboot-flash='sudo fastboot flash recovery' # param: recovery.img
alias android-fastboot-reboot='sudo fastboot reboot'
alias android-sdb-startserver='sudo adb start-server'
alias android-adb-sideload='sudo adb sideload'
alias android-podman-fastboot-flash='sudo podman run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb:z -v ./Downloads:/app:z mparker17/fastboot flash recovery /app/recovery.img' # then reboot with Volume Up + Power button, keep until the logo appear on the screen
alias android-podman-adb-sideload='sudo podman run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb:z -v ./Downloads:/app:z catmasterlim/adb adb -d sideload /app/lineage-21.0-20241006-nightly-apollon-signed.zip'
alias png2webp='for file in *.png; do convert -quality 100 "$file" "${file%.png}.webp"; done'
alias compresspdf='gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dQUIET -dDetectDuplicateImages -dCompressFonts=true -r150 -o output.pdf'
delete_empty_dirs() {
local directorio=$1
find "$directorio" -mindepth 1 -type d -print0 | sort -rz | while IFS= read -r -d $'\0' dir; do
local num_archivos=$(find "$dir" -mindepth 1 -type f | wc -l)
if [ "$num_archivos" -eq 0 ]; then
echo "Eliminando directorio vacío: $dir"
rmdir "$dir"
fi
done
}
fetch() {
# host
echo $(echo "${COLOR_BCYAN}Γ host:${COLOR_RESET}" ) $(/bin/sh -c "cat /etc/hostname")
# distro
echo $(echo "${COLOR_BCYAN}| distro:${COLOR_RESET}" ) $(/bin/sh -c "cat /etc/os-release | grep -oP '(?<=PRETTY_NAME=\").*(?=\")'")
# kernel
echo $(echo "${COLOR_BCYAN}| kernel:${COLOR_RESET}" ) $(uname -r)
# shell
echo $(echo "${COLOR_BGREEN}| shell:${COLOR_RESET}" ) $(echo $SHELL)
# terminal
echo $(echo "${COLOR_BGREEN}| terminal:${COLOR_RESET}" ) $(echo $TERM)
# product
echo $(echo "${COLOR_BPURPLE}| product:${COLOR_RESET}") $(/bin/sh -c "cat /sys/devices/virtual/dmi/id/product_name")
# bios
echo $(echo "${COLOR_BPURPLE}| bios:${COLOR_RESET}") $(/bin/sh -c "cat /sys/devices/virtual/dmi/id/bios_version")
# cpu
echo $(echo "${COLOR_BPURPLE}| cpu:${COLOR_RESET}" ) $(/bin/sh -c "cat /proc/cpuinfo" | grep -m1 "model name" | awk -F': ' '{print $2}') "("$(/bin/sh -c "cat /proc/cpuinfo" | grep "model name" | wc -l)" cores)"
# gpu
lspci 2> /dev/null | grep -q -wi VGA && echo $(echo "${COLOR_BPURPLE}| gpu:${COLOR_RESET}" ) $(lspci | grep VGA)
lspci 2> /dev/null | grep -q -wi Display && echo $(echo "${COLOR_BPURPLE}| gpu:${COLOR_RESET}" ) $(lspci | grep Display)
# status
echo $(echo "${COLOR_BRED}| temp:${COLOR_RESET}" ) $(($(/bin/sh -c "cat /sys/class/thermal/thermal_zone0/temp" 2> /dev/null || echo 1) / 1000))°C
echo $(echo "${COLOR_BRED}| cpu:${COLOR_RESET}" ) $(top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}')%
echo $(echo "${COLOR_BRED}| mem:${COLOR_RESET}" ) $(free -m | awk 'NR==2{printf "%.2f%%\t\t", $3*100/$2 }')
echo $(echo "${COLOR_BRED}| disk:${COLOR_RESET}" ) $(df -h 2> /dev/null | awk '$NF=="/"{printf "%s\t\t", $5}')
echo $(echo "${COLOR_BBLUE}| mic:${COLOR_RESET}" ) $(pactl -v 2> /dev/null && pactl get-source-mute @DEFAULT_SOURCE@ || wpctl get-volume @DEFAULT_AUDIO_SOURCE@ 2> /dev/null | grep -q "MUTED" && echo "muted" || echo "unmuted")
echo $(echo "${COLOR_BBLUE}| vol:${COLOR_RESET}" ) $(pactl -v 2> /dev/null && pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '(?<=front-left: ).*(?=front-right: )' | grep -oP '(?<=/ ).*(?= /)' | awk -F': ' '{printf $2}' || wpctl get-volume @DEFAULT_AUDIO_SINK@ 2> /dev/null | awk -F': ' '{printf $2}')
echo $(echo "${COLOR_BYELLOW}| bat:${COLOR_RESET}" ) $(/bin/sh -c "cat /sys/class/power_supply/BAT0/capacity")%
# uptime
echo $(echo "${COLOR_BYELLOW}| uptime:${COLOR_RESET}" ) $(uptime | awk -F',' '{print $1}' | awk -F' ' '{print $NF}')
# date and cal
echo "${COLOR_BYELLOW}L $(date) ${COLOR_RESET}" && (cal --color=always | sed 's/^/ /')
}
superstatus() {
for folder in $(find . -type d -name .git); do (cd ${folder/.git/} && git status -s 2> /dev/null) | awk -F'.' '{print "['$folder']", $0}'; done
}
supergitgrep() {
git grep "$@" $(git rev-list --all)
}
supergitfileremove() {
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch $@" --prune-empty --tag-name-filter cat -- --all
}
supergitstringremove() {
git filter-branch --tree-filter 'git grep -l $@ | xargs sed -i "" -e "s/$@//g"' -- --all
}
termbin() {
# if no args are passed, read stdin to check if they come from pipe
if [ $# = 0 ]; then
while read x
do
args="$args\n$x"
done
else
args=$@
# if args is a file, cat the content of that file into args
if [ -f "$args" ]; then
file="$args"
args=""
while read l
do
args="$args\n$l"
done < $file
fi
fi
echo $args | nc termbin.com 9999
}
setup-gnome-keybindings() {
# set the default number of workspaces
gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.desktop.wm.preferences num-workspaces 10
# move and resize with super + click
gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true
# focus always on mouse
gsettings set org.gnome.desktop.wm.preferences focus-mode 'sloppy'
if [ $# -eq 0 ]; then
# Reset media-keys custom keybindings to default
gsettings reset-recursively org.gnome.settings-daemon.plugins.media-keys
# Reset shell keybindings to default
gsettings reset-recursively org.gnome.shell.keybindings
fi
# Clear existing custom keybindings
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "[]"
# Set custom keybindings
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/' \
]"
# Keybinding for nvim-qt
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name 'Open nvim'
# gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command "toolbox run --container default /bin/sh -c \"XDG_CONFIG_HOME=$HOME/.config HOME=$HOME/Desktop/.tb/default /bin/bash --rcfile $HOME/.config/.shrc -c 'nvim-qt --maximized'\""
# gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command "gnome-terminal --window --maximize -- toolbox run --container default /bin/sh -c \"XDG_CONFIG_HOME=$HOME/.config HOME=$HOME/Desktop/.tb/default /bin/bash --rcfile $HOME/.config/.shrc -c nvim\""
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command 'ptyxis -- distrobox enter -- nvim'
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding "'<Super>d'"
# Keybinding for Default Terminal
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name 'Open Terminal'
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command 'ptyxis --new-window'
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding "'<Super>Return'"
# Keybinding for Nautilus
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/ name 'Open Nautilus'
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/ command 'nautilus --no-default-window --browser'
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/ binding "'<Super>e'"
# Keybinding for maximizing the focused window
gsettings set org.gnome.desktop.wm.keybindings maximize "['<Super>f']"
# Keybinding for closing the focused window
gsettings set org.gnome.desktop.wm.keybindings close "['<Super>c']"
# Remove default keybindings
gsettings set org.gnome.shell.keybindings switch-to-application-1 "[]"
gsettings set org.gnome.shell.keybindings switch-to-application-2 "[]"
gsettings set org.gnome.shell.keybindings switch-to-application-3 "[]"
gsettings set org.gnome.shell.keybindings switch-to-application-4 "[]"
gsettings set org.gnome.shell.keybindings switch-to-application-5 "[]"
gsettings set org.gnome.shell.keybindings switch-to-application-6 "[]"
gsettings set org.gnome.shell.keybindings switch-to-application-7 "[]"
gsettings set org.gnome.shell.keybindings switch-to-application-8 "[]"
gsettings set org.gnome.shell.keybindings switch-to-application-9 "[]"
# Keybindings for switching to workspaces
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 switch-to-workspace-7 "['<Super>7']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-8 "['<Super>8']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-9 "['<Super>9']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-10 "['<Super>0']"
# Keybindings for moving windows to workspaces
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']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-7 "['<Super><Shift>7']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-8 "['<Super><Shift>8']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-9 "['<Super><Shift>9']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-10 "['<Super><Shift>0']"
# Keybinding for changing windows
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Super>Tab']"
}