added bin directory
parent
a1b3c04dd5
commit
89c98115e6
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
cat="$(which bat 2>/dev/null || which cat)"
|
||||||
|
curl -s "cheat.sh/$1" | eval $cat
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# get the default sink
|
||||||
|
default_sink="$(pactl info | grep -e "Default Sink:" | awk '{print $3}')"
|
||||||
|
echo "current default: $default_sink"
|
||||||
|
|
||||||
|
# get the sinks
|
||||||
|
sinks="$(pactl list sinks short | awk '{print $2}')"
|
||||||
|
|
||||||
|
# filter out the default sink
|
||||||
|
not_active="$(echo "$sinks" | grep -v -e "$default_sink")"
|
||||||
|
|
||||||
|
# get the sink after the dafault one
|
||||||
|
next_sink="$(echo -e "$sinks\n$not_active" | grep -e "$default_sink" -A 1 | tail -n 1 )"
|
||||||
|
|
||||||
|
# set the new default-sink
|
||||||
|
pactl set-default-sink "$next_sink"
|
||||||
|
echo "new default: $next_sink"
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
sudo pacman -Qtdq | sudo pacman -Rns - 2> /dev/null|| echo "No orphans to remove"
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
awk '/^[a-z]/ && last {print "<small>",$0,"\t",last,"</small>"} {last=""} /^#/{last=$0}' ~/.config/sxhkd/sxhkdrc |
|
||||||
|
column -t -s $'\t' |
|
||||||
|
rofi -dmenu -i -markup-rows -no-show-icons -width 1000 -lines 15 -yoffset 40
|
Loading…
Reference in New Issue