You are not logged in.
Usually, when you launch an application, it becomes the active window. However, when opening gsimplecal (either through tint2, dmenu or gmrun), the pop up calendar happens to be an inactive window. Is this the way gsimplecal is made? Is there anything we can do about it during BL development?
Generally not problem, but if you have set windows transparency to inactive window, you'd notice that the calendar pop up is transparent.
Last edited by linux_user (2019-10-23 11:30:17)
"Blind faith to authority is the greatest enemy of truth."
Offline
You can override this by adding
<application class="Gsimplecal" name="gsimplecal" type="normal"><focus>yes</focus></application>
to .config/openbox/rc.xml (somewhere at the bottom i guess, inside <applications>).
Offline
^ Well, in that case, this thread should be moved to Basic Help and Support I believe.
Thanks @brontosaurusrex
"Blind faith to authority is the greatest enemy of truth."
Offline
^ Well, in that case, this thread should be moved to Basic Help and Support I believe.
Done
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
linux_user: have a look at 'man gsimplecal' and ~/.config/gsimplecal/config - there are some settings pertaining to window placement.
Offline
You can override this by adding
<application class="Gsimplecal" name="gsimplecal" type="normal"><focus>yes</focus></application>
to .config/openbox/rc.xml (somewhere at the bottom i guess, inside <applications>).
It didn't fix it @brontosaurusrex, sorry about my previous message confirming the fix. Will check the man and config files as @ohonot suggested.
linux_user: have a look at 'man gsimplecal' and ~/.config/gsimplecal/config - there are some settings pertaining to window placement.
Thanks, will do it. I posted it here (in Dev & Sug) thinking that was the way it's coded and we could change it for lithium release.
"Blind faith to authority is the greatest enemy of truth."
Offline
Offline
Working here, actually I can't find a way to not make it work
https://cdn.scrot.moe/images/2019/10/23/itsworking.th.png
Thanks for posting it. It made me recheck your snippet I had put, only to realize that I have put it inside a commented code block and for the obvious reason, wasn't executed. The calendar is as opaque as the wall now.
To the dev team: can we have this setting as the default out of the box setting? Is there any advantage of keeping it as a non active window?
@brontosaurusrex: Out of curiosity, what's the idea behind your username. Never realized the sophistication of it until I had to type it.
Last edited by linux_user (2019-10-23 11:32:37)
"Blind faith to authority is the greatest enemy of truth."
Offline
Is there any advantage of keeping it as a non active window?
I imagine there is an advantage if it's called via some sort of hotkey (for example while typing in some text), but can't think of anything else right now.
the idea behind your username.
Real: No idea, some people on irc said 'b' was to short, so I made a longer version.
Fake: Comes from latin 'bro-nto-sau-risus', which means 'makes gsimplecal working'.
Real: I do like a random story where fake prehistoric grass-eater animal gets angry.
Last edited by brontosaurusrex (2019-10-23 12:12:32)
Offline
I imagine there is an advantage if it's called via some sort of hotkey (for example while typing in some text), but can't think of anything else right now.
Even when opening using a hotkey, being in focus (active window) will do no it no harm. If there is no other advantage, it is my suggestion that this be an active windows in lithium. The dev team can make the call.
No idea, some people on irc said 'b' was to short, so I made a longer version.
The art of naming!
"Blind faith to authority is the greatest enemy of truth."
Offline
Is there any advantage of keeping it as a non active window?
It won't steal focus when started. Also, as I recall, when it's inactive, it is excluded from selection by ALT-Tab (or whatever keys window switching is bound to) - but I haven't used it in a while so that may not be right.
If your key binding is set to toggle gsimplecal, you can start and stop it without having to interact with the window itself.
You must unlearn what you have learned.
-- yoda
Online
If your key binding is set to toggle gsimplecal, you can start and stop it without having to interact with the window itself.
...only if the focus is on gsimplecal, as I have set up transparency and dim for inactive windows.
Last edited by linux_user (2019-10-25 14:20:37)
"Blind faith to authority is the greatest enemy of truth."
Offline
If your key binding is set to toggle gsimplecal, you can start and stop it without having to interact with the window itself.
Do you mean to say that you can set up a key binding to toggle gsimplecal that is on the clock applet on tint2 panel?
"Blind faith to authority is the greatest enemy of truth."
Offline
PackRat wrote:If your key binding is set to toggle gsimplecal, you can start and stop it without having to interact with the window itself.
Do you mean to say that you can set up a key binding to toggle gsimplecal that is on the clock applet on tint2 panel?
In general you can have a toggle script, which can be run with a keybind. So in this case you can have
pgrep -x gsimplecal && pkill gsimplecal || gsimplecal &>/dev/null &
But in tint2 the clock_lclick_command = gsimplecal will toggle on/off with a mouseclick on the clock anyway. Or am I misunderstanding you?
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
In general you can have a toggle script, which can be run with a keybind. So in this case you can have
pgrep -x gsimplecal && pkill gsimplecal || gsimplecal &>/dev/null &
I was confirming that @PackRat wasn't talking about binding a key to open gsimplecal just like the way you open from gmrun or dmenu. Just wondering if it is about binding a key to toggle gsimplecal in tint2 (instead of clicking on the clock with the mouse) I'd like to try it.
I tried your snippet. Great work. Although the calendar appears where the mouse is on the screen and not where tint2 clock is (just like clicking on it), I'll use it since it does the job. Thanks @damo
Last edited by linux_user (2019-10-26 17:35:46)
"Blind faith to authority is the greatest enemy of truth."
Offline
Although the calendar appears where the mouse is on the screen
In rc.xml, under application settings for Gsimplecal, use something like
<position force="no">
<x>-0</x>
<y>24</y>
</position>
to put the window to right edge, 24 pixels from top.
Offline
Ah, it worked. And I used % to put make it appear somewhere in the middle of the monitor. Much less eye travel.
<position force="no">
<x>40%</x>
<y>40%</y>
</position>
"Blind faith to authority is the greatest enemy of truth."
Offline
somewhere in the middle
Exactly in the middle:
<x>center</x>
<y>center</y>
Offline
^ Exactly in the middle it is @nore
"Blind faith to authority is the greatest enemy of truth."
Offline
^ Exactly in the middle it is @nore, Thank you!
"Blind faith to authority is the greatest enemy of truth."
Offline