commit 333163ea770c08405580294f950150699446fa89
parent 09d8e979fb3c89d8f6640d6fe2e4a5f839537443
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 4 Jan 2019 16:21:56 +0100
Use pulseaudio
Diffstat:
3 files changed, 33 insertions(+), 29 deletions(-)
diff --git a/links/.config/i3/config b/links/.config/i3/config
@@ -64,6 +64,7 @@ bindsym $mod+Return exec $term -e tmux
bindsym $mod+Shift+Return exec $term
# other application launchers
+bindsym $mod+a exec $term -e pulsemixer
bindsym Mod1+space exec ~/bin/ducksearch
bindsym $mod+e exec $term -e vim
bindsym $mod+m exec $term -e ~/bin/tmux-mutt.sh
@@ -81,10 +82,13 @@ bindsym Mod1+Mod4+l exec --no-startup-id ~/bin/keyboard-layout-switch.sh && pkil
bindsym $mod+n exec $term -e ranger
# volume control with alsamixer
-bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 3%+ unmute && pkill -RTMIN+4 i3blocks
-bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 3%- unmute && pkill -RTMIN+4 i3blocks
-bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle && pkill -RTMIN+4 i3blocks
-bindsym XF86AudioMicMute exec --no-startup-id amixer set 'Mic Mute' toggle && pkill -RTMIN+4 i3blocks
+#bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 3%+ unmute && pkill -RTMIN+4 i3blocks
+#bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 3%- unmute && pkill -RTMIN+4 i3blocks
+#bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle && pkill -RTMIN+4 i3blocks
+#bindsym XF86AudioMicMute exec --no-startup-id amixer set 'Mic Mute' toggle && pkill -RTMIN+4 i3blocks
+bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +3 && pkill -RTMIN+4 i3blocks
+bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -3 && pkill -RTMIN+4 i3blocks
+bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute && pkill -RTMIN+4 i3blocks
# interactive dialogs
#bindsym $mod+grave exec --no-startup-id dmenuunicode
@@ -155,7 +159,7 @@ bindsym $mod+Shift+f floating toggle
bindsym $mod+Tab focus mode_toggle
# focus the parent container
-bindsym $mod+a focus parent
+#bindsym $mod+a focus parent
# focus the child container
bindsym $mod+d focus child
diff --git a/links/.config/i3/i3scripts/i3volume b/links/.config/i3/i3scripts/i3volume
@@ -1,7 +1,7 @@
#!/bin/sh
case $BLOCK_BUTTON in
- 1) st -e alsamixer ;;
+ 1) st -e pulsemixer ;;
2) pulsemixer --toggle-mute ;;
4) pulsemixer --change-volume +5 ;;
5) pulsemixer --change-volume -5 ;;
diff --git a/links/.config/mpd/mpd.conf b/links/.config/mpd/mpd.conf
@@ -207,25 +207,25 @@ input {
#
# An example of an ALSA output:
#
-audio_output {
- type "alsa"
- name "Built-in soundcard (ALSA)"
- device "hw:0,0" # optional
-# mixer_type "hardware" # optional
-# mixer_device "default" # optional
-# mixer_control "PCM" # optional
-# mixer_index "0" # optional
-}
-
-audio_output {
- type "alsa"
- name "First external soundcard (ALSA)"
- device "hw:1,0" # optional
-# mixer_type "hardware" # optional
-# mixer_device "default" # optional
-# mixer_control "PCM" # optional
-# mixer_index "0" # optional
-}
+# audio_output {
+# type "alsa"
+# name "Built-in soundcard (ALSA)"
+# device "hw:0,0" # optional
+# # mixer_type "hardware" # optional
+# # mixer_device "default" # optional
+# # mixer_control "PCM" # optional
+# # mixer_index "0" # optional
+# }
+#
+# audio_output {
+# type "alsa"
+# name "First external soundcard (ALSA)"
+# device "hw:1,0" # optional
+# # mixer_type "hardware" # optional
+# # mixer_device "default" # optional
+# # mixer_control "PCM" # optional
+# # mixer_index "0" # optional
+# }
#
# An example of an OSS output:
#
@@ -289,12 +289,12 @@ audio_output {
#
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
#
-#audio_output {
-# type "pulse"
-# name "My Pulse Output"
+audio_output {
+ type "pulse"
+ name "pulse audio"
## server "remote_server" # optional
## sink "remote_server_sink" # optional
-#}
+}
#
# An example of a winmm output (Windows multimedia API).
#