added bin directory
This commit is contained in:
parent
a1b3c04dd5
commit
89c98115e6
4 changed files with 28 additions and 0 deletions
3
bin/cheat
Executable file
3
bin/cheat
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cat="$(which bat 2>/dev/null || which cat)"
|
||||
curl -s "cheat.sh/$1" | eval $cat
|
18
bin/cycle_sinks.sh
Executable file
18
bin/cycle_sinks.sh
Executable file
|
@ -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"
|
2
bin/remove_orphans
Executable file
2
bin/remove_orphans
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
sudo pacman -Qtdq | sudo pacman -Rns - 2> /dev/null|| echo "No orphans to remove"
|
5
bin/sxhkd-help
Executable file
5
bin/sxhkd-help
Executable file
|
@ -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 a new issue