Dotfiles_Generator/templates/rofi/askpass.rasi

48 lines
1.0 KiB
Plaintext

{# symlink{~/.config/rofi/themes/askpass.rasi} #}
/*
* by Siddharth Dushantha 2020
* A very minimal graphical helper for sudo's askpass.
* https://raw.githubusercontent.com/sdushantha/dotfiles/master/rofi/.config/rofi/themes/askpass.rasi
*
* Preview: https://0x0.st/iu4y.png
*
* Put the code below in a location such as ~/bin/askpass-rofi
* #!/usr/bin/env bash
* rofi -dmenu\
* -password\
* -i\
* -no-fixed-num-lines\
* -p "Password:"\
* -theme ~/.config/rofi/themes/askpass.rasi
*
* Then the code below in your bashrc, zshrc, or something similar
* SUDO_ASKPASS=~/bin/askpass-rofi
*
*/
* {
background-color: {{nord3}};
text-color: {{nord4}};
font: "SF Mono 12";
}
#window {
width: 380px;
y-offset: -5%;
padding: 40px;
border-color: {{nord4}};
border: 2px;
border-radius: 5px;
}
#entry {
/* expand: true; */
width: 200px;
}