https://github.com/teamcoltra/gorandomcaps Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By company size + Enterprises + Small and medium teams + Startups By use case + DevSecOps + DevOps + CI/CD + View all use cases By industry + Healthcare + Financial services + Manufacturing + Government + View all industries View all solutions * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners + Executive Insights * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} teamcoltra / gorandomcaps Public * Notifications You must be signed in to change notification settings * Fork 0 * Star 0 License MIT license 0 stars 0 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights teamcoltra/gorandomcaps main BranchesTags [ ] Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 4 Commits icon icon LICENSE LICENSE README.md README.md build.bat build.bat build.sh build.sh caplock_linux.go caplock_linux.go caplock_mac.go caplock_mac.go caplock_windows.go caplock_windows.go go.mod go.mod go.sum go.sum main.go main.go View all files Repository files navigation * README * MIT license GoRandomCaps GoRandomCaps is a fun and harmless prank application written in Go. It toggles the Caps Lock key randomly at intervals, and provides a system tray interface with additional features like enabling startup on boot and rebooting the application. Disclaimer: This project was built and tested on Windows. While compatibility with Linux and macOS is intended, these platforms are currently untested. Use at your own discretion. --------------------------------------------------------------------- Features * Randomly toggles Caps Lock at intervals. * Runs as a system tray application. * Options to enable the application to start on boot. * Cross-platform support for Windows, Linux, and macOS (Windows tested, others untested). --------------------------------------------------------------------- Installation Windows 1. Clone the repository: git clone https://github.com/your-username/gorandomcaps.git cd gorandomcaps 2. Build the project: build.bat The executable will be created in the build/ directory. 3. Run the application: ./build/gorandomcaps.exe Linux and macOS 1. Clone the repository: git clone https://github.com/your-username/gorandomcaps.git cd gorandomcaps 2. Make the build script executable: chmod +x build.sh 3. Build the project: ./build.sh The executables for Linux and macOS will be created in the build/ directory. 4. Run the application: ./build/gorandomcaps-linux # For Linux ./build/gorandomcaps # For macOS --------------------------------------------------------------------- Usage 1. When the application is started, it will appear in the system tray. By default the icon is a clock and says "Alarms" but that's just sneaky stuff. 2. Options in the system tray menu: + Reboot: Kills the application. + Start on Boot: Adds the application to startup on your system. --------------------------------------------------------------------- How It Works The main functionality toggles the Caps Lock key at random intervals (between 0 and 10 minutes) in the background. Platform-specific implementations handle the Caps Lock toggle and startup options: * Windows: Uses keybd_event from the Windows API. * Linux: Utilizes xdotool for key simulation. * macOS: Leverages AppleScript for key toggling. --------------------------------------------------------------------- Icons The project uses custom icons for the system tray. Icons are converted into Go arrays using the 2goarray tool. Scripts (generate.bat and generate.sh) handle the conversion. To generate icons: 1. Place your .ico files in the icon/ directory. 2. Run the appropriate script: + Windows: generate.bat (if you only do one image it will apply to all, two images will make mac apply to mac and linux) + Linux/macOS: generate.sh (if you only do one image it will apply to all, two images will make mac apply to mac and linux) --------------------------------------------------------------------- Contributing Feel free to contribute to this project! Report issues, suggest features, or submit pull requests. 1. Fork the repository. 2. Create a new branch: git checkout -b feature-name 3. Make your changes and commit: git commit -m "Description of changes" 4. Push to your fork and open a pull request. --------------------------------------------------------------------- Disclaimer This project is intended for entertainment purposes only. The developer is not responsible for any unintended consequences arising from the use of this application. Also a quick prank is fun, leaving this on someone's computer is just being a dick. --------------------------------------------------------------------- License This project is licensed under the MIT License. See the LICENSE file for details. About No description, website, or topics provided. Resources Readme License MIT license Activity Stars 0 stars Watchers 1 watching Forks 0 forks Report repository Releases 1 tags Packages 0 No packages published Languages * Go 99.8% * Other 0.2% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.