From 64bbe897c31a180f825c0c19a1040c2930c315c3 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Thu, 12 Dec 2019 09:58:43 +0000 Subject: [PATCH] Use dmenu-wayland-git with wrapper --- states/sway/arch.sls | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/states/sway/arch.sls b/states/sway/arch.sls index d0f7468..0879813 100644 --- a/states/sway/arch.sls +++ b/states/sway/arch.sls @@ -4,4 +4,15 @@ install sway: - sway - swaylock - swayidle - - dmenu + - dmenu-wayland-git + +ensure dmenu-wl wrapper: + file.managed: + - name: {{ grains['homedir'] }}/.local/bin/dmenu_run + - mode: 750 + - owner: {{ grains['user'] }} + - group: {{ grains['user'] }} + - contents: + - "#!/bin/sh" + - "active_monitor=$(swaymsg -t get_outputs | jq -r '.[map(.focused) | index(true)].name')" + - '/usr/bin/dmenu_run -m "${active_monitor}" "$@"' -- 2.46.2