lemonbar gets executed correctly now

This commit is contained in:
Noah Swerhun 2023-02-10 19:48:13 -06:00
parent 07e5d30764
commit 55f21b2180
2 changed files with 9 additions and 4 deletions

View file

@ -4,7 +4,7 @@ import io
with io.open("./testing_config.yml", 'r', encoding='utf8') as file:
config_file = yaml.safe_load(file)
lemonbar_command = "lemonbar -p"
lemonbar_command = "lemonbar"
lemonbar_cmd_options = config_file['bar']['config']
for item in lemonbar_cmd_options:
@ -22,12 +22,12 @@ for item in lemonbar_cmd_options:
case 'line_thickness':
lemonbar_command += (" -u " + lemonbar_cmd_options['line_thickness'])
case 'bg_color':
lemonbar_command += (" -B " + lemonbar_cmd_options['bg_color'])
lemonbar_command += (" -B '" + lemonbar_cmd_options['bg_color'] + "'")
case 'fg_color':
lemonbar_command += (" -F " + lemonbar_cmd_options['fg_color'])
lemonbar_command += (" -F '" + lemonbar_cmd_options['fg_color'] + "'")
case 'offset':
lemonbar_command += (" -o " + lemonbar_cmd_options['offset'])
case 'line_color':
lemonbar_command += (" -U " + lemonbar_cmd_options['line_color'])
lemonbar_command += (" -U '" + lemonbar_cmd_options['line_color'] + "'")
print(lemonbar_command)

5
run.sh Normal file
View file

@ -0,0 +1,5 @@
#!/bin/sh
lemonbar="$(python lemonbar_command.py)"
python modules.py | sh -c "${lemonbar}"