Эх сурвалжийг харах

add: vpu_live --title LIVE,PREVIEW

micha 1 жил өмнө
parent
commit
17b0a44813

+ 2 - 2
vpu/autostart-preview.sh

@@ -8,11 +8,11 @@ screen -XS "vpu1_pre" quit
 screen -XS "vpu2_pre" quit
 
 # Ayrton VPU Offset Y ___ Y ___ (Ghost 255)
-screen -m -d -S vpu1_pre -- python3 /opt/LibreLight/Xdesk/vpu/vpu_live.py -m 40,12,5 -X 12 --gobo-ch=11 --countdown=31,51,151,171 --videoplayer=181,201
+screen -m -d -S vpu1_pre -- python3 /opt/LibreLight/Xdesk/vpu/vpu_live.py -m 40,12,5 -X 12 --gobo-ch=11 --countdown=31,51,151,171 --videoplayer=181,201 --title=PREVIEW
 sleep 1
 
 # Ayrton VPU Offset X 235 Y 253 (Pannel 255)  7,5m-4m ... 9,5m-4m
-screen -m -d -S vpu2_pre -- python3 /opt/LibreLight/Xdesk/vpu/vpu_live.py -m 40,4,6 -X 4  --gobo-ch=21  --start-univ=4 --countdown=71,91,111,131 --videoplayer=221,241
+screen -m -d -S vpu2_pre -- python3 /opt/LibreLight/Xdesk/vpu/vpu_live.py -m 40,4,6 -X 4  --gobo-ch=21  --start-univ=4 --countdown=71,91,111,131 --videoplayer=221,241 --title=PREVIEW
 
 sleep 3
 

+ 2 - 2
vpu/autostart.sh

@@ -23,11 +23,11 @@ screen -XS "vpu1_out" quit
 screen -XS "vpu2_out" quit
 
 # Ayrton VPU Offset Y ___ Y ___ (Ghost 255)
-screen -m -d -S vpu1_out -- python3 /opt/LibreLight/Xdesk/vpu/vpu_live.py -m 16,12,5 -X 12 --pixel-map=_1 --gobo-ch=11 --countdown=31,51,151,171 --videoplayer=181,201
+screen -m -d -S vpu1_out -- python3 /opt/LibreLight/Xdesk/vpu/vpu_live.py -m 16,12,5 -X 12 --pixel-map=_1 --gobo-ch=11 --countdown=31,51,151,171 --videoplayer=181,201 --title=LIVE
 sleep 1
 
 # Ayrton VPU Offset X 235 Y 253 (Pannel 255)  7,5m-4m ... 9,5m-4m
-screen -m -d -S vpu2_out -- python3 /opt/LibreLight/Xdesk/vpu/vpu_live.py -m 16,4,6 -X 4  --pixel-map=_2 --gobo-ch=21 --win-pos 430,164 --start-univ=4 --countdown=71,91,111,131 --videoplayer=221,241
+screen -m -d -S vpu2_out -- python3 /opt/LibreLight/Xdesk/vpu/vpu_live.py -m 16,4,6 -X 4  --pixel-map=_2 --gobo-ch=21 --win-pos 430,164 --start-univ=4 --countdown=71,91,111,131 --videoplayer=221,241 --title=LIVE
 
 sleep 3
 

+ 8 - 2
vpu/vpu_live.py

@@ -40,7 +40,10 @@ parser.add_option("", "--countdown", dest="countdown",#default=1,
                   help="enable countdown") #, metavar="FILE")
 
 parser.add_option("", "--videoplayer", dest="videoplayer",#default=1,
-                  help="enable videoplayer") #, metavar="FILE")
+              help="enable videoplayer") #, metavar="FILE")
+
+parser.add_option("", "--title", dest="title",default="SCREEN",
+              help="set title") #, metavar="FILE")
 
 #parser.add_option("-f", "--file", dest="filename",
 #                  help="write report to FILE", metavar="FILE")
@@ -795,7 +798,10 @@ print()
 print()
 
 window = pygame.display.set_mode(MAIN_SIZE,pg.RESIZABLE)#,32)#,pygame.FULLSCREEN) #x left->right ,y top-> bottom
-pg.display.set_caption('LibreLight VPU-SCREEN')
+#if options.title:
+pg.display.set_caption('LibreLight VPU-{}'.format(options.title))
+#else:
+#    pg.display.set_caption('LibreLight VPU-SCREEN')
 
 
 class Fix():