Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

ech0-de/volume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

volume

Access and control your volume easily via Terminal or Hotkey.

Installation

Just make youstream executable and place it somewhere within your $PATH.

For example:

$ chmod +x youstream
# mv youstream /usr/local/bin/youstream

Usage

$ volume [ previous | play-pause | next | up | down | mute | unmute | toggle-mute | get ]

Configuration

Edit the script for personal preferences.

Dependencies

  • Bash
  • coreutils (cut, echo, tail, test)
  • libnotify (notify-send)
  • alsa-utils (amixer)
  • cmus (cmus-remote)
  • grep
  • sed

Examples

awesome

Add the following lines to your rc.lua to use your multimedia keys as hotkeys for volume:

awful.key({},     "XF86AudioPrev",        function () awful.util.spawn("volume previous") end),
awful.key({},     "XF86AudioPlay",        function () awful.util.spawn("volume play-pause") end),
awful.key({},     "XF86AudioNext",        function () awful.util.spawn("volume next") end),
awful.key({},     "XF86AudioRaiseVolume", function () awful.util.spawn("volume up") end),
awful.key({},     "XF86AudioLowerVolume", function () awful.util.spawn("volume down") end),
awful.key({},     "XF86AudioMute",        function () awful.util.spawn("volume toggle-mute") end)

License

Copyright (c) 2012 Dominik Meissner <dome@code-breaker.de>

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted (subject to the limitations in the
disclaimer below) provided that the following conditions are met:

 * Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.

 * Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the
   distribution.

 * Neither the name of <Owner Organization> nor the names of its
   contributors may be used to endorse or promote products derived
   from this software without specific prior written permission.

NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
GRANTED BY THIS LICENSE.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages