1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-01 09:19:26 +00:00

[polybar] Add custom date module

This commit is contained in:
2020-03-16 19:47:08 +01:00
parent 5a007f25e8
commit c132945659
3 changed files with 17 additions and 5 deletions

View File

@ -0,0 +1,7 @@
#!/bin/bash
date=$(date "+%H:%M | %d de %B")
hour_minute=$(echo "$date" | cut -f 1 -d"|")
day_of_month=$(echo "$date" | cut -f 2 -d"|")
echo %{F#F5A70A}%{T4}"${hour_minute}"%{F-}%{T-} \|"$day_of_month"