• 3 Posts
  • 69 Comments
Joined 1 year ago
cake
Cake day: June 20th, 2023

help-circle







  • I did a workaround by editing a script I found and don’t understand using xprop, xwininfo, and xdotool. I probably should have mentioned that I’m using X, most of this stuff doesn’t work on Wayland. Here’s my script so far:

    #!/bin/bash
    
    xprop -spy -root _NET_ACTIVE_WINDOW | grep --line-buffered -o '0[xX][a-zA-Z0-9]\{7\}' |
    while read -r id; do
        class="`xprop -id $id WM_CLASS 2> /dev/null | grep TeamViewer`"
        if [ -n "$class" ]; then
            if xprop -id "$id" | grep -q 'WM_NAME(STRING) = "TeamViewer Authentication"'; then
                echo "key Tab
                key space
                key shift+Tab
                key shift+Tab
                key Down
                key Tab
                type {my.username}
                key Tab
                key ctrl+u"| xdotool -
                # wait for the window to be closed
                xprop -spy -id $id > /dev/null 2>&1
                fi
        fi
    done
    
    

    It spits out errors after the window closes because I think it’s trying to get windows properties from the now closed window, but it gets the job done!

    Edit: changed the script to be much smaller and not show errors.




  • Installing battle.net in steam is really easy. Just add non-steam game in steam and choose the battle.net installer, then right click on it in steam and click properties, then compatibility, and choose Force the user of a specific Steam Play compatibility tool and choose Proton Experimental. Then just run it and install it like normal. Once it’s finished you just repeat the process for the actual installed battle.net program or whatever blizzard game you want. With this, you don’t have to mess with running custom commands. The blizzard launcher will be located somewhere like “/home/me/.local/share/Steam/steamapps/compatdata/2806461641/pfx/drive_c/Program Files (x86)/StarCraft II/StarCraft II.exe” where the big number after compatdata is something else. You can run the command find ~/.local/share/Steam/steamapps/compatdata -iname '*battle*.exe to help find it. Also you can tell Steam to always use proton experimental if you want, it’s been good to me. Good luck!










  • This is the real reason, they were afraid consumers would think “3 is bigger than 2 so the Sony one must be better”.

    I think Nintendo gets a pass because they never used numbers anyway: NES -> SNES -> 64 -> gamecube -> wii -> switch. The 64 of course was about the hardware technology and not the generation or anything.