adding wofi and config and emacs tree-sitter and mastodon

This commit is contained in:
Chris Cochrun 2022-11-18 09:33:34 -06:00
parent cead77a46e
commit a666cb7daa
5 changed files with 19 additions and 6 deletions

View file

@ -17,7 +17,7 @@ export YDOTOOL_SOCKET=/tmp/ydotools
# Get all password files and create an array
root=~/.password-store
CACHE=~/.local/tmp/pass_rofi
CACHE=~/.local/tmp/pass_wofi
seat=seat0
rbw sync
@ -30,7 +30,7 @@ passwords=$list_passwords
prompt='BW'
if [ $XDG_SESSION_TYPE = "x11" ]; then
SECRET=$(list_passwords | rofi -sync -i -p "${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi
SECRET=$(list_passwords | wofi -i --prompt="${prompt}" --dmenu --cache-file ${CACHE}
# $@ &
# c=0
# while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do
@ -40,7 +40,7 @@ if [ $XDG_SESSION_TYPE = "x11" ]; then
# done
)
else
SECRET=$(list_passwords | rofi -no-lazy-grab -sync -i -p "${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi)
SECRET=$(list_passwords | wofi -i --prompt="${prompt}" --dmenu --cache-file ${CACHE})
fi
# Ask whether pass, user or both are required
@ -51,7 +51,7 @@ options=("Password" \
"OTP")
if [ $XDG_SESSION_TYPE = "x11" ]; then
option=$(printf '%s\n' "${options[@]%}" | rofi -i -sync -dmenu -p "" -theme ~/.config/rofi/launchers-git/$style.rasi
option=$(printf '%s\n' "${options[@]%}" | wofi -i --dmenu --width 400 --prompt="..." --cache-file /dev/null
# $@ &
# c=0
# while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do
@ -61,7 +61,7 @@ if [ $XDG_SESSION_TYPE = "x11" ]; then
# done
)
else
option=$(printf '%s\n' "${options[@]%}" | rofi -i -sync -dmenu -p "" -theme ~/.config/rofi/launchers-git/$style.rasi)
option=$(printf '%s\n' "${options[@]%}" | wofi -i --dmenu --width 400 --lines 8 --prompt="..." --cache-file /dev/null)
fi
# echo $option