From 65be220d1f5bb223deaddf299002d9fc49645687 Mon Sep 17 00:00:00 2001 From: Alexander Gehrke Date: Fri, 27 Nov 2020 14:35:25 +0100 Subject: [PATCH] dmscrot: fix options with multiple scrot arguments --- misc/dmscrot | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/misc/dmscrot b/misc/dmscrot index 614ec4f..5786bfe 100755 --- a/misc/dmscrot +++ b/misc/dmscrot @@ -12,10 +12,10 @@ def run_menu(items, prompt) menu.run.value end modes = [ - Dmenu::Item.new('multidisp', '-m'), - Dmenu::Item.new('select', '-s'), - Dmenu::Item.new('focused', '-u -d 1'), - Dmenu::Item.new('normal', '') + Dmenu::Item.new('multidisp', ['-m']), + Dmenu::Item.new('select', ['-s']), + Dmenu::Item.new('focused', ['-u', '-d', '1']), + Dmenu::Item.new('normal', ['']) ] actions = [ @@ -28,4 +28,4 @@ actions = [ mode = run_menu(modes, "Screenshot type") action = run_menu(actions, "and then") -system('scrot', mode, '-e', action) +system('scrot', *mode, '-e', action)