CtrlAltFocus is the browser that torments you when you're not focusing. Various challenges/events occur and you have to focus to stop the chaos.
This repo serves as our group entry to SpartaHack W25 Mad Scientist Track.
-
Python >=3.9.13
-
Runs Windows 10-11
-
Windows Powershell
-
Wii Remote**
-
Connects to Bluetooth**
**Optional
To access all features edit the config_files.yaml
If left blank will use your OS's default browser option
- Rick_Roll: ;)
- Tab_Zapper: Counts down from 5 and will close one tab at a time until focus is regained! (Oops did you care about that tab?)
- Tab_Shuffler: Shuffles the name and icons of the tabs. (Uh oh where you looking for that??)
- Snoopy_Mode: Pop Up windows appear that you have to click to make disappear. (Warning: Snoopy may insult your ability to be distracted)
- Noise_Maker: Random noises will play until focus is achieved! (Who needs background noise when I have constant alarms playing!)
- Constellation_Mode: Screen will be blocked with a gorgeous starry night.
When enabled sync your Wiimote to the program. You will have an opportunity to play a game of Bop-It until you win.
If you mess up? Try again!
If you get lose your focus again? The game will get harder
All the while the same motivation incentives will be happening until you complete your challenge
-
Download Python >=3.9.13
-
run
pip install -r requirements.txt
-
Download Ollama from the offical download page
-
run
ollama run llama3.2
This repository contains submodule(s). Before we begin, please run
git submodule update --init --recursive
to pull said submodules' code into this repository.
In order to build the binaries for this project, you will need cmake installed. I recommend installing the latest version (currently 3.31.5 for x86 systems, 64-bit).
After installing cmake, you'll want to add its executable to your systems $Env:PATH variable. To do this, go to Settings > System > About > Advanced System Settings > Environment Variables, then add 'C:\Program Files\CMake\bin' to the Path variable under your both the system and user sections.
Next, head to the wiiuse-lib/ directory of this repository.
Run:
mkdir build
cd build
Then:
cmake -DBUILD_SHARED_LIBS=ON ..
cmake --build . --config Release
This will generate the .lib and .dll executables for the wiiuse package (located at wiiuse/build/src/Release/).
Next, head to the top-level of this directory. Run:
mkdir build
cd build
Then:
cmake ..
cmake --build . --config Release
This will generate the main executable for this project.
To run the wiimote controller program, simply run:
.\start
-
Connect Wiimote to your pc
-
Open executable
launcher.exe
to open the browser.- This executable will open the browser, a Llama instance, begin to connect the Wiimote to the c library
-
Mash
1
+2
on your Wiimote until sounds plays -
Enjoy!