From e32974a68ced6da277c022ed70d098c2bc21644c Mon Sep 17 00:00:00 2001 From: Sheppy Date: Sat, 25 Feb 2017 00:13:50 +0100 Subject: [PATCH] irc addtions --- herbstluftwm/panel_content.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/herbstluftwm/panel_content.py b/herbstluftwm/panel_content.py index 8e37ef3..1ff530b 100755 --- a/herbstluftwm/panel_content.py +++ b/herbstluftwm/panel_content.py @@ -2,8 +2,6 @@ import hl_utils -final = "" -date = "" sep = " | " RED = 0xff0000 @@ -74,4 +72,14 @@ def battery(): else: return "" +def irc(): + try: + fname = hl_utils.hlpath("irc.log") + tmp = "error" + with open(fname) as f: + pass + #handle pipe + return color_panel(PM,RED) + except(IOError): + return "" print(guthaben(),battery())