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