add functions for picking colorscheme

This commit is contained in:
lucy 2026-05-28 16:55:47 +02:00
commit 479808a5a1
3 changed files with 34 additions and 18 deletions

18
functions.sh Executable file
View 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
}