Skip to content

eleven-dev-cafe/git-laugh-track

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

72 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐Ÿ“ข Git Laugh Track ๐ŸŽถ

GitHub stars GitHub forks License: BSD-3 PRs Welcome Made with Python

Play funny sound effects on every Git commit.
Turn boring commits into a party ๐ŸŽ‰


๐Ÿ—บ๏ธ Architecture

flowchart TD
    User["๐Ÿ‘ค User (Developer)"]
    Git["๐Ÿ™ Git Client"]
    PostCommitHook["๐Ÿ”— post-commit Hook (hooks/post-commit)"]
    SoundFiles["๐ŸŽต Sitcom Laugh Tracks (~/.git-laugh-sounds/*.mp3)"]
    AudioPlayer["๐ŸŽง Audio Player (playsound, mpg123, afplay)"]
    Installer["โšก global-install.sh"]
    Uninstaller["๐Ÿ—‘๏ธ uninstall.sh"]

    User --makes commit--> Git
    Git --triggers--> PostCommitHook
    PostCommitHook --selects random mp3--> SoundFiles
    PostCommitHook --calls--> AudioPlayer
    Installer --sets up hooks & sounds--> PostCommitHook
    Installer --copies--> SoundFiles
    Uninstaller --removes--> PostCommitHook
    Uninstaller --removes--> SoundFiles
Loading

๐ŸŽฅ Demo Video(Enable Sound ๐Ÿ”Š)

git-laugh.vedio.mp4

โœจ Features

  • ๐Ÿ”Š Play a random .mp3 from your sound library on git commit
  • โšก Works across Linux, macOS, Windows (via WSL/terminal)
  • ๐ŸŽ› CLI commands to play, add, and list sounds
  • ๐Ÿ”— Easy setup via global Git hooks

๐Ÿ“ฆ Installation

Clone the repo and install it locally:

  1. Clone the repository
git clone https://github.com/eleven-dev-cafe/git-laugh-track.git
cd git-laugh-track
  1. Install dev dependencies:
pip install -r requirements.txt
  1. Install the CLI command git-laugh
pip install .

You can also uninstall the CLI (if youโ€™ve laughed enough)

pip uninstall git-laugh-track

๐Ÿ”Š Adding Sounds

Place .mp3 files into your /sounds directory

  • Default: ~/.git-laugh-sounds/

Or add via CLI:

git-laugh add <path-to-sound>

๐ŸŽฎ Usage

Once installed, you can use the CLI tool:

Setup Git hooks and sounds for laugh sounds

git-laugh install       

Remove Git hooks and Sounds

git-laugh uninstall

Play a random laugh sound on each commit..

git-laugh play 

Git workflow

  • Run git commit -m "fix bug" โ†’ plays a random sound ๐ŸŽถ
  • Run git push โ†’ plays another random sound(soon...)

๐Ÿ“œ License

This project is licensed under the BSD 3-Clause License.


๐Ÿ‘จโ€๐Ÿ’ป Developer

Gyarsilal Solanki

LinkedIn ๐Ÿค GitHub

Need Help! in installation, Join us:

GitHub Discussions
Join WhatsApp Group
Join Discord
You can also discuss your ideas, share feedbacks, and coordinate contributions.


๐Ÿ’ก Inspiration

Because coding is serious businessโ€ฆ but your commits donโ€™t have to be ๐Ÿคฃ
If you find this project helpful, consider giving it a โญ to support!

About

Play funny sound effects on every `Git commit` or `push`.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors