<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>i3 FAQ - Individual question feed</title><link>https://faq.i3wm.org/questions/</link><description>Frequently asked questions and answers about the i3 window manager</description><atom:link href="http://faq.i3wm.org/feeds/question/3852/" rel="self"></atom:link><language>en</language><copyright>Copyright i3, 2012</copyright><lastBuildDate>Tue, 27 May 2014 06:37:45 +0000</lastBuildDate><item><title>Output urgent workspace name to notify-send</title><link>https://faq.i3wm.org/question/3852/output-urgent-workspace-name-to-notify-send/</link><description>Is there a way to output the urgent workspace name to a notify-send message? I can call a for___window hint to display a message with notify-send such as: for_window [urgent=latest] exec notify-send "your message here". I would like to add the workspace name or window name to the output of notify-send. Thanks.</description><pubDate>Mon, 19 May 2014 22:06:47 +0000</pubDate><guid>https://faq.i3wm.org/question/3852/output-urgent-workspace-name-to-notify-send/</guid></item><item><title>Comment by Adaephon for &lt;p&gt;Is there a way to output the urgent workspace name to a notify-send message? I can call a for&lt;em&gt;_&lt;/em&gt;window hint to display a message with notify-send such as: for_window [urgent=latest] exec notify-send "your message here". I would like to add the workspace name or window name to the output of notify-send. Thanks.&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/3852/output-urgent-workspace-name-to-notify-send/?comment=3854#comment-3854</link><description>I, think that will be difficult: it seem that i3 only exposes that a window has an urgent flag but not which window has the latest urgent flag. So you will probably have to keep track of urgent windows yourself.</description><pubDate>Tue, 20 May 2014 09:11:42 +0000</pubDate><guid>https://faq.i3wm.org/question/3852/output-urgent-workspace-name-to-notify-send/?comment=3854#comment-3854</guid></item><item><title>Comment by casucci for &lt;p&gt;Is there a way to output the urgent workspace name to a notify-send message? I can call a for&lt;em&gt;_&lt;/em&gt;window hint to display a message with notify-send such as: for_window [urgent=latest] exec notify-send "your message here". I would like to add the workspace name or window name to the output of notify-send. Thanks.&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/3852/output-urgent-workspace-name-to-notify-send/?comment=3857#comment-3857</link><description>Thank you for your reply.</description><pubDate>Tue, 20 May 2014 16:08:46 +0000</pubDate><guid>https://faq.i3wm.org/question/3852/output-urgent-workspace-name-to-notify-send/?comment=3857#comment-3857</guid></item><item><title>Answer by Michael for &lt;p&gt;Is there a way to output the urgent workspace name to a notify-send message? I can call a for&lt;em&gt;_&lt;/em&gt;window hint to display a message with notify-send such as: for_window [urgent=latest] exec notify-send "your message here". I would like to add the workspace name or window name to the output of notify-send. Thanks.&lt;/p&gt;
 </title><link>https://faq.i3wm.org/question/3852/output-urgent-workspace-name-to-notify-send/?answer=3875#post-id-3875</link><description>Sure, but you’ll need to write a custom script to do that. See http://build.i3wm.org/docs/ipc.html

Get the layout tree, search for nodes that have the urgent property set to true and then call your command.</description><pubDate>Sun, 25 May 2014 18:02:16 +0000</pubDate><guid>https://faq.i3wm.org/question/3852/output-urgent-workspace-name-to-notify-send/?answer=3875#post-id-3875</guid></item><item><title>Comment by casucci for &lt;p&gt;Sure, but you’ll need to write a custom script to do that. See &lt;a href="http://build.i3wm.org/docs/ipc.html"&gt;http://build.i3wm.org/docs/ipc.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Get the layout tree, search for nodes that have the urgent property set to true and then call your command.&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/3852/output-urgent-workspace-name-to-notify-send/?comment=3889#comment-3889</link><description>Thanks Michael. I used get_workspaces and wrote a bash script with the help of jshon to parse the output.</description><pubDate>Tue, 27 May 2014 06:37:45 +0000</pubDate><guid>https://faq.i3wm.org/question/3852/output-urgent-workspace-name-to-notify-send/?comment=3889#comment-3889</guid></item></channel></rss>