opencode and mpd enhancements
This commit is contained in:
@@ -16,6 +16,10 @@ if [ -x "$(command -v go)" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -x "$(command -v ollama)" ]; then
|
||||||
|
export OLLAMA_KEEP_ALIVE=10m
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -x "$(command -v fastfetch)" ]; then
|
if [ -x "$(command -v fastfetch)" ]; then
|
||||||
if [ -f ~/.config/fastfetch/minimal.jsonc ]; then
|
if [ -f ~/.config/fastfetch/minimal.jsonc ]; then
|
||||||
fastfetch -c ~/.config/fastfetch/minimal.jsonc
|
fastfetch -c ~/.config/fastfetch/minimal.jsonc
|
||||||
@@ -25,3 +29,6 @@ if [ -x "$(command -v fastfetch)" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\nShall we play a game?"
|
echo -e "\nShall we play a game?"
|
||||||
|
|
||||||
|
# opencode
|
||||||
|
export PATH=/home/dilan/.opencode/bin:$PATH
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if mpc status | grep -q "\[playing\]"; then
|
c_song=$(mpc current)
|
||||||
mpc status | head -1
|
|
||||||
|
if [ -n "${c_song}" ]; then
|
||||||
|
p_status=$(mpc status "%state%")
|
||||||
|
echo -e "[${p_status}] ${c_song}"
|
||||||
else
|
else
|
||||||
echo -n "mpd"
|
echo -n "mpd"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user