Browse Source

Add rofi password prompt script

master
Riyyi 4 years ago
parent
commit
f64dccd04b
  1. 3
      .config/zsh/.zprofile
  2. 5
      .scripts/rofipass.sh

3
.config/zsh/.zprofile

@ -62,6 +62,9 @@ if [ "$HIDPI" = true ]; then
fi
export QT_QPA_PLATFORMTHEME="qt5ct"
# Sudo
export SUDO_ASKPASS="$HOME/.scripts/rofipass.sh"
# Terminal
export TERMINAL="urxvt"

5
.scripts/rofipass.sh

@ -0,0 +1,5 @@
#!/bin/sh
# Ask password script. SUDO_ASKPASS is set to this script.
rofi -password -no-fixed-num-lines -dmenu -p "Password"
Loading…
Cancel
Save