diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-06-19 10:02:42 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-06-19 10:02:42 +0200 |
commit | 7db269e67821fea857b83e514aa9d77371b89972 (patch) | |
tree | 0ad9f149cb08aa3fcca120a778c665d46fe6ff88 | |
parent | bbe959ac79b6aaf21e553cbaaceb07bafe4b58ac (diff) |
Fix configurations, and add "only external"
-rwxr-xr-x | display-manager.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/display-manager.py b/display-manager.py index 9213107..49c631d 100755 --- a/display-manager.py +++ b/display-manager.py @@ -92,13 +92,14 @@ def main(): message += "\n- unknown: {}".format(other_displays.join(", ")) options = { - "Only internal": ["--output", external["name"], "--off"], - "External left": ["--output", external["name"], "--auto", "--left-of", internal["name"]], - "External right": ["--output", external["name"], "--auto", "--right-of", internal["name"]], - "Mirror": ["--output", external["name"], "--auto", "--same-as", internal["name"]] + "Only internal": ["--output", internal["name"], "--auto", "--output", external["name"], "--off"], + "External left": ["--output", internal["name"], "--auto", "--output", external["name"], "--auto", "--left-of", internal["name"]], + "External right": ["--output", internal["name"], "--auto", "--output", external["name"], "--auto", "--right-of", internal["name"]], + "Mirror": ["--output", internal["name"], "--auto", "--output", external["name"], "--auto", "--same-as", internal["name"]], + "Only external": ["--output", internal["name"], "--off", "--output", external["name"], "--auto"] } - response = zenity_list(message, options.keys(), 225) + response = zenity_list(message, options.keys(), 250) if response is not None: flags = options[response] xrandr(flags) |