diff options
| author | Chandler J <cjustice2000@gmail.com> | 2024-04-12 20:54:00 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-12 20:54:00 -0600 |
| commit | 8a1903bb16d9e04795c33f3eb226486d06e8a642 (patch) | |
| tree | e8fc9dc0bb690cc1976a47fe1166f4bafcafcb40 /src/update_i3.py | |
| parent | 95e73b141ca8f3618701ff59658ef519353cc7c0 (diff) | |
| parent | 2564189a769a5bd3de63086bb62dc3532d1b07b9 (diff) | |
Merge branch 'main' into saves
Diffstat (limited to 'src/update_i3.py')
| -rw-r--r-- | src/update_i3.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/update_i3.py b/src/update_i3.py index f0282c8..b06b47e 100644 --- a/src/update_i3.py +++ b/src/update_i3.py @@ -12,12 +12,13 @@ def updatei3Theme( update_i3_lock: bool, dmenu: bool, lock_img_path: str, + menu_keybind: str, ) -> None: print('[bold red]Updating i3 color scheme') - update_i3_colors(config_path, colors, compliments, dmenu, img_path) + update_i3_colors(config_path, colors, compliments, dmenu, img_path, menu_keybind) if update_i3_lock: change_i3_lock_img(img_path, lock_img_path) @@ -49,7 +50,8 @@ def update_i3_colors( colors: list, compliments: list, dmenu: bool, - img_path: str + img_path: str, + menu_keybind: str, ) -> None: data = '' @@ -73,10 +75,10 @@ def update_i3_colors( if "set $bgimage" in line: data[i] = 'set $bgimage ' + img_path + '\n' # update i3 lock image - if "bindsym $mod+d exec --no-startup-id dmenu_run" in line: + if f"bindsym {menu_keybind} exec --no-startup-id dmenu_run" in line: if dmenu: print('[bold red]Updating Dmenu color scheme') - data[i] = f"bindsym $mod+d exec --no-startup-id dmenu_run -nb '{colors[0]}' -sf '{compliments[0]}' -sb '{colors[1]}' -nf '{compliments[1]}'\n" + data[i] = f"bindsym {menu_keybind} exec --no-startup-id dmenu_run -nb '{colors[0]}' -sf '{compliments[0]}' -sb '{colors[1]}' -nf '{compliments[1]}'\n" with open(config_path, 'w') as file: |
