mockup of shortcut for eyedropper
This commit is contained in:
parent
43a940d6fb
commit
72a1af5840
1 changed files with 19 additions and 0 deletions
19
arch.sh
19
arch.sh
|
@ -376,6 +376,25 @@ function main {
|
|||
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/gpu-screen-recorder/ binding "<Super>Print" # set shortcut
|
||||
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."
|
||||
|
|
Loading…
Reference in a new issue