Chore: Add instructions for adding keyboard shortcut to Ubuntu 22.04 (#2609)

This commit is contained in:
Louw Swart
2022-05-20 01:05:06 +12:00
committed by GitHub
parent 0870eca81f
commit 0ecb4eefa4

View File

@@ -268,18 +268,26 @@ Steps for using the configuration:
ln -s /var/lib/flatpak/exports/bin/org.flameshot.Flameshot ~/.local/bin/flameshot
```
#### On Ubuntu (Tested on 18.04, 20.04)
#### On Ubuntu (Tested on 18.04, 20.04, 22.04)
To use Flameshot instead of the default screenshot application in Ubuntu we need to remove the binding on <kbd>Prt Sc</kbd> key, and then create a new binding for `/usr/bin/flameshot gui` ([adaptated](https://askubuntu.com/posts/1039949/revisions) from [Pavel's answer on AskUbuntu](https://askubuntu.com/revisions/1036473/1)).
1. Remove the binding on <kbd>Prt Sc</kbd> using the following command.
1. Remove the binding on <kbd>Prt Sc</kbd>:
```shell
gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '[]'
```
Ubuntu 18.04/20.04 using the following command:
```shell
gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '[]'
```
Ubuntu 22.04: Go to _Settings_ > _Keyboard_ > _View and Customise Shortcuts_ > _Screenshots_ > _Take a screenshot interactively_ and press `backspace`
2. Ubuntu 18.04: Go to Settings > Device > Keyboard and press the '+' button at the bottom.
Ubuntu 20.04: Go to Settings > Keyboard and press the '+' button at the bottom.
2. Add custom binding on <kbd>Prt Sc</kbd>:
Ubuntu 18.04: Go to _Settings_ > _Device_ > _Keyboard_ and press the '+' button at the bottom.
Ubuntu 20.04: Go to _Settings_ > _Keyboard_ and press the '+' button at the bottom.
Ubuntu 22.04: Go to _Settings_ > _Keyboard_ > _View and Customise Shortcuts_ > _Custom shortcuts_ and press the '+' button at the bottom.
3. Name the command as you like it, e.g. `flameshot`. And in the command insert `/usr/bin/flameshot gui`.