Forked from ibLeDy/replace_screenshot_keybinding.sh
Created
November 30, 2022 17:05
-
-
Save iagoalonsomrf/de2016dbcb08ea82481039623967a501 to your computer and use it in GitHub Desktop.
Set Flameshot as the default screenshot tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Release default `window-screenshot` keybinding (Ubuntu 19.10) | |
gsettings set org.gnome.settings-daemon.plugins.media-keys window-screenshot '[]' | |
# Replace default `screenshot` binding with the default from `window-screenshot` | |
gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '<Alt>Print' | |
# Create a new custom keybinding (taking for granted that this would be the first created) | |
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']" | |
# Give it a name | |
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name 'Flameshot' | |
# Set the command it executes | |
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command 'flameshot gui --path /home/bledy/Pictures/Screenshots' | |
# Bind it to PrtScr | |
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding 'Print' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment