Move to Federated Gitea
This commit is contained in:
36
gnome/gnome-extensions.sh
Executable file
36
gnome/gnome-extensions.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source "$SCRIPT_DIR/../utils.sh"
|
||||
|
||||
PYTHON="$(which python3)"
|
||||
|
||||
install_packages python-pipx gnome-shell-extensions
|
||||
|
||||
# Install or reinstall gext if missing or broken
|
||||
if ! ~/.local/bin/gext --version &> /dev/null; then
|
||||
echo "gext missing or broken, reinstalling..."
|
||||
pipx uninstall gnome-extensions-cli 2>/dev/null || true
|
||||
pipx install --python "$PYTHON" gnome-extensions-cli --system-site-packages
|
||||
fi
|
||||
|
||||
EXTENSIONS=(
|
||||
"tilingshell@ferrarodomenico.com"
|
||||
)
|
||||
|
||||
echo "Detected GNOME Shell version: $(gnome-shell --version)"
|
||||
|
||||
for ext in "${EXTENSIONS[@]}"; do
|
||||
if ~/.local/bin/gext list | grep -q "$ext"; then
|
||||
echo "Extension already installed: $ext"
|
||||
continue
|
||||
fi
|
||||
|
||||
echo "Installing extension: $ext..."
|
||||
~/.local/bin/gext install "$ext"
|
||||
~/.local/bin/gext enable "$ext"
|
||||
echo " Installed and enabled: $ext"
|
||||
done
|
||||
|
||||
# Load settings from dconf file
|
||||
dconf load /org/gnome/shell/extensions/ < "$SCRIPT_DIR/gnome-settings.dconf"
|
||||
9
gnome/gnome-settings.dconf
Normal file
9
gnome/gnome-settings.dconf
Normal file
@@ -0,0 +1,9 @@
|
||||
[tilingshell]
|
||||
enable-autotiling=true
|
||||
enable-window-border=false
|
||||
last-version-name-installed='16.4'
|
||||
layouts-json='[{"id":"Layout 2","tiles":[{"x":0,"y":0,"width":0.333203125,"height":1,"groups":[1]},{"x":0.333203125,"y":0,"width":0.3335937500000003,"height":1,"groups":[2,1]},{"x":0.666796875,"y":0,"width":0.33320312500000004,"height":1,"groups":[2]}]},{"id":"17750231","tiles":[{"x":0,"y":0,"width":1,"height":1,"groups":[]}]},{"id":"18652208","tiles":[{"x":0,"y":0,"width":0.5,"height":1,"groups":[1]},{"x":0.5,"y":0,"width":0.5000000000000004,"height":1,"groups":[1]}]}]'
|
||||
move-window-right=['<Super>Right']
|
||||
overridden-settings="{\"org.gnome.mutter.keybindings\":{\"toggle-tiled-right\":\"['<Super>Right']\",\"toggle-tiled-left\":\"['<Super>Left']\"},\"org.gnome.desktop.wm.keybindings\":{\"maximize\":\"['<Super>Up']\",\"unmaximize\":\"['<Super>Down', '<Alt>F5']\"},\"org.gnome.mutter\":{\"edge-tiling\":\"true\"}}"
|
||||
selected-layouts=[['Layout 2'], ['Layout 2'], ['Layout 2'], ['17750231'], ['Layout 2'], ['17750231'], ['17750231'], ['17750231']]
|
||||
window-border-width=uint32 1
|
||||
7
gnome/gnome-settings.sh
Executable file
7
gnome/gnome-settings.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
# Get the directory where this script is located
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
||||
echo "setting wallpaper to ${SCRIPT_DIR}/wallpaper.jpeg"
|
||||
gsettings set org.gnome.desktop.background picture-uri-dark "file://${SCRIPT_DIR}/wallpaper.jpeg"
|
||||
gsettings set org.gnome.desktop.background picture-options 'zoom'
|
||||
Reference in New Issue
Block a user