Compare commits

..

4 Commits

6 changed files with 11 additions and 5 deletions

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@
!betterlockscreen/
!bspwm/
!custom_icons/
!dotdot/
!i3/
!mpd/

BIN
custom_icons/audio.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
custom_icons/battery.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
custom_icons/music.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -4,7 +4,7 @@
# terminal emulator
super + Return
kitty
st
# program launcher
# super + @space
@@ -130,7 +130,7 @@ super + Tab
#Programas
super + b
zen-browser
helium-browser
super + shift + b
firefox --private-window
@@ -141,7 +141,7 @@ super + v
xdotool getactivewindow key ctrl+v
super + e
kitty -e yazi
st -e yazi
Print
flameshot gui
super + m

View File

@@ -16,12 +16,12 @@ getFormalNameFromSink() {
echo "Bluetooth audio"
;;
*usb-Synaptics*)
echo "USB-c audio"
echo "USB-C audio"
;;
*USB*)
echo "USB audio"
;;
*HDMI*)
*HDMI* | *DP* | *DisplayPort*)
echo "Screen audio"
;;
*pci*)
@@ -40,9 +40,14 @@ declare -A sink_map
declare menu_options
readarray -t sink_list < <(pactl list sinks | grep -e "Name" | awk -F: '{print $2}')
sink_default=$(pactl get-default-sink)
for sink in "${sink_list[@]}"; do
formal_name=$(getFormalNameFromSink $sink)
if [ "$sink" = "$sink_default" ]; then
formal_name="󰅂 $formal_name"
fi
sink_map["$formal_name"]="$sink"
if [[ ${#menu_options} -ne 0 ]]; then
menu_options="$menu_options|"