Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- window=`xdotool getactivewindow getwindowname`
- window+=`xprop -id $(xdotool getactivewindow) WM_CLASS`
- notify-send "Password auto typed"
- #notify-send "$window"
- sleep 1
- if [[ $(echo $window | grep -i teamviewer) ]]; then
- name='bla'
- pswd='blable'
- elif [[ $(echo $window | grep -i keepass) ]]; then
- pswd='blablebli'
- fi
- if [[ $name ]]; then
- xdotool type "$name"
- xdotool key Tab
- fi
- xdotool type "$pswd"
- xdotool key Return
Advertisement
Add Comment
Please, Sign In to add comment