From d70c00021ea42661c7ed1d9df6566873d43dc9e0 Mon Sep 17 00:00:00 2001 From: Christian Krinitsin Date: Tue, 4 Jun 2024 22:33:28 +0200 Subject: changed dmenu, now current monitor is selected --- bin/dmenu | 4 +++- bin/dmenu-wl | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/dmenu b/bin/dmenu index 6ca1a50..25ebc48 100755 --- a/bin/dmenu +++ b/bin/dmenu @@ -1,5 +1,7 @@ #!/bin/sh -/usr/local/bin/dmenu-wl $* -nb '#2b3339' -nf '#d3c6aa' -sb '#d3c6aa' -sf '#212736' -i -fn 'DroidSansM Nerd Font' +MONITOR=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused==true).name') + +/usr/local/bin/dmenu-wl $* -nb '#2b3339' -nf '#d3c6aa' -sb '#d3c6aa' -sf '#212736' -i -m "$MONITOR" -fn 'DroidSansM Nerd Font' exit $? diff --git a/bin/dmenu-wl b/bin/dmenu-wl index 6ca1a50..25ebc48 100755 --- a/bin/dmenu-wl +++ b/bin/dmenu-wl @@ -1,5 +1,7 @@ #!/bin/sh -/usr/local/bin/dmenu-wl $* -nb '#2b3339' -nf '#d3c6aa' -sb '#d3c6aa' -sf '#212736' -i -fn 'DroidSansM Nerd Font' +MONITOR=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused==true).name') + +/usr/local/bin/dmenu-wl $* -nb '#2b3339' -nf '#d3c6aa' -sb '#d3c6aa' -sf '#212736' -i -m "$MONITOR" -fn 'DroidSansM Nerd Font' exit $? -- cgit 1.4.1