From 8cbdb9d7f00937ae9c453f85890040e8ebd878a3 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Thu, 9 Jun 2016 17:27:21 -0500 Subject: [PATCH] added audio controls for dtarchaio --- .config/i3/dtarchaio.config | 15 +++++++++++++++ .config/i3/thurstybook.config | 4 ++-- .config/i3status/dtarchaio.config | 9 ++++++++- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.config/i3/dtarchaio.config b/.config/i3/dtarchaio.config index 62eebc7..5f52321 100644 --- a/.config/i3/dtarchaio.config +++ b/.config/i3/dtarchaio.config @@ -167,5 +167,20 @@ bar { bindsym Mod1+Control+l exec i3lock -b -d -c 000000 -e -f +# Start all windows with no border. Still able to toggle through them with $mod+Shift+B new_window none new_float pixel + +# Sreen brightness controls +bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness + +# Alsa Volume controls +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% #increase sound volume +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% #decrease sound volume +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound + +# Music Player controls +bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause +bindsym XF86AudioNext exec --no-startup-id playerctl next +bindsym XF86AudioPrev exec --no-startup-id playerctl previous diff --git a/.config/i3/thurstybook.config b/.config/i3/thurstybook.config index b1c493a..f173abb 100644 --- a/.config/i3/thurstybook.config +++ b/.config/i3/thurstybook.config @@ -164,11 +164,11 @@ bar { tray_output primary } -bindsym Mod1+Control+l exec slock +bindsym Mod1+Control+l exec i3lock -b -d -c 000000 -e -f # Start all windows with no border. Still able to toggle through them with $mod+Shift+B new_window none -new_float none +new_float pixel # Sreen brightness controls bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness diff --git a/.config/i3status/dtarchaio.config b/.config/i3status/dtarchaio.config index b0fb4cc..8a955d7 100644 --- a/.config/i3status/dtarchaio.config +++ b/.config/i3status/dtarchaio.config @@ -11,7 +11,8 @@ general { interval = 5 } -#order += "ipv6" +order += "ipv6" +order += "volume master" order += "disk /" #order += "run_watch DHCP" order += "run_watch SPVPN" @@ -55,3 +56,9 @@ load { disk "/" { format = "%avail" } + +volume master { + format = "🔈%volume" + format_muted = "🔇" + device = "pulse" +}