Add sink settings to pulseaudio for polybar

This commit is contained in:
Thomas Dehaeze 2019-04-04 12:36:10 +02:00
parent 6dfebedadf
commit 54901d2bd1
2 changed files with 19 additions and 13 deletions

View File

@ -81,8 +81,7 @@ black = ${#000000}
modules-left = i3
modules-center = xwindow
# modules-right = unread_mail cpu battery temperature date
modules-right = date
modules-right = unread_mail cpu battery temperature date
tray-position = right
tray-padding = 2
@ -93,7 +92,7 @@ black = ${#000000}
#cursor-scroll = ns-resize
#+END_SRC
* Bottom Bar
t Bottom Bar
#+BEGIN_SRC conf
[bar/bottom]
enable-ipc = true
@ -123,11 +122,9 @@ black = ${#000000}
font-2 = Weather Icons:size=10;1
# font-3 = siji:pixelsize=10;1
modules-left =
# modules-left = mpd pulseaudio
modules-left = mpd pulseaudio
# modules-center = xwindow
# modules-right = filesystem xkeyboard nordvpn chromecast screenshot weather emacs caffeine redshift
modules-right =
modules-right = filesystem xkeyboard nordvpn chromecast screenshot weather emacs caffeine redshift
# tray-position = right
# tray-padding = 2
@ -341,6 +338,8 @@ ramp-11 = 
[module/pulseaudio]
type = internal/pulseaudio
sink = alsa_output.pci-0000_00_1f.3.analog-stereo
# Open pavucontrol on left right
format-volume =%{A1:pavucontrol &:}<label-volume> <bar-volume>%{A}

View File

@ -553,10 +553,19 @@ gui: https://christian.amsuess.com/tools/arandr/
** TODO cscreen script
* Sound Setup
#+begin_src bash
yay -S pulseaudio pavucontrol
#+end_src
* Music Setup
** Sound Server - Pulse Audio
https://wiki.archlinux.org/index.php/PulseAudio
Install
#+begin_src bash
yay -S pulseaudio pulseaudio-alsa pulseaudio-bluetooth
#+end_src
If sound is not working, should run =pulseaudio --kill= to kill the deamon and then =pulseaudio --daemonize= to run it again.
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Running/
@ -566,13 +575,13 @@ https://wiki.archlinux.org/index.php/Music_Player_Daemon
*** Installation
#+BEGIN_SRC bash
yay -S mpd
yay -S mpd
#+END_SRC
*** Automatic Startup
#+BEGIN_SRC bash
systemctl start --user mpd.service
systemctl enable --user mpd.service
systemctl start --user mpd.service
systemctl enable --user mpd.service
#+END_SRC
*** Command line interface to MPD - MPC
@ -611,7 +620,7 @@ https://github.com/beetbox/beets
*** Installation
#+BEGIN_SRC bash
yay -S beets
yay -S beets
#+END_SRC
*** Configuration
@ -1768,8 +1777,6 @@ https://wiki.archlinux.org/index.php/NordVPN
| =nordvpn status= | |
| =nordvpn countries= | |
*** TODO Integration with Polybar
** TODO Maybe use NordVPM with openVPN Instead?
https://github.com/nstinus/nordvpn
https://github.com/jotyGill/openpyn-nordvpn