how to get appVM colour for customizing bash prompt's colours

16 views
Skip to first unread message

Robert

unread,
Sep 16, 2016, 2:18:42 PM9/16/16
to qubes-users
Hi!

I wonder if there is a command-line way to get the name (or any other id) of appVM's colour, used for window borders and such, from within the same appVM (not dom0)?
It could be useful for customizing bash prompt's colours.

I guess, I'd not be surprised if the answer was no due to security reasons.

Best regards,
Robert


Nicklaus McClendon

unread,
Sep 16, 2016, 2:49:37 PM9/16/16
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I'm not sure if there is an official way, but I have written an RPC do
to this. https://github.com/kulinacs/qubes-rpc-GetLabel
I have the command run in /rw/config/rc.local and have it set to auto
allow.

- --
kulinacs <nick...@kulinacs.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iF4EARYIAAYFAlfcPmYACgkQW1Q2Vuxs8jNwvQEA8omVIHS0V1D6YGSzlJLSJ4IJ
Qm82iOXMt1V86mc8sG0BAMlW2529AVT5Ia1n4Sm0dYg8J/4TkK3fF+P6TpnCYi4E
=5WrB
-----END PGP SIGNATURE-----

Robert

unread,
Sep 16, 2016, 3:12:21 PM9/16/16
to Nicklaus McClendon, qubes-users
> On 09/16/2016 01:18 PM, Robert wrote:
> > Hi!
> >
> > I wonder if there is a command-line way to get the name (or any
> > other id) of appVM's colour, used for window borders and such, from
> > within the same appVM (not dom0)? It could be useful for
> > customizing bash prompt's colours.
> >
> > I guess, I'd not be surprised if the answer was no due to security
> > reasons.
> >
> > Best regards, Robert
> >
> >
> I'm not sure if there is an official way, but I have written an RPC do
> to this. https://github.com/kulinacs/qubes-rpc-GetLabel
> I have the command run in /rw/config/rc.local and have it set to auto
> allow.
>
> - --
> kulinacs <nick...@kulinacs.com>

Thanks, I'll try it out!

--
Robert


Reply all
Reply to author
Forward
0 new messages