On Monday, January 22, 2018 at 8:28:04 AM UTC+1, pixel fairy wrote:
> qubes 4.0rc3
>
> Id like to make custom launchers for two purposes
>
> 1. easily run apps from custom dispvms. using shell scripts for now.
>
> 2. make alternate launchers with different icons. for example, the twitter
> bird icon in a twitter app-vm.
>
> tried making desktop files in ~/.local/share/applications, but they dont show
> up in menus. what else does one need to do?
There are many ways you can play with this, but a simple suggestion to pick
from in addition to what [799] suggested, would be to use the hidden
pre-installed XFCE4-Whiskermenu plugin, instead of the default menu that comes
out of the box. Qubes 4 has the Whiskermenu installed by default, so you don't
even need to install anything in dom0. Simply right click on the panel, go to
add items, and find the Whiskermenu. You can add favourites to show in your
main menu right by simple right clicking any menu icons, change size, change
icons, change text, and so on. You can also change the Whiskermenu's own icon,
which is pretty ugly with its default icon, but looks much better once you find
a better icon for it. There are plenty of pre-installed icons to pick from too.
It's pretty awesome for a quick and dirty solution, although it's not perfect,
but it solves many user desires. See further below regarding making specific
entries. I'll mention keybinds first here.
You probably know this, but keybind your scripts is pretty useful too. It's
even really easy to keybind scripts that are located inside VM's. Which will
not only start the VM if its shutdown, it will also just execute normally if
it's already running.
Basic logic, keybind:
1) qvm-run 'AppVM-name' app-name-to-execute-from-VM-/bin
2) qvm-run 'AppVM-name' specific
/path-to-file-to-execute-like-for-example-AppImages-or-bin-executeables.
3) qvm-run 'AppVM-name' bash terminal-command-to-execute-in-AppVM
4) qvm-run 'AppVM-name' bash path-to-script-to-execute-in-AppVM.
You can keybind it with Systems Tools --> Keyboard --> Application Shortcuts
tap --> "Add".
For example I run all my most frequent used AppVM scripts, apps, virtual
AppImages, and so on, this way. I use Ctrl+Shift+Alt + any fitting letter on
keyboard, to minimize key conflicts, but same time making it easy to memorize.
For example I use Ctrl+Shift+Alt to all my keybinds, so I never need to
memorize otherwise, and M goes for music-player, while N goes to my note taking
app, while E goes to e-mail, A is used to one of my frequent used scripts, and
so on.
I also further keybinded System-Tools --> Screenshot, because it's different
from the typical screenshot tool, allowing for region capturing, rather than
just screenshot everything that the default one does. Like everything else
here, both are already pre-installed in Qubes 4. (i.e. Ctrl+Shift+Alt+Z to the
cmd xfce4-screenshooter).
Whatever the imagination allow for, I find the above approach highly useful.
You could also alternatively pick a menu entry which you will with certainty
never use, and then just modify it by right clicking on it (you can do this in
the Whiskermenu's), and then change not only the icon and icon-text to whatever
you desire, but also the working path too. For example, the above keybind
commands, you can put in here too. Like for example "qvm-run appVM-name
path-or-app". If you want to run scripts this way, then use 'qvm-run appVM-name
bash terminal-cmd".
I never fully investigated how Qubes modifies XFCE in fedora to fit in the
Qubes entries. But if I recall correctly, nothing you do in your home folder
will work. You need to dig deeper into the system files for that.
Either way, hopefully you can use any of this to something.
--
You received this message because you are subscribed to the Google Groups
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/ca3a40f1-2c33-4b8f-8913-f3f8f1da08ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.