Timeout for messages

1 view
Skip to first unread message

Colin Baxter

unread,
Oct 20, 2022, 6:55:03 AM10/20/22
to stumpw...@nongnu.org

My apologies if this is not the right Net news group for my stumpwm
question.

If I issue a command that outputs a message box then how can I control
the length of time the output box remains on the screen? I find the
default time is generally too short.

Thank you.

Best wishes,

Colin Baxter.


Michael Raskin

unread,
Oct 20, 2022, 8:04:43 AM10/20/22
to m43...@yandex.com, stumpw...@nongnu.org
>If I issue a command that outputs a message box then how can I control
>the length of time the output box remains on the screen? I find the
>default time is generally too short.

Are these the messages that follow stumpwm::*timeout-wait* for the
disappearance time?



Eric S Fraga

unread,
Oct 20, 2022, 12:09:32 PM10/20/22
to stumpw...@nongnu.org
On Thursday, 20 Oct 2022 at 13:40, Michael Raskin wrote:
> Are these the messages that follow stumpwm::*timeout-wait* for the
> disappearance time?

Thank you! I wanted to know this as well.

On a related note, are these messages logged anywhere or can they be
logged if not already? I get some strange messages using dynamic tiling
groups and it would be good to be able to feed these back to this group,
say.

Thanks again,
eric
--
Eric S Fraga via gnus (Emacs 29.0.50 2022-09-26) on Debian 11.5


Michael Raskin

unread,
Oct 20, 2022, 1:06:31 PM10/20/22
to e.f...@ucl.ac.uk, stumpw...@nongnu.org
>On Thursday, 20 Oct 2022 at 13:40, Michael Raskin wrote:
>> Are these the messages that follow stumpwm::*timeout-wait* for the
>> disappearance time?
>
>Thank you! I wanted to know this as well.
>
>On a related note, are these messages logged anywhere or can they be
>logged if not already? I get some strange messages using dynamic tiling
>groups and it would be good to be able to feed these back to this group,
>say.

I think some stuff gets logged to stumpwm.log located in (data-dir)
after (open-log) and at *debug-level* above 5 all the displayed messages
are included?

Ram Krishnan

unread,
Oct 20, 2022, 1:39:00 PM10/20/22
to Eric S Fraga, stumpw...@nongnu.org
I use something like the following to show the last 20 or so messages in a selection list, and picking one redisplays the message will copy its contents into the clipboard.

(defcommand show-message-window-messages () ()
"Display a list of message-window messages"
(let* ((*record-last-msg-override* t)
(screen (current-screen))
(sel (select-from-menu screen
(screen-last-msg screen)
nil)))
(when sel
(echo-string-list screen sel)
(set-x-selection (format nil "~{~a~^~%~}" sel) :clipboard))))

Hope this helps.

-ram

Colin Baxter

unread,
Oct 20, 2022, 3:18:51 PM10/20/22
to Michael Raskin, stumpw...@nongnu.org
Great. Thanks Michael, timeout-wait is exactly what I was looking
for. Thanks again.

Colin.

Phil Hudson

unread,
Oct 21, 2022, 5:40:31 AM10/21/22
to Ram Krishnan, Eric S Fraga, stumpw...@nongnu.org
Thanks for this, Ram. What is `echo-string-list`?

Fraga, Eric

unread,
Oct 21, 2022, 5:44:00 AM10/21/22
to Michael Raskin, stumpw...@nongnu.org
On Thursday, 20 Oct 2022 at 18:34, Michael Raskin wrote:
> I think some stuff gets logged to stumpwm.log located in (data-dir)
> after (open-log) and at *debug-level* above 5 all the displayed messages
> are included?

Thank you. I'll try setting debug level higher than the default of 0
and see if the messages I want are logged.

Michael Raskin

unread,
Oct 21, 2022, 5:46:03 AM10/21/22
to e.f...@ucl.ac.uk, stumpw...@nongnu.org
>On Thursday, 20 Oct 2022 at 18:34, Michael Raskin wrote:
>> I think some stuff gets logged to stumpwm.log located in (data-dir)
>> after (open-log) and at *debug-level* above 5 all the displayed messages
>> are included?
>
>Thank you. I'll try setting debug level higher than the default of 0
>and see if the messages I want are logged.

I think (open-log) doesn't happen by default neither.

(But if you have StumpWM in a screen/tmux you can just read the messages
there)



Phil Hudson

unread,
Oct 21, 2022, 6:15:35 AM10/21/22
to Ram Krishnan, Eric S Fraga, stumpw...@nongnu.org
Never mind, found it.

Fraga, Eric

unread,
Oct 21, 2022, 6:24:55 AM10/21/22
to Ram Krishnan, stumpw...@nongnu.org
On Thursday, 20 Oct 2022 at 10:32, Ram Krishnan wrote:
> I use something like the following to show the last 20 or so messages
> in a selection list, and picking one redisplays the message will copy
> its contents into the clipboard.

Thank you. This works very well. Perfect for my needs.
Reply all
Reply to author
Forward
0 new messages