summary refs log tree commit diff stats
path: root/bin/dmenu
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dmenu')
-rwxr-xr-xbin/dmenu4
1 files changed, 3 insertions, 1 deletions
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 $?