Add dotfiles
This commit is contained in:
parent
49bfe1a4d3
commit
b6e01a720b
52 changed files with 4701 additions and 0 deletions
18
dwmbar/modules/sunmoon
Executable file
18
dwmbar/modules/sunmoon
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue