Skip to content

Commit

Permalink
Nothing to see here
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nj5m1n committed Oct 13, 2024
1 parent 80ffbb7 commit 5a26b77
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nix/nixos/emperor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
pr227905.insomnia
pr231339.sea-orm-cli
tts15.tts

gamemode
];

sops = {
Expand Down
37 changes: 37 additions & 0 deletions scripts/autoclick.sh
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
89 changes: 89 additions & 0 deletions scripts/cookie_clicker_ascend_loop.sh
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

0 comments on commit 5a26b77

Please sign in to comment.