Skip to content

Instantly share code, notes, and snippets.

@xentec
Last active December 18, 2015 15:48
Show Gist options
  • Save xentec/5806528 to your computer and use it in GitHub Desktop.
Save xentec/5806528 to your computer and use it in GitHub Desktop.
-- 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