quickshell/functions.sh

18 lines
554 B
Shell
Executable file

#!/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
}