Update 'dmenu_run'

This commit is contained in:
Marcin Woźniak 2021-03-29 16:52:31 +02:00
parent f9366d6c36
commit 307a593fa6
1 changed files with 6 additions and 1 deletions

View File

@ -1,2 +1,7 @@
#!/bin/sh
dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
if [ "$EUID" -ne 0 ]
then
dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
else
dmenu_path | dmenu -nb '#1e1e1e' -sf '#1e1e1e' -sb '#DD0000' -nf '#DD0000' "$@" | ${SHELL:-"/bin/sh"} &
fi