From f143ba3231276a21911dd49450033a3f2d182ea3 Mon Sep 17 00:00:00 2001 From: Jan Xie Date: Wed, 25 Sep 2013 10:51:01 +0800 Subject: [PATCH] add icon for task widget --- icons/taskwarrior.png | Bin 0 -> 1280 bytes widgets/task.lua | 18 ++++++++---------- 2 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 icons/taskwarrior.png diff --git a/icons/taskwarrior.png b/icons/taskwarrior.png new file mode 100644 index 0000000000000000000000000000000000000000..171af60260bcba14cafa18f1530935841d6f38b4 GIT binary patch literal 1280 zcmV+b1^@bqP)WFU8GbZ8()Nlj2>E@cM*00d-7L_t(I%XL&;XcSiz z{?5HSJIN&3S=Oz)M7Bw65K{%U4~A|^9$L~C3|OS-Tg`(%eJCg<_$GmZ(ozdrXi<{~ zp;%1BK&VY(=;D5Q!bZVbY1sWB9R!Zs;c@c8jUUkz{QIf z(b3TX03ZP9?d`>Z0|x*Au~_Vw<2avIRaHfp*>GJKm6eqyGb5kRt3n83X3aFsIU&UF z+qZB31po#H2C!$(9?+RHXK?iBQ2;g9i`Ng9i_e8HSMwhr=J0iD7wp`L~ggksS>U4SIcj zy*@rZ-keUSuP`&18LFzjQ(Ig6xoz8<+uPfB5fLaBiv=9V>DP6=LDRI2%nTwzI-S1T z)YSAL-h`N#m>BZ={U4VKr_<@X%pBUXWy?mfxVX4W)3mVH>s?>|PBSwz-{Sw_CK8G7 z%VRZ7+bo25e&^1eLn0Uqe(AbyR!Ui2o^|r%$-mzsh)5*z*fh=6yQ-@GbUHl~3WW~Q zZECkHD-a9@FElnbIxC5Cc6RnxpU+n#gm`U~R8@`Gww(|} z#BXbD+qP{T$z<|J0K#=$Yi@3?tGT)PE7x_a*Tyn45fKZ^vfOMoOXVaHA(2Q-u84LK zk;BaKojZ5_1OSF%Oso|&P4kJAa)U5Ua}$>?8naky#ba!_r*R-^H&SWwv$8jE)xid6PdpDIz^$6E>Z`!u~ z+%(NuA_6l*)3myW4ZUYb{=kaE;`#IEKbW4Lj_JC7SV}1Xz_Ki(P$(2$zI=Hc z0GB>POifLVEG#Tc)YaAPRTRZnwgBMudf~b*Gc!pk%ilWl^y$;SU@%D6u3h_D(==ON zy?Pb>{r$YKu+Z1u-o7`R%@!QTnfG`+>*XtyS|%wagb=W8JD161?q@QY*_xV~^ySN! zzd3Q@gn8q}jaTbyaBvX2ckf0|Pfx|xty}l{{r>NY#p0tvq3}Y}wA$+G>M#H{3}ZHz z%Pm$`R&F4o(DL%~@v*V7>z$pQ_R!D}+S=McZ<%TD=;-M2Kp@b;%swH+la<}sNJR6= qWb#5Z8vPkS@$A{NICA93YT|!n4[Next Tasks]\n" + .. task.font_size+2 .. "'>Tasks next\n" + .. "" .. f:read("*all") .. "\n" .. "" f:close() task_notification = naughty.notify({ text = c_text, - --icon = task.notify_icon, - --position = task.position, - --fg = task.fg, - --bg = task.bg, + icon = task.notify_icon, + position = task.position, + fg = task.fg, + bg = task.bg, timeout = tims }) end function task:attach(widget, args) local args = args or {} - task.icons = args.icons or icons_dir .. "cal/white/" task.font_size = tonumber(args.font_size) or 12 task.fg = args.fg or beautiful.fg_normal or "#FFFFFF" task.bg = args.bg or beautiful.bg_normal or "#FFFFFF" task.position = args.position or "top_right" - task.offset = 0 - task.notify_icon = nil + task.notify_icon = icons_dir .. "taskwarrior.png" widget:connect_signal("mouse::enter", function () task:show() end) widget:connect_signal("mouse::leave", function () task:hide() end) -- 2.39.5