From 007e7076c7404c86180ff3aa6ea3fe15024a87c3 Mon Sep 17 00:00:00 2001 From: chqn Date: Wed, 3 Jan 2024 13:12:48 -0600 Subject: Refactored function signatures and added some TODOs --- src/update_i3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/update_i3.py') diff --git a/src/update_i3.py b/src/update_i3.py index 6430f6e..55509c9 100644 --- a/src/update_i3.py +++ b/src/update_i3.py @@ -5,7 +5,7 @@ import os from rich import print from paths import Paths -def updatei3Theme(config_path: str, img_path: str, colors: list, compliments: list, lock: bool, dmenu: bool): +def updatei3Theme(config_path: str, img_path: str, colors: list, compliments: list, lock: bool, dmenu: bool) -> None: print('[bold red]Updating i3 color scheme') data = '' with open(config_path, 'r') as file: @@ -49,7 +49,7 @@ def updatei3Theme(config_path: str, img_path: str, colors: list, compliments: li os.system("i3 restart") -def getScreenResolution(): +def getScreenResolution() -> tuple: output = subprocess.Popen('xrandr | grep "\*" | cut -d" " -f4',shell=True, stdout=subprocess.PIPE).communicate()[0] resolution = output.split()[0].split(b'x') width = int(resolution[0].decode('UTF-8')) -- cgit v1.2.3