dmscrot: fix options with multiple scrot arguments
This commit is contained in:
parent
a86798e665
commit
65be220d1f
10
misc/dmscrot
10
misc/dmscrot
|
@ -12,10 +12,10 @@ def run_menu(items, prompt)
|
||||||
menu.run.value
|
menu.run.value
|
||||||
end
|
end
|
||||||
modes = [
|
modes = [
|
||||||
Dmenu::Item.new('multidisp', '-m'),
|
Dmenu::Item.new('multidisp', ['-m']),
|
||||||
Dmenu::Item.new('select', '-s'),
|
Dmenu::Item.new('select', ['-s']),
|
||||||
Dmenu::Item.new('focused', '-u -d 1'),
|
Dmenu::Item.new('focused', ['-u', '-d', '1']),
|
||||||
Dmenu::Item.new('normal', '')
|
Dmenu::Item.new('normal', [''])
|
||||||
]
|
]
|
||||||
|
|
||||||
actions = [
|
actions = [
|
||||||
|
@ -28,4 +28,4 @@ actions = [
|
||||||
mode = run_menu(modes, "Screenshot type")
|
mode = run_menu(modes, "Screenshot type")
|
||||||
action = run_menu(actions, "and then")
|
action = run_menu(actions, "and then")
|
||||||
|
|
||||||
system('scrot', mode, '-e', action)
|
system('scrot', *mode, '-e', action)
|
||||||
|
|
Loading…
Reference in a new issue