lots
This commit is contained in:
parent
85f24aaab6
commit
fb4804311c
10 changed files with 97 additions and 77 deletions
|
@ -66,16 +66,16 @@ fi
|
|||
case ${option} in
|
||||
Password )
|
||||
echo "${SECRET}"
|
||||
xdotool type $(rbw get "${SECRET}")
|
||||
ydotool type --key-delay 6ms $(rbw get "${SECRET}")
|
||||
;;
|
||||
User )
|
||||
echo "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
|
||||
xdotool type "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
|
||||
ydotool type --key-delay 6ms "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
|
||||
;;
|
||||
"User and password" )
|
||||
xdotool type $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')
|
||||
xdotool key Tab
|
||||
xdotool type $(rbw get "${SECRET}")
|
||||
ydotool type --key-delay 6ms $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')
|
||||
ydotool key 15:1 15:0
|
||||
ydotool type --key-delay 6ms $(rbw get "${SECRET}")
|
||||
;;
|
||||
"QR-Code" )
|
||||
if [[ $SECRET =~ wifi$ ]]; then
|
||||
|
@ -90,7 +90,7 @@ case ${option} in
|
|||
fi
|
||||
;;
|
||||
OTP )
|
||||
xdotool type $(rbw code "${SECRET}")
|
||||
ydotool type --key-delay 6ms $(rbw code "${SECRET}")
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ export MOZ_ENABLE_WAYLAND=1
|
|||
exec ydotoold &
|
||||
exec systemctl enable --user --now libinput-gestures &
|
||||
exec emacs --daemon &
|
||||
exec greenclip daemon &
|
||||
|
||||
xcape -e 'Super_L=Super_L|Control_L|Escape' &
|
||||
|
||||
|
|
|
@ -1,4 +1,26 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
style="desktop"
|
||||
rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' -theme ~/.config/rofi/launchers-git/$style-clipboard.rasi
|
||||
if [ $(hostname) = "syl" ]; then
|
||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||
style="laptop"
|
||||
echo "this is x11"
|
||||
else
|
||||
style="laptop-wayland"
|
||||
echo "this is wayland"
|
||||
fi
|
||||
else
|
||||
style="desktop"
|
||||
#echo "this is not hidpi"
|
||||
fi
|
||||
|
||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||
rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' -theme ~/.config/rofi/launchers-git/$style-clipboard.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
|
||||
else
|
||||
rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' -theme ~/.config/rofi/launchers-git/$style-clipboard.rasi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue