From 36d5168f316a4b3995e6fa601d4504ea851bbcc7 Mon Sep 17 00:00:00 2001 From: plotnikovanton Date: Mon, 19 Jan 2015 22:40:15 +0300 Subject: [PATCH] Powerarrow generator --- rc.lua.powerarrow-darker | 75 ++++++++---------- themes/powerarrow-darker/icons/cpu.png | Bin 128 -> 185 bytes themes/powerarrow-darker/icons/dwindle.png | Bin 149 -> 208 bytes themes/powerarrow-darker/icons/fairh.png | Bin 144 -> 203 bytes themes/powerarrow-darker/icons/fairv.png | Bin 154 -> 214 bytes themes/powerarrow-darker/icons/floating.png | Bin 135 -> 198 bytes themes/powerarrow-darker/icons/hdd.png | Bin 191 -> 253 bytes themes/powerarrow-darker/icons/magnifier.png | Bin 169 -> 228 bytes themes/powerarrow-darker/icons/mail.png | Bin 166 -> 189 bytes themes/powerarrow-darker/icons/mail_on.png | Bin 210 -> 213 bytes themes/powerarrow-darker/icons/max.png | Bin 169 -> 228 bytes themes/powerarrow-darker/icons/net.png | Bin 133 -> 193 bytes themes/powerarrow-darker/icons/net_wired.png | Bin 185 -> 186 bytes themes/powerarrow-darker/icons/note.png | Bin 142 -> 196 bytes themes/powerarrow-darker/icons/note_on.png | Bin 174 -> 175 bytes themes/powerarrow-darker/icons/spiral.png | Bin 147 -> 206 bytes themes/powerarrow-darker/icons/task.png | Bin 129 -> 189 bytes themes/powerarrow-darker/icons/tile.png | Bin 136 -> 195 bytes themes/powerarrow-darker/icons/tilebottom.png | Bin 140 -> 200 bytes themes/powerarrow-darker/icons/tileleft.png | Bin 134 -> 193 bytes themes/powerarrow-darker/icons/tiletop.png | Bin 140 -> 199 bytes 21 files changed, 35 insertions(+), 40 deletions(-) diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 539d181..d7c5ebc 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -122,7 +122,7 @@ lain.widgets.calendar:attach(mytextclock, { font_size = 10 }) mailicon = wibox.widget.imagebox(beautiful.widget_mail) mailicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn(mail) end))) --[[ commented because it needs to be set before use -mailwidget = wibox.widget.background(lain.widgets.imap({ +mailwidget = lain.widgets.imap({ timeout = 180, server = "server", mail = "mail", @@ -136,7 +136,7 @@ mailwidget = wibox.widget.background(lain.widgets.imap({ mailicon:set_image(beautiful.widget_mail) end end -}), "#313131") +}) ]] -- MPD @@ -160,7 +160,6 @@ mpdwidget = lain.widgets.mpd({ widget:set_markup(markup("#EA6F81", artist) .. title) end }) -mpdwidgetbg = wibox.widget.background(mpdwidget, "#313131") -- MEM memicon = wibox.widget.imagebox(beautiful.widget_mem) @@ -172,11 +171,11 @@ memwidget = lain.widgets.mem({ -- CPU cpuicon = wibox.widget.imagebox(beautiful.widget_cpu) -cpuwidget = wibox.widget.background(lain.widgets.cpu({ +cpuwidget = lain.widgets.cpu({ settings = function() widget:set_text(" " .. cpu_now.usage .. "% ") end -}), "#313131") +}) -- Coretemp tempicon = wibox.widget.imagebox(beautiful.widget_temp) @@ -193,7 +192,6 @@ fswidget = lain.widgets.fs({ widget:set_text(" " .. fs_now.used .. "% ") end }) -fswidgetbg = wibox.widget.background(fswidget, "#313131") -- Battery baticon = wibox.widget.imagebox(beautiful.widget_battery) @@ -235,13 +233,13 @@ volumewidget = lain.widgets.alsa({ -- Net neticon = wibox.widget.imagebox(beautiful.widget_net) neticon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(iptraf) end))) -netwidget = wibox.widget.background(lain.widgets.net({ +netwidget = lain.widgets.net({ settings = function() widget:set_markup(markup("#7AC82E", " " .. net_now.received) .. " " .. markup("#46A8C3", " " .. net_now.sent .. " ")) end -}), "#313131") +}) -- Separators spr = wibox.widget.textbox(' ') @@ -332,42 +330,39 @@ for s = 1, screen.count() do -- Widgets that are aligned to the upper right -- If you are moving widgets from a section with light grey background to dark grey or vice versa, -- use a replacement icon as appropriate from themes/powerarrow-darker/alticons so your icons match the bg. + + local right_layout_toggle = true + local function right_layout_add (...) + local arg = {...} + if right_layout_toggle then + right_layout:add(arrl_ld) + for i, n in pairs(arg) do + right_layout:add(wibox.widget.background(n ,'#313131')) + end + else + right_layout:add(arrl_dl) + for i, n in pairs(arg) do + right_layout:add(n) + end + end + right_layout_toggle = not right_layout_toggle + end + local right_layout = wibox.layout.fixed.horizontal() if s == 1 then right_layout:add(wibox.widget.systray()) end right_layout:add(spr) right_layout:add(arrl) - right_layout:add(arrl_ld) - right_layout:add(mpdicon) - right_layout:add(mpdwidgetbg) - right_layout:add(arrl_dl) - right_layout:add(volicon) - right_layout:add(volumewidget) - right_layout:add(arrl_ld) - right_layout:add(mailicon) - --right_layout:add(mailwidget) - right_layout:add(arrl_dl) - right_layout:add(memicon) - right_layout:add(memwidget) - right_layout:add(arrl_ld) - right_layout:add(cpuicon) - right_layout:add(cpuwidget) - right_layout:add(arrl_dl) - right_layout:add(tempicon) - right_layout:add(tempwidget) - right_layout:add(arrl_ld) - right_layout:add(fsicon) - right_layout:add(fswidgetbg) - right_layout:add(arrl_dl) - right_layout:add(baticon) - right_layout:add(batwidget) - right_layout:add(arrl_ld) - right_layout:add(neticon) - right_layout:add(netwidget) - right_layout:add(arrl_dl) - right_layout:add(mytextclock) - right_layout:add(spr) - right_layout:add(arrl_ld) - right_layout:add(mylayoutbox[s]) + right_layout_add(mpdicon, mpdwidget) + right_layout_add(voliconi, olumewidget) + --right_layout_add(mailicon, mailwidget) + right_layout_add(memicon, memwidget) + right_layout_add(cpuicon, cpuwidget) + right_layout_add(tempicon, tempwidget) + right_layout_add(fsicon, fswidget) + right_layout_add(baticon, batwidget) + right_layout_add(neticon,netwidget) + right_layout_add(mytextclock, spr) + right_layout_add(mylayoutbox[s]) -- Now bring it all together (with the tasklist in the middle) local layout = wibox.layout.align.horizontal() diff --git a/themes/powerarrow-darker/icons/cpu.png b/themes/powerarrow-darker/icons/cpu.png index ea8bfef42a860e24238ff59041acbfae1af60b0d..35af1c39c8db6a62963fb136ee503459e4b053d1 100644 GIT binary patch delta 157 zcmZo*+{rjWrJgCt+ueoXe|!I#{R|8YoCO|{#S9GG!XV7ZFl&wkP>{XE)7O>#KBKU( zf|0QE-U&b|3C$p_s0W_Au)78&q Iol`;+0DW>eO#lD@ delta 99 zcmdnV*uXeJCC1&;#W6(Ve6q=(^9}+Ah6X%ou4j49W~hWs&XSan$Xcjkl;FbKl&133 zV$I=Yb7a~VM+J7@^*yU0bizihr2Ie=L;w3WKNe<&YCVC^JMKxmWdH(CS3j3^P6IF)gNigJvni(`nz>0}cVlRxJjSPvX=P&N3$ljQhpO`NT?vtvevmfyrCE0L^= V3N8X~O!*jqz|+;wWt~$(696L@7SsR$ diff --git a/themes/powerarrow-darker/icons/fairh.png b/themes/powerarrow-darker/icons/fairh.png index 54a2f0410d77b975dd9bce1c999f4a6fe3df2583..62d3d99eb168e2b96a0ce89ccdad4a472c72a38c 100644 GIT binary patch delta 125 zcmbQhc$#s7N*r5~x4R3&e-K=-cll%n1_sUokH}&M25w;xW@MN(M*=9wUgGKN%6^|w zSXhD2M(3b7P$0}cVlRxJjSPvX=P&N3$ljQhpO`NUtIX+%r)e{q&Ohs0d WsvUBF((sD`2s~Z=T-G@yGywoX@)+X) diff --git a/themes/powerarrow-darker/icons/fairv.png b/themes/powerarrow-darker/icons/fairv.png index 60dc36b929e20f3b1ebaa8821998966c078ee537..131dd0f91316ef71f2f44b449a4d03f3f748d06d 100644 GIT binary patch delta 131 zcmbQmc#Uy_N(x(&x4R3&e-K=-cll%n1_sUokH}&M25w;xW@MN(M*=9wUgGKN%6^|w zSXkcjj=!G@P$=2c#WBRa-q!ZA+teL_8W}uY{an^LB{Ts5E>kIG delta 71 zcmcb{IE!(DibkTRi(`nz>0}cVlRxJjSPvX=P&N3$ljQhpO`NUt@zmvv4FO#lTL8-D-* diff --git a/themes/powerarrow-darker/icons/floating.png b/themes/powerarrow-darker/icons/floating.png index a527fefcec0534b2fd60cc5afbbe056367f96ba7..d25c47b961afcc7b578d15aedb0fcab32e6c6745 100644 GIT binary patch delta 181 zcmZo?JjOUdvYw5Bfg$W%UpSCrOY(MiVfYV%3-&Ib3>4uk@Q5sCVBi)8VMc~ob0mO* z>?NMQuI%?2g@skj3Y_-z0)>J-T^vI!PAC8Q|KFb3ltGwz>VXHw9jvn-+})kd$u?)x zCPQV%<_(%EDHjd+a&8@wDpELf;|G&${u)KSY!x+0fu6b`-eg77hl05Rn)e*pdJb=w aU}X4Yt!U0D-^v9vpTX1B&t;ucLK6V5QaNM* delta 117 zcmX@c*v>dXGLMOYf#K#FNg&DK=jq}YqH#Xi#Ka^;LDs-<0_%&_y{x_atG?#McsV-< z7iKw6K9+iC0*6qSv(URt4(99w3H+Wrf^04}7&CQTJn7`~MCgLsh1`Mz79vJ`4F4XA USW4@L$bgLYboFyt=akR{02~!4tN;K2 diff --git a/themes/powerarrow-darker/icons/hdd.png b/themes/powerarrow-darker/icons/hdd.png index ad7eca56359c3232d2ae36d0e232e02a56fedd42..0fb6833992cd57152c44d29af64c0979da002ff2 100644 GIT binary patch delta 225 zcmV<703QFp0sR4xB!2>8OGiWi|A&vvzW@LL32;bRa{vGf6951U69E94oEQKA00(qQ zO+^Ra0TUA+9(hIkPXGV_j!8s8R4C8Q(ySdI!YoT(NNwXRNM+TMk+Vl zFqCY7Sb!=uEgK;2(T0c%CAhQoDYhe9%lDY^OXPC7z?E06eOe=sc(5P<(I#GswqngP z10UOs9PC-NE6|m}V6by-@Ds2XTxzHTjt1Kr+RzJn?P@4mz!i$^nmoDVO3b<8N>iWt bCs*(ScswMyalI*&00000NkvXXu0mjf&AwSL delta 163 zcmV;U09^n50lxu|B!7lUL_t(2&&|>;4#H3j0N`(g1cyVigam`+ASiZ)9pkAQb{Hf# zAY1@7jpYV}A3GNIkWkm=%WM16V*T_rM*I+k5Qw*G(H%U{x|u4GhF(hM7G@prvE9SY zz1OaX&Kfk1Ids4lryQ!V$0~=GYScD4l$1i*+iu)Vu0m_#A{?|spZOZcP yN|{DZ0StOutoaW8P)XuHt=@l5``3H(PmE_QJ?v+&uTlfr&fw|l=d#Wzp$Py&4oW)! delta 141 zcmV;80CNB20jU9yB!6&8L_t(I%VRV&H2lv%1;E5WB{295VnODtUOk&=jiI5bxDCRk zh#1S5uo;3&@#@vHaazKJ%SGsh;WGqpU?Uqw$Pj|D1~ZJ1Ap{MA8A42KG7&O_Pz2yL v2%C2Z8OB6P6yr0Dg_J~x4=@hjVgvvq`#3(aAc%SZ0000*e@B0}~^?kKgp(2z z5)v}nin9|}WleNda5@{X@m5+(q<~=uN63n8JH@;VfI!OW?D|##1H}+&$;{X8I!+8X WH}KqMTKVf2$Qn;qKbLh*2~7ZRDk)+B diff --git a/themes/powerarrow-darker/icons/mail_on.png b/themes/powerarrow-darker/icons/mail_on.png index c2b70ffda8cb21f0a480cc0edf13adff827c91ca..19106d7bb921f60cd5bdc832756020be7665f3e2 100644 GIT binary patch delta 140 zcmV;70CWG+0o4JJQGee76B8XSZK|nZ0001DNklluBz#Oe1;|8KFx^D)mXy_mtnXJ!D$do1F~V*#E=0a uwv>%*D@-FcF}wzm8*7ZCd2I+91OT;PGM5EDEK>jg002ovP6b4+LSTYaL^Z4c delta 137 zcmV;40CxY?0n!1GQGeYD4GteG_IAZ70001ANkl&wMU^Qs2swrN>l5d~J>T0ZEgv&5ohTt>^rUBV7Y+}fO5nIYe rwiTukn;2e$$c;6|(Y!VU4FUk2bu5qC1>b@I0000AP1h@;V6eum-ZzrY96q@T9E}$o ylroK+0vPnRSo0nFp_0UZTD||A_OJKmpBT?rdf3lkU!?}Lox#)9&t;ucLK6Uba7v#5 delta 141 zcmV;80CNB20jU9yB!6&8L_t(I%VRV&H2lv%1;E5WB{295VnODtUOk&=jiI5bxDCRk zh#1S5uo;3&@#@vHaazKJ%SGsh;WGqpU?Uqw$Pj|D1~ZJ1Ap{MA8A42KG7&O_Pz2yL v2%C2Z8OB6P6yr0Dg_J~x4=@hjVgvvq`#3(aAc%SZ0000{XE)7O>#KBKU( zvgRgkb&$FsPZ!4!jq}MSDGEF@B-rLFiKX~`u4majO>p(1Xa7$Kov?AcqR=q2b&bqn zs~IY*R`$GTy!l7|t_;t8)Bo#J*QC09V+fnv!L|IE-2WHPCS+ey2w-8DW+o=TZC&{u Ppz#czu6{1-oD!MDCC}R2Tj;X*|USHP_DsoDS%I#JEOHP}J|N#Ip(6mlOh67@~s(WM1r@n9KkKp00i_ I>zopr0Q1Twi2wiq diff --git a/themes/powerarrow-darker/icons/net_wired.png b/themes/powerarrow-darker/icons/net_wired.png index a40d7f0e5720b10ff644899c3fa403f4b21815bd..e8cc2bded95cee82ea42f1cd5dd16bb6deeaeb6a 100644 GIT binary patch delta 142 zcmdnVxQlUuq!b$i14G!kzHlJLmgMd3!tfsi7wla=d7`3R=6yzCVP)YG_J6!Ud3R42 z#}JFt$q5pyBF(zd+y30&lzO^;m*feL9>y0*c6N3Wzal&g8RQcVrFQi9^DCRp_T=La r`f3m)WfoGd>ABI(RJ@nz6a#~)x!RgrQc?GTMlyK1`njxgN@xNAK{qeW delta 168 zcmdnRxRY^$WIYoD1H;WVl0cGyv%n*=n1O*?7=#%aX3dcR3bL1Y`ns~;WtJ4sHx2Na zu?i>@;pyTSqH#Xi#Ka^;LDs-<0xMhRwr3!a7PG16M>ET!&D*w3i^$CgTlg|XaYduX zep7Sv>({O&?c(Cy@LnJwqk_)p|>iRw{XE)7O>#KBKU( zEW^f{CF_7fp`I>|AsXkCO;QwiW=OEjR}xF{ds83D=Eug?CeO28GR^Q&z!J8lmJ%t2 zvyU7I;J$kQPrbnpy(jza?(}Ev5P4}_lU{M=01zlDoIY@%K+sk2aX@bZ!#xY0tE*=R R3IJ_j@O1TaS?83{1OR3PI{yFw delta 113 zcmX@Y*vB|QB`eg^#W6(Ve6q=(^9}+Ah6X%Vt~w{?M6gA&`LVIJ$@8q2OnVr#gl(y% zL`vc8BL@Pwm(FHyeeWdk~wE{XOm7G{Qz+qtf8TNs(e O00f?{elF{r5}E)F<|vH- diff --git a/themes/powerarrow-darker/icons/note_on.png b/themes/powerarrow-darker/icons/note_on.png index 790b7b48e97e49e00eff0f246560937085768715..1a7ab9476d2336646f4e033e3d14da58e99193fc 100644 GIT binary patch delta 101 zcmV-r0Gj`<0j~j&QC{Bx6B8UU`MH(V0000yNkl0j>d%QC-~w2@(<#%roYW0000xNkl0}cVlavK)2}uitBx=|;DinvUpZ8Zj)-fYPOIdHCyM@TE X6B@32R@sXKwJ>0}cVlRxJjSPvX=P&N3$ljQhpO`NT?vtvevmfyrC3z4Ra V3NABPHn}kXfv2mV%Q~loCIBbr7dZd` diff --git a/themes/powerarrow-darker/icons/task.png b/themes/powerarrow-darker/icons/task.png index 0376e4241e2baf16d26694499ebd26b08fe65ce3..9701b6848f5a0b2645af7121f9d0e98d55b8ddb3 100644 GIT binary patch delta 161 zcmZo<+{-vYrJgCt+ueoXe|!I#{R|8YoCO|{#S9GG!XV7ZFl&wkP>{XE)7O>#KBKU( zjOfu_g)BfJKTj9O5RLQ6CMgO$GbGsND~U-g{%OCdKv!AJ_3Zz^)7!l)uRtV7kr zgeryITqabPG-I_I&AM8sl4krtP>aQdjIg-F7X*w$HG%=m1P->U@!JUi0000VO0|RG)M`SSr1Gg{;GcwGYBLNg-FY)wsWxvlT zEG)yZY>(_+piqFPi(`nz>0}cVlavK)2}uitBx=|;DinvUpZ8Zj)-fYPOIdHCyROKT X@A~$4qP}wjwJ>NpgI)CeBvc*)bzS%WqVO0|RG)M`SSr1Gg{;GcwGYBLNg-FY)wsWxvlT zEG%st@h!;?C=}}H;uvCaI@!d;BxM0xLec^ui5j+z3dLdT=lz`@(YtWr${q{eL(3SX z52QU*;8zYh%qeLQr0w{qXX}LvA#P4JdlFmLHB3ww6uCTG<#N^Ukjp?b89ZJ6T-G@y GGywpH12)3| delta 92 zcmV-i0HgoN0gM5VBt26}L_t(I%VRV&H2lv%1;E5WB{295VnODtUOk&=jiI5bxDCRl y02{z&;UEtqQo{)uFj6Z);*7P>&{Tqvofj0N)gI9zWy5&@0000VO0|RG)M`SSr1Gg{;GcwGYBLNg-FY)wsWxvlT zEG(^X$3yu6P{_~I#WBRzI+DrK~s6U0dX; XsJ?y0{%7xiS{OWC{an^LB{Ts5?UE(! delta 66 zcmX@e*v2?PMcLQW#WBRNpgI)CeBvc*)bzS%Wq=z|7SI3y diff --git a/themes/powerarrow-darker/icons/tiletop.png b/themes/powerarrow-darker/icons/tiletop.png index f7e25b6909e7da5fe799faf96f009b93c578923f..3da75a195a59ef0b96d48e3c431fa7d1acd08061 100644 GIT binary patch delta 125 zcmeBSJkB^lC5|o0+ueoXKL{?^yL>VO0|RG)M`SSr1Gg{;GcwGYBLNg-FY)wsWxvlT zEG*4jryn#4C=}x9;uvCaI@!d;BxM0xLec^ui5j+z3dLdT=lzvG#>eZMs&ZtayP=4B Xjml-~|H6-eS{OWC{an^LB{Ts5%vB{y delta 66 zcmX@k*uywMMLF2h#WBRNpgI)CeBv+93QW*>WPU>h9Z}j V$z4q7*pSTt1fH&bF6*2UngBhW7?c12