Load more config from host-specific files, add host-config for work DBO, allow using 'fake-screens', various bugfixes
This commit is contained in:
parent
3c72148fcd
commit
8f5e1e282a
5 changed files with 308 additions and 129 deletions
|
@ -65,7 +65,7 @@ def start_in_group(theme, qtile, group: str, command: List[str], floating: bool
|
|||
theme.autostart_app_rules[proc.pid] = rule_id
|
||||
return proc
|
||||
except FileNotFoundError as e:
|
||||
logger.error(f"Could not execute {process}, FileNotFoundError - {e}")
|
||||
logger.error(f"Could not execute {command}, FileNotFoundError - {e}")
|
||||
|
||||
|
||||
def start_in_group_once(theme, qtile, group: str, command: List[str], floating: bool = False,
|
||||
|
@ -90,17 +90,12 @@ def get_screen_count():
|
|||
logger.info("Using xrandr to detect screen count")
|
||||
output = subprocess.check_output("xrandr -q".split()).decode('utf-8')
|
||||
output = [x for x in output.split("\n") if " connected" in x]
|
||||
return max(1, len(output))
|
||||
else:
|
||||
logger.info("Using lsmon (wallutils) to detect screen count")
|
||||
output = subprocess.check_output(["lsmon"]).decode('utf-8')
|
||||
output = output.split("\n")
|
||||
return max(1, len(qtile.core.get_screen_info()))
|
||||
except subprocess.CalledProcessError:
|
||||
return 1
|
||||
|
||||
if output:
|
||||
return len(output)
|
||||
else:
|
||||
return 1
|
||||
pass
|
||||
return 1
|
||||
|
||||
|
||||
def bar_separator(config):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue