add functions for picking colorscheme
This commit is contained in:
parent
8f775dedef
commit
479808a5a1
3 changed files with 34 additions and 18 deletions
18
functions.sh
Executable file
18
functions.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/env bash
|
||||
command=$(tinty list | $launcher)
|
||||
qsc() { qs ipc call "$@"; }
|
||||
switch-theme() {
|
||||
case ${1} in
|
||||
fuzzel)
|
||||
choice=$(tinty list | fuzzel -d)
|
||||
tinty apply $choice
|
||||
;;
|
||||
fzf)
|
||||
choice=$(tinty list | fzf)
|
||||
tinty apply $choice
|
||||
;;
|
||||
*)
|
||||
printf "usage: switch-theme <selector>\n<selector can be either fuzzel or fzf\n"
|
||||
esac
|
||||
|
||||
}
|
||||
Loading…
Reference in a new issue