-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,6 +118,8 @@ | |
pr227905.insomnia | ||
pr231339.sea-orm-cli | ||
tts15.tts | ||
|
||
gamemode | ||
]; | ||
|
||
sops = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#! /usr/bin/env nix-shell | ||
#! nix-shell -i bash -p bash gum | ||
|
||
export YDOTOOL_SOCKET="/tmp/.ydotool_socket" | ||
export SWAYSOCK="/run/user/1000/sway-ipc.1000.25003.sock" | ||
|
||
|
||
# # Initialize a variable to store the PID of the running command | ||
# command_pid="" | ||
|
||
# # Listen to workspace events and toggle the command | ||
# while true; do | ||
# command_pid=$(swaymsg -t subscribe '[ "workspace" ]' | while read -r line; do | ||
# if [ -z "$command_pid" ]; then | ||
# # If command_pid is empty, start the command and store its PID | ||
# ydotool click --repeat 100 --next-delay 25 0xC0 & | ||
# printf "%s" $! | ||
# else | ||
# # If command_pid is not empty, kill the command and reset command_pid | ||
# kill -9 "$command_pid" | ||
# printf "" | ||
# fi | ||
# break | ||
# done &) | ||
# done | ||
|
||
|
||
ydotool click --repeat 1 --next-delay 25 0xC0 & | ||
|
||
sleep 1 | ||
|
||
ydotool click --repeat 100000000000 --next-delay 25 0xC0 & | ||
|
||
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT | ||
swaymsg -t subscribe '[ "workspace" ]' | while read -r line; do | ||
exit | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
#! /usr/bin/env nix-shell | ||
#! nix-shell -i bash -p bash ydotool | ||
|
||
export YDOTOOL_SOCKET="/tmp/.ydotool_socket" | ||
|
||
buy_all_upgrades() { | ||
# Move to buy all button | ||
ydotool mousemove --absolute -x 865 -y 73 | ||
ydotool click 0xC0 | ||
reset_upgrade_menu | ||
} | ||
ascend() { | ||
# Move to legacy button | ||
ydotool mousemove --absolute -x 770 -y 40 | ||
ydotool click 0xC0 | ||
# Move to ascend button | ||
ydotool mousemove --absolute -x 480 -y 305 | ||
ydotool click 0xC0 | ||
sleep 7 | ||
# Move to reincarnate button | ||
ydotool mousemove --absolute -x 480 -y 50 | ||
ydotool click 0xC0 | ||
# Move to yes button | ||
ydotool mousemove --absolute -x 470 -y 280 | ||
ydotool click 0xC0 | ||
} | ||
buy_cursors() { | ||
# Move to cursors | ||
ydotool mousemove --absolute -x 865 -y 150 | ||
ydotool click --repeat 1 --next-delay 200 0xC0 | ||
} | ||
buy_condensors() { | ||
ydotool mousemove --absolute -x 905 -y 530 | ||
ydotool click --repeat 1 --next-delay 200 0xC0 | ||
} | ||
buy_100() { | ||
ydotool mousemove --absolute -x 905 -y 125 | ||
ydotool click 0xC0 | ||
} | ||
reset_upgrade_menu() { | ||
sleep 0.1 | ||
ydotool mousemove --absolute -x 480 -y 305 | ||
sleep 0.2 | ||
} | ||
|
||
loop() { | ||
while true | ||
do | ||
buy_all_upgrades | ||
buy_100 | ||
buy_cursors | ||
sleep 2 | ||
buy_all_upgrades | ||
buy_100 | ||
buy_cursors | ||
buy_condensors | ||
buy_all_upgrades | ||
sleep 2 | ||
buy_all_upgrades | ||
buy_100 | ||
buy_cursors | ||
buy_condensors | ||
buy_all_upgrades | ||
sleep 2 | ||
buy_all_upgrades | ||
buy_100 | ||
buy_cursors | ||
buy_condensors | ||
buy_all_upgrades | ||
sleep 2 | ||
buy_all_upgrades | ||
buy_100 | ||
buy_cursors | ||
buy_condensors | ||
buy_all_upgrades | ||
sleep 2 | ||
buy_all_upgrades | ||
buy_100 | ||
buy_cursors | ||
buy_condensors | ||
buy_all_upgrades | ||
sleep 2 | ||
# buy_all_upgrades | ||
# sleep 5 | ||
ascend | ||
sleep 1 | ||
done | ||
} | ||
loop |