From 443eb64c7ae07aef9159c26ea9512cc5f48fdcd0 Mon Sep 17 00:00:00 2001 From: Lukas Graz Date: Wed, 20 Apr 2022 14:19:35 +0200 Subject: [PATCH] . --- scripts/1-setup.sh | 2 +- scripts/2-user.sh | 3 +++ scripts/3-post-setup.sh | 2 +- scripts/my_Gnome_setup.sh | 10 ---------- scripts/my_gnome_setup.sh | 29 +++++++++++++++++++++++++++++ 5 files changed, 34 insertions(+), 12 deletions(-) delete mode 100755 scripts/my_Gnome_setup.sh create mode 100755 scripts/my_gnome_setup.sh diff --git a/scripts/1-setup.sh b/scripts/1-setup.sh index 7a9d53a..f9d666e 100755 --- a/scripts/1-setup.sh +++ b/scripts/1-setup.sh @@ -56,7 +56,7 @@ echo -ne " # X11 Model: acer_laptop # X11 Variant: nodeadkeys # -# sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen +sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen sed -i 's/^#de_CH.UTF-8 UTF-8/de_CH.UTF-8 UTF-8/' /etc/locale.gen locale-gen touch /etc/locale.conf diff --git a/scripts/2-user.sh b/scripts/2-user.sh index b65a5ed..61da6ba 100755 --- a/scripts/2-user.sh +++ b/scripts/2-user.sh @@ -87,6 +87,9 @@ if [[ $INSTALL_TYPE == "FULL" ]]; then cd ~ git clone https://github.com/stojshic/dotfiles-openbox ./dotfiles-openbox/install-titus.sh + elif [[ $DESKTOP_ENV == "gnome" ]] + echo "Setting up my gnome things: " + bash ~/ArchTitus/scripts/my_gnome_setup.sh fi fi diff --git a/scripts/3-post-setup.sh b/scripts/3-post-setup.sh index 3ca322b..cfcbfc7 100755 --- a/scripts/3-post-setup.sh +++ b/scripts/3-post-setup.sh @@ -90,7 +90,7 @@ echo -ne " Enabling Essential Services ------------------------------------------------------------------------- " -systemctl enable cups.service +systemctl enable cups.socket echo " Cups enabled" ntpd -qg systemctl enable ntpd.service diff --git a/scripts/my_Gnome_setup.sh b/scripts/my_Gnome_setup.sh deleted file mode 100755 index 5a983e0..0000000 --- a/scripts/my_Gnome_setup.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash -GNOME_SHELL_VERSION=`gnome-shell --version` -echo $GNOME_SHELL_VERSION #| cut -d " " -f $2 - -yay -S gnome-shell-extension-installer -EXT_NAME=Material -# get search output (to find current ID) -MY_TEMP="`printf 'q' | gnome-shell-extension-installer $EXT_NAME`" -EXTENSION_ID=...??? # filter version -gnome-shell-extension-installer $EXTENSION_ID diff --git a/scripts/my_gnome_setup.sh b/scripts/my_gnome_setup.sh new file mode 100755 index 0000000..ce0ce65 --- /dev/null +++ b/scripts/my_gnome_setup.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +# fix KEYMAP +gsettings reset org.gnome.desktop.input-sources sources +gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'de+nodeadkeys')]" + +# disable Wayland +sed -i 's/^#WaylandEnable=false/WaylandEnable=false/' /etc/gdm/custom.conf + +####################################### +### EXTENSIONS +####################################### +# get gnome version +temp=`gnome-shell --version` +GNOME_VERSION=${temp:12:2} && echo "gnome version: $GNOME_VERSION" + +# get extension installer: +yay -S gnome-shell-extension-installer + +printf $GNOME_VERSION | gnome-shell-extension-installer 779 # clipboard-indicator +printf $GNOME_VERSION | gnome-shell-extension-installer 277 # impatience +printf $GNOME_VERSION | gnome-shell-extension-installer 3357 # material shell +printf $GNOME_VERSION | gnome-shell-extension-installer 1460 # vitals (cpu/ram/storage/..) +printf $GNOME_VERSION | gnome-shell-extension-installer 1287 # unite (remove window top panel) +printf $GNOME_VERSION | gnome-shell-extension-installer 1112 # screenshot tool +printf $GNOME_VERSION | gnome-shell-extension-installer 3088 # Extension list +printf $GNOME_VERSION | gnome-shell-extension-installer 906 # Sound output chooser + +killall -HUP gnome-shell # kill (hopfully restart) gnome-shell