adds rofi as styling
This commit is contained in:
parent
d03146f3a1
commit
1682bed87f
9 changed files with 124 additions and 8 deletions
15
.config/rofi/scripts/pactl.sh
Executable file
15
.config/rofi/scripts/pactl.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$HOME/.config/rofi/scripts/_lib.sh"
|
||||
|
||||
setOption no-custom true
|
||||
case $ROFI_RETV in
|
||||
0)
|
||||
defaultSink=$(pactl get-default-sink)
|
||||
echo -en $(pactl --format=json list sinks | jq --arg default "$defaultSink" -r 'map("\(.name)\\0display\\x1f\(.description)\\x1fmeta\\x1fsinks,output,\(.description)\\x1factive\\x1f\(.name == $default)\\n") | add')
|
||||
;;
|
||||
1)
|
||||
name=$@
|
||||
pactl set-default-sink "$name"
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue