Skip to content

Comment on Scripting GNU Screen with Pythonparent

Comments

> I have irssi configured to set my status to away when the screen is detached

How do you do that? I've tried looking at the documentation for irssi, and it's god-awful.

I have .screenrc_im

  source ~/.screenrc
  sessionname im
  bind ^D eval 'at naim stuff "/away Detached!\012"' 'at irssi stuff "/away Detached!\012"' 'detach'
  bind d eval 'at naim stuff "/away Detached!\012"' 'at irssi stuff "/away Detached!\012"' 'detach'
  screen -t naim naim
  screen -t irssi irssi
and a bash alias
  alias im='if detached im; then screen -S im -pirssi -X eval "stuff /away\012"; screen -S im -pnaim -X eval "stuff /away\012"; screen -r im; else screen -x im; fi;'

I would also love to know how you do this. I like being a good irc citizen, and I'm always forgetting to set my status.

[edit: see here - http://news.ycombinator.com/item?id=1781074]

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.