dwm and dwmbar
This commit is contained in:
1 parent
307448edd3
commit
135fe92331
50 files changed
+1846
No files matched your search
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Outputs sun if its daytime and moon if its nighttime
|
||||
# Requires the redshift package
|
||||
|
||||
SUN_ICON='盛'
|
||||
MOON_ICON=''
|
||||
|
||||
get_sunmoon()
|
||||
{
|
||||
if [[ $(redshift -p | grep "Period" | awk '{print $2}') == "Night" ]]; then
|
||||
echo "$MOON_ICON"
|
||||
else
|
||||
echo "$SUN_ICON"
|
||||
fi
|
||||
}
|
||||
|
||||
get_sunmoon
|
||||
Reference in new issue
Block a user