From 8520083d6456bbb093f30fd2ddf989017c15e1d0 Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Thu, 9 May 2019 10:31:58 +0200 Subject: [PATCH] fix: rofi-randr If you provide a mode, the monitor will be activated, even when defined as '--off'. And as the 'mode' variable is kept between loop runs, it must explicitly be set to nothing. --- rofi-randr | 1 + 1 file changed, 1 insertion(+) diff --git a/rofi-randr b/rofi-randr index 93b9fa6..eff95f4 100755 --- a/rofi-randr +++ b/rofi-randr @@ -22,6 +22,7 @@ function main() { xrandr_cmd='xrandr' while ! all_outputs_configured && (( $iteration <= $max_iteration )); do + mode="" if (( iteration++ )); then select_output 'Select next output:' 'unconfigured' | read output select_position "${output}" | read position