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