updated terminology in scripts and made set default actually set the default sink
This commit is contained in:
parent
c5890c020e
commit
cfd82b29cf
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
default_loc=/tmp/pactl-default-source
|
default_loc=/tmp/pactl-default-sink
|
||||||
|
|
||||||
if [ ! -f "$default_loc" ] ; then
|
if [ ! -f "$default_loc" ] ; then
|
||||||
/home/solomon/.scripts/set-default-card
|
/home/solomon/.scripts/set-default-card
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
default_loc=/tmp/pactl-default-source
|
default_loc=/tmp/pactl-default-sink
|
||||||
|
|
||||||
if [ ! -f "$default_loc" ] ; then
|
if [ ! -f "$default_loc" ] ; then
|
||||||
/home/solomon/.scripts/set-default-card
|
/home/solomon/.scripts/set-default-card
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
choice=$(pactl list short sinks | awk '{print $2}' | dmenu -i -p "which source should be default?")
|
choice=$(pactl list short sinks | awk '{print $2}' | dmenu -i -p "which sink should be default?")
|
||||||
|
|
||||||
rm /tmp/pactl-default-source --force # to ignore if it isn't there
|
rm /tmp/pactl-default-sink --force # to ignore if it isn't there
|
||||||
echo "$choice" >> /tmp/pactl-default-source
|
echo "$choice" >> /tmp/pactl-default-sink
|
||||||
|
pactl set-default-sink $choice # make sure that the chosen sink is the
|
||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
default_loc=/tmp/pactl-default-source
|
default_loc=/tmp/pactl-default-sink
|
||||||
|
|
||||||
if [ ! -f "$default_loc" ] ; then
|
if [ ! -f "$default_loc" ] ; then
|
||||||
/home/solomon/.scripts/set-default-card
|
/home/solomon/.scripts/set-default-card
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user