Skip to content

This is a simple script to enable AFK in mincraft 1.13 under Linux

Notifications You must be signed in to change notification settings

jimmystelzer/minecraft-afk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

minecraft-afk

This is a simple script to enable AFK in Minecraft 1.13 under Linux to circumvent the patch that disable Alt+Tab with pressed mouse key in the new version.

Dependence

  • xdotool
  • xwininfo
  • grep
  • awk

Installation

Clone this repository ou just download minecraft-afk.sh. Ensure that the script has permission to run:

git clone "https://github.com/jimmystelzer/minecraft-afk.git"
cd minecraft-afk
chmod +x minecraft-afk.sh

If you like you can move this script to your prefered bin folder:

mv minecraft-afk.sh ~/bin/

Or:

sudo mv minecraft-afk.sh /usr/bin/

Usage

Disable pauseOnLostFocus in minecraft as usual:

sed -i 's/pauseOnLostFocus:true/pauseOnLostFocus:false/' ~/.minecraft/options.txt

Run the game as normal and when you like to go in AFK, just Alt+Tab and run the script:

./minecraft-afk.sh

Or with the script is under your bin folder

minecraft-afk.sh

Openbox integration

You could integrate this script with openbox. To do so just create a new keybind with the your preferred key and options. Example to bind Super+Tab combination keys to alternate the windows and execute the minecraft-afk script:

<keybind key="W-Tab">
	<action name="NextWindow">
	<finalactions>
		<action name="Focus"/>
		<action name="Raise"/>
		<action name="Unshade"/>
		<action name="Execute">
			<command>/home/jimmy/bin/minecraft-afk.sh</command>
		</action>
	</finalactions>
	</action>
</keybind>

About

This is a simple script to enable AFK in mincraft 1.13 under Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages