Custom shortcuts with jumpapp in Ubuntu

Custom shortcuts with jumpapp

Custom shortcuts in Ubuntu is a great way to speed up starting up programs, or focusing on them.

Jumpapp is a great tool to use together with custom shortcuts:


"The idea is simple — bind a key for any given application that will:
- launch the application, if it's not already running, or
- focus the application's window, if it is running
Pressing the key again will cycle to the application's next window, if there's more than one."

From: https://github.com/mkropat/jumpapp

Create Custom shortcuts here: Keyboard > Shortcuts > Custom Shortcuts, these are my custom shortcuts:

firefox
jumpapp firefox
Super+F

sublime text
jumpapp subl
Super+X

shutdown
gnome-session-quit --power-off
Ctrl+Alt+Delete

gnome-system-monitor
jumpapp gnome-system-monitor
Super+S

shutter
jumpapp shutter
Super+K

chromium
jumpapp chromium-browser
Super+H

nemo
jumpapp -f nemo /arkiv
Super+E

transmission
jumpapp -f transmission-gtk
Super+R

thunderbird
jumpapp thunderbird
Super+T

terminal
jumpapp gnome-terminal --window --maximize
onehalf

gimp
jumpapp gimp
Super+G

calculator
jumpapp gnome-calculator
Super+C

audacious
jumpapp -f audacious
Super+A

filezilla
jumpapp filezilla
Super+I

epiphany
jumpapp -f epiphany-browser
Super+W

baobab
jumpapp baobab
Super+B

opera
jumpapp opera --start-maximized
Super+Å

vivaldi
jumpapp vivaldi
Super+V

Trashcan
nemo trash://
Super+Alt+T

... and then empty trash with Alt+T.


Export and import Custom Shortcuts

You can save/backup/export custom shortcuts/keybindings with dconf and sed.

Export

dconf dump / | sed -n '/\[org.gnome.settings-daemon.plugins.media-keys/,/^$/p' > custom-shortcuts.ini

Import

dconf load / < custom-shortcuts.ini

From: https://askubuntu.com/questions/597395/how-to-set-custom-keyboard-shortcuts-from-terminal/1200953#1200953

Xbindkeys

With Xbindkeys you can define your shortcuts in a file called .xbindkeysrc, and these definitions:

"jumpapp firefox"
  mod4 + f

"jumpapp subl"
  mod4 + x

"jumpapp gimp"
  mod4 + g

"jumpapp gnome-calculator"
  mod4 + c

"jumpapp -f audacious"
  mod4 + a

"jumpapp filezilla"
  mod4 + i

"jumpapp -f epiphany-browser"
  mod4 + w

"jumpapp opera --start-maximized"
  mod4 + aring

"jumpapp vivaldi"
  mod4 + v

"nemo trash://"
 alt + mod4 + t

"jumpapp gnome-system-monitor"
  mod4 + s

"jumpapp shutter"
  mod4 + k

"jumpapp chromium-browser"
  mod4 + h

"jumpapp -f nemo /arkiv"
  mod4 + e

"jumpapp -f transmission-gtk"
  mod4 + r

"jumpapp thunderbird"
  mod4 + t

"jumpapp gnome-terminal --window --maximize"
  m:0x10 + c:49

Find key values with xbindkeys -k. mod4 equals Super key, found with xmodmap.

Remap Super key in dconf

You probably need to remap the Super (Windows) key, to use it, by updating these values via dconf:
org/gnome/desktop/wm/keybindings/panel-main-menu to for example ['Super_R']
Disable the org/gnome/mutter/overlay-key key, by deleting the content of "Custom value".