The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Find where program is running and blink workspace

asked Apr 22 '14

iomartin gravatar image

I have two questions in one:

  1. How do I "blink" a workspace? (such as when you open a program in a workspace that doesn't have focus)?
  2. Is it possible to find out in which workspace(s) a program is running?

Ultimately, my goal is to set a notification whenever I receive an email. I have offlineimap syncing my email every 5 minutes and mutt running (usually) in workspace 9. So I'd set an offlineimap hook that would call a script that if there was new email, would find out if (and where) mutt is running. If mutt is running, blink that workspace.

Thanks.

Comments

How would you go about writing the imap hook for new mail?

TonyC gravatar imageTonyC (Apr 22 '14)edit

@TonyC, thanks, I'll have a look at dunst. I hadn't looked into knowing if I have new email, I thought there should be some option in offlineimap/mutt that would allow that.

iomartin gravatar imageiomartin (Apr 23 '14)edit

1 answer

Sort by » oldest newest most voted
3

answered Apr 22 '14

TonyC gravatar image

Let me recommend using a notification daemon for this instead, such as dunst

Question Tools

Stats

Asked: Apr 22 '14

Seen: 167 times

Last updated: Apr 22 '14