.config/i3/display-tools.py

This commit is contained in:
q3aql 2025-08-08 14:47:27 +02:00
parent 09e7cf02bf
commit 02a909ddf2

View File

@ -17,7 +17,7 @@ class MainWindow:
# Set theme and window size
master.configure(bg='#23283f')
master.geometry('350x265')
master.geometry('350x315')
self.boton1 = tk.Button(master, text="Run ARandR", command=self.exec_command1, bg='#205d2c', fg="white")
self.boton1.pack(side=tk.TOP, pady=10)
@ -28,6 +28,9 @@ class MainWindow:
self.boton3 = tk.Button(master, text="Run xfce4-screenshooter", command=self.exec_command3, bg='#205d2c', fg="white")
self.boton3.pack(side=tk.TOP, pady=10)
self.boton6 = tk.Button(master, text="Run SimpleScreenRecorder", command=self.exec_command6, bg='#205d2c', fg="white")
self.boton6.pack(side=tk.TOP, pady=10)
self.boton4 = tk.Button(master, text="Start/Restart Conky i3", command=self.exec_command4, bg='#205d2c', fg="white")
self.boton4.pack(side=tk.TOP, pady=10)
@ -40,6 +43,7 @@ class MainWindow:
self.boton3.pack(side=tk.TOP, padx=10, pady=10, fill=tk.BOTH)
self.boton4.pack(side=tk.TOP, padx=10, pady=10, fill=tk.BOTH)
self.boton5.pack(side=tk.TOP, padx=10, pady=10, fill=tk.BOTH)
self.boton6.pack(side=tk.TOP, padx=10, pady=10, fill=tk.BOTH)
def exec_command1(self):
print('# Run ARandR')
@ -58,6 +62,11 @@ class MainWindow:
command = "xfce4-screenshooter"
os.system(command)
def exec_command6(self):
print('# Run SimpleScreenRecorder"')
command = "simplescreenrecorder"
os.system(command)
def exec_command4(self):
print('# Start/Restart Conky i3')
command = "killall conky && sleep 1"