askpass for sudo via rofi in i3

 nano  $HOME/.local/bindmenupass



# This script is the SUDO_ASKPASS variable, meaning that it will be used as a
# password prompt if needed.
rofi -dmenu \
    -password \
    -no-fixed-num-lines \
    -p "$(printf "$1" | sed s/://)"


nano $HOME/.bashrc


export SUDO_ASKPASS="$HOME/.local/bin/dmenupass" 




using dmenu

dmenu -p "$1" <&- && echo

-P if u have password patch



Popular posts from this blog

sxhkd volume andbrightness config for dwm on void

fix idm integration on chrome

Hidden Wiki