opencode and mpd enhancements

This commit is contained in:
2026-03-12 22:26:26 -04:00
parent 945f8b3204
commit 76ed9417f9
2 changed files with 12 additions and 2 deletions
+7
View File
@@ -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
+5 -2
View File
@@ -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