My wife occasionally uses my computer, and being unfamiliar with Linux, she sometimes has a problem finding things.
Recently, it was trying to find our phone list. I had made an alias that opened it in geany, but she doesn't always remember how to get to it.
So I put a phone icon on the panel, and clicking it runs a simple bash script that loads it into geany.
MATE 1.26.0
The behaviour of geany when it is invoked is as follows:
If not loaded: opens in the current workspace.
If loaded but minimized: moves it to the current workspace.
If loaded and not minimized: opens in whatever workspace it is in.
My question: Is there a way using bash or rexx to make geany end up in the current workspace with the phone list loaded, regardless of its position or status?
Just blue-skyin' here, as I don't have it installed, but perhaps you can use 'wmctl' (window manager control). Using a command like "wmctrl -d | grep '*' | cut -d ' ' -f1
" to give you the name of the current workspace, and then use that as a parameter to pass to geany?
ETA: Here's a better version, since it's possible to name a workspace "*"
wmctrl -d | awk '{ if ($2 == "*") print $0}'
Sounds interesting.
Installed wmctrl, tested the two commands you mentioned, and they do show the current workspace.
However, I am at loss as to how to pass that info to geany.
I don't use Geany, so I'm at a loss to help in this regard. I do note however, this comment on their online manual: Geany supports all generic GTK options, a list is available on the help screen.
I saw that, but did not find anything I understood.
I'll try the Geany folks.
Thanks.