From 6618242463a9c62eaf3e46798ecfb98573652611 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 13 May 2024 13:55:59 +0200 Subject: [PATCH] add flameshot another shortcut --- arch.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/arch.sh b/arch.sh index a16735a..89cd55b 100644 --- a/arch.sh +++ b/arch.sh @@ -106,18 +106,24 @@ function main { wget -q --show-progress ${repo}/.config/flameshot/flameshot.ini -P "$HOME"/.config/flameshot/ # Change keybindings gsettings set org.gnome.shell.keybindings show-screenshot-ui "[]" - local custom_keybindings_list + local custom_keybindings_list flameshot_shortcuts custom_keybindings_list=$(gsettings get ${gs_mediakey} custom-keybindings) + flameshot_shortcuts="'${shortcut}/flameshot-shortcut/', '${shortcut}/flameshot-shortcut-2/'" if [[ $custom_keybindings_list == "@as []" ]] # creating new list if not exists then - custom_keybindings_list="['${shortcut}/flameshot-shortcut/']" + custom_keybindings_list="[${flameshot_shortcuts}]" else # if already existing, adding our new element - custom_keybindings_list="${custom_keybindings_list::-1}, '${shortcut}/flameshot-shortcut/']" + custom_keybindings_list="${custom_keybindings_list::-1}, ${flameshot_shortcuts}]" fi gsettings set ${gs_mediakey} custom-keybindings "$custom_keybindings_list" + # Shortcut 1 gsettings set ${gs_mediakey}.custom-keybinding:${shortcut}/flameshot-shortcut/ name "Flameshot" # set name gsettings set ${gs_mediakey}.custom-keybinding:${shortcut}/flameshot-shortcut/ command "flameshot gui" # set command gsettings set ${gs_mediakey}.custom-keybinding:${shortcut}/flameshot-shortcut/ binding "Print" # set key + # Shortcut 2 + gsettings set ${gs_mediakey}.custom-keybinding:${shortcut}/flameshot-shortcut-2/ name "Flameshot Windows style" # set name + gsettings set ${gs_mediakey}.custom-keybinding:${shortcut}/flameshot-shortcut-2/ command "flameshot gui" # set command + gsettings set ${gs_mediakey}.custom-keybinding:${shortcut}/flameshot-shortcut-2/ binding "s" # set key # === Emoji picker ==