lalalaallal

This commit is contained in:
Sheppy
2017-10-25 21:11:07 +02:00
parent 39af1132f8
commit 9c904ece7e
2 changed files with 7 additions and 3 deletions

View File

@@ -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'''