Skip to content

Commit 0ecb4ee

Browse files
authored
Chore: Add instructions for adding keyboard shortcut to Ubuntu 22.04 (#2609)
1 parent 0870eca commit 0ecb4ee

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,18 +268,26 @@ Steps for using the configuration:
268268
ln -s /var/lib/flatpak/exports/bin/org.flameshot.Flameshot ~/.local/bin/flameshot
269269
```
270270

271-
#### On Ubuntu (Tested on 18.04, 20.04)
271+
#### On Ubuntu (Tested on 18.04, 20.04, 22.04)
272272

273273
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)).
274274
275-
1. Remove the binding on <kbd>Prt Sc</kbd> using the following command.
275+
1. Remove the binding on <kbd>Prt Sc</kbd>:
276276
277-
```shell
278-
gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '[]'
279-
```
280-
281-
2. Ubuntu 18.04: Go to Settings > Device > Keyboard and press the '+' button at the bottom.
282-
Ubuntu 20.04: Go to Settings > Keyboard and press the '+' button at the bottom.
277+
Ubuntu 18.04/20.04 using the following command:
278+
```shell
279+
gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '[]'
280+
```
281+
282+
Ubuntu 22.04: Go to _Settings_ > _Keyboard_ > _View and Customise Shortcuts_ > _Screenshots_ > _Take a screenshot interactively_ and press `backspace`
283+
284+
2. Add custom binding on <kbd>Prt Sc</kbd>:
285+
286+
Ubuntu 18.04: Go to _Settings_ > _Device_ > _Keyboard_ and press the '+' button at the bottom.
287+
288+
Ubuntu 20.04: Go to _Settings_ > _Keyboard_ and press the '+' button at the bottom.
289+
290+
Ubuntu 22.04: Go to _Settings_ > _Keyboard_ > _View and Customise Shortcuts_ > _Custom shortcuts_ and press the '+' button at the bottom.
283291
284292
3. Name the command as you like it, e.g. `flameshot`. And in the command insert `/usr/bin/flameshot gui`.
285293

0 commit comments

Comments
 (0)