Closed Scridgeon closed 3 months ago
Hey :) first of all thx for using my extension! :)
I will look into that and answer then. I had to try this out in my vm :)
How do I get my key combination to work? Or how can I invoke the toggle if I want to add it to a script?
I think that is not possible so far, regarding how gnome extensions work, but I might be wrong there
Okay it's a bit more complicated but not much.
if you have a standard US layout it depends on:
dead_grave
grave
You can check, what key works for you, if you go to the hotkey settings of your distribution, and try your combination on a command there. You see the displayed combination and how the key is called.
Moreover: Check if another program, action or (maybe your script?) uses and occupies the keys. Then my extension can't receive them.
I tried your combination with
"['<Ctrl><Super>dead_grave']"
command:
gsettings --schemadir $HOME/.local/share/gnome-shell/extensions/toggleAudio@blackeyeprojects.de/schemas set org.gnome.shell.extensions.toggle-audio toggle-headphone-key "['<Super>dead_grave']"
and
"['<Ctrl><Super>grave']"
gsettings --schemadir $HOME/.local/share/gnome-shell/extensions/toggleAudio@blackeyeprojects.de/schemas set org.gnome.shell.extensions.toggle-audio toggle-headphone-key "['<Super>grave']"
and both worked for me, depending on which layout I use.
Hope that helps :)
PS: I would appreciate it if you let a review here review :)
Thanks for getting back to me so quickly. I reviewed your gsettings string this was user error. I was passing "['
Glad it could be solved :D
You are welcome :> :)
I have a customer script that I use to toggle the audio output device. I want to replace my script with your extension. I currently use ( + ` ) as the hotkey combination but I am unable to get the grave key to work.
I've tried ['grave'] and ['`'] but neither of them toggle the audio change.
I did confirm that the default hotkey combination does toggle the audio source.
How do I get my key combination to work? Or how can I invoke the toggle if I want to add it to a script?