Changeset - 8796803a1b45
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 9 years ago 2016-06-11 04:30:40
drewp@bigasterisk.com
show prog name in my i3 terminals
Ignore-this: f58b7487f90588fd8c82c894bd759bcc
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
bin/run_local.py
Show inline comments
 
@@ -44,11 +44,11 @@ log.addHandler(CSH(show_hostname=False, 
 

	
 

	
 
def setTerminalTitle(s):
 
    if os.environ.get('TERM', '') in ['xterm', 'rxvt']:
 
    if os.environ.get('TERM', '') in ['xterm', 'rxvt', 'rxvt-unicode-256color']:
 
        print "\033]0;%s\007" % s # not escaped/protected correctly
 

	
 
if 'listsongs' not in sys.argv[0] and 'homepageConfig' not in sys.argv[0]:
 
    setTerminalTitle('[%s] %s' % (socket.gethostname(), ' '.join(sys.argv)))
 
    setTerminalTitle('[%s] %s' % (socket.gethostname(), ' '.join(sys.argv).replace('bin/', '')))
 

	
 
# see http://www.youtube.com/watch?v=3cIOT9kM--g for commands that make
 
# profiles and set background images
0 comments (0 inline, 0 general)