How can I automatically silence my computer at night?

guest

I would like to set my Ubuntu computer such that I can't hear any audio between 9:59pm and 8:00am. How can I do that?

slm

Found this method on AskUbuntu that shows using a crontab entry along with amixer to mute/unmute the sound. It's titled: How do I automatically mute/unmute sound during a certain time period (e.g. night)?.

General steps

  1. Create a crontab entry

    $ crontab -e
    
  2. Add entries to crontab

    59 21 * * * amixer set Master mute
    00 08 * * * amixer set Master unmute
    
  3. Save (if you are using ViM, then e.g. Shift+Z+Z)

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

How can I backup all my Google Photos / Google Drive automatically on linux?

来自分类Dev

how can i switch web pages of the website automatically , which i have created, using javascript?

来自分类Dev

How can I cache/memoize my SQLAlchemy functions?

来自分类Dev

How can I tell Spotlight to index my .dSYM bundles?

来自分类Dev

How can I use oh-my-zsh with PHPStorm?

来自分类Dev

How can I loop through values in my json file?

来自分类Dev

Sensitivity analysis with R: How can I make my own plot

来自分类Dev

How can I loop through my array in reverse order?

来自分类Dev

How can I reduce the size of my git repo?

来自分类Dev

How can I show the size of all files in my ~/.cache directory?

来自分类Dev

How can I tell if a hard drive will fit my laptop?

来自分类Dev

How can I tell if a hard drive will fit my laptop?

来自分类Dev

How can I find my browser web log file?

来自分类Dev

If i know how a traced output looks, how can i begin creating my function? (Scheme)

来自分类Dev

How can we prevent that when I resize my window, my images move using HTML-CSS?

来自分类Dev

How can I display the data from my Firebase Database in my web site?

来自分类Dev

In C#, how can I keep all my items in a listbox from changing to the color I set last?

来自分类Dev

How can I add more button on my Android application which already includes a scrollview?

来自分类Dev

Mapping between DTO and domain objects, how can I make the process transparent to my repository?

来自分类Dev

How can I "group" multiple rows into a collection in my PL/SQL cursor?

来自分类Dev

Mercurial: How can a I make a snapshot of my working directory without doing a changeset?

来自分类Dev

How can I add imported jar files to web-inf/lib in eclipse for my build?

来自分类Dev

How can I improve the efficiency and/or performance of my relatively simple Java counting method?

来自分类Dev

How can I import a model object file into my watch extension if it has a lot of dependencies

来自分类Dev

How can I programatically determine where my C++ runtime libraries are?

来自分类Dev

How can I get the list of the currently installed certificate authority on my ubuntu?

来自分类Dev

Can I disable my GPU for enegry saving?

来自分类Dev

Can I use the atto editor for my website?

来自分类Dev

How can I preserve the value of my parameters through a function so it can be used multiple times with its initial value?

Related 相关文章

  1. 1

    How can I backup all my Google Photos / Google Drive automatically on linux?

  2. 2

    how can i switch web pages of the website automatically , which i have created, using javascript?

  3. 3

    How can I cache/memoize my SQLAlchemy functions?

  4. 4

    How can I tell Spotlight to index my .dSYM bundles?

  5. 5

    How can I use oh-my-zsh with PHPStorm?

  6. 6

    How can I loop through values in my json file?

  7. 7

    Sensitivity analysis with R: How can I make my own plot

  8. 8

    How can I loop through my array in reverse order?

  9. 9

    How can I reduce the size of my git repo?

  10. 10

    How can I show the size of all files in my ~/.cache directory?

  11. 11

    How can I tell if a hard drive will fit my laptop?

  12. 12

    How can I tell if a hard drive will fit my laptop?

  13. 13

    How can I find my browser web log file?

  14. 14

    If i know how a traced output looks, how can i begin creating my function? (Scheme)

  15. 15

    How can we prevent that when I resize my window, my images move using HTML-CSS?

  16. 16

    How can I display the data from my Firebase Database in my web site?

  17. 17

    In C#, how can I keep all my items in a listbox from changing to the color I set last?

  18. 18

    How can I add more button on my Android application which already includes a scrollview?

  19. 19

    Mapping between DTO and domain objects, how can I make the process transparent to my repository?

  20. 20

    How can I "group" multiple rows into a collection in my PL/SQL cursor?

  21. 21

    Mercurial: How can a I make a snapshot of my working directory without doing a changeset?

  22. 22

    How can I add imported jar files to web-inf/lib in eclipse for my build?

  23. 23

    How can I improve the efficiency and/or performance of my relatively simple Java counting method?

  24. 24

    How can I import a model object file into my watch extension if it has a lot of dependencies

  25. 25

    How can I programatically determine where my C++ runtime libraries are?

  26. 26

    How can I get the list of the currently installed certificate authority on my ubuntu?

  27. 27

    Can I disable my GPU for enegry saving?

  28. 28

    Can I use the atto editor for my website?

  29. 29

    How can I preserve the value of my parameters through a function so it can be used multiple times with its initial value?

热门标签

归档