I have the password manager KeePassXC as an AppImage on my system. I run it thousands times a day and I want to add a key-bind/shortcut to launch it, not just have the icon on the menu with a regular .desktop
file.
Edit. I did this:
Create a script named
keepassxc
(or the name of the AppImage you want to launch) that points to the /path/of/app.AppImage.I created mine in a hidden folder called
.bin
in my user's home directory (~/.bin
) with a content like this:#!/bin/bash /home/username/AppImages/KeePassXC.AppImage
Add the directory of the script to your
$PATH
. (In my case the directory was~/.bin
, so):- Edit the file
~/.profile
(with nano, vim, or any text editor) - Add:
export PATH="$HOME/.bin:$PATH"
- Refresh it (or logout - login):
source ~/.profile
- Edit the file
Edit keyboard shortcuts (this deppends your desktop environment...)
- The shortcut should have
keepassxc
(or the name you gave to the script) as the command - Then, select the key combination you want.
- The shortcut should have
Don't forget, of course, to have the AppImage with permission to be executed. Cheers!
Edit 2 reason: make notes more clear as requested