-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from hillyu/add-sig-refresh
Add sig refresh
- Loading branch information
Showing
9 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
#simplay place the album in a fixed place and trigger reload of this script(using signal). | ||
|
||
echo -e "#img path=$HOME/.cache/cover.png width=280 height=280" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
title="Today:" | ||
color="#8EA6D6" | ||
fontsize="12pt" | ||
cmd="$(khal --color calendar 2>/dev/null)" | ||
source ~/.config/nwg-wrapper/termout.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
#!/usr/bin/env bash | ||
|
||
title="Failed Systemd Unit:" | ||
color="#c88fae" | ||
cmd="$(systemctl --failed)" | ||
textfont="Fixedsys Excelsior MonoL" | ||
# fontsize="6pt" | ||
source ~/.config/nwg-wrapper/termout.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
title="Last Upgrade:" | ||
color="#a1d4c7" | ||
pattern="$(tail -n1 /var/log/pacman.log | grep -iEo "([0-9]{4}-[0-9]{2}-[0-9]{2})").+(upgraded|installed)" | ||
cmd=$(grep -aiE "$pattern" /var/log/pacman.log|cut -d' ' -f4|sort -u) | ||
textfont="Fixedsys Excelsior MonoL" | ||
# fontsize="6pt" | ||
source ~/.config/nwg-wrapper/termout.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
#!/usr/bin/env bash | ||
|
||
title="System:" | ||
color="#c88fae" | ||
textfont="Fixedsys Excelsior MonoL" | ||
# fontsize="11pt" | ||
cmd="$(neofetch --disable wm uptime term)" | ||
source ~/.config/nwg-wrapper/termout.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
window { | ||
background-color: rgba (0, 0, 0, 0.0); | ||
} | ||
|
||
#box-outer { | ||
/* Define attributes of the box surrounding icons here */ | ||
background-color: rgba (255, 255, 255, 0.0) | ||
} | ||
|
||
#box-inner { | ||
/* font-family: "Fixedsys Excelsior MonoLF"; */ | ||
/* background-color: rgba (23, 53, 63, 0.75); */ | ||
/* color: #D6E1A5; */ | ||
padding: 0 20px 0 20px; | ||
background-color: rgba (61,76,95, 0.80); | ||
border-radius: 16px; | ||
padding: 2em 4em; | ||
margin: 0px 9px 9px 0px; | ||
box-shadow: 0px 3px 5px black | ||
/* box-shadow: 0px 8px 38px 8px rgba(0, 0, 0, 0.3); */ | ||
/* box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22); */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
title=${title:-"Output"} | ||
cmd=${cmd:-"I am empty"} | ||
color=${color:-"#C88FAF"} | ||
titlefont=${titlefont:-"SF Pro Display"} | ||
textfont=${textfont:-"SF Mono"} | ||
fontsize=${fontsize:-"10pt"} | ||
# cmd | ||
# color | ||
#ansifilter the cmd output to pango markup. | ||
cmd=$(ansifilter -c -M -F "$textfont" -s $fontsize -m ~/.config/nwg-wrapper/ansicolor.map --art-tundra <<< "$cmd"|sed "s/fgcolor=\"#000000\" bgcolor=\"#000000\"/bgcolor=\"#FFFFFF20\" fgcolor=\"$color\"/g") | ||
cat - << DOC | ||
<span foreground="$color" font_family="$titlefont" size="xx-large">$title</span> | ||
<span foreground="$color" font_family="$textfont" >$cmd</span> | ||
DOC | ||
|
||
# echo -e " " | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
title="Systemd Timers:" | ||
color="#8cc7d6" | ||
cmd="$(systemctl --user list-timers|head -n -1)" | ||
textfont="Fixedsys Excelsior MonoL" | ||
# fontsize="11pt" | ||
source ~/.config/nwg-wrapper/termout.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters