Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 20 Nov 2018, 10:26
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
How to make gxmessage always on top?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
Subito Piano


Joined: 27 May 2007
Posts: 639
Location: UPSTATE New York

PostPosted: Sat 20 Apr 2013, 12:17    Post subject:  How to make gxmessage always on top?  

Hi!

I created a scheduled popup window with gxmessage to remind me of a task. What command do i add to make the window always on top? (For instance, it gets buried underneath my startup programs if the alarm time is 6AM and i start up my laptop at 7AM, so i don't see the popup.)

Here's my script:

Code:
#!/bin/bash
clear
gxmessage TEXT OF MY TASK -center -font "sans-serif 36" -geometry 320x130 -name  ALARM


I tried zenity as well; either way, zenity or gxmessage, i don't know what option to add to keep the window on top.

Thanks!
Back to top
View user's profile Send private message Visit poster's website 
don570


Joined: 10 Mar 2010
Posts: 5181
Location: Ontario

PostPosted: Mon 22 Apr 2013, 14:12    Post subject: yaf-splash  

Code:
yaf-splash -close box -placement top -bg orange -fontsize large -text "Example text"


I don't know if this is a solution but Barry Kauler likes to use
yaf-splash to give
warnings , and he likes to use the placement option to place the warning
at the top of the computer screen. Maybe he does that to avoid
being covered over...

Quote:
-placement

Specifies the placement of the splash text using one of the following strings: top-left, top, top-right, left, center, right, bottom-left, bottom, bottom-right. Specifying this setting overrides the position information given in the -geometry option. Center is the default.



________________________________________
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6863
Location: Auckland, New Zealand

PostPosted: Mon 22 Apr 2013, 18:07    Post subject:  

If you use JWM you can use a group setting based on the window name and/or class. See http://joewing.net/projects/jwm/config.shtml.

Note that the format has changed, since Jwm now only supports 3 layers instead of five or something. You probably have jwm 2.1 with the old format.
_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 639
Location: UPSTATE New York

PostPosted: Mon 22 Apr 2013, 21:31    Post subject:  

Thanks, guys! Smile

(For any zenity lovers following later on, i did find this to keep zenity on top.)
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6863
Location: Auckland, New Zealand

PostPosted: Mon 22 Apr 2013, 22:17    Post subject:  

Although that's not really specific to zenity...

Btw, i thought zenity was long dead. Haven't people switched to yad, which is compatible and alive?
_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 118

PostPosted: Sat 27 Aug 2016, 08:30    Post subject:  

On 2012-02-26 , well before this thread, Tim Musson released gxmessage version 2.20.0
New options: -sticky, -ontop, and -noescape

Puppy is still on version 2.14.4 Rolling Eyes
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1682
Location: Japan

PostPosted: Fri 12 Oct 2018, 22:57    Post subject:  

Does any of the newer Puppies uses gxmessage 2.20 ?

Apart from the useful -ontop feature it might solve my problem with the current version 2.14.4:
I can't make the -nofocus option work. Does this work for anyone?
Back to top
View user's profile Send private message 
fabrice_035


Joined: 28 Apr 2014
Posts: 535
Location: Bretagne / France

PostPosted: Sat 13 Oct 2018, 05:49    Post subject:  

hello,

We can install gxmessage 2.20 with puppy packet manager.


Code:

root# gxmessage --version
gxmessage-2.20.0


Code:

root# gxmessage --help

gxmessage - a GTK-based xmessage clone

Usage: gxmessage [OPTIONS] message ...
       gxmessage [OPTIONS] -file FILENAME

xmessage options:
  -file FILENAME         Get message text from file, '-' for stdin
  -buttons BUTTON_LIST   List of "LABEL:EXIT_CODE", comma separated
  -default LABEL         Give keyboard focus to the specified button
  -print                 Send the selected button's LABEL to stdout
  -center                Open the window in the center of the screen
  -nearmouse             Open the window near the mouse pointer
  -timeout SECONDS       Exit with code 0 after SECONDS seconds
  -display DISPLAY       X display to use
  -fn FONT | -font FONT  Set message font (works with GTK font names)
  -fg COLOR              Set message font color
  -bg COLOR              Set message background color
  -geometry GEOMETRY     Set window size (position will be ignored)
  -iconic                Start iconified
  -name NAME             Program name as used by the window manager
  -title TITLE           Set window title to TITLE

Additional gxmessage options:
  -borderless            Open the window without border decoration
  -sticky                Make the window stick to all desktops
  -ontop                 Keep window on top
  -nofocus               Don't focus the window when it opens
  -noescape              Don't allow pressing ESC to close the window
  -encoding CHARSET      Expect CHARSET as the message encoding
  -entry                 Prompt for text to be sent to stdout
  -entrytext TEXT        Same as -entry, but with TEXT as default text
  -wrap                  Wrap lines of text to fit window width
  -help | -?             Show this usage information
  -version               Show gxmessage version and Copyright details

Please report bugs to <trmusson@gmail.com>.


Option -ontop work fine

Distro: tahrpup 6.0.6
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1682
Location: Japan

PostPosted: Sat 13 Oct 2018, 06:03    Post subject:  

My question was rather if it is installed, not if it can be installed
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 922
Location: Staffordshire

PostPosted: Sat 13 Oct 2018, 07:28    Post subject:  

BionicPup64 has gxmessage-2.12.4.
Easy (which I'm on now) has gxmessage-2.20.4, but that probably doesn't count.
Looking in .packages in Slacko 6.9.9.9 (32bit) it looks like it is gxmessage 2.12.4 also. Other than that, I know nothing useful.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1682
Location: Japan

PostPosted: Sat 13 Oct 2018, 23:13    Post subject:  

Thanks for your research. I find the results a bit disappointing Sad
Just curious: Does -nofocus work in Easy?
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 922
Location: Staffordshire

PostPosted: Sun 14 Oct 2018, 08:58    Post subject:  

RE gxmessage 2.20.4 on Easy

Focus jumps straight to the dialog box with:
Code:
gxmessage  -buttons  "Hello\, world" "Example"


...but stays in the terminal with:
Code:
gxmessage -nofocus -buttons  "Hello\, world" "Example"
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1682
Location: Japan

PostPosted: Sun 14 Oct 2018, 10:26    Post subject:  

Keef wrote:
...but stays in the terminal with:
Code:
gxmessage -nofocus -buttons  "Hello\, world" "Example"

I envy you Crying or Very sad
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0775s ][ Queries: 11 (0.0062s) ][ GZIP on ]