clean up scripts
This commit is contained in:
11
.config/polybar/scripts/info-hexdate.sh
Normal file
11
.config/polybar/scripts/info-hexdate.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
day=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f3)
|
||||
month=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f2)
|
||||
year=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f1)
|
||||
|
||||
day=$(echo "obase=16; $day" | bc)
|
||||
month=$(echo "obase=16; $month" | bc)
|
||||
year=$(echo "obase=16; $year" | bc)
|
||||
|
||||
echo "$day-$month-$year"
|
||||
Reference in New Issue
Block a user