Embrace Pulseaudio as audio server
This commit is contained in:
parent
932c82162a
commit
9743634f3c
|
@ -33,8 +33,12 @@ set PATH $PATH /$HOME/.emacs.d/bin
|
||||||
# Go workspace
|
# Go workspace
|
||||||
set -x GOPATH $HOME/.local/share/go/
|
set -x GOPATH $HOME/.local/share/go/
|
||||||
|
|
||||||
|
|
||||||
|
# fff colors [0-9]
|
||||||
|
set -x FFF_COL1 4
|
||||||
|
set -x FFF_COL2 8
|
||||||
# fff favourites
|
# fff favourites
|
||||||
set -x FFF_FAV1 $HOME/Documents/Uni
|
set -x FFF_FAV1 $HOME/Documents/Uni
|
||||||
set -x FFF_FAV2 $HOME/Documents/Papers
|
set -x FFF_FAV2 $HOME/Documents/Papers
|
||||||
set -x FFF_FAV3 $HOME/Documents/Books/Academic/
|
set -x FFF_FAV3 $HOME/Documents/Books/Academic
|
||||||
set -x FFF_FAV4 $HOME/Documents/Education/
|
set -x FFF_FAV4 $HOME/Documents/Education
|
||||||
|
|
|
@ -27,13 +27,6 @@
|
||||||
<https://forums.freebsd.org/threads/howto-nice-fonts.2021/> (2009)
|
<https://forums.freebsd.org/threads/howto-nice-fonts.2021/> (2009)
|
||||||
<https://redd.it/4tb2dt> (2016) -->
|
<https://redd.it/4tb2dt> (2016) -->
|
||||||
<selectfont>
|
<selectfont>
|
||||||
<acceptfont>
|
|
||||||
<pattern>
|
|
||||||
<patelt name="family">
|
|
||||||
<string>lime</string>
|
|
||||||
</patelt>
|
|
||||||
</pattern>
|
|
||||||
</acceptfont>
|
|
||||||
<acceptfont>
|
<acceptfont>
|
||||||
<pattern>
|
<pattern>
|
||||||
<patelt name="family">
|
<patelt name="family">
|
||||||
|
@ -44,7 +37,7 @@
|
||||||
<acceptfont>
|
<acceptfont>
|
||||||
<pattern>
|
<pattern>
|
||||||
<patelt name="family">
|
<patelt name="family">
|
||||||
<string>termsyn</string>
|
<string>cherry</string>
|
||||||
</patelt>
|
</patelt>
|
||||||
</pattern>
|
</pattern>
|
||||||
</acceptfont>
|
</acceptfont>
|
||||||
|
|
|
@ -17,7 +17,7 @@ transition=1
|
||||||
;brightness-night=0.4
|
;brightness-night=0.4
|
||||||
; Set the screen gamma (for all colors, or each color channel
|
; Set the screen gamma (for all colors, or each color channel
|
||||||
; individually)
|
; individually)
|
||||||
gamma=0.8
|
;gamma=0.8
|
||||||
;gamma=0.8:0.7:0.8
|
;gamma=0.8:0.7:0.8
|
||||||
; This can also be set individually for day and night since
|
; This can also be set individually for day and night since
|
||||||
; version 1.10.
|
; version 1.10.
|
||||||
|
|
|
@ -249,9 +249,9 @@ exec swaymsg split vertical
|
||||||
# Special keys
|
# Special keys
|
||||||
#
|
#
|
||||||
# Volume
|
# Volume
|
||||||
bindsym XF86AudioRaiseVolume exec amixer set Master 5%+
|
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5%
|
||||||
bindsym XF86AudioLowerVolume exec amixer set Master 5%-
|
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5%
|
||||||
bindsym XF86AudioMute exec amixer set Master toggle
|
bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle
|
||||||
# Brightness
|
# Brightness
|
||||||
bindsym XF86MonBrightnessUp exec brillo -A 10
|
bindsym XF86MonBrightnessUp exec brillo -A 10
|
||||||
bindsym XF86MonBrightnessDown exec brillo -U 10
|
bindsym XF86MonBrightnessDown exec brillo -U 10
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"height": 20, // Waybar height (to be removed for auto height)
|
"height": 20, // Waybar height (to be removed for auto height)
|
||||||
"modules-left": ["sway/workspaces"],
|
"modules-left": ["sway/workspaces"],
|
||||||
"modules-center": ["clock"],
|
"modules-center": ["clock"],
|
||||||
"modules-right": ["mpd", "network", "custom/alsa", "battery"],
|
"modules-right": ["mpd", "network", "pulseaudio", "battery"],
|
||||||
// Modules configuration
|
// Modules configuration
|
||||||
// "sway/workspaces": {
|
// "sway/workspaces": {
|
||||||
// "disable-scroll": true,
|
// "disable-scroll": true,
|
||||||
|
@ -82,20 +82,10 @@
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
// "scroll-step": 1, // %, can be a float
|
// "scroll-step": 1, // %, can be a float
|
||||||
"format": "{volume}% {icon} {format_source}",
|
"format": "<span foreground='#88C0D0'>{icon}</span>{volume}%",
|
||||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
"format-muted": "<span foreground='#88C0D0'></span>",
|
||||||
"format-bluetooth-muted": " {icon} {format_source}",
|
|
||||||
"format-muted": " {format_source}",
|
|
||||||
"format-source": "{volume}% ",
|
|
||||||
"format-source-muted": "",
|
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"headphones": "",
|
"default": ["", "", ""]
|
||||||
"handsfree": "",
|
|
||||||
"headset": "",
|
|
||||||
"phone": "",
|
|
||||||
"portable": "",
|
|
||||||
"car": "",
|
|
||||||
"default": ["", "", ""]
|
|
||||||
},
|
},
|
||||||
"on-click": "pavucontrol"
|
"on-click": "pavucontrol"
|
||||||
},
|
},
|
||||||
|
@ -110,11 +100,5 @@
|
||||||
"escape": true,
|
"escape": true,
|
||||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||||
},
|
|
||||||
"custom/alsa": {
|
|
||||||
"exec": "amixer get Master | sed -nre 's/.*\\[off\\].*/muted/p; s/.*\\[(.*%)\\].*/\\1/p'",
|
|
||||||
"signal": 11,
|
|
||||||
"interval": 3,
|
|
||||||
"tooltip": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
/* `otf-font-awesome` is required to be installed for icons */
|
/* `otf-font-awesome` is required to be installed for icons */
|
||||||
font-family: lime, Siji;
|
font-family: cherry, Siji;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
min-height: 0px;
|
min-height: 0px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue