From d2d91386330240d595f113f99a76add38409c1b9 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Fri, 26 Jul 2013 23:10:34 +0200 Subject: [PATCH] rainbow added --- README.rst | 41 ++++++++++++++++++++--------------- rc.lua.rainbow | 33 +++++++++++++++++++++++++++- themes/rainbow/wall_orig.png | Bin 6147 -> 0 bytes 3 files changed, 56 insertions(+), 18 deletions(-) delete mode 100755 themes/rainbow/wall_orig.png diff --git a/README.rst b/README.rst index a9d895a..d71e1e0 100644 --- a/README.rst +++ b/README.rst @@ -13,49 +13,56 @@ Notable features: - Fast mpd and volume shortcuts (first time you see this trick in Awesome) - Other fancy shortcuts for copying to the clipboard (goodbye clipboard managers!), toggle wiboxes, widgets popups, screenshots capture, moving clients - Quake style dropdown terminal -- Calendar with current day highlighted and previous/next month switch with just a click -- Elegant notifications for new mails, current song, hdd critical state, low battery +- Calendar with current day highlighted and previous/next month switch with a click +- Elegant notifications for new mails, current song, volume level, hdd critical state, low battery - Yahoo Weather integration -- A net carrier status notifier -- Full localization potential (just easily edit about 5 lines - look for 'stub' keywords) +- Net carrier status notifier +- Full localization potential (just easily edit a few lines - look for 'stub' keywords) - Colorful autoupdating icons - Symbolic tag names +- TXT layouts - PNG taskbar +- No borders when there's only one visible client +- Powerful volume bar -They're scattered all over the set, but you can get them all *only* in Blackburn. +They're scattered all over the set, so try each theme and choose the one you enjoy the most. Gallery -------- -**Multicolor** copycatted from tip_ +**Multicolor** copycatted from tip_ because I liked so much I wanted to do a version of mine .. image:: http://i.imgur.com/vBMn8C8.jpg -**Powerarrow Darker** copycatted from romockee_ +**Powerarrow Darker** copycatted from romockee_ because his one was stuck at v3.4 .. image:: http://i.imgur.com/inRoOrg.png -**Steamburn** copycatted from ok100_ +**Steamburn** copycatted from ok100_ because it was so cool, but it was dwm .. image:: http://i.imgur.com/esHcVzj.jpg -**Blackburn** the wannabe definitive configuration, born from the best of previous ones +**Blackburn** .. image:: http://dotshare.it/public/images/uploads/553.png -**Dremora** a Blackburn variation +**Dremora** .. image:: http://dotshare.it/public/images/uploads/589.png +**Rainbow** + +.. image:: http://i.imgur.com/Ae7hAsK.png + Notes -------- **Do not** use without reading and modifying according to your preferences and system specs. Fonts are Terminus (Multicolor, Powerarrow Darker) and Tamsyn (Steamburn, Blackburn, Dremora). -Blackburn and Dremora use Icons_ and Yawn_: **if you're running Ubuntu**, be sure to have bitmaps_ enabled. +Blackburn and Dremora use Icons_ and Yawn_: **if you're running Debian/Ubuntu**, be sure to have bitmaps enabled (1_ 2_). -Steamburn, Blackburn and Dremora have X colorschemes too. Check here_. +Except Multicolor and Powerarrow Darker, every theme has an X colorscheme. Check here_. **Have any suggestions?** Did you see some great stuff and you want me to put my paws on it? Feel free to email me, it might just be the next copycat! @@ -65,18 +72,18 @@ Luke Bonham License -------- -BY-NC-SA_ +If you like this work, you are free to use it as defined in BY-NC-SA_. -I liked! You liked? Then link your buddies here so they can like too! +I only ask you to not remove my signatures, or to add a link to this repository if you make your own versions. -Let us spread some style, in order to make Awesome appearance awesome too. +Let us spread some style, in order to make Awesome appearance awesome too! .. _tip: http://theimmortalphoenix.deviantart.com/art/Full-Color-Awesome-340997258 .. _romockee: https://github.com/romockee/powerarrow-dark .. _ok100: http://ok100.deviantart.com/art/DWM-January-2013-348656846 .. _Icons: https://github.com/copycat-killer/dots/tree/master/.fonts .. _Yawn: https://github.com/copycat-killer/yawn -.. _bitmaps: https://wiki.ubuntu.com/Fonts#Enabling_Bitmapped_Fonts +.. _1: http://weiwu.sdf.org/100921.html +.. _2: https://wiki.ubuntu.com/Fonts#Enabling_Bitmapped_Fonts .. _here: https://github.com/copycat-killer/dots/tree/master/.colors .. _BY-NC-SA: http://creativecommons.org/licenses/by-nc-sa/3.0/ - diff --git a/rc.lua.rainbow b/rc.lua.rainbow index 8fb1771..5ae933c 100755 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -405,6 +405,8 @@ function (widget, args) -- critical elseif (args[2] <= 5 and batstate() == 'Discharging') then naughty.notify{ + -- Italian localization + -- can be a stub for your own localization text = "sto per spegnermi...", title = "Carica quasi esaurita!", position = "top_right", @@ -417,6 +419,8 @@ function (widget, args) -- low elseif (args[2] <= 10 and batstate() == 'Discharging') then naughty.notify({ + -- Italian localization + -- can be a stub for your own localization text = "attacca il cavo!", title = "Carica bassa", position = "top_right", @@ -703,11 +707,13 @@ root.buttons(awful.util.table.join( globalkeys = awful.util.table.join( - -- Capture a screenshot + -- Take a screenshot awful.key({ altkey }, "p", function() awful.util.spawn("screenshot",false) end), awful.key({ modkey, }, "Left", awful.tag.viewprev ), + awful.key({ altkey, "Control" }, "j", awful.tag.viewprev ), awful.key({ modkey, }, "Right", awful.tag.viewnext ), + awful.key({ altkey, "Control" }, "k", awful.tag.viewnext ), awful.key({ modkey, }, "Escape", awful.tag.history.restore), awful.key({ modkey, }, "k", function () @@ -972,3 +978,28 @@ client.connect_signal("focus", client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) -- }}} + +-- {{{ Arrange signal handler + +for s = 1, screen.count() do screen[s]:connect_signal("arrange", function () + local clients = awful.client.visible(s) + local layout = awful.layout.getname(awful.layout.get(s)) + + if #clients > 0 then -- Fine grained borders and floaters control + for _, c in pairs(clients) do -- Floaters always have borders + if awful.client.floating.get(c) or layout == "floating" then + c.border_width = beautiful.border_width + + -- No borders with only one visible client + elseif #clients == 1 or layout == "max" then + clients[1].border_width = 0 + awful.client.moveresize(0, 0, 2, 2, clients[1]) + else + c.border_width = beautiful.border_width + end + end + end + end) +end + +-- }}} diff --git a/themes/rainbow/wall_orig.png b/themes/rainbow/wall_orig.png deleted file mode 100755 index 2411ff608ae99ba5b55f7bc062e10cb569cb0e47..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6147 zcmeAS@N?(olHy`uVBq!ia0y~yU=3qnU}oT81B#rtvpEE$*pj^6T^Rm@;DWu&Cj&(| z3p^r=85p>QL70(Y)*K0-AbW|YuPggqc1b}q@mG0!7BVo1Pw;ec45_&F=8j?4)O3lq zhu>w+w>SiFD=JPnc*_**Md({#pTl z@E`W|*_`K3U%zv7yQQ679LQB+k3R0*{rTC+%R6`MGdp%Fw{D-Y`~Lg$Z{AM2T0U#$ z<-gm1ZkZ$fn4#w1=c6^Y)h5Q1?%vAv1?pp9xWKU*Oi$bZ@-Kq`=O`B#45Ohjnixj& z!e~)2S`>_ygrgu8#IyfQewFciq6bhk@bshP&_5cK=OG z+bog%v?UajJt8{&-^ZPgf4`omkO3z0_TBNy4Zm*-v=?Xtd+b19a!3nAIjF2*0?{s` z+|ke&O$;M5FIa<%1oO=^-Ej|L>8YUQBaai5Q6lACPPy2j3eOs@_-5`OE55~ nZ3K@W8+1aFxhJF+9RgZe&qg_{Xj@>q5#$R`S3j3^P6