From 7db269e67821fea857b83e514aa9d77371b89972 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Fri, 19 Jun 2020 10:02:42 +0200 Subject: Fix configurations, and add "only external" --- display-manager.py | 11 ++++++----- 1 file 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) -- cgit v1.2.3-70-g09d2