use color-picker extension instead of eyedropper (#29)

This commit is contained in:
Mylloon 2024-04-08 19:51:57 +02:00
parent e9790e8e64
commit 19682f62ee
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

26
arch.sh
View file

@ -48,7 +48,7 @@ function main {
gnome-shell-extension-quick-settings-tweaks-git gpu-screen-recorder-git \
epson-inkjet-printer-stylus-photo-px810fw-series heroic-games-launcher-bin \
gnome-shell-extension-blur-my-shell clamav-unofficial-sigs vesktop-bin \
nautilus-open-any-terminal eyedropper
nautilus-open-any-terminal org.gnome.shell.extensions.color-picker
# === Disable wayland ==
@ -169,6 +169,7 @@ function main {
gnome-extensions enable quick-settings-tweaks@qwreey
gnome-extensions enable nightthemeswitcher@romainvigier.fr
gnome-extensions enable blur-my-shell@aunetx
gnome-extensions enable color-picker@tuberry
# Nautilus keybinding
custom_keybindings_list=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings)
@ -237,6 +238,11 @@ function main {
gsettings set com.raggesilver.BlackBox notify-process-completion false # disable notifiction on each command
gsettings set com.github.stunkymonkey.nautilus-open-any-terminal terminal "blackbox" # blackbox context menu in nautilus
# Configuration Color Picker
gsettings set org.gnome.shell.extensions.color-picker enable-systray false # disable icon in systray
gsettings set org.gnome.shell.extensions.color-picker enable-shortcut true # enable shortcut
gsettings set org.gnome.shell.extensions.color-picker color-picker-shortcut "['<Super>C']" # define shortcut
# Add gesture and tap on touchpad
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
systemctl enable touchegg.service
@ -379,24 +385,6 @@ function main {
fi
# === Eye dropper ==
# Keybind
custom_keybindings_list=$(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings)
if ! echo "$custom_keybindings_list" | grep -q "eyedropper"
then
if [ "$custom_keybindings_list" = "@as []" ] # creating new list if not exists
then
custom_keybindings_list="['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/eyedropper/']"
else # if already existing, adding our new element
custom_keybindings_list=$(echo "$custom_keybindings_list" | sed "s/\[//" | sed "s/\]//")
custom_keybindings_list="[$custom_keybindings_list, '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/eyedropper/']"
fi
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "$custom_keybindings_list" # update the list
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/eyedropper/ name "Color Picker" # set name
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/eyedropper/ command "eyedropper" # set command
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/eyedropper/ binding "<Super>C" # set shortcut
fi
printf "\nConcernant le Secure Boot, voici le tuto :"
echo "https://www.reddit.com/r/archlinux/comments/zo83gb/how_i_setup_secure_boot_for_arch_linux_simple/"
echo -e "\n\nInstallation terminée.\nIl faut redémarrer l'ordinateur."