pipewire stuff
This commit is contained in:
parent
fd005e4585
commit
0083bc65b7
6 changed files with 74 additions and 17 deletions
|
@ -125,14 +125,14 @@ exec xsetroot -solid "#000000"
|
|||
exec xss-lock -n /home/kunsi/.bin/notify.sh -- /home/kunsi/.bin/screenlock.sh
|
||||
exec xinput disable 'SynPS/2 Synaptics TouchPad'
|
||||
|
||||
exec qpwgraph
|
||||
|
||||
bindsym XF86Favorites exec /home/kunsi/.bin/screenlock.sh
|
||||
|
||||
bindsym $mod+Prior exec pactl set-sink-volume @DEFAULT_SINK@ +2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0
|
||||
bindsym $mod+Next exec pactl set-sink-volume @DEFAULT_SINK@ -2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym XF86AudioMicMute exec pactl set-source-mute alsa_input.pci-0000_07_00.6.HiFi__hw_acp__source toggle
|
||||
bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+; exec wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
|
||||
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-; exec wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
|
||||
bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
bindsym XF86AudioMicMute exec wpctl set-mute laptop-internal-microphone toggle
|
||||
|
||||
bindsym XF86MonBrightnessUp exec sudo light -A 5
|
||||
bindsym XF86MonBrightnessDown exec sudo light -U 5
|
||||
|
|
|
@ -1,19 +1,24 @@
|
|||
from i3pystatus import Status
|
||||
|
||||
status = Status(
|
||||
logfile='/tmp/i3pystatus.log',
|
||||
logfile='/dev/stderr',
|
||||
)
|
||||
|
||||
status.register("pulseaudio",
|
||||
format="♪I {volume}%",
|
||||
format_muted="♪I -∞dB",
|
||||
step="2",
|
||||
sink="alsa_output.pci-0000_07_00.6.HiFi__hw_Generic_1__sink")
|
||||
status.register("pulseaudio",
|
||||
format="♪D {volume}%",
|
||||
format_muted="♪D -∞dB",
|
||||
step="2",
|
||||
sink="@DEFAULT_SINK@")
|
||||
#status.register("pulseaudio",
|
||||
# format="♪I {volume}%",
|
||||
# format_muted="♪I -∞dB",
|
||||
# step="2",
|
||||
# sink="alsa_output.pci-0000_07_00.6.HiFi__hw_Generic_1__sink")
|
||||
#status.register("pulseaudio",
|
||||
# format="♪D {volume}%",
|
||||
# format_muted="♪D -∞dB",
|
||||
# step="2",
|
||||
# sink="@DEFAULT_SINK@")
|
||||
|
||||
status.register("shell",
|
||||
format="♪D {output}",
|
||||
command="wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -d: -f2",
|
||||
interval=1)
|
||||
status.register("shell",
|
||||
format="{output}",
|
||||
hints = {"markup": "pango"},
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
rule = {
|
||||
matches = {
|
||||
{
|
||||
{ "node.name", "equals", "bluez_output.38_18_4C_BF_65_26.1" },
|
||||
},
|
||||
},
|
||||
apply_properties = {
|
||||
["node.description"] = "WH-1000XM3 (Franzi)",
|
||||
["node.nick"] = "bluetooth-WH-1000XM3",
|
||||
},
|
||||
}
|
||||
|
||||
table.insert(bluez_monitor.rules, rule)
|
|
@ -0,0 +1,13 @@
|
|||
rule = {
|
||||
matches = {
|
||||
{
|
||||
{ "node.name", "equals", "alsa_input.pci-0000_07_00.6.HiFi__hw_Generic_1__source" },
|
||||
},
|
||||
},
|
||||
apply_properties = {
|
||||
["node.description"] = "Laptop Headphones Microphone",
|
||||
["node.nick"] = "laptop-headphones-mic",
|
||||
},
|
||||
}
|
||||
|
||||
table.insert(alsa_monitor.rules, rule)
|
|
@ -0,0 +1,13 @@
|
|||
rule = {
|
||||
matches = {
|
||||
{
|
||||
{ "node.name", "equals", "alsa_input.pci-0000_07_00.6.HiFi__hw_acp__source" },
|
||||
},
|
||||
},
|
||||
apply_properties = {
|
||||
["node.description"] = "Laptop internal Microphone",
|
||||
["node.nick"] = "laptop-internal-mic",
|
||||
},
|
||||
}
|
||||
|
||||
table.insert(alsa_monitor.rules, rule)
|
13
.config/wireplumber/main.lua.d/51-rename-laptop-output.lua
Normal file
13
.config/wireplumber/main.lua.d/51-rename-laptop-output.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
rule = {
|
||||
matches = {
|
||||
{
|
||||
{ "node.name", "equals", "alsa_output.pci-0000_07_00.6.HiFi__hw_Generic_1__sink" },
|
||||
},
|
||||
},
|
||||
apply_properties = {
|
||||
["node.description"] = "Laptop Speakers/Headphones",
|
||||
["node.nick"] = "laptop-internal-out",
|
||||
},
|
||||
}
|
||||
|
||||
table.insert(alsa_monitor.rules, rule)
|
Loading…
Reference in a new issue