making rofi work a lil better
This commit is contained in:
parent
9daaa96d74
commit
38e0f2f923
14 changed files with 156 additions and 79 deletions
|
@ -7,4 +7,10 @@ else
|
|||
#echo "this is not hidpi"
|
||||
fi
|
||||
|
||||
lolcate | rofi -dmenu -p "File Search:" -i -matching regex -theme ~/.config/rofi/launchers-git/$style-rbw.rasi | xargs -r0 xdg-open
|
||||
lolcate | rofi -dmenu -p "File Search:" -i -matching regex -theme ~/.config/rofi/launchers-git/$style-rbw.rasi | xargs -r0 xdg-open $@ &
|
||||
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
|
||||
sleep .1
|
||||
c=$((c+1))
|
||||
[[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
|
||||
done
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
exec ydotoold &
|
||||
exec libinput-gestures-setup start service &
|
||||
exec xcape -e 'Super_L=Super_L|Control_L|Escape'
|
||||
|
||||
sleep 2
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Check to see if firefox is running
|
||||
if [ $(pgrep -c qutebrowser) -gt 0 ]; then
|
||||
if pgrep -x qutebrowser > /dev/null; then
|
||||
|
||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||
#X11
|
||||
|
|
|
@ -24,7 +24,15 @@ list_passwords() {
|
|||
passwords=$(rbw list)
|
||||
|
||||
prompt='search for passwords...'
|
||||
SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi)
|
||||
SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi $@ &
|
||||
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
|
||||
sleep .1
|
||||
c=$((c+1))
|
||||
[[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
|
||||
done
|
||||
|
||||
)
|
||||
|
||||
# Ask whether pass, user or both are required
|
||||
|
||||
|
@ -34,7 +42,15 @@ options=("Password" \
|
|||
"QR-Code" \
|
||||
"OTP")
|
||||
|
||||
option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -width 400 -lines 4 -prompt="..." -theme ~/.config/rofi/launchers-git/$style.rasi)
|
||||
option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -width 400 -lines 4 -prompt="..." -theme ~/.config/rofi/launchers-git/$style.rasi $@ &
|
||||
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
|
||||
sleep .1
|
||||
c=$((c+1))
|
||||
[[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
|
||||
done
|
||||
|
||||
)
|
||||
|
||||
echo $option
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue