W dniu czwartek, 22 grudnia 2016 23:21:56 UTC+1 użytkownik Chris Seekamp 
napisał:
>
> Thanks for that. I can certainly do something like that, although I was 
> thinking of doing something generic which allows me to first choose the usb 
> device and then choose the target VM.
>
> As far as the menu stuff goes, I first created a .desktop file in 
> /usr/share/applications pointing to the utility and with 
> "Categories=System;". Then I found the 
> /etc/xdg/menus/xfce-applications.menu. I added my entry after the 
> exo-terminal.desktop one. After restarting Qubes my utility showed up under 
> "System Tools" and I was able to click on it to execute it.  So my concern 
> now is how often will I have to redo this? That is, when does that file get 
> replaced via update or whatever?
>
> On Thursday, December 22, 2016 at 4:44:08 PM UTC-5, Grzesiek Chodzicki 
> wrote:
>>
>>
>>
>> W dniu czwartek, 22 grudnia 2016 21:28:52 UTC+1 użytkownik Chris Seekamp 
>> napisał:
>>>
>>> I installed Qubes OS R3.2 yesterday. I have a thinkpad t450s and I use 
>>> the trackpoint. I have a little utility to toggle on/off the trackpad. So 
>>> after starting qubes I currently have to open up the Terminal Emulator for 
>>> dom0 and execute the command. I would like to be able to put an entry in 
>>> the menu (perhaps below "Terminal Emulator") to execute my utility. I also 
>>> will probably be writing a program that allows me to assign a USB device 
>>> attached to the sys-usb-proxy to an AppVM. Right now I have to run a 
>>> sequence of commands in the terminal emulator to do this every time I want 
>>> to use my USB headset. Once I have this program written, I would like to be 
>>> able to invoke it from the menu as well. I see documentation on AppVM menus 
>>> but not on the one for dom0. I think I have to execute these things only 
>>> from dom0.
>>>
>>> Can someone point me to documentation for updating the dom0 menu, or if 
>>> there is none, tell me which code package to grab so I can look at how this 
>>> is done?
>>>
>>> Also, in case I want to write a GUI to do the second program I 
>>> mentioned, can someone recommend which toolkit to use based on what is 
>>> being used elsewhere in Qubes OS? I prefer using python (perhaps pygtk?) 
>>> but I could use C/C++ as well if absolutely necessary.
>>>
>>> Thanks.
>>>
>> 1. In order to attach your USB headset to an appvm using one command do 
>> it like this: qvm-usb -a vmname $(qvm-usb|grep -i NAMEYOURHEADSETHERE|cut 
>> -f1), now you have a single line of bash to attach your headset. This can 
>> be bound to a keyboard shortcut using XFCE keyboard menu. Alternatively you 
>> can create a menu entry by saving this command as a bash script, making it 
>> executable (and giving the non-root use permission to execute it) and then 
>> saving it in /usr/share/applications
>>
>> Dunno frankly, I have a few of those scripts bound to keyboard shortcuts 
for a few months now and so far they work flawlessly. But the optimal 
solution here if the qvm-usb tool was integrated with the GUI the same way 
qvm-block is. 

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/c8bd688c-ee62-458e-9d5d-683cf852b519%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to