Skip to content

System wide global keyboard shortcuts

Robert Spiegel edited this page Sep 26, 2018 · 5 revisions

This basically worked in v.2.0 but I did minor fixes in "--show" option, which prevented it from correct working in some specific circumstances - like if the NixNote was already open but only e.g. hidden by other window

Exact way how to do it depends on the window manager present in your linux distribution (but there should be plenty of howto's online for your flavor). Following tutorial is for Gnome desktop which is default in Ubuntu 18.04 Bionic.

How to do it:

  • Open System Settings and find Keyboard or Keyboard/Shortcuts/Custom shortcuts (in Ubuntu 16.04 Unity window manager)
  • There should be "+" button somewhere - click on it
  • Add required action and select shortcut which is appropriate for you (e.g. in my case I used Super+N and Control+Super+N)
  • Available nixnote signal command (see nixnote2 --help for full list). Adapt binary path according where did you install nixnote.
    • /usr/bin/nixnote2 signalGui --show
    • /usr/bin/nixnote2 signalGui --newNote