Score:0

gnome custom keyboard shortcut, how to run a command line?

cn flag

Ubuntu 21.10

I want to run this as a custom keyboard shortcut:

keylightctl switch --light 22A5 --temperature 300 --brightness 60 off

keylightctl is a binary in a directory on my PATH

I tried this as the value of the Command option:

/home/tim/bin/keylightctl switch --light 22A5 --temperature 300 --brightness 60 on

and this

bash -c '/home/tim/bin/keylightctl switch --light 22A5 --temperature 300 --brightness 60 on'

which means I am passing a executable and there are no PATH issues. There are no permissions problems either with keylightctl, which is a go binary. This command does not rely on any environment settings

It doesn't work. Nothing happens. However, when I enter either version into a terminal shell, both work.

Q1: Where do I find diagnostic messages telling me what the error is? Q2: What is the problem?

pierrely avatar
cn flag
maybe put it in as double quotes like bash -c " command " or as a script then bash <script.sh> , add a <command>; echo "done" >> ~/temp/itran.txt
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.