diff --git a/.config/i3/config b/.config/i3/config index d7a5518..919e477 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -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 diff --git a/.config/i3pystatus/config.py b/.config/i3pystatus/config.py index 7e6844f..1f41249 100644 --- a/.config/i3pystatus/config.py +++ b/.config/i3pystatus/config.py @@ -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"}, diff --git a/.config/wireplumber/bluetooth.lua.d/51-rename-sony-headphones.lua b/.config/wireplumber/bluetooth.lua.d/51-rename-sony-headphones.lua new file mode 100644 index 0000000..883d6d3 --- /dev/null +++ b/.config/wireplumber/bluetooth.lua.d/51-rename-sony-headphones.lua @@ -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) diff --git a/.config/wireplumber/main.lua.d/51-rename-laptop-headphones-microphone.lua b/.config/wireplumber/main.lua.d/51-rename-laptop-headphones-microphone.lua new file mode 100644 index 0000000..280192e --- /dev/null +++ b/.config/wireplumber/main.lua.d/51-rename-laptop-headphones-microphone.lua @@ -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) diff --git a/.config/wireplumber/main.lua.d/51-rename-laptop-internal-microphone.lua b/.config/wireplumber/main.lua.d/51-rename-laptop-internal-microphone.lua new file mode 100644 index 0000000..92532cf --- /dev/null +++ b/.config/wireplumber/main.lua.d/51-rename-laptop-internal-microphone.lua @@ -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) diff --git a/.config/wireplumber/main.lua.d/51-rename-laptop-output.lua b/.config/wireplumber/main.lua.d/51-rename-laptop-output.lua new file mode 100644 index 0000000..c7fda40 --- /dev/null +++ b/.config/wireplumber/main.lua.d/51-rename-laptop-output.lua @@ -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)