changeset 1425:8796803a1b45

show prog name in my i3 terminals Ignore-this: f58b7487f90588fd8c82c894bd759bcc
author drewp@bigasterisk.com
date Sat, 11 Jun 2016 04:30:40 +0000
parents 4098f5f244ea
children 05a5226a8d61
files bin/run_local.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/run_local.py	Sat Jun 11 04:29:38 2016 +0000
+++ b/bin/run_local.py	Sat Jun 11 04:30:40 2016 +0000
@@ -44,11 +44,11 @@
 
 
 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