1
0
Fork 0
cleanup

cleanup
This commit is contained in:
Luca Bilke 2023-03-29 00:09:07 +02:00
parent ee76891600
commit 977098e756
6 changed files with 33 additions and 26 deletions

View File

@ -154,6 +154,7 @@ fi  # FILE
*.DS_Store 
*.gitconfig 
*.gitignore 
*.gitmodules 
*.gitattributes 
*.gitlab-ci.yml 
*.bashrc 

@ -1 +1 @@
Subproject commit 9c3174aa98f98630bb4317efa3560009602bf7d4
Subproject commit 1ca356f3552f45d3ffb522c3b184befd92481773

View File

@ -53,6 +53,7 @@ read ans
exit
fi
sudo make install
make clean
done
printf "${GREEN}Dotfiles Synced Successfully!${NC}\n"

View File

@ -1,18 +1,19 @@
#!/bin/sh
clock=$(date '+%I')
case "$clock" in
"00") icon="" ;;
"01") icon="" ;;
"02") icon="" ;;
"03") icon="" ;;
"04") icon="" ;;
"05") icon="" ;;
"06") icon="" ;;
"07") icon="" ;;
"08") icon="" ;;
"09") icon="" ;;
"10") icon="" ;;
"11") icon="" ;;
"12") icon="" ;;
esac
printf "%s \033[11m%s\033[10m %s\n" "$(date "+%H:%M")" "$icon" "$(date "+%d.%m.%Y")"
# clock=$(date '+%I')
# case "$clock" in
# "00") icon="" ;;
# "01") icon="" ;;
# "02") icon="" ;;
# "03") icon="" ;;
# "04") icon="" ;;
# "05") icon="" ;;
# "06") icon="" ;;
# "07") icon="" ;;
# "08") icon="" ;;
# "09") icon="" ;;
# "10") icon="" ;;
# "11") icon="" ;;
# "12") icon="" ;;
# esac
# printf "%s \033[11m%s\033[10m %s\n" "$(date "+%H:%M")" "$icon" "$(date "+%d.%m.%Y")"
date "+%H:%M %d.%m.%Y"

View File

@ -4,10 +4,10 @@ big="\033[11m"
reset="\033[10m"
pidof -x sbd-playerctl >/dev/null 2>&1 || sbd-playerctl >/dev/null 2>&1 &
[ "$(playerctl status 2>&1)" = "No players found" ] && echo "$bigﱙ$reset" && exit 1
[ "$(playerctl status 2>&1)" = "No players found" ] && printf "$bigﱙ$reset" && exit 1
# song="$(playerctl metadata xesam:artist) - $(playerctl metadata xesam:title)"
song="$(playerctl metadata xesam:title) - $(playerctl metadata xesam:artist)"
[ ${#song} -gt 35 ] && song="$(printf %.35s "$song")…"
icon="$(playerctl status | sed "s/Playing//;s/Paused//;s/Stopped/ﱙ/;")"
echo "$big$icon$reset $song"
printf "$big$icon$reset $song"

16
TODO
View File

@ -1,8 +1,9 @@
TODO: Create a better bitwarden integration
TODO: Separate ZSH config like so: https://github.com/thoughtbot/dotfiles
TODO: Look into using ansible for dotfiles: https://github.com/Addvilz/dots
TODO: Validate directory structure: https://wiki.archlinux.org/title/XDG_Base_Directory https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
TODO: Look into the following plugins:
-- TODO --
Create a better bitwarden integration
Separate ZSH config like so: https://github.com/thoughtbot/dotfiles
Look into using ansible for dotfiles: https://github.com/Addvilz/dots
Validate directory structure: https://wiki.archlinux.org/title/XDG_Base_Directory https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
Look into the following plugins:
https://github.com/sparsick/ansible-zsh
https://github.com/se-jaeger/zsh-activate-py-environment
https://github.com/MichaelAquilina/zsh-autoswitch-virtualenv
@ -15,4 +16,7 @@
https://github.com/hcgraf/zsh-sudo
https://github.com/GuilleDF/zsh-ubuntualiases
TODO: keep looking into this: https://github.com/unixorn/awesome-zsh-plugins#completions
keep looking into this: https://github.com/unixorn/awesome-zsh-plugins#completions
-- FIX --
sb-playerctl trailing dash when no artist