Categories
Linux Mastering Development

Use Bash toggle Gnome extension

I want to create a toggle key for a Gnome extension. An extension keeps up with its state in a property. I chose this extension for example purpose: gnome-extensions show apps-menu@gnome-shell-extensions.gcampax.github.com | grep State I was expecting to use the turned value and do a string compare, but I am having problems. The returned value […]

Categories
Linux Mastering Development

Compare string containing a colon

I want to create a toggle key for a Gnome extension. An extension keeps up with its state in a property. I chose this extension for example purpose: gnome-extensions show apps-menu@gnome-shell-extensions.gcampax.github.com | grep State I was expecting to use the turned value and do a string compare, but I am having problems. The returned value […]