Skip to content

Instantly share code, notes, and snippets.

@sarkarshuvojit
Created March 30, 2017 19:51
Show Gist options
  • Save sarkarshuvojit/a8844e4e976db3701f8b0a40a692456c to your computer and use it in GitHub Desktop.
Save sarkarshuvojit/a8844e4e976db3701f8b0a40a692456c to your computer and use it in GitHub Desktop.
This is a bash script to set volume to ~100% and play any song. Generally to be used as a cron job as alarm.
# Author: sarkarshuvojit
# set this as a cron job for your specific time to set volume to ~100% and play any song at specific times
# set display and set volume to ~100%
export DISPLAY=:0 && amixer -D pulse sset Master 64000
# kill all previous tabs so that no other song is disrupting your hardcore alarm
killall chrome
# open google chrome with the youtube url
google-chrome-stable "https://www.youtube.com/watch?v=fJ9rUzIMcZQ" # kickass song
@anasmohammad611
Copy link

good song choice

@sarkarshuvojit
Copy link
Author

sarkarshuvojit commented Jul 9, 2022

good song choice

hahaha almost forgot about this script XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment