Changed from pulseaudio modules to alsa ones
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
97e991cb6b
commit
addd8fa66f
@ -142,7 +142,7 @@ module-margin-right = 2
|
|||||||
|
|
||||||
font-0 = FiraCode Nerd Font:style=medium:size=10
|
font-0 = FiraCode Nerd Font:style=medium:size=10
|
||||||
|
|
||||||
modules-center = pulseaudio memory cpu wlan eth battery
|
modules-center = alsa memory cpu wlan eth battery
|
||||||
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
@ -276,9 +276,8 @@ format-prefix-foreground = ${colors.foreground-alt}
|
|||||||
format-underline = #0a6cf5
|
format-underline = #0a6cf5
|
||||||
|
|
||||||
label = %date%
|
label = %date%
|
||||||
|
[module/alsa]
|
||||||
[module/pulseaudio]
|
type = internal/alsa
|
||||||
type = internal/pulseaudio
|
|
||||||
|
|
||||||
format-volume = <label-volume>
|
format-volume = <label-volume>
|
||||||
format-volume-prefix = "蓼 "
|
format-volume-prefix = "蓼 "
|
||||||
|
@ -51,16 +51,16 @@ super + {Left,Down,Up,Right}
|
|||||||
bspc node -v {-20 0,0 20,0 -20,20 0}
|
bspc node -v {-20 0,0 20,0 -20,20 0}
|
||||||
|
|
||||||
XF86AudioMute
|
XF86AudioMute
|
||||||
pactl set-sink-mute @DEFAULT_SINK@ toggle
|
amixer set Master toggle
|
||||||
|
|
||||||
XF86AudioRaiseVolume
|
XF86AudioRaiseVolume
|
||||||
if [ (pacmd list-sinks| grep -A 15 '* index'| awk '/volume: front/\{ print $5 \}' | sed 's/[%|,]//g') -le "98" ] ; pactl set-sink-volume @DEFAULT_SINK@ +2%; end;
|
amixer set Master 2%+
|
||||||
|
|
||||||
XF86AudioLowerVolume
|
XF86AudioLowerVolume
|
||||||
pactl set-sink-volume @DEFAULT_SINK@ -2%
|
amixer set Master 2%-
|
||||||
|
|
||||||
XF86AudioMicMute
|
XF86AudioMicMute
|
||||||
pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
amixer set Capture toggle
|
||||||
|
|
||||||
XF86MonBrightnessDown
|
XF86MonBrightnessDown
|
||||||
echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) - 5) > /sys/class/backlight/amdgpu_bl0/brightness
|
echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) - 5) > /sys/class/backlight/amdgpu_bl0/brightness
|
||||||
@ -73,3 +73,12 @@ Print
|
|||||||
|
|
||||||
ctrl + Print
|
ctrl + Print
|
||||||
set FILE_NAME "/home/louis/Pictures/Screenshots/Screeshot-"(date +'%d-%m-%Y-%H-%M-%S')".png" && import ${FILE_NAME} && dunstify "Screenshot taken: ${FILE_NAME}"
|
set FILE_NAME "/home/louis/Pictures/Screenshots/Screeshot-"(date +'%d-%m-%Y-%H-%M-%S')".png" && import ${FILE_NAME} && dunstify "Screenshot taken: ${FILE_NAME}"
|
||||||
|
|
||||||
|
XF86AudioPlay
|
||||||
|
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
|
||||||
|
|
||||||
|
XF86AudioPrev
|
||||||
|
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
|
||||||
|
|
||||||
|
XF86AudioNext
|
||||||
|
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
|
||||||
|
Loading…
Reference in New Issue
Block a user