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-left = i3
modules-center = xwindow modules-center = xwindow
# modules-right = unread_mail cpu battery temperature date modules-right = unread_mail cpu battery temperature date
modules-right = date
tray-position = right tray-position = right
tray-padding = 2 tray-padding = 2
@ -93,7 +92,7 @@ black = ${#000000}
#cursor-scroll = ns-resize #cursor-scroll = ns-resize
#+END_SRC #+END_SRC
* Bottom Bar t Bottom Bar
#+BEGIN_SRC conf #+BEGIN_SRC conf
[bar/bottom] [bar/bottom]
enable-ipc = true enable-ipc = true
@ -123,11 +122,9 @@ black = ${#000000}
font-2 = Weather Icons:size=10;1 font-2 = Weather Icons:size=10;1
# font-3 = siji:pixelsize=10;1 # font-3 = siji:pixelsize=10;1
modules-left = modules-left = mpd pulseaudio
# modules-left = mpd pulseaudio
# modules-center = xwindow # modules-center = xwindow
# modules-right = filesystem xkeyboard nordvpn chromecast screenshot weather emacs caffeine redshift modules-right = filesystem xkeyboard nordvpn chromecast screenshot weather emacs caffeine redshift
modules-right =
# tray-position = right # tray-position = right
# tray-padding = 2 # tray-padding = 2
@ -341,6 +338,8 @@ ramp-11 = 
[module/pulseaudio] [module/pulseaudio]
type = internal/pulseaudio type = internal/pulseaudio
sink = alsa_output.pci-0000_00_1f.3.analog-stereo
# Open pavucontrol on left right # Open pavucontrol on left right
format-volume =%{A1:pavucontrol &:}<label-volume> <bar-volume>%{A} 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 ** TODO cscreen script
* Sound Setup
#+begin_src bash
yay -S pulseaudio pavucontrol
#+end_src
* Music Setup * Music Setup
** Sound Server - Pulse Audio ** Sound Server - Pulse Audio
https://wiki.archlinux.org/index.php/PulseAudio 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. 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/ https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Running/
@ -1768,8 +1777,6 @@ https://wiki.archlinux.org/index.php/NordVPN
| =nordvpn status= | | | =nordvpn status= | |
| =nordvpn countries= | | | =nordvpn countries= | |
*** TODO Integration with Polybar
** TODO Maybe use NordVPM with openVPN Instead? ** TODO Maybe use NordVPM with openVPN Instead?
https://github.com/nstinus/nordvpn https://github.com/nstinus/nordvpn
https://github.com/jotyGill/openpyn-nordvpn https://github.com/jotyGill/openpyn-nordvpn