40 lines
1.5 KiB
Python
40 lines
1.5 KiB
Python
import os
|
|
import time
|
|
|
|
#Functions, hotkeys are at the bottom
|
|
def scriptRun(batchcode):
|
|
sshLucka(f"lucka@gaming-win 'echo {batchcode} > script.bat && schtasks /Run /TN script'")
|
|
def monProfile(profile):
|
|
scriptRun(f"D:/scripts/MonitorProfileSwitcher_v0700\MonitorSwitcher.exe -load:C:/Users/vmtest/AppData/Roaming/MonitorSwitcher/Profiles/{profile}.xml")
|
|
def sshLucka(command):
|
|
os.system(f"sudo -u lucka ssh -i /home/lucka/.ssh/id_rsa {command}")
|
|
def monitorLin():
|
|
sshLucka("lucka@workstation-rad sudo /usr/bin/ddcutil setvcp --sn HTJM400760 60 7 &")
|
|
sshLucka("lucka@gaming-win 'D: && /Scripts/controlmymonitor/controlmymonitor.exe /SetValue HTJM400760 60 6'")
|
|
def monitorWin():
|
|
sshLucka("lucka@workstation-rad sudo /usr/bin/ddcutil setvcp --sn HTJM400760 60 6 &")
|
|
sshLucka("lucka@gaming-win 'D: && /Scripts/controlmymonitor/controlmymonitor.exe /SetValue HTJM400760 60 5'")
|
|
def res640x480():
|
|
scriptRun("res 640 480 120 p")
|
|
def res1280x960():
|
|
monProfile("1280x960@120i")
|
|
def res1600x1200():
|
|
monProfile("1600x1200@100i")
|
|
def res1600x900():
|
|
monProfile("1600x900@120i")
|
|
def res800x600():
|
|
monProfile("800x600@100p")
|
|
def res960x720():
|
|
scriptRun("res 960 720 120 i")
|
|
def linScreenOff():
|
|
sshLucka("lucka@workstation-rad DISPLAY=:0 xset dpms force off")
|
|
def res1280x720():
|
|
scriptRun("res 1280 720 60 p")
|
|
def wegaOnly():
|
|
monProfile("wegaOnly")
|
|
time.sleep(1)
|
|
scriptRun("res 720 540 119 i")
|
|
def svideoOnly():
|
|
monProfile("SVIDEO")
|
|
|