mirror of
https://github.com/FAUSheppy/config
synced 2025-12-08 23:58:32 +01:00
lalalaallal
This commit is contained in:
@@ -38,7 +38,7 @@ def cip_logins():
|
|||||||
ret = ""
|
ret = ""
|
||||||
else:
|
else:
|
||||||
color = hl_utils.get_color(len(l),MAX_LOGINS,0)
|
color = hl_utils.get_color(len(l),MAX_LOGINS,0)
|
||||||
ret = str(l)
|
ret=''
|
||||||
for line in l:
|
for line in l:
|
||||||
if line =='':
|
if line =='':
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -6,10 +6,14 @@ import os
|
|||||||
import subprocess
|
import subprocess
|
||||||
import shlex
|
import shlex
|
||||||
import re
|
import re
|
||||||
|
import socket
|
||||||
from hl_constants import *
|
from hl_constants import *
|
||||||
|
|
||||||
def hlpath(addition=""):
|
def hlpath(addition="",use_hostname=True):
|
||||||
return os.path.join(os.path.expanduser("~"),".config/herbstluftwm/"+addition)
|
host=""
|
||||||
|
if use_hostname:
|
||||||
|
host=socket.gethostname()+"_"
|
||||||
|
return os.path.join(os.path.expanduser("~"),".config/herbstluftwm/"+host+addition)
|
||||||
|
|
||||||
def color_remove(s):
|
def color_remove(s):
|
||||||
'''removes colorcodes from inputstring'''
|
'''removes colorcodes from inputstring'''
|
||||||
|
|||||||
Reference in New Issue
Block a user