Last active
December 18, 2015 15:48
-
-
Save xentec/5806528 to your computer and use it in GitHub Desktop.
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
-- echo ' <this text>' | awesome-client | |
-- for ssh usage prepend 'export DISPLAY=:0;' | |
local n = require("naughty"); | |
n.notify({preset = n.config.presets.critical, | |
title = "Oops, a birthday happened!", | |
text = "(dont shit your pants)"}); | |
local t = timer({timeout=10}); | |
local function dev() | |
n.notify({preset = { bg = "#ffaa00", fg = "#ffffff", timeout = 0 }, | |
title = "Delivering birthday cake!", | |
text = "Coming soon™"}); | |
t:disconnect_signal("timeout", dev); | |
t:stop(); | |
t.timeout = 60; | |
t:start(); | |
t:connect_signal("timeout", function() | |
n.notify({preset = { margin = 20, fg = "#ffaa00", font = "terminus", timeout = 0 }, | |
title = "Hau rein :D!\n", | |
text = " ,:/+/-\n /M/ .,-=;//;-\n .:/= ;MH/, ,=/+%$XH@MM#@:\n -$##@+$###@H@MMM#######H:. -/H#\n .,H@H@ X######@ -H#####@+- -+H###@X\n .,@##H; +XM##M/, =%@###@X;-\nX%- :M##########$. .:%M###@%:\nM##H, +H@@@$/-. ,;$M###@%, -\nM####M=,,---,.-%%H####M$: ,+@##\n@##################@/. :%H##@$-\nM###############H, ;HM##M$=\n#################. .=$M##M$=\n################H..;XM##M$= .:+\nM###################@%= =+@MH%\n@################M/. =+H#X%=\n=+M##############M, -/X#X+;.\n .;XM##########H= ,/X#H+:,\n .=+HM######M+/+HM@+=.\n ,:/%XM####H/.\n ,.:=-.\n"}); | |
t:stop(); | |
end); | |
end; | |
t:connect_signal("timeout", dev); | |
t:start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment