diff --git a/herbstluftwm/hl_status_deamon.py b/herbstluftwm/hl_status_deamon.py index 8841810..83b615c 100755 --- a/herbstluftwm/hl_status_deamon.py +++ b/herbstluftwm/hl_status_deamon.py @@ -38,7 +38,7 @@ def cip_logins(): ret = "" else: color = hl_utils.get_color(len(l),MAX_LOGINS,0) - ret = str(l) + ret='' for line in l: if line =='': continue diff --git a/herbstluftwm/hl_utils.py b/herbstluftwm/hl_utils.py index 3044172..ac16102 100755 --- a/herbstluftwm/hl_utils.py +++ b/herbstluftwm/hl_utils.py @@ -6,10 +6,14 @@ import os import subprocess import shlex import re +import socket from hl_constants import * -def hlpath(addition=""): - return os.path.join(os.path.expanduser("~"),".config/herbstluftwm/"+addition) +def hlpath(addition="",use_hostname=True): + host="" + if use_hostname: + host=socket.gethostname()+"_" + return os.path.join(os.path.expanduser("~"),".config/herbstluftwm/"+host+addition) def color_remove(s): '''removes colorcodes from inputstring'''