Skip to content

Instantly share code, notes, and snippets.

@meysampg
Created March 2, 2024 18:33
Show Gist options
  • Save meysampg/53c5f4754aebaeac1621a14f253b1eb1 to your computer and use it in GitHub Desktop.
Save meysampg/53c5f4754aebaeac1621a14f253b1eb1 to your computer and use it in GitHub Desktop.
Pause player after some minutes
meysam@freedom-zenbook:~
$ function pp() { echo "$1*60" | bc | xargs sleep && playerctl pause}
meysam@freedom-zenbook:~
$ pp 100 & # pause player after 100 minutes
[1] 124824
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment