diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mus | 2 | ||||
-rwxr-xr-x | scripts/sask | 15 | ||||
-rwxr-xr-x | scripts/shot | 4 | ||||
-rwxr-xr-x | scripts/swall | 8 |
4 files changed, 25 insertions, 4 deletions
diff --git a/scripts/mus b/scripts/mus index 46b8b0b..7015616 100755 --- a/scripts/mus +++ b/scripts/mus @@ -2,6 +2,6 @@ # Play a file in $HOME/music directory using mpv -music_name=$(find "${HOME}"/music | fzf) +music_name=$(find "${HOME}"/media/music | fzf) mpv "${music_name}" diff --git a/scripts/sask b/scripts/sask new file mode 100755 index 0000000..1ea0f3f --- /dev/null +++ b/scripts/sask @@ -0,0 +1,15 @@ +#!/bin/sh + +. slib + +check_program "ollama" + +if [ "${1}" = "-s" ]; then + addition="answer in a short way:" + shift +fi + +question="${addition} ${@}" +model="codellama" + +echo "${question}" | ollama run "${model}" diff --git a/scripts/shot b/scripts/shot index dc1de87..7404943 100755 --- a/scripts/shot +++ b/scripts/shot @@ -10,7 +10,7 @@ options: -s Select the area with the cursor -h Print this message and exit -NOTE: save directory is ~/pics/screenshots +NOTE: save directory is ~/pics/screenshot EOF exit 0 @@ -18,7 +18,7 @@ exit 0 check_program "scrot" -default_dir="${HOME}"/pics/screenshots +default_dir="${HOME}"/pics/screenshot s_flg="" while getopts "d:sh" option; do diff --git a/scripts/swall b/scripts/swall index 2588b4b..8e5ffb6 100755 --- a/scripts/swall +++ b/scripts/swall @@ -27,7 +27,13 @@ fi while getopts "hcd:" option; do case "${option}" in - c) run "xwallpaper --clear" ;; + c) + #FIXME: use `run` function + killall picom + xwallpaper --clear + picom & + exit 0 + ;; d) input="${OPTARG}" ;; |