commit ec2f4034b68f9ee41cb9a725fb797f7dbf0e0675 parent 3a21b614e4ef8e9f0b3676b238f97854e4d9667d Author: Milutin Popovic <milutin@popovic.xyz> Date: Sat, 28 Mar 2026 23:47:39 +0000 dmenu on niri Diffstat:
| M | .local/bin/scripts/dmenu-bluetooth | | | 2 | +- |
| A | .local/bin/scripts/dmenu-niri | | | 15 | +++++++++++++++ |
| M | .local/bin/scripts/passmenu-otp | | | 4 | ++-- |
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/.local/bin/scripts/dmenu-bluetooth b/.local/bin/scripts/dmenu-bluetooth @@ -342,7 +342,7 @@ run_dmenu() { ;; dmenu) if is_wayland && command -v dmenu-wl >/dev/null 2>&1; then - DMENU_BLUETOOTH_LAUNCHER="dmenu-wl" + DMENU_BLUETOOTH_LAUNCHER="dmenu-niri" fi ;; esac diff --git a/.local/bin/scripts/dmenu-niri b/.local/bin/scripts/dmenu-niri @@ -0,0 +1,15 @@ +#!/bin/sh + +minitor=$(niri msg focused-output | grep Output | sed 's/.*(\(.*\)).*/\1/') + +dmenu-wl_run \ + -m "$minitor"\ + -i \ + -l 15 \ + -fn "Terminus 14"\ + -nf "#ffffff"\ + -b \ + -nb "#000000"\ + -sf "#000000" \ + -sb "#6CA98A"\ + diff --git a/.local/bin/scripts/passmenu-otp b/.local/bin/scripts/passmenu-otp @@ -13,9 +13,9 @@ password_files=( "$prefix"/**/*.gpg ) password_files=( "${password_files[@]#"$prefix"/}" ) password_files=( "${password_files[@]%.gpg}" ) -dmenu_cmd=(dmenu -l 15) +dmenu_cmd=(dmenu) if [[ -n ${WAYLAND_DISPLAY:-} ]] || [[ ${XDG_SESSION_TYPE:-} == "wayland" ]]; then - dmenu_cmd=(dmenu-wl -l 15) + dmenu_cmd=(dmenu-niri) fi password=$(printf '%s\n' "${password_files[@]}" | "${dmenu_cmd[@]}" "$@")