I am using jrnl.sh for journaling on the command line. I have set up a “journaling” qube for this. And I would like to get a keybinding going for easy starting this.
On XFCE4 (which is the default desktop environment for Qubes 4.1) I have System Tools > Keyboard > Application Shortcuts, in which I can define keybinds for qubes. For example, for starting the uxterm in “journaling” qube I can define the following command: qvm-run -q -a --service -- journaling qubes.StartApp+debian-uxterm to be binded to Super+Enter, for example. However, this only brings up a uxterm window running within the qube “journaling”.
How would I make this bring me a uxterm window with jrnl command executed? Basically, I would like to have uxterm -e jrnl binded to a keybind, but I don’t know how to define this in Application Shortcuts. I have tried, qvm-run -q -a --service -- journaling qubes.StartApp+debian-uxterm -e jrnl but it didn’t work.
Yeah that works. However, I was also hoping to learn about the esoteric qubes.StartApp+debian-uxterm stuff. How do I use those? Why they are defined as they are by default by the QubesOS?
I think a better question is: How can I pass an argument to the program that is started with qubes.StartApp ?
For example, qvm-run -q -a --service -- journaling qubes.StartApp+debian-uxterm starts uxterm in qube “journaling.” Now, how do I pass an argument to the debian-uxterm.desktop program that I am starting with qubes.StartApp ? In effect, I want uxterm to be executed as, uxterm -e jrnl.
Then I have refreshed the app shortcuts from the Qube Manager, and have added the “jrnl” applications to the “Selected Applications” column.
Now I have the qvm-run -q -a --service -- journaling qubes.StartApp+jrnl application direct for starting in the XFCE4 Application Finder. I have also put a keyboard shortcut “Super+d” for the XFCE4 Application Finder so I am mimicking the dmenu behavior with it.
Good solution for on-the-fly journaling/jotting your thoughts down on a secure qube and then being done with it.