commit e4a991f47ec25ae1b45a07f990a61963592331b9 Author: luke bonham Date: Fri Mar 15 14:11:21 2013 +0100 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..204da06 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +rc.lua diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..a283770 --- /dev/null +++ b/README.rst @@ -0,0 +1,13 @@ +Copycat themes for Awesome WM 3.5 +--------- +I.E. modded and localized versions of some stuff I like. + +**Powerarrow Darker** copied from romockee_ +.. image:: http://ompldr.org/vaHF5dg/q1Z83WG.png +.. _romockee: https://github.com/romockee/powerarrow-dark +__ romockee_ + +**Multicolor** copied from TIP_ +.. image:: http://i.imgur.com/vBMn8C8.jpg +.. _TIP: http://theimmortalphoenix.deviantart.com/art/Full-Color-Awesome-340997258 +__ TIP_ diff --git a/icons/anrxc/LICENSE b/icons/anrxc/LICENSE new file mode 100644 index 0000000..2a36ba7 --- /dev/null +++ b/icons/anrxc/LICENSE @@ -0,0 +1,10 @@ +All icons in this package were created by Adrian C. (anrxc). + +All icons except the 'huge' icon sets and 'small' titlebar icons are +licensed under the Creative Commons Attribution-Share Alike +License. To view a copy of this license, visit +http://creativecommons.org/licenses/by-sa/3.0/ + +The 'huge' icon sets and 'small' titlebar icons are licensed under the +same terms as the awesome distribution it self - GNU General Public +License version 2. diff --git a/icons/anrxc/awesome14.png b/icons/anrxc/awesome14.png new file mode 100644 index 0000000..00646df Binary files /dev/null and b/icons/anrxc/awesome14.png differ diff --git a/icons/anrxc/layouts-huge-fill/dwindle.png b/icons/anrxc/layouts-huge-fill/dwindle.png new file mode 100644 index 0000000..1aa4bf2 Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/dwindle.png differ diff --git a/icons/anrxc/layouts-huge-fill/fairh.png b/icons/anrxc/layouts-huge-fill/fairh.png new file mode 100644 index 0000000..e176bb3 Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/fairh.png differ diff --git a/icons/anrxc/layouts-huge-fill/fairv.png b/icons/anrxc/layouts-huge-fill/fairv.png new file mode 100644 index 0000000..7c0a92c Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/fairv.png differ diff --git a/icons/anrxc/layouts-huge-fill/floating.png b/icons/anrxc/layouts-huge-fill/floating.png new file mode 100644 index 0000000..a399092 Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/floating.png differ diff --git a/icons/anrxc/layouts-huge-fill/fullscreen.png b/icons/anrxc/layouts-huge-fill/fullscreen.png new file mode 100644 index 0000000..a0c795c Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/fullscreen.png differ diff --git a/icons/anrxc/layouts-huge-fill/magnifier.png b/icons/anrxc/layouts-huge-fill/magnifier.png new file mode 100644 index 0000000..bca6db9 Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/magnifier.png differ diff --git a/icons/anrxc/layouts-huge-fill/max.png b/icons/anrxc/layouts-huge-fill/max.png new file mode 100644 index 0000000..96a237a Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/max.png differ diff --git a/icons/anrxc/layouts-huge-fill/spiral.png b/icons/anrxc/layouts-huge-fill/spiral.png new file mode 100644 index 0000000..8f5aeed Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/spiral.png differ diff --git a/icons/anrxc/layouts-huge-fill/tile.png b/icons/anrxc/layouts-huge-fill/tile.png new file mode 100644 index 0000000..3fcc904 Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/tile.png differ diff --git a/icons/anrxc/layouts-huge-fill/tilebottom.png b/icons/anrxc/layouts-huge-fill/tilebottom.png new file mode 100644 index 0000000..dfe7832 Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/tilebottom.png differ diff --git a/icons/anrxc/layouts-huge-fill/tileleft.png b/icons/anrxc/layouts-huge-fill/tileleft.png new file mode 100644 index 0000000..c5decfd Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/tileleft.png differ diff --git a/icons/anrxc/layouts-huge-fill/tiletop.png b/icons/anrxc/layouts-huge-fill/tiletop.png new file mode 100644 index 0000000..b251661 Binary files /dev/null and b/icons/anrxc/layouts-huge-fill/tiletop.png differ diff --git a/icons/anrxc/layouts-huge/dwindle.png b/icons/anrxc/layouts-huge/dwindle.png new file mode 100644 index 0000000..85b42c2 Binary files /dev/null and b/icons/anrxc/layouts-huge/dwindle.png differ diff --git a/icons/anrxc/layouts-huge/fairh.png b/icons/anrxc/layouts-huge/fairh.png new file mode 100644 index 0000000..948688a Binary files /dev/null and b/icons/anrxc/layouts-huge/fairh.png differ diff --git a/icons/anrxc/layouts-huge/fairv.png b/icons/anrxc/layouts-huge/fairv.png new file mode 100644 index 0000000..57581ea Binary files /dev/null and b/icons/anrxc/layouts-huge/fairv.png differ diff --git a/icons/anrxc/layouts-huge/floating.png b/icons/anrxc/layouts-huge/floating.png new file mode 100644 index 0000000..a3d6423 Binary files /dev/null and b/icons/anrxc/layouts-huge/floating.png differ diff --git a/icons/anrxc/layouts-huge/fullscreen.png b/icons/anrxc/layouts-huge/fullscreen.png new file mode 100644 index 0000000..a42490f Binary files /dev/null and b/icons/anrxc/layouts-huge/fullscreen.png differ diff --git a/icons/anrxc/layouts-huge/magnifier.png b/icons/anrxc/layouts-huge/magnifier.png new file mode 100644 index 0000000..881dbc7 Binary files /dev/null and b/icons/anrxc/layouts-huge/magnifier.png differ diff --git a/icons/anrxc/layouts-huge/max.png b/icons/anrxc/layouts-huge/max.png new file mode 100644 index 0000000..e0edbf9 Binary files /dev/null and b/icons/anrxc/layouts-huge/max.png differ diff --git a/icons/anrxc/layouts-huge/spiral.png b/icons/anrxc/layouts-huge/spiral.png new file mode 100644 index 0000000..bf21b17 Binary files /dev/null and b/icons/anrxc/layouts-huge/spiral.png differ diff --git a/icons/anrxc/layouts-huge/tile.png b/icons/anrxc/layouts-huge/tile.png new file mode 100644 index 0000000..710b67e Binary files /dev/null and b/icons/anrxc/layouts-huge/tile.png differ diff --git a/icons/anrxc/layouts-huge/tilebottom.png b/icons/anrxc/layouts-huge/tilebottom.png new file mode 100644 index 0000000..1416a1e Binary files /dev/null and b/icons/anrxc/layouts-huge/tilebottom.png differ diff --git a/icons/anrxc/layouts-huge/tileleft.png b/icons/anrxc/layouts-huge/tileleft.png new file mode 100644 index 0000000..9de3f9e Binary files /dev/null and b/icons/anrxc/layouts-huge/tileleft.png differ diff --git a/icons/anrxc/layouts-huge/tiletop.png b/icons/anrxc/layouts-huge/tiletop.png new file mode 100644 index 0000000..b61808b Binary files /dev/null and b/icons/anrxc/layouts-huge/tiletop.png differ diff --git a/icons/anrxc/layouts-simple/dwindle.png b/icons/anrxc/layouts-simple/dwindle.png new file mode 100644 index 0000000..a4a944d Binary files /dev/null and b/icons/anrxc/layouts-simple/dwindle.png differ diff --git a/icons/anrxc/layouts-simple/fairh.png b/icons/anrxc/layouts-simple/fairh.png new file mode 100644 index 0000000..edb96c7 Binary files /dev/null and b/icons/anrxc/layouts-simple/fairh.png differ diff --git a/icons/anrxc/layouts-simple/fairv.png b/icons/anrxc/layouts-simple/fairv.png new file mode 100644 index 0000000..1c14b75 Binary files /dev/null and b/icons/anrxc/layouts-simple/fairv.png differ diff --git a/icons/anrxc/layouts-simple/floating.png b/icons/anrxc/layouts-simple/floating.png new file mode 100644 index 0000000..e0a008d Binary files /dev/null and b/icons/anrxc/layouts-simple/floating.png differ diff --git a/icons/anrxc/layouts-simple/floating_a.png b/icons/anrxc/layouts-simple/floating_a.png new file mode 100644 index 0000000..5435c89 Binary files /dev/null and b/icons/anrxc/layouts-simple/floating_a.png differ diff --git a/icons/anrxc/layouts-simple/magnifier.png b/icons/anrxc/layouts-simple/magnifier.png new file mode 100644 index 0000000..a3e0656 Binary files /dev/null and b/icons/anrxc/layouts-simple/magnifier.png differ diff --git a/icons/anrxc/layouts-simple/max.png b/icons/anrxc/layouts-simple/max.png new file mode 100644 index 0000000..5a8da19 Binary files /dev/null and b/icons/anrxc/layouts-simple/max.png differ diff --git a/icons/anrxc/layouts-simple/spiral.png b/icons/anrxc/layouts-simple/spiral.png new file mode 100644 index 0000000..c3b9cf2 Binary files /dev/null and b/icons/anrxc/layouts-simple/spiral.png differ diff --git a/icons/anrxc/layouts-simple/tile.png b/icons/anrxc/layouts-simple/tile.png new file mode 100644 index 0000000..677b49f Binary files /dev/null and b/icons/anrxc/layouts-simple/tile.png differ diff --git a/icons/anrxc/layouts-simple/tilebottom.png b/icons/anrxc/layouts-simple/tilebottom.png new file mode 100644 index 0000000..241d63d Binary files /dev/null and b/icons/anrxc/layouts-simple/tilebottom.png differ diff --git a/icons/anrxc/layouts-simple/tileleft.png b/icons/anrxc/layouts-simple/tileleft.png new file mode 100644 index 0000000..e274703 Binary files /dev/null and b/icons/anrxc/layouts-simple/tileleft.png differ diff --git a/icons/anrxc/layouts-simple/tiletop.png b/icons/anrxc/layouts-simple/tiletop.png new file mode 100644 index 0000000..4734559 Binary files /dev/null and b/icons/anrxc/layouts-simple/tiletop.png differ diff --git a/icons/anrxc/layouts-small-fill/dwindle.png b/icons/anrxc/layouts-small-fill/dwindle.png new file mode 100644 index 0000000..1e0aa0a Binary files /dev/null and b/icons/anrxc/layouts-small-fill/dwindle.png differ diff --git a/icons/anrxc/layouts-small-fill/fairh.png b/icons/anrxc/layouts-small-fill/fairh.png new file mode 100644 index 0000000..2cd065d Binary files /dev/null and b/icons/anrxc/layouts-small-fill/fairh.png differ diff --git a/icons/anrxc/layouts-small-fill/fairv.png b/icons/anrxc/layouts-small-fill/fairv.png new file mode 100644 index 0000000..1849883 Binary files /dev/null and b/icons/anrxc/layouts-small-fill/fairv.png differ diff --git a/icons/anrxc/layouts-small-fill/floating.png b/icons/anrxc/layouts-small-fill/floating.png new file mode 100644 index 0000000..dadb295 Binary files /dev/null and b/icons/anrxc/layouts-small-fill/floating.png differ diff --git a/icons/anrxc/layouts-small-fill/fullscreen.png b/icons/anrxc/layouts-small-fill/fullscreen.png new file mode 100644 index 0000000..cbb28e0 Binary files /dev/null and b/icons/anrxc/layouts-small-fill/fullscreen.png differ diff --git a/icons/anrxc/layouts-small-fill/magnifier.png b/icons/anrxc/layouts-small-fill/magnifier.png new file mode 100644 index 0000000..60386ca Binary files /dev/null and b/icons/anrxc/layouts-small-fill/magnifier.png differ diff --git a/icons/anrxc/layouts-small-fill/max.png b/icons/anrxc/layouts-small-fill/max.png new file mode 100644 index 0000000..7eec7cc Binary files /dev/null and b/icons/anrxc/layouts-small-fill/max.png differ diff --git a/icons/anrxc/layouts-small-fill/spiral.png b/icons/anrxc/layouts-small-fill/spiral.png new file mode 100644 index 0000000..20db5b1 Binary files /dev/null and b/icons/anrxc/layouts-small-fill/spiral.png differ diff --git a/icons/anrxc/layouts-small-fill/tile.png b/icons/anrxc/layouts-small-fill/tile.png new file mode 100644 index 0000000..b44da88 Binary files /dev/null and b/icons/anrxc/layouts-small-fill/tile.png differ diff --git a/icons/anrxc/layouts-small-fill/tilebottom.png b/icons/anrxc/layouts-small-fill/tilebottom.png new file mode 100644 index 0000000..1a4e9f3 Binary files /dev/null and b/icons/anrxc/layouts-small-fill/tilebottom.png differ diff --git a/icons/anrxc/layouts-small-fill/tileleft.png b/icons/anrxc/layouts-small-fill/tileleft.png new file mode 100644 index 0000000..5dd6f29 Binary files /dev/null and b/icons/anrxc/layouts-small-fill/tileleft.png differ diff --git a/icons/anrxc/layouts-small-fill/tiletop.png b/icons/anrxc/layouts-small-fill/tiletop.png new file mode 100644 index 0000000..23efb3f Binary files /dev/null and b/icons/anrxc/layouts-small-fill/tiletop.png differ diff --git a/icons/anrxc/layouts-small-outline/dwindle.png b/icons/anrxc/layouts-small-outline/dwindle.png new file mode 100644 index 0000000..2d35281 Binary files /dev/null and b/icons/anrxc/layouts-small-outline/dwindle.png differ diff --git a/icons/anrxc/layouts-small-outline/fairh.png b/icons/anrxc/layouts-small-outline/fairh.png new file mode 100644 index 0000000..97cb1f6 Binary files /dev/null and b/icons/anrxc/layouts-small-outline/fairh.png differ diff --git a/icons/anrxc/layouts-small-outline/fairv.png b/icons/anrxc/layouts-small-outline/fairv.png new file mode 100644 index 0000000..daa7428 Binary files /dev/null and b/icons/anrxc/layouts-small-outline/fairv.png differ diff --git a/icons/anrxc/layouts-small-outline/floating.png b/icons/anrxc/layouts-small-outline/floating.png new file mode 100644 index 0000000..a31f36f Binary files /dev/null and b/icons/anrxc/layouts-small-outline/floating.png differ diff --git a/icons/anrxc/layouts-small-outline/magnifier.png b/icons/anrxc/layouts-small-outline/magnifier.png new file mode 100644 index 0000000..2f8faae Binary files /dev/null and b/icons/anrxc/layouts-small-outline/magnifier.png differ diff --git a/icons/anrxc/layouts-small-outline/max.png b/icons/anrxc/layouts-small-outline/max.png new file mode 100644 index 0000000..149ce59 Binary files /dev/null and b/icons/anrxc/layouts-small-outline/max.png differ diff --git a/icons/anrxc/layouts-small-outline/spiral.png b/icons/anrxc/layouts-small-outline/spiral.png new file mode 100644 index 0000000..e35b967 Binary files /dev/null and b/icons/anrxc/layouts-small-outline/spiral.png differ diff --git a/icons/anrxc/layouts-small-outline/tile.png b/icons/anrxc/layouts-small-outline/tile.png new file mode 100644 index 0000000..1437846 Binary files /dev/null and b/icons/anrxc/layouts-small-outline/tile.png differ diff --git a/icons/anrxc/layouts-small-outline/tilebottom.png b/icons/anrxc/layouts-small-outline/tilebottom.png new file mode 100644 index 0000000..394237e Binary files /dev/null and b/icons/anrxc/layouts-small-outline/tilebottom.png differ diff --git a/icons/anrxc/layouts-small-outline/tileleft.png b/icons/anrxc/layouts-small-outline/tileleft.png new file mode 100644 index 0000000..813a8f6 Binary files /dev/null and b/icons/anrxc/layouts-small-outline/tileleft.png differ diff --git a/icons/anrxc/layouts-small-outline/tiletop.png b/icons/anrxc/layouts-small-outline/tiletop.png new file mode 100644 index 0000000..b430f24 Binary files /dev/null and b/icons/anrxc/layouts-small-outline/tiletop.png differ diff --git a/icons/anrxc/layouts-small/dwindle.png b/icons/anrxc/layouts-small/dwindle.png new file mode 100644 index 0000000..cc9c59a Binary files /dev/null and b/icons/anrxc/layouts-small/dwindle.png differ diff --git a/icons/anrxc/layouts-small/fairh.png b/icons/anrxc/layouts-small/fairh.png new file mode 100644 index 0000000..8c69a4e Binary files /dev/null and b/icons/anrxc/layouts-small/fairh.png differ diff --git a/icons/anrxc/layouts-small/fairv.png b/icons/anrxc/layouts-small/fairv.png new file mode 100644 index 0000000..3ef3ef8 Binary files /dev/null and b/icons/anrxc/layouts-small/fairv.png differ diff --git a/icons/anrxc/layouts-small/floating.png b/icons/anrxc/layouts-small/floating.png new file mode 100644 index 0000000..a31f36f Binary files /dev/null and b/icons/anrxc/layouts-small/floating.png differ diff --git a/icons/anrxc/layouts-small/magnifier.png b/icons/anrxc/layouts-small/magnifier.png new file mode 100644 index 0000000..2f8faae Binary files /dev/null and b/icons/anrxc/layouts-small/magnifier.png differ diff --git a/icons/anrxc/layouts-small/max.png b/icons/anrxc/layouts-small/max.png new file mode 100644 index 0000000..149ce59 Binary files /dev/null and b/icons/anrxc/layouts-small/max.png differ diff --git a/icons/anrxc/layouts-small/spiral.png b/icons/anrxc/layouts-small/spiral.png new file mode 100644 index 0000000..0b5fe15 Binary files /dev/null and b/icons/anrxc/layouts-small/spiral.png differ diff --git a/icons/anrxc/layouts-small/tile.png b/icons/anrxc/layouts-small/tile.png new file mode 100644 index 0000000..1f34706 Binary files /dev/null and b/icons/anrxc/layouts-small/tile.png differ diff --git a/icons/anrxc/layouts-small/tilebottom.png b/icons/anrxc/layouts-small/tilebottom.png new file mode 100644 index 0000000..4923e3e Binary files /dev/null and b/icons/anrxc/layouts-small/tilebottom.png differ diff --git a/icons/anrxc/layouts-small/tileleft.png b/icons/anrxc/layouts-small/tileleft.png new file mode 100644 index 0000000..0dd3bf7 Binary files /dev/null and b/icons/anrxc/layouts-small/tileleft.png differ diff --git a/icons/anrxc/layouts-small/tiletop.png b/icons/anrxc/layouts-small/tiletop.png new file mode 100644 index 0000000..6a067e8 Binary files /dev/null and b/icons/anrxc/layouts-small/tiletop.png differ diff --git a/icons/anrxc/layouts/dwindle.png b/icons/anrxc/layouts/dwindle.png new file mode 100644 index 0000000..ba1e92e Binary files /dev/null and b/icons/anrxc/layouts/dwindle.png differ diff --git a/icons/anrxc/layouts/fairh.png b/icons/anrxc/layouts/fairh.png new file mode 100644 index 0000000..51cf7bb Binary files /dev/null and b/icons/anrxc/layouts/fairh.png differ diff --git a/icons/anrxc/layouts/fairv.png b/icons/anrxc/layouts/fairv.png new file mode 100644 index 0000000..0d439f4 Binary files /dev/null and b/icons/anrxc/layouts/fairv.png differ diff --git a/icons/anrxc/layouts/floating.png b/icons/anrxc/layouts/floating.png new file mode 100644 index 0000000..e0a008d Binary files /dev/null and b/icons/anrxc/layouts/floating.png differ diff --git a/icons/anrxc/layouts/floating_a.png b/icons/anrxc/layouts/floating_a.png new file mode 100644 index 0000000..5435c89 Binary files /dev/null and b/icons/anrxc/layouts/floating_a.png differ diff --git a/icons/anrxc/layouts/magnifier.png b/icons/anrxc/layouts/magnifier.png new file mode 100644 index 0000000..a3e0656 Binary files /dev/null and b/icons/anrxc/layouts/magnifier.png differ diff --git a/icons/anrxc/layouts/max.png b/icons/anrxc/layouts/max.png new file mode 100644 index 0000000..5a8da19 Binary files /dev/null and b/icons/anrxc/layouts/max.png differ diff --git a/icons/anrxc/layouts/spiral.png b/icons/anrxc/layouts/spiral.png new file mode 100644 index 0000000..c3b9cf2 Binary files /dev/null and b/icons/anrxc/layouts/spiral.png differ diff --git a/icons/anrxc/layouts/tile.png b/icons/anrxc/layouts/tile.png new file mode 100644 index 0000000..2923958 Binary files /dev/null and b/icons/anrxc/layouts/tile.png differ diff --git a/icons/anrxc/layouts/tilebottom.png b/icons/anrxc/layouts/tilebottom.png new file mode 100644 index 0000000..1423195 Binary files /dev/null and b/icons/anrxc/layouts/tilebottom.png differ diff --git a/icons/anrxc/layouts/tileleft.png b/icons/anrxc/layouts/tileleft.png new file mode 100644 index 0000000..d4bcb57 Binary files /dev/null and b/icons/anrxc/layouts/tileleft.png differ diff --git a/icons/anrxc/layouts/tiletop.png b/icons/anrxc/layouts/tiletop.png new file mode 100644 index 0000000..aea04d0 Binary files /dev/null and b/icons/anrxc/layouts/tiletop.png differ diff --git a/icons/anrxc/taglist/square_a.png b/icons/anrxc/taglist/square_a.png new file mode 100644 index 0000000..df65248 Binary files /dev/null and b/icons/anrxc/taglist/square_a.png differ diff --git a/icons/anrxc/taglist/square_b.png b/icons/anrxc/taglist/square_b.png new file mode 100644 index 0000000..c3838b4 Binary files /dev/null and b/icons/anrxc/taglist/square_b.png differ diff --git a/icons/anrxc/taglist/squaref_a.png b/icons/anrxc/taglist/squaref_a.png new file mode 100644 index 0000000..6291037 Binary files /dev/null and b/icons/anrxc/taglist/squaref_a.png differ diff --git a/icons/anrxc/taglist/squaref_b.png b/icons/anrxc/taglist/squaref_b.png new file mode 100644 index 0000000..5475446 Binary files /dev/null and b/icons/anrxc/taglist/squaref_b.png differ diff --git a/icons/anrxc/titlebar-big/close_focus.png b/icons/anrxc/titlebar-big/close_focus.png new file mode 100644 index 0000000..c0c494c Binary files /dev/null and b/icons/anrxc/titlebar-big/close_focus.png differ diff --git a/icons/anrxc/titlebar-big/close_normal.png b/icons/anrxc/titlebar-big/close_normal.png new file mode 100644 index 0000000..a9f3562 Binary files /dev/null and b/icons/anrxc/titlebar-big/close_normal.png differ diff --git a/icons/anrxc/titlebar-big/floating_focus_active.png b/icons/anrxc/titlebar-big/floating_focus_active.png new file mode 100644 index 0000000..d2f7a18 Binary files /dev/null and b/icons/anrxc/titlebar-big/floating_focus_active.png differ diff --git a/icons/anrxc/titlebar-big/floating_focus_inactive.png b/icons/anrxc/titlebar-big/floating_focus_inactive.png new file mode 100644 index 0000000..ab7de6c Binary files /dev/null and b/icons/anrxc/titlebar-big/floating_focus_inactive.png differ diff --git a/icons/anrxc/titlebar-big/floating_normal_active.png b/icons/anrxc/titlebar-big/floating_normal_active.png new file mode 120000 index 0000000..ac30ae7 --- /dev/null +++ b/icons/anrxc/titlebar-big/floating_normal_active.png @@ -0,0 +1 @@ +floating_focus_active.png \ No newline at end of file diff --git a/icons/anrxc/titlebar-big/floating_normal_inactive.png b/icons/anrxc/titlebar-big/floating_normal_inactive.png new file mode 120000 index 0000000..68e3da1 --- /dev/null +++ b/icons/anrxc/titlebar-big/floating_normal_inactive.png @@ -0,0 +1 @@ +floating_focus_inactive.png \ No newline at end of file diff --git a/icons/anrxc/titlebar-big/maximized_focus_active.png b/icons/anrxc/titlebar-big/maximized_focus_active.png new file mode 100644 index 0000000..d903f34 Binary files /dev/null and b/icons/anrxc/titlebar-big/maximized_focus_active.png differ diff --git a/icons/anrxc/titlebar-big/maximized_focus_inactive.png b/icons/anrxc/titlebar-big/maximized_focus_inactive.png new file mode 100644 index 0000000..c25f572 Binary files /dev/null and b/icons/anrxc/titlebar-big/maximized_focus_inactive.png differ diff --git a/icons/anrxc/titlebar-big/maximized_normal_active.png b/icons/anrxc/titlebar-big/maximized_normal_active.png new file mode 120000 index 0000000..6b8da12 --- /dev/null +++ b/icons/anrxc/titlebar-big/maximized_normal_active.png @@ -0,0 +1 @@ +maximized_focus_active.png \ No newline at end of file diff --git a/icons/anrxc/titlebar-big/maximized_normal_inactive.png b/icons/anrxc/titlebar-big/maximized_normal_inactive.png new file mode 120000 index 0000000..f5892b0 --- /dev/null +++ b/icons/anrxc/titlebar-big/maximized_normal_inactive.png @@ -0,0 +1 @@ +maximized_focus_inactive.png \ No newline at end of file diff --git a/icons/anrxc/titlebar-big/ontop_focus_active.png b/icons/anrxc/titlebar-big/ontop_focus_active.png new file mode 100644 index 0000000..86b9d69 Binary files /dev/null and b/icons/anrxc/titlebar-big/ontop_focus_active.png differ diff --git a/icons/anrxc/titlebar-big/ontop_focus_inactive.png b/icons/anrxc/titlebar-big/ontop_focus_inactive.png new file mode 100644 index 0000000..5bc0de5 Binary files /dev/null and b/icons/anrxc/titlebar-big/ontop_focus_inactive.png differ diff --git a/icons/anrxc/titlebar-big/ontop_normal_active.png b/icons/anrxc/titlebar-big/ontop_normal_active.png new file mode 120000 index 0000000..16cb535 --- /dev/null +++ b/icons/anrxc/titlebar-big/ontop_normal_active.png @@ -0,0 +1 @@ +ontop_focus_active.png \ No newline at end of file diff --git a/icons/anrxc/titlebar-big/ontop_normal_inactive.png b/icons/anrxc/titlebar-big/ontop_normal_inactive.png new file mode 120000 index 0000000..73b841a --- /dev/null +++ b/icons/anrxc/titlebar-big/ontop_normal_inactive.png @@ -0,0 +1 @@ +ontop_focus_inactive.png \ No newline at end of file diff --git a/icons/anrxc/titlebar-big/sticky_focus_active.png b/icons/anrxc/titlebar-big/sticky_focus_active.png new file mode 100644 index 0000000..fff6c02 Binary files /dev/null and b/icons/anrxc/titlebar-big/sticky_focus_active.png differ diff --git a/icons/anrxc/titlebar-big/sticky_focus_inactive.png b/icons/anrxc/titlebar-big/sticky_focus_inactive.png new file mode 100644 index 0000000..c78c919 Binary files /dev/null and b/icons/anrxc/titlebar-big/sticky_focus_inactive.png differ diff --git a/icons/anrxc/titlebar-big/sticky_normal_active.png b/icons/anrxc/titlebar-big/sticky_normal_active.png new file mode 120000 index 0000000..c5de427 --- /dev/null +++ b/icons/anrxc/titlebar-big/sticky_normal_active.png @@ -0,0 +1 @@ +sticky_focus_active.png \ No newline at end of file diff --git a/icons/anrxc/titlebar-big/sticky_normal_inactive.png b/icons/anrxc/titlebar-big/sticky_normal_inactive.png new file mode 120000 index 0000000..10d0a3a --- /dev/null +++ b/icons/anrxc/titlebar-big/sticky_normal_inactive.png @@ -0,0 +1 @@ +sticky_focus_inactive.png \ No newline at end of file diff --git a/icons/anrxc/titlebar-small/close_focus.png b/icons/anrxc/titlebar-small/close_focus.png new file mode 100644 index 0000000..6b037ed Binary files /dev/null and b/icons/anrxc/titlebar-small/close_focus.png differ diff --git a/icons/anrxc/titlebar-small/close_normal.png b/icons/anrxc/titlebar-small/close_normal.png new file mode 100644 index 0000000..66ecf40 Binary files /dev/null and b/icons/anrxc/titlebar-small/close_normal.png differ diff --git a/icons/anrxc/titlebar-small/floating_focus_active.png b/icons/anrxc/titlebar-small/floating_focus_active.png new file mode 100644 index 0000000..cd367c1 Binary files /dev/null and b/icons/anrxc/titlebar-small/floating_focus_active.png differ diff --git a/icons/anrxc/titlebar-small/floating_focus_inactive.png b/icons/anrxc/titlebar-small/floating_focus_inactive.png new file mode 100644 index 0000000..2ae6e94 Binary files /dev/null and b/icons/anrxc/titlebar-small/floating_focus_inactive.png differ diff --git a/icons/anrxc/titlebar-small/floating_normal_active.png b/icons/anrxc/titlebar-small/floating_normal_active.png new file mode 100644 index 0000000..3d17780 Binary files /dev/null and b/icons/anrxc/titlebar-small/floating_normal_active.png differ diff --git a/icons/anrxc/titlebar-small/floating_normal_inactive.png b/icons/anrxc/titlebar-small/floating_normal_inactive.png new file mode 100644 index 0000000..3faa1a3 Binary files /dev/null and b/icons/anrxc/titlebar-small/floating_normal_inactive.png differ diff --git a/icons/anrxc/titlebar-small/maximized_focus_active.png b/icons/anrxc/titlebar-small/maximized_focus_active.png new file mode 100644 index 0000000..6b235a5 Binary files /dev/null and b/icons/anrxc/titlebar-small/maximized_focus_active.png differ diff --git a/icons/anrxc/titlebar-small/maximized_focus_inactive.png b/icons/anrxc/titlebar-small/maximized_focus_inactive.png new file mode 100644 index 0000000..53d914b Binary files /dev/null and b/icons/anrxc/titlebar-small/maximized_focus_inactive.png differ diff --git a/icons/anrxc/titlebar-small/maximized_normal_active.png b/icons/anrxc/titlebar-small/maximized_normal_active.png new file mode 100644 index 0000000..dc59180 Binary files /dev/null and b/icons/anrxc/titlebar-small/maximized_normal_active.png differ diff --git a/icons/anrxc/titlebar-small/maximized_normal_inactive.png b/icons/anrxc/titlebar-small/maximized_normal_inactive.png new file mode 100644 index 0000000..7dc97ee Binary files /dev/null and b/icons/anrxc/titlebar-small/maximized_normal_inactive.png differ diff --git a/icons/anrxc/titlebar-small/ontop_focus_active.png b/icons/anrxc/titlebar-small/ontop_focus_active.png new file mode 100644 index 0000000..16b44d5 Binary files /dev/null and b/icons/anrxc/titlebar-small/ontop_focus_active.png differ diff --git a/icons/anrxc/titlebar-small/ontop_focus_inactive.png b/icons/anrxc/titlebar-small/ontop_focus_inactive.png new file mode 100644 index 0000000..219d3ca Binary files /dev/null and b/icons/anrxc/titlebar-small/ontop_focus_inactive.png differ diff --git a/icons/anrxc/titlebar-small/ontop_normal_active.png b/icons/anrxc/titlebar-small/ontop_normal_active.png new file mode 100644 index 0000000..ba39ce8 Binary files /dev/null and b/icons/anrxc/titlebar-small/ontop_normal_active.png differ diff --git a/icons/anrxc/titlebar-small/ontop_normal_inactive.png b/icons/anrxc/titlebar-small/ontop_normal_inactive.png new file mode 100644 index 0000000..2d0de52 Binary files /dev/null and b/icons/anrxc/titlebar-small/ontop_normal_inactive.png differ diff --git a/icons/anrxc/titlebar-small/sticky_focus_active.png b/icons/anrxc/titlebar-small/sticky_focus_active.png new file mode 100644 index 0000000..3e897c7 Binary files /dev/null and b/icons/anrxc/titlebar-small/sticky_focus_active.png differ diff --git a/icons/anrxc/titlebar-small/sticky_focus_inactive.png b/icons/anrxc/titlebar-small/sticky_focus_inactive.png new file mode 100644 index 0000000..04f425c Binary files /dev/null and b/icons/anrxc/titlebar-small/sticky_focus_inactive.png differ diff --git a/icons/anrxc/titlebar-small/sticky_normal_active.png b/icons/anrxc/titlebar-small/sticky_normal_active.png new file mode 100644 index 0000000..3e6b39f Binary files /dev/null and b/icons/anrxc/titlebar-small/sticky_normal_active.png differ diff --git a/icons/anrxc/titlebar-small/sticky_normal_inactive.png b/icons/anrxc/titlebar-small/sticky_normal_inactive.png new file mode 100644 index 0000000..c7b96a5 Binary files /dev/null and b/icons/anrxc/titlebar-small/sticky_normal_inactive.png differ diff --git a/icons/xbm8x8/How to change color of icons and resize them b/icons/xbm8x8/How to change color of icons and resize them new file mode 100755 index 0000000..6d4ca07 --- /dev/null +++ b/icons/xbm8x8/How to change color of icons and resize them @@ -0,0 +1,6 @@ +HOW TO CHANGE COLOR OF ICONS + +for x in *.xbm; do convert -transparent white -fill "#6b8ba3" -opaque "#000000" -bordercolor transparent -border 8x8 -gravity center -crop 15x15+0+0 "${x}" "${x%.*}.png"; done + +-border 8x8 real size we want +-crop 16x16 size of the panel we want to fit diff --git a/icons/xbm8x8/ac.xbm b/icons/xbm8x8/ac.xbm new file mode 100755 index 0000000..b6dacef --- /dev/null +++ b/icons/xbm8x8/ac.xbm @@ -0,0 +1,4 @@ +#define ac_width 8 +#define ac_height 8 +static unsigned char ac_bits[] = { + 0xFF, 0xF8, 0xF0, 0xF6, 0x6F, 0x0F, 0x1F, 0xFF }; diff --git a/icons/xbm8x8/ac_01.xbm b/icons/xbm8x8/ac_01.xbm new file mode 100755 index 0000000..66592d7 --- /dev/null +++ b/icons/xbm8x8/ac_01.xbm @@ -0,0 +1,4 @@ +#define ac_01_width 8 +#define ac_01_height 8 +static unsigned char ac_01_bits[] = { + 0x30, 0x28, 0xE4, 0x27, 0x27, 0xE4, 0x28, 0x30 }; diff --git a/icons/xbm8x8/arch.xbm b/icons/xbm8x8/arch.xbm new file mode 100755 index 0000000..11cfe5a --- /dev/null +++ b/icons/xbm8x8/arch.xbm @@ -0,0 +1,4 @@ +#define arch_width 8 +#define arch_height 8 +static unsigned char arch_bits[] = { + 0x08, 0x08, 0x1C, 0x1C, 0x36, 0x22, 0x77, 0x41 }; diff --git a/icons/xbm8x8/arch_10x10.xbm b/icons/xbm8x8/arch_10x10.xbm new file mode 100755 index 0000000..c3ee46d --- /dev/null +++ b/icons/xbm8x8/arch_10x10.xbm @@ -0,0 +1,5 @@ +#define arch_10x10_width 10 +#define arch_10x10_height 10 +static unsigned char arch_10x10_bits[] = { + 0x10, 0x00, 0x10, 0x00, 0x38, 0x00, 0x38, 0x00, 0x7C, 0x00, 0x7C, 0x00, + 0xEE, 0x00, 0xC6, 0x00, 0xC7, 0x01, 0x01, 0x01 }; diff --git a/icons/xbm8x8/bat_empty_01.xbm b/icons/xbm8x8/bat_empty_01.xbm new file mode 100755 index 0000000..cb916db --- /dev/null +++ b/icons/xbm8x8/bat_empty_01.xbm @@ -0,0 +1,4 @@ +#define bat_empty_01_width 8 +#define bat_empty_01_height 8 +static unsigned char bat_empty_01_bits[] = { + 0x18, 0x7E, 0x42, 0x42, 0x42, 0x42, 0x42, 0x7E }; diff --git a/icons/xbm8x8/bat_empty_02.xbm b/icons/xbm8x8/bat_empty_02.xbm new file mode 100755 index 0000000..e26be8c --- /dev/null +++ b/icons/xbm8x8/bat_empty_02.xbm @@ -0,0 +1,4 @@ +#define bat_empty_02_width 8 +#define bat_empty_02_height 8 +static unsigned char bat_empty_02_bits[] = { + 0x00, 0x7F, 0x41, 0xC1, 0xC1, 0x41, 0x7F, 0x00 }; diff --git a/icons/xbm8x8/bat_full_01.xbm b/icons/xbm8x8/bat_full_01.xbm new file mode 100755 index 0000000..701149e --- /dev/null +++ b/icons/xbm8x8/bat_full_01.xbm @@ -0,0 +1,4 @@ +#define bat_full_width 8 +#define bat_full_height 8 +static unsigned char bat_full_bits[] = { + 0x18, 0x7E, 0x42, 0x5A, 0x5A, 0x5A, 0x42, 0x7E }; diff --git a/icons/xbm8x8/bat_full_02.xbm b/icons/xbm8x8/bat_full_02.xbm new file mode 100755 index 0000000..93d2327 --- /dev/null +++ b/icons/xbm8x8/bat_full_02.xbm @@ -0,0 +1,4 @@ +#define bat_full_02_width 8 +#define bat_full_02_height 8 +static unsigned char bat_full_02_bits[] = { + 0x00, 0x7F, 0x41, 0xDD, 0xDD, 0x41, 0x7F, 0x00 }; diff --git a/icons/xbm8x8/bat_low_01.xbm b/icons/xbm8x8/bat_low_01.xbm new file mode 100755 index 0000000..29e974d --- /dev/null +++ b/icons/xbm8x8/bat_low_01.xbm @@ -0,0 +1,4 @@ +#define bat_low_01_width 8 +#define bat_low_01_height 8 +static unsigned char bat_low_01_bits[] = { + 0x18, 0x7E, 0x42, 0x42, 0x42, 0x5A, 0x42, 0x7E }; diff --git a/icons/xbm8x8/bat_low_02.xbm b/icons/xbm8x8/bat_low_02.xbm new file mode 100755 index 0000000..d80a464 --- /dev/null +++ b/icons/xbm8x8/bat_low_02.xbm @@ -0,0 +1,4 @@ +#define bat_low_02_width 8 +#define bat_low_02_height 8 +static unsigned char bat_low_02_bits[] = { + 0x00, 0x7F, 0x41, 0xC5, 0xC5, 0x41, 0x7F, 0x00 }; diff --git a/icons/xbm8x8/bluetooth.xbm b/icons/xbm8x8/bluetooth.xbm new file mode 100755 index 0000000..3cc42d5 --- /dev/null +++ b/icons/xbm8x8/bluetooth.xbm @@ -0,0 +1,4 @@ +#define bluetooth_width 8 +#define bluetooth_height 8 +static unsigned char bluetooth_bits[] = { + 0x18, 0x2A, 0x6C, 0x38, 0x38, 0x6C, 0x2A, 0x18 }; diff --git a/icons/xbm8x8/bug_01.xbm b/icons/xbm8x8/bug_01.xbm new file mode 100755 index 0000000..8974034 --- /dev/null +++ b/icons/xbm8x8/bug_01.xbm @@ -0,0 +1,4 @@ +#define bug_width 8 +#define bug_height 8 +static unsigned char bug_bits[] = { + 0xC3, 0x24, 0x18, 0xDB, 0x3C, 0x7E, 0xBD, 0x99 }; diff --git a/icons/xbm8x8/bug_02.xbm b/icons/xbm8x8/bug_02.xbm new file mode 100755 index 0000000..051f2f5 --- /dev/null +++ b/icons/xbm8x8/bug_02.xbm @@ -0,0 +1,4 @@ +#define bug_02_width 8 +#define bug_02_height 8 +static unsigned char bug_02_bits[] = { + 0xC3, 0x24, 0x24, 0xDB, 0x3C, 0x7E, 0x99, 0x42 }; diff --git a/icons/xbm8x8/cat.xbm b/icons/xbm8x8/cat.xbm new file mode 100755 index 0000000..d0bc6ab --- /dev/null +++ b/icons/xbm8x8/cat.xbm @@ -0,0 +1,4 @@ +#define cat_width 8 +#define cat_height 8 +static unsigned char cat_bits[] = { + 0x81, 0xC3, 0xBD, 0xFF, 0x99, 0xFF, 0x7E, 0xBD }; diff --git a/icons/xbm8x8/clock.xbm b/icons/xbm8x8/clock.xbm new file mode 100755 index 0000000..cd2fad2 --- /dev/null +++ b/icons/xbm8x8/clock.xbm @@ -0,0 +1,4 @@ +#define clock_width 8 +#define clock_height 8 +static unsigned char clock_bits[] = { + 0x3C, 0x5E, 0xEF, 0xF7, 0x87, 0xFF, 0x7E, 0x3C }; diff --git a/icons/xbm8x8/cpu.xbm b/icons/xbm8x8/cpu.xbm new file mode 100755 index 0000000..4c34d58 --- /dev/null +++ b/icons/xbm8x8/cpu.xbm @@ -0,0 +1,4 @@ +#define cpu_width 8 +#define cpu_height 8 +static unsigned char cpu_bits[] = { + 0xDB, 0x81, 0x3C, 0xBD, 0xBD, 0x3C, 0x81, 0xDB }; diff --git a/icons/xbm8x8/dish.xbm b/icons/xbm8x8/dish.xbm new file mode 100755 index 0000000..75e9f88 --- /dev/null +++ b/icons/xbm8x8/dish.xbm @@ -0,0 +1,4 @@ +#define dish_width 8 +#define dish_height 8 +static unsigned char dish_bits[] = { + 0x81, 0x7B, 0x46, 0x4E, 0x5C, 0x3E, 0x77, 0xC3 }; diff --git a/icons/xbm8x8/diskette.xbm b/icons/xbm8x8/diskette.xbm new file mode 100755 index 0000000..48e641b --- /dev/null +++ b/icons/xbm8x8/diskette.xbm @@ -0,0 +1,4 @@ +#define diskette_width 8 +#define diskette_height 8 +static unsigned char diskette_bits[] = { + 0xFF, 0x81, 0x81, 0x81, 0xBD, 0xB5, 0xB5, 0xFE }; diff --git a/icons/xbm8x8/empty.xbm b/icons/xbm8x8/empty.xbm new file mode 100755 index 0000000..1086137 --- /dev/null +++ b/icons/xbm8x8/empty.xbm @@ -0,0 +1,4 @@ +#define empty_width 8 +#define empty_height 8 +static unsigned char empty_bits[] = { + 0x3C, 0x42, 0x81, 0x81, 0x81, 0x81, 0x42, 0x3C }; diff --git a/icons/xbm8x8/eye_l.xbm b/icons/xbm8x8/eye_l.xbm new file mode 100755 index 0000000..3de8e26 --- /dev/null +++ b/icons/xbm8x8/eye_l.xbm @@ -0,0 +1,4 @@ +#define eye_l_width 8 +#define eye_l_height 8 +static unsigned char eye_l_bits[] = { + 0x00, 0x00, 0x1B, 0x02, 0x02, 0x84, 0xF9, 0x02 }; diff --git a/icons/xbm8x8/eye_r.xbm b/icons/xbm8x8/eye_r.xbm new file mode 100755 index 0000000..7a04951 --- /dev/null +++ b/icons/xbm8x8/eye_r.xbm @@ -0,0 +1,4 @@ +#define eye_r_width 8 +#define eye_r_height 8 +static unsigned char eye_r_bits[] = { + 0x00, 0x00, 0xD8, 0x40, 0x40, 0x21, 0x9F, 0x40 }; diff --git a/icons/xbm8x8/fox.xbm b/icons/xbm8x8/fox.xbm new file mode 100755 index 0000000..46735c3 --- /dev/null +++ b/icons/xbm8x8/fox.xbm @@ -0,0 +1,4 @@ +#define fox_width 8 +#define fox_height 8 +static unsigned char fox_bits[] = { + 0x81, 0xC3, 0xBD, 0xFF, 0x99, 0xDB, 0x7E, 0x18 }; diff --git a/icons/xbm8x8/fs_01.xbm b/icons/xbm8x8/fs_01.xbm new file mode 100755 index 0000000..1d012d2 --- /dev/null +++ b/icons/xbm8x8/fs_01.xbm @@ -0,0 +1,4 @@ +#define fs_01_width 8 +#define fs_01_height 8 +static unsigned char fs_01_bits[] = { + 0x46, 0x99, 0xBC, 0x66, 0x66, 0x3D, 0x99, 0x62 }; diff --git a/icons/xbm8x8/fs_02.xbm b/icons/xbm8x8/fs_02.xbm new file mode 100755 index 0000000..603e3a7 --- /dev/null +++ b/icons/xbm8x8/fs_02.xbm @@ -0,0 +1,4 @@ +#define fs_02_width 8 +#define fs_02_height 8 +static unsigned char fs_02_bits[] = { + 0xF1, 0x5B, 0x3D, 0x67, 0xE6, 0xBC, 0xDA, 0x8F }; diff --git a/icons/xbm8x8/full.xbm b/icons/xbm8x8/full.xbm new file mode 100755 index 0000000..b5a026f --- /dev/null +++ b/icons/xbm8x8/full.xbm @@ -0,0 +1,4 @@ +#define full_width 8 +#define full_height 8 +static unsigned char full_bits[] = { + 0x3C, 0x7E, 0xFF, 0xFF, 0xFF, 0xFF, 0x7E, 0x3C }; diff --git a/icons/xbm8x8/fwd.xbm b/icons/xbm8x8/fwd.xbm new file mode 100755 index 0000000..3f52ea9 --- /dev/null +++ b/icons/xbm8x8/fwd.xbm @@ -0,0 +1,4 @@ +#define fwd_width 8 +#define fwd_height 8 +static unsigned char fwd_bits[] = { + 0x00, 0x12, 0x36, 0x7E, 0x7E, 0x36, 0x12, 0x00 }; diff --git a/icons/xbm8x8/half.xbm b/icons/xbm8x8/half.xbm new file mode 100755 index 0000000..874323b --- /dev/null +++ b/icons/xbm8x8/half.xbm @@ -0,0 +1,4 @@ +#define half_width 8 +#define half_height 8 +static unsigned char half_bits[] = { + 0x3C, 0x4E, 0x8F, 0x8F, 0x8F, 0x8F, 0x4E, 0x3C }; diff --git a/icons/xbm8x8/info_01.xbm b/icons/xbm8x8/info_01.xbm new file mode 100755 index 0000000..f08c2fd --- /dev/null +++ b/icons/xbm8x8/info_01.xbm @@ -0,0 +1,4 @@ +#define info_01_width 8 +#define info_01_height 8 +static unsigned char info_01_bits[] = { + 0x3C, 0x66, 0xFF, 0xE7, 0xE7, 0xE7, 0x66, 0x3C }; diff --git a/icons/xbm8x8/info_02.xbm b/icons/xbm8x8/info_02.xbm new file mode 100755 index 0000000..00b4df0 --- /dev/null +++ b/icons/xbm8x8/info_02.xbm @@ -0,0 +1,4 @@ +#define info_02_width 8 +#define info_02_height 8 +static unsigned char info_02_bits[] = { + 0xFF, 0xE7, 0xFF, 0xE7, 0xE7, 0xE7, 0xE7, 0xFF }; diff --git a/icons/xbm8x8/info_03.xbm b/icons/xbm8x8/info_03.xbm new file mode 100755 index 0000000..50103f8 --- /dev/null +++ b/icons/xbm8x8/info_03.xbm @@ -0,0 +1,4 @@ +#define info_width 8 +#define info_height 8 +static unsigned char info_bits[] = { + 0x38, 0x38, 0x00, 0x3C, 0x38, 0x38, 0x38, 0x7C }; diff --git a/icons/xbm8x8/mail.xbm b/icons/xbm8x8/mail.xbm new file mode 100755 index 0000000..295eb73 --- /dev/null +++ b/icons/xbm8x8/mail.xbm @@ -0,0 +1,4 @@ +#define mail_width 8 +#define mail_height 8 +static unsigned char mail_bits[] = { + 0x00, 0xFF, 0x7E, 0xBD, 0xDB, 0xE7, 0xFF, 0x00 }; diff --git a/icons/xbm8x8/mem.xbm b/icons/xbm8x8/mem.xbm new file mode 100755 index 0000000..a1c354e --- /dev/null +++ b/icons/xbm8x8/mem.xbm @@ -0,0 +1,4 @@ +#define mem_width 8 +#define mem_height 8 +static unsigned char mem_bits[] = { + 0xAA, 0x00, 0xFE, 0xFE, 0xFE, 0xFE, 0x00, 0xAA }; diff --git a/icons/xbm8x8/mouse_01.xbm b/icons/xbm8x8/mouse_01.xbm new file mode 100755 index 0000000..05e91b5 --- /dev/null +++ b/icons/xbm8x8/mouse_01.xbm @@ -0,0 +1,4 @@ +#define mouse_01_width 8 +#define mouse_01_height 8 +static unsigned char mouse_01_bits[] = { + 0xEE, 0xEE, 0xEE, 0x82, 0xFE, 0xFE, 0xFE, 0x7C }; diff --git a/icons/xbm8x8/net_down_01.xbm b/icons/xbm8x8/net_down_01.xbm new file mode 100755 index 0000000..0940355 --- /dev/null +++ b/icons/xbm8x8/net_down_01.xbm @@ -0,0 +1,4 @@ +#define net_down_01_width 8 +#define net_down_01_height 8 +static unsigned char net_down_01_bits[] = { + 0x1E, 0x3C, 0x3C, 0x3C, 0xFF, 0x7E, 0x3C, 0x18 }; diff --git a/icons/xbm8x8/net_down_02.xbm b/icons/xbm8x8/net_down_02.xbm new file mode 100755 index 0000000..750ada5 --- /dev/null +++ b/icons/xbm8x8/net_down_02.xbm @@ -0,0 +1,4 @@ +#define net_down_02_width 8 +#define net_down_02_height 8 +static unsigned char net_down_02_bits[] = { + 0x78, 0x3C, 0x3C, 0x3C, 0xFF, 0x7E, 0x3C, 0x18 }; diff --git a/icons/xbm8x8/net_down_03.xbm b/icons/xbm8x8/net_down_03.xbm new file mode 100755 index 0000000..0502235 --- /dev/null +++ b/icons/xbm8x8/net_down_03.xbm @@ -0,0 +1,4 @@ +#define net_down_03_width 8 +#define net_down_03_height 8 +static unsigned char net_down_03_bits[] = { + 0x38, 0x38, 0x38, 0x38, 0xFE, 0x7C, 0x38, 0x10 }; diff --git a/icons/xbm8x8/net_up_01.xbm b/icons/xbm8x8/net_up_01.xbm new file mode 100755 index 0000000..aac47a3 --- /dev/null +++ b/icons/xbm8x8/net_up_01.xbm @@ -0,0 +1,4 @@ +#define net_up_01_width 8 +#define net_up_01_height 8 +static unsigned char net_up_01_bits[] = { + 0x18, 0x3C, 0x7E, 0xFF, 0x3C, 0x3C, 0x3C, 0x78 }; diff --git a/icons/xbm8x8/net_up_02.xbm b/icons/xbm8x8/net_up_02.xbm new file mode 100755 index 0000000..9a53392 --- /dev/null +++ b/icons/xbm8x8/net_up_02.xbm @@ -0,0 +1,4 @@ +#define net_up_02_width 8 +#define net_up_02_height 8 +static unsigned char net_up_02_bits[] = { + 0x18, 0x3C, 0x7E, 0xFF, 0x3C, 0x3C, 0x3C, 0x1E }; diff --git a/icons/xbm8x8/net_up_03.xbm b/icons/xbm8x8/net_up_03.xbm new file mode 100755 index 0000000..b21c007 --- /dev/null +++ b/icons/xbm8x8/net_up_03.xbm @@ -0,0 +1,4 @@ +#define net_up_03_width 8 +#define net_up_03_height 8 +static unsigned char net_up_03_bits[] = { + 0x10, 0x38, 0x7C, 0xFE, 0x38, 0x38, 0x38, 0x38 }; diff --git a/icons/xbm8x8/net_wired.xbm b/icons/xbm8x8/net_wired.xbm new file mode 100755 index 0000000..25cd20b --- /dev/null +++ b/icons/xbm8x8/net_wired.xbm @@ -0,0 +1,4 @@ +#define net_wired_width 8 +#define net_wired_height 8 +static unsigned char net_wired_bits[] = { + 0x00, 0x1C, 0x1C, 0x7F, 0x7F, 0x7F, 0x55, 0x7F }; diff --git a/icons/xbm8x8/next.xbm b/icons/xbm8x8/next.xbm new file mode 100755 index 0000000..3937532 --- /dev/null +++ b/icons/xbm8x8/next.xbm @@ -0,0 +1,4 @@ +#define next_width 8 +#define next_height 8 +static unsigned char next_bits[] = { + 0x00, 0x42, 0x4E, 0x7E, 0x7E, 0x4E, 0x42, 0x00 }; diff --git a/icons/xbm8x8/note.xbm b/icons/xbm8x8/note.xbm new file mode 100755 index 0000000..21ba22b --- /dev/null +++ b/icons/xbm8x8/note.xbm @@ -0,0 +1,4 @@ +#define note_width 8 +#define note_height 8 +static unsigned char note_bits[] = { + 0xFC, 0xFC, 0x84, 0x84, 0x84, 0x84, 0xE7, 0xE7 }; diff --git a/icons/xbm8x8/pacman.xbm b/icons/xbm8x8/pacman.xbm new file mode 100755 index 0000000..0f4fd22 --- /dev/null +++ b/icons/xbm8x8/pacman.xbm @@ -0,0 +1,4 @@ +#define pacman_width 8 +#define pacman_height 8 +static unsigned char pacman_bits[] = { + 0x3C, 0x6E, 0xE7, 0xFF, 0x07, 0x1F, 0x7E, 0x3C }; diff --git a/icons/xbm8x8/pause.xbm b/icons/xbm8x8/pause.xbm new file mode 100755 index 0000000..6bb2251 --- /dev/null +++ b/icons/xbm8x8/pause.xbm @@ -0,0 +1,4 @@ +#define pause_width 8 +#define pause_height 8 +static unsigned char pause_bits[] = { + 0x00, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x00 }; diff --git a/icons/xbm8x8/phones.xbm b/icons/xbm8x8/phones.xbm new file mode 100755 index 0000000..cab8c58 --- /dev/null +++ b/icons/xbm8x8/phones.xbm @@ -0,0 +1,4 @@ +#define phones_width 8 +#define phones_height 8 +static unsigned char phones_bits[] = { + 0x3C, 0x42, 0x81, 0x81, 0xA5, 0xE7, 0xE7, 0x66 }; diff --git a/icons/xbm8x8/play.xbm b/icons/xbm8x8/play.xbm new file mode 100755 index 0000000..d42ad52 --- /dev/null +++ b/icons/xbm8x8/play.xbm @@ -0,0 +1,4 @@ +#define play_width 8 +#define play_height 8 +static unsigned char play_bits[] = { + 0x00, 0x06, 0x1E, 0x7E, 0x7E, 0x1E, 0x06, 0x00 }; diff --git a/icons/xbm8x8/plug.xbm b/icons/xbm8x8/plug.xbm new file mode 100755 index 0000000..92da02d --- /dev/null +++ b/icons/xbm8x8/plug.xbm @@ -0,0 +1,4 @@ +#define plug_width 8 +#define plug_height 8 +static unsigned char plug_bits[] = { + 0x03, 0x0F, 0x1E, 0x3E, 0x3C, 0x58, 0xA0, 0xC0 }; diff --git a/icons/xbm8x8/prev.xbm b/icons/xbm8x8/prev.xbm new file mode 100755 index 0000000..8774315 --- /dev/null +++ b/icons/xbm8x8/prev.xbm @@ -0,0 +1,4 @@ +#define prev_width 8 +#define prev_height 8 +static unsigned char prev_bits[] = { + 0x00, 0x42, 0x72, 0x7E, 0x7E, 0x72, 0x42, 0x00 }; diff --git a/icons/xbm8x8/rwd.xbm b/icons/xbm8x8/rwd.xbm new file mode 100755 index 0000000..5170b21 --- /dev/null +++ b/icons/xbm8x8/rwd.xbm @@ -0,0 +1,4 @@ +#define rwd_width 8 +#define rwd_height 8 +static unsigned char rwd_bits[] = { + 0x00, 0x48, 0x6C, 0x7E, 0x7E, 0x6C, 0x48, 0x00 }; diff --git a/icons/xbm8x8/scorpio.xbm b/icons/xbm8x8/scorpio.xbm new file mode 100755 index 0000000..befc2ca --- /dev/null +++ b/icons/xbm8x8/scorpio.xbm @@ -0,0 +1,4 @@ +#define scorpio_width 8 +#define scorpio_height 8 +static unsigned char scorpio_bits[] = { + 0x42, 0x81, 0xDB, 0x3C, 0xDB, 0x5A, 0x99, 0x30 }; diff --git a/icons/xbm8x8/shroom.xbm b/icons/xbm8x8/shroom.xbm new file mode 100755 index 0000000..62df79f --- /dev/null +++ b/icons/xbm8x8/shroom.xbm @@ -0,0 +1,4 @@ +#define shroom_width 8 +#define shroom_height 8 +static unsigned char shroom_bits[] = { + 0x3C, 0x42, 0x81, 0x81, 0xFF, 0x3C, 0x3C, 0x3C }; diff --git a/icons/xbm8x8/spkr_01.xbm b/icons/xbm8x8/spkr_01.xbm new file mode 100755 index 0000000..7c2ffc4 --- /dev/null +++ b/icons/xbm8x8/spkr_01.xbm @@ -0,0 +1,4 @@ +#define spkr_01_width 8 +#define spkr_01_height 8 +static unsigned char spkr_01_bits[] = { + 0x08, 0x4C, 0x8F, 0xAF, 0xAF, 0x8F, 0x4C, 0x08 }; diff --git a/icons/xbm8x8/spkr_02.xbm b/icons/xbm8x8/spkr_02.xbm new file mode 100755 index 0000000..8265bf8 --- /dev/null +++ b/icons/xbm8x8/spkr_02.xbm @@ -0,0 +1,4 @@ +#define spkr_02_width 8 +#define spkr_02_height 8 +static unsigned char spkr_02_bits[] = { + 0x08, 0x0C, 0x0F, 0x1F, 0x1F, 0x0F, 0x0C, 0x08 }; diff --git a/icons/xbm8x8/spkr_03.xbm b/icons/xbm8x8/spkr_03.xbm new file mode 100755 index 0000000..fd45a6c --- /dev/null +++ b/icons/xbm8x8/spkr_03.xbm @@ -0,0 +1,4 @@ +#define ysick_width 8 +#define ysick_height 8 +static unsigned char ysick_bits[] = { + 0x4C, 0x93, 0x93, 0x97, 0x97, 0x93, 0x93, 0x4C }; diff --git a/icons/xbm8x8/stop.xbm b/icons/xbm8x8/stop.xbm new file mode 100755 index 0000000..f92b64d --- /dev/null +++ b/icons/xbm8x8/stop.xbm @@ -0,0 +1,4 @@ +#define stop_width 8 +#define stop_height 8 +static unsigned char stop_bits[] = { + 0x00, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x00 }; diff --git a/icons/xbm8x8/temp.xbm b/icons/xbm8x8/temp.xbm new file mode 100755 index 0000000..b03d2f1 --- /dev/null +++ b/icons/xbm8x8/temp.xbm @@ -0,0 +1,4 @@ +#define temp_width 8 +#define temp_height 8 +static unsigned char temp_bits[] = { + 0xC8, 0xE0, 0x72, 0x28, 0x16, 0x09, 0x09, 0x06 }; diff --git a/icons/xbm8x8/test.xbm b/icons/xbm8x8/test.xbm new file mode 100755 index 0000000..756e899 --- /dev/null +++ b/icons/xbm8x8/test.xbm @@ -0,0 +1,4 @@ +#define test_width 8 +#define test_height 8 +static unsigned char test_bits[] = { + 0x0E, 0x13, 0x21, 0x41, 0x82, 0x84, 0xC8, 0x70 }; diff --git a/icons/xbm8x8/usb.xbm b/icons/xbm8x8/usb.xbm new file mode 100755 index 0000000..9b0eb08 --- /dev/null +++ b/icons/xbm8x8/usb.xbm @@ -0,0 +1,4 @@ +#define usb_width 8 +#define usb_height 8 +static unsigned char usb_bits[] = { + 0x70, 0x88, 0xC4, 0xE2, 0x7E, 0x32, 0x09, 0x07 }; diff --git a/icons/xbm8x8/usb_02.xbm b/icons/xbm8x8/usb_02.xbm new file mode 100755 index 0000000..77eeda0 --- /dev/null +++ b/icons/xbm8x8/usb_02.xbm @@ -0,0 +1,4 @@ +#define usb_02_width 8 +#define usb_02_height 8 +static unsigned char usb_02_bits[] = { + 0x10, 0x50, 0x54, 0x54, 0x34, 0x18, 0x10, 0x10 }; diff --git a/icons/xbm8x8/wifi_01.xbm b/icons/xbm8x8/wifi_01.xbm new file mode 100755 index 0000000..315d0f7 --- /dev/null +++ b/icons/xbm8x8/wifi_01.xbm @@ -0,0 +1,4 @@ +#define wifi_01_width 8 +#define wifi_01_height 8 +static unsigned char wifi_01_bits[] = { + 0x80, 0xA0, 0xA8, 0xAB, 0xAB, 0xA8, 0xA0, 0x80 }; diff --git a/icons/xbm8x8/wifi_02.xbm b/icons/xbm8x8/wifi_02.xbm new file mode 100755 index 0000000..bd2b3ee --- /dev/null +++ b/icons/xbm8x8/wifi_02.xbm @@ -0,0 +1,4 @@ +#define wifi_02_width 8 +#define wifi_02_height 8 +static unsigned char wifi_02_bits[] = { + 0x40, 0x90, 0xA4, 0xA9, 0xA9, 0xA4, 0x90, 0x40 }; diff --git a/rc.lua.multicolor b/rc.lua.multicolor new file mode 100755 index 0000000..6ba24b4 --- /dev/null +++ b/rc.lua.multicolor @@ -0,0 +1,980 @@ +-- multicolor + +-- {{{ Required Libraries + +gears = require("gears") +awful = require("awful") +awful.rules = require("awful.rules") +awful.autofocus = require("awful.autofocus") +wibox = require("wibox") +beautiful = require("beautiful") +naughty = require("naughty") +vicious = require("vicious") +scratch = require("scratch") + +-- }}} + +-- {{{ Autostart + +function run_once(cmd) + findme = cmd + firstspace = cmd:find(" ") + if firstspace then + findme = cmd:sub(0, firstspace-1) + end + awful.util.spawn_with_shell("pgrep -u $USER -x " .. findme .. " > /dev/null || (" .. cmd .. ")") + end + +run_once("unclutter -idle 10") + +-- }}} + +-- {{{ Localization + +os.setlocale(os.getenv("LANG")) + +-- }}} + +-- {{{ Error Handling + +-- Check if awesome encountered an error during startup and fell back to +-- another config (This code will only ever execute for the fallback config) +if awesome.startup_errors then + naughty.notify({ preset = naughty.config.presets.critical, + title = "Oops, there were errors during startup!", + text = awesome.startup_errors }) +end + +-- Handle runtime errors after startup +do + in_error = false + awesome.connect_signal("debug::error", function (err) + -- Make sure we don't go into an endless error loop + if in_error then return end + in_error = true + + naughty.notify({ preset = naughty.config.presets.critical, + title = "Oops, an error happened!", + text = err }) + in_error = false + end) +end + +-- }}} + +-- {{{ Variable Definitions + +-- Useful Paths +home = os.getenv("HOME") +confdir = home .. "/.config/awesome" +themes = confdir .. "/themes" +active_theme = themes .. "/multicolor" + +-- Themes define colours, icons, and wallpapers +beautiful.init(active_theme .. "/theme.lua") + +terminal = "xterm" +editor = os.getenv("EDITOR") +editor_cmd = terminal .. " -e " .. editor +gui_editor = "geany -ps" +browser = "dwb" +mail = terminal .. " -e mutt " +chat = terminal .. " -e irssi " +tasks = terminal .. " -e htop " + +-- Default modkey. +-- Usually, Mod4 is the key with a logo between Control and Alt. +-- If you do not like this or do not have such a key, +-- I suggest you to remap Mod4 to another key using xmodmap or other tools. +-- However, you can use another modifier like Mod1, but it may interact with others. +modkey = "Mod4" +altkey = "Mod1" + +-- Table of layouts to cover with awful.layout.inc, order matters. +layouts = +{ + awful.layout.suit.floating, -- 1 + awful.layout.suit.tile, -- 2 + awful.layout.suit.tile.left, -- 3 + awful.layout.suit.tile.bottom, -- 4 + awful.layout.suit.tile.top, -- 5 + awful.layout.suit.fair, -- 6 + awful.layout.suit.fair.horizontal, -- 7 + awful.layout.suit.spiral, -- 8 + awful.layout.suit.spiral.dwindle, -- 9 + awful.layout.suit.max, -- 10 + --awful.layout.suit.max.fullscreen, -- 11 + --awful.layout.suit.magnifier -- 12 +} + +-- }}} + +-- {{{ Wallpaper + +if beautiful.wallpaper then + for s = 1, screen.count() do + gears.wallpaper.maximized(beautiful.wallpaper, s, true) + end +end + +-- }}} + +-- {{{ Tags + +-- Define a tag table which hold all screen tags. +tags = { + names = { "web", "term", "docs", "media", "files", "other" }, + layout = { layouts[1], layouts[3], layouts[4], layouts[1], layouts[7], layouts[1] } + } +for s = 1, screen.count() do +-- Each screen has its own tag table. + tags[s] = awful.tag(tags.names, s, tags.layout) +end +-- }}} + +-- {{{ Menu +myaccessories = { + { "archives", "7zFM" }, + { "file manager", "spacefm" }, + { "editor", gui_editor }, +} +myinternet = { + { "browser", browser }, + { "irc client" , chat }, + { "torrent" , "rtorrent" }, + { "torrtux" , terminal .. " -e torrtux " }, + { "torrent search" , "torrent-search" } +} +mygames = { + { "NES", "fceux" }, + { "Super NES", "zsnes" }, +} +mygraphics = { + { "gimp" , "gimp" }, + { "inkscape", "inkscape" }, + { "dia", "dia" }, + { "image viewer" , "viewnior" } +} +myoffice = { + { "writer" , "lowriter" }, + { "impress" , "loimpress" } +} +mysystem = { + { "appearance" , "lxappearance" }, + { "cleaning" , "bleachbit" }, + { "powertop" , terminal .. " -e sudo powertop " }, + { "task manager" , tasks } +} +mymainmenu = awful.menu({ items = { + { "accessories" , myaccessories }, + { "graphics" , mygraphics }, + { "internet" , myinternet }, + { "games" , mygames }, + { "office" , myoffice }, + { "system" , mysystem }, + } + }) +mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, + menu = mymainmenu }) +-- }}} + +-- {{{ Wibox + +-- Colours +coldef = "" +colwhi = "" +colbwhi = "" +blue = "" +yellow = "" +purple = "" +lightpurple = "" +azure = "" +green = "" +lightgreen = "" +red = "" +orange = "" +brown = "" +fuchsia = "" +gold = "" + +-- Textclock widget +clockicon = wibox.widget.imagebox() +clockicon:set_image(beautiful.widget_clock) +mytextclock = awful.widget.textclock("%A %d %B " .. blue .. "> %H:%M ") + +-- Calendar attached to the textclock +local os = os +local string = string +local table = table +local util = awful.util + +char_width = nil +text_color = theme.fg_normal or "#FFFFFF" +today_color = theme.fg_focus or "#00FF00" +calendar_width = 21 + +local calendar = nil +local todo = nil +local offset = 0 + +local data = nil + +local function pop_spaces(s1, s2, maxsize) + local sps = "" + for i = 1, maxsize - string.len(s1) - string.len(s2) do + sps = sps .. " " + end + return s1 .. sps .. s2 +end + +local function create_calendar() + offset = offset or 0 + + local now = os.date("*t") + local cal_month = now.month + offset + local cal_year = now.year + if cal_month > 12 then + cal_month = (cal_month % 12) + cal_year = cal_year + 1 + elseif cal_month < 1 then + cal_month = (cal_month + 12) + cal_year = cal_year - 1 + end + + local last_day = os.date("%d", os.time({ day = 1, year = cal_year, + month = cal_month + 1}) - 86400) + local first_day = os.time({ day = 1, month = cal_month, year = cal_year}) + local first_day_in_week = + os.date("%w", first_day) + local result = "do lu ma me gi ve sa\n" + for i = 1, first_day_in_week do + result = result .. " " + end + + local this_month = false + for day = 1, last_day do + local last_in_week = (day + first_day_in_week) % 7 == 0 + local day_str = pop_spaces("", day, 2) .. (last_in_week and "" or " ") + if cal_month == now.month and cal_year == now.year and day == now.day then + this_month = true + result = result .. + string.format('%s', + today_color, day_str) + else + result = result .. day_str + end + if last_in_week and day ~= last_day then + result = result .. "\n" + end + end + + local header + if this_month then + header = os.date("%a, %d %b %Y") + else + header = os.date("%B %Y", first_day) + end + return header, string.format('%s', + theme.font, text_color, result) +end + +local function calculate_char_width() + return beautiful.get_font_height(theme.font) * 0.555 +end + +function hide() + if calendar ~= nil then + naughty.destroy(calendar) + naughty.destroy(todo) + calendar = nil + offset = 0 + end +end + +function show(inc_offset) + inc_offset = inc_offset or 0 + + local save_offset = offset + hide() + offset = save_offset + inc_offset + + local char_width = char_width or calculate_char_width() + local header, cal_text = create_calendar() + calendar = naughty.notify({ title = header, + text = cal_text, + timeout = 0, hover_timeout = 0.5, + }) +end + +mytextclock:connect_signal("mouse::enter", function() show(0) end) +mytextclock:connect_signal("mouse::leave", hide) +mytextclock:buttons(util.table.join( awful.button({ }, 1, function() show(-1) end), + awful.button({ }, 3, function() show(1) end))) + +-- Vicious weather widget +weathericon = wibox.widget.imagebox() +weathericon:set_image(theme.confdir .. "/widgets/dish.png") +weatherwidget = wibox.widget.textbox() +vicious.register(weatherwidget, vicious.widgets.weather, + function (widget, args) + if args["{tempf}"] == "N/A" then + return "No Info" + else + -- Italian localization + -- work in progress + if( args["{sky}"] == "N/A" ) then args["{sky}"] = "sereno" + elseif( args["{sky}"] == "Sereno" ) then args["{sky}"] = "sereno" + elseif( args["{sky}"] == "Cloudy" ) then args["{sky}"] = "nuvoloso" + elseif( args["{sky}"] == "Mostly Cloudy" ) then args["{sky}"] = "molto nuvoloso" + end + return "" .. lightpurple .. args["{sky}"] .. " @ " .. args["{tempc}"] .. "°C" .. coldef .. "" + end + end, 1800, "LIRN" ) + +-- /home fs widget +fshicon = wibox.widget.imagebox() +fshicon:set_image(theme.confdir .. "/widgets/fs.png") +fshwidget = wibox.widget.textbox() + vicious.register(fshwidget, vicious.widgets.fs, + function (widget, args) + if args["{/home used_p}"] >= 95 and args["{/home used_p}"] < 99 then + return colwhi .. args["{/home used_p}"] .. "%" .. coldef + elseif args["{/home used_p}"] >= 99 and args["{/home used_p}"] <= 100 then + naughty.notify({ title = "Attenzione", text = "Partizione /home esaurita!\nFa' un po' di spazio.", + timeout = 10, + position = "top_right", + fg = beautiful.fg_urgent, + bg = beautiful.bg_urgent }) + return colwhi .. args["{/home used_p}"] .. "%" .. coldef + else + return azure .. args["{/home used_p}"] .. "%" .. coldef + end + end, 620) + +local infos = nil + +function remove_info() + if infos ~= nil then + naughty.destroy(infos) + infos = nil + end +end + +function add_info() + remove_info() + local capi = { + mouse = mouse, + screen = screen + } + local cal = awful.util.pread("dfs") + cal = string.gsub(cal, " ^%s*(.-)%s*$", "%1") + infos = naughty.notify({ + text = string.format('%s', "Terminus", cal), + timeout = 0, + position = "top_right", + margin = 10, + height = 170, + width = 585, + border_color = '#404040', + border_width = 1, + opacity = 0.94, + screen = capi.mouse.screen + }) +end + +fshicon:connect_signal('mouse::enter', function () add_info() end) +fshicon:connect_signal('mouse::leave', function () remove_info() end) + +-- Uptime +uptimeicon = wibox.widget.imagebox() +uptimeicon:set_image(beautiful.widget_uptime) +uptimewidget = wibox.widget.textbox() +vicious.register(uptimewidget, vicious.widgets.uptime, brown .. "$2.$3" .. coldef) + +-- Gmail widget +mygmail = wibox.widget.textbox() +gmail_t = awful.tooltip({ objects = { mygmail },}) +mygmailimg = wibox.widget.imagebox(beautiful.widget_gmail) +vicious.register(mygmail, vicious.widgets.gmail, + function (widget, args) + gmail_t:set_text(args["{subject}"]) + gmail_t:add_to_object(mygmailimg) + return args["{count}"] + end, 60) +mygmail:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn(mail, false) end))) + +-- CPU widget +cpuicon = wibox.widget.imagebox() +cpuicon:set_image(beautiful.widget_cpu) +cpuwidget = wibox.widget.textbox() +vicious.register(cpuwidget, vicious.widgets.cpu, purple .. "$1%" .. coldef, 3) +cpuicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn(tasks, false) end))) + +-- Temp widget +tempicon = wibox.widget.imagebox() +tempicon:set_image(beautiful.widget_temp) +tempicon:buttons(awful.util.table.join( + awful.button({ }, 1, function () awful.util.spawn(terminal .. " -e sudo powertop ", false) end) + )) + tempwidget = wibox.widget.textbox() + vicious.register(tempwidget, vicious.widgets.thermal, "$1°C", 9, {"coretemp.0", "core"} ) + +-- Battery widget +baticon = wibox.widget.imagebox() +baticon:set_image(beautiful.widget_batt) +batwidget = wibox.widget.textbox() +vicious.register( batwidget, vicious.widgets.bat, "$2", 1, "BAT0") + +function batstate() + + local file = io.open("/sys/class/power_supply/BAT0/status", "r") + + if (file == nil) then + return "Cable plugged" + end + + local batstate = file:read("*line") + file:close() + + if (batstate == 'Discharging' or batstate == 'Charging') then + return batstate + else + return "Fully charged" + end +end + +batwidget = wibox.widget.textbox() +vicious.register(batwidget, vicious.widgets.bat, + function (widget, args) + -- plugged + if (batstate() == 'Cable plugged') then return "AC " + -- critical + elseif (args[2] <= 5 and batstate() == 'Discharging') then + naughty.notify({ + text = "sto per spegnermi...", + title = "Carica quasi esaurita!", + position = "top_right", + timeout = 1, + fg="#000000", + bg="#ffffff", + screen = 1, + ontop = true, + }) + -- low + elseif (args[2] <= 10 and batstate() == 'Discharging') then + naughty.notify({ + text = "attacca il cavo!", + title = "Carica bassa", + position = "top_right", + timeout = 1, + fg="#ffffff", + bg="#262729", + screen = 1, + ontop = true, + }) + end + return " " .. args[2] .. "% " + end, 1, 'BAT0') + +-- Volume widget +volicon = wibox.widget.imagebox() +volicon:set_image(beautiful.widget_vol) +volumewidget = wibox.widget.textbox() +vicious.register(volumewidget, vicious.widgets.volume, blue .. "$1%" .. coldef, 1, "Master") + +-- Net widget +netdownicon = wibox.widget.imagebox() +netdownicon:set_image(beautiful.widget_netdown) +netdownicon.align = "middle" +netdowninfo = wibox.widget.textbox() +vicious.register(netdowninfo, vicious.widgets.net, green .. "${wlan0 down_kb}" .. coldef, 1) +netupicon = wibox.widget.imagebox() +netupicon:set_image(beautiful.widget_netup) +netupicon.align = "middle" +netupinfo = wibox.widget.textbox() +vicious.register(netupinfo, vicious.widgets.net, red .. "${wlan0 up_kb}" .. coldef, 1) + +-- Memory widget +memicon = wibox.widget.imagebox() +memicon:set_image(beautiful.widget_mem) +memwidget = wibox.widget.textbox() +vicious.register(memwidget, vicious.widgets.mem, yellow .. "$2M" .. coldef, 1) + +-- MPD Widget +mpdwidget = wibox.widget.textbox() +mpdicon = wibox.widget.imagebox() +mpdicon:set_image(theme.confdir .. "/widgets/note.png") + +vicious.register(mpdwidget, vicious.widgets.mpd, +function(widget, args) + -- play + if (args["{state}"] == "Play") then + return red .. args["{Title}"] .. coldef .. colwhi .. " - " .. coldef .. colwhi .. + args["{Artist}"] .. coldef + -- pause + elseif (args["{state}"] == "Pause") then + return red .. "mpd" .. colwhi .." paused" + -- stop + elseif (args["{state}"] == "Stop") then + return red .. "mpd" .. colwhi .." stopped" + -- not running + else + return red .. "mpd" .. colwhi .." off" + end + end, 1) + +-- Spacer +spacer = wibox.widget.textbox(" ") + +-- }}} + +-- {{{ Layout + +-- Create a wibox for each screen and add it +mywibox = {} +mybottomwibox = {} +mypromptbox = {} +mylayoutbox = {} +mytaglist = {} +mytaglist.buttons = awful.util.table.join( + awful.button({ }, 1, awful.tag.viewonly), + awful.button({ modkey }, 1, awful.client.movetotag), + awful.button({ }, 3, awful.tag.viewtoggle), + awful.button({ modkey }, 3, awful.client.toggletag), + awful.button({ }, 4, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end), + awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end) + ) +mytasklist = {} +mytasklist.buttons = awful.util.table.join( + awful.button({ }, 1, function (c) + if c == client.focus then + c.minimized = true + else + -- Without this, the following + -- :isvisible() makes no sense + c.minimized = false + if not c:isvisible() then + awful.tag.viewonly(c:tags()[1]) + end + -- This will also un-minimize + -- the client, if needed + client.focus = c + c:raise() + end + end), + awful.button({ }, 3, function () + if instance then + instance:hide() + instance = nil + else + instance = awful.menu.clients({ width=250 }) + end + end), + awful.button({ }, 4, function () + awful.client.focus.byidx(1) + if client.focus then client.focus:raise() end + end), + awful.button({ }, 5, function () + awful.client.focus.byidx(-1) + if client.focus then client.focus:raise() end + end)) + +for s = 1, screen.count() do + + -- Create a promptbox for each screen + mypromptbox[s] = awful.widget.prompt() + + + -- We need one layoutbox per screen. + mylayoutbox[s] = awful.widget.layoutbox(s) + mylayoutbox[s]:buttons(awful.util.table.join( + awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end), + awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end), + awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end), + awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end))) + + -- Create a taglist widget + mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons) + + -- Create a tasklist widget + mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons) + + -- Create the upper wibox + mywibox[s] = awful.wibox({ position = "top", screen = s, height = 20 }) + --border_width = 0, height = 20 }) + + -- Widgets that are aligned to the upper left + local left_layout = wibox.layout.fixed.horizontal() + --left_layout:add(spacer) + --left_layout:add(mylauncher) + --left_layout:add(spacer) + left_layout:add(mytaglist[s]) + left_layout:add(mypromptbox[s]) + --left_layout:add(spacer) + left_layout:add(mpdicon) + left_layout:add(mpdwidget) + --left_layout:add(spacer) + + -- Widgets that are aligned to the upper right + local right_layout = wibox.layout.fixed.horizontal() + if s == 1 then right_layout:add(wibox.widget.systray()) end + right_layout:add(netdownicon) + right_layout:add(netdowninfo) + right_layout:add(spacer) + right_layout:add(netupicon) + right_layout:add(netupinfo) + right_layout:add(spacer) + right_layout:add(volicon) + right_layout:add(volumewidget) + right_layout:add(spacer) + right_layout:add(memicon) + right_layout:add(memwidget) + right_layout:add(spacer) + right_layout:add(cpuicon) + right_layout:add(cpuwidget) + right_layout:add(spacer) + right_layout:add(fshicon) + right_layout:add(fshwidget) + right_layout:add(spacer) + right_layout:add(uptimeicon) + right_layout:add(uptimewidget) + right_layout:add(spacer) + right_layout:add(weathericon) + right_layout:add(weatherwidget) + right_layout:add(spacer) + right_layout:add(tempicon) + right_layout:add(tempwidget) + right_layout:add(spacer) + right_layout:add(mygmailimg) + right_layout:add(mygmail) + right_layout:add(spacer) + right_layout:add(baticon) + right_layout:add(batwidget) + --right_layout:add(spacer) + right_layout:add(clockicon) + right_layout:add(mytextclock) + --right_layout:add(mylayoutbox[s]) + + -- Now bring it all together (with the tasklist in the middle) + local layout = wibox.layout.align.horizontal() + layout:set_left(left_layout) + --layout:set_middle(mytasklist[s]) + layout:set_right(right_layout) + + mywibox[s]:set_widget(layout) + + -- Create the bottom wibox + mybottomwibox[s] = awful.wibox({ position = "bottom", screen = s, border_width = 0, height = 20 }) + --mybottomwibox[s].visible = false + + -- Widgets that are aligned to the bottom left + bottom_left_layout = wibox.layout.fixed.horizontal() + bottom_left_layout:add(spacer) + + -- Widgets that are aligned to the bottom right + bottom_right_layout = wibox.layout.fixed.horizontal() + bottom_right_layout:add(spacer) + bottom_right_layout:add(mylayoutbox[s]) + + -- Now bring it all together (with the tasklist in the middle) + bottom_layout = wibox.layout.align.horizontal() + bottom_layout:set_left(bottom_left_layout) + bottom_layout:set_middle(mytasklist[s]) + bottom_layout:set_right(bottom_right_layout) + mybottomwibox[s]:set_widget(bottom_layout) + +end + +-- }}} + +-- {{{ Mouse Bindings + +root.buttons(awful.util.table.join( + awful.button({ }, 4, awful.tag.viewnext), + awful.button({ }, 5, awful.tag.viewprev) +)) + +-- }}} + +-- {{{ Key bindings +globalkeys = awful.util.table.join( + -- Capture a screenshot + awful.key({ altkey }, "p", function() awful.util.spawn("screenshot",false) end), + + -- Move clients + awful.key({ altkey }, "Next", function () awful.client.moveresize( 1, 1, -2, -2) end), + awful.key({ altkey }, "Prior", function () awful.client.moveresize(-1, -1, 2, 2) end), + awful.key({ altkey }, "Down", function () awful.client.moveresize( 0, 1, 0, 0) end), + awful.key({ altkey }, "Up", function () awful.client.moveresize( 0, -1, 0, 0) end), + awful.key({ altkey }, "Left", function () awful.client.moveresize(-1, 0, 0, 0) end), + awful.key({ altkey }, "Right", function () awful.client.moveresize( 1, 0, 0, 0) end), + + awful.key({ modkey, }, "Left", awful.tag.viewprev ), + awful.key({ modkey, }, "Right", awful.tag.viewnext ), + awful.key({ modkey, }, "Escape", awful.tag.history.restore), + + awful.key({ modkey, }, "j", + function () + awful.client.focus.byidx( 1) + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, }, "k", + function () + awful.client.focus.byidx(-1) + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, }, "w", function () mymainmenu:show({keygrabber=true}) end), + + -- Show/Hide Wibox + awful.key({ modkey }, "b", function () + mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible + mybottomwibox[mouse.screen].visible = not mybottomwibox[mouse.screen].visible end), + + -- Layout manipulation + awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), + awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), + awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), + awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), + awful.key({ modkey, }, "u", awful.client.urgent.jumpto), + awful.key({ modkey, }, "Tab", + function () + awful.client.focus.history.previous() + if client.focus then + client.focus:raise() + end + end), + + -- Standard program + awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), + awful.key({ modkey, "Control" }, "r", awesome.restart), + awful.key({ modkey, "Shift" }, "q", awesome.quit), + + awful.key({ modkey, }, "z", function () scratch.drop(terminal) end), + awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end), + awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end), + awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), + awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), + awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), + awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), + awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), + awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), + + awful.key({ modkey, "Control" }, "n", awful.client.restore), + + -- Volume control + awful.key({ "Control" }, "Up", function () awful.util.spawn("amixer set Master playback 1%+", false ) end), + awful.key({ "Control" }, "Down", function () awful.util.spawn("amixer set Master playback 1%-", false ) end), + awful.key({ "Control" }, "m", function () awful.util.spawn("amixer set Master playback mute", false ) end), + awful.key({ "Control" }, "u", function () awful.util.spawn("amixer set Master playback unmute", false ) end), + + -- Music control + awful.key({ altkey, "Control" }, "Up", function () awful.util.spawn( "mpc toggle", false ) end), + awful.key({ altkey, "Control" }, "Down", function () awful.util.spawn( "mpc stop", false ) end ), + awful.key({ altkey, "Control" }, "Left", function () awful.util.spawn( "mpc prev", false ) end ), + awful.key({ altkey, "Control" }, "Right", function () awful.util.spawn( "mpc next", false ) end ), + awful.key({ modkey, "Control" }, "Up", function () awful.util.spawn( "systemctl start mpd", false ) end), + awful.key({ modkey, "Control" }, "Down", function () awful.util.spawn( "systemctl stop mpd", false ) end), + + -- Other stuff + awful.key({ modkey, }, "c", function () os.execute("xsel -p -o | xsel -i -b") end), + awful.key({ modkey, }, "q", function () awful.util.spawn( "dwb", false ) end), + awful.key({ modkey, }, "s", function () awful.util.spawn(gui_editor) end), + awful.key({ modkey, }, "t", function () awful.util.spawn(mail) end), + awful.key({ modkey, }, "d", function () awful.util.spawn( "spacefm", false ) end), + + -- Prompt + awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end), + + awful.key({ modkey }, "x", + function () + awful.prompt.run({ prompt = "Run Lua code: " }, + mypromptbox[mouse.screen].widget, + awful.util.eval, nil, + awful.util.getdir("cache") .. "/history_eval") + end) +) + +clientkeys = awful.util.table.join( + awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end), + awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end), + awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ), + awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end), + awful.key({ modkey, }, "o", awful.client.movetoscreen ), + awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end), + awful.key({ modkey, }, "n", + function (c) + -- The client currently has the input focus, so it cannot be + -- minimized, since minimized clients can't have the focus. + c.minimized = true + end), + awful.key({ modkey, }, "m", + function (c) + c.maximized_horizontal = not c.maximized_horizontal + c.maximized_vertical = not c.maximized_vertical + end) +) + +-- Compute the maximum number of digit we need, limited to 9 +keynumber = 0 +for s = 1, screen.count() do + keynumber = math.min(9, math.max(#tags[s], keynumber)); +end + +-- Bind all key numbers to tags. +-- Be careful: we use keycodes to make it works on any keyboard layout. +-- This should map on the top row of your keyboard, usually 1 to 9. +for i = 1, keynumber do + globalkeys = awful.util.table.join(globalkeys, + awful.key({ modkey }, "#" .. i + 9, + function () + screen = mouse.screen + if tags[screen][i] then + awful.tag.viewonly(tags[screen][i]) + end + end), + awful.key({ modkey, "Control" }, "#" .. i + 9, + function () + screen = mouse.screen + if tags[screen][i] then + awful.tag.viewtoggle(tags[screen][i]) + end + end), + awful.key({ modkey, "Shift" }, "#" .. i + 9, + function () + if client.focus and tags[client.focus.screen][i] then + awful.client.movetotag(tags[client.focus.screen][i]) + end + end), + awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, + function () + if client.focus and tags[client.focus.screen][i] then + awful.client.toggletag(tags[client.focus.screen][i]) + end + end)) +end + +clientbuttons = awful.util.table.join( + awful.button({ }, 1, function (c) client.focus = c; c:raise() end), + awful.button({ modkey }, 1, awful.mouse.client.move), + awful.button({ modkey }, 3, awful.mouse.client.resize)) + +-- Set keys +root.keys(globalkeys) + +-- }}} + +-- {{{ Rules + +awful.rules.rules = { + -- All clients will match this rule. + { rule = { }, + properties = { border_width = beautiful.border_width, + border_color = beautiful.border_normal, + focus = true, + keys = clientkeys, + buttons = clientbuttons, + size_hints_honor = false + } + }, + + { rule = { class = "MPlayer" }, + properties = { floating = true } }, + + { rule = { class = "Dwb" }, + properties = { tag = tags[1][1], + maximized_vertical=true, + maximized_horizontal=true } }, + + { rule = { class = "Geany" }, + properties = { tag = tags[1][2] } }, + + { rule = { class = "Zathura" }, + properties = { tag = tags[1][3] } }, + + { rule = { class = "Dia" }, + properties = { tag = tags[1][4], + floating = true } }, + + { rule = { class = "Gimp" }, + properties = { tag = tags[1][4], + floating = true } }, + + { rule = { class = "Inkscape" }, + properties = { tag = tags[1][4] } }, + + { rule = { class = "Rtorrent" }, + properties = { tag = tags[1][6] } }, + + { rule = { class = "Torrent-search" }, + properties = { tag = tags[1][6] } }, +} + +-- }}} + +-- {{{ Signals + +-- Signal function to execute when a new client appears. +client.connect_signal("manage", function (c, startup) + -- Enable sloppy focus + c:connect_signal("mouse::enter", function(c) + if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier + and awful.client.focus.filter(c) then + client.focus = c + end + end) + + if not startup then + -- Set the windows at the slave, + -- i.e. put it at the end of others instead of setting it master. + -- awful.client.setslave(c) + + -- Put windows in a smart way, only if they does not set an initial position. + if not c.size_hints.user_position and not c.size_hints.program_position then + awful.placement.no_overlap(c) + awful.placement.no_offscreen(c) + end + end + + local titlebars_enabled = false + if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then + -- Widgets that are aligned to the left + local left_layout = wibox.layout.fixed.horizontal() + left_layout:add(awful.titlebar.widget.iconwidget(c)) + + -- Widgets that are aligned to the right + local right_layout = wibox.layout.fixed.horizontal() + right_layout:add(awful.titlebar.widget.floatingbutton(c)) + right_layout:add(awful.titlebar.widget.maximizedbutton(c)) + right_layout:add(awful.titlebar.widget.stickybutton(c)) + right_layout:add(awful.titlebar.widget.ontopbutton(c)) + right_layout:add(awful.titlebar.widget.closebutton(c)) + + -- The title goes in the middle + local title = awful.titlebar.widget.titlewidget(c) + title:buttons(awful.util.table.join( + awful.button({ }, 1, function() + client.focus = c + c:raise() + awful.mouse.client.move(c) + end), + awful.button({ }, 3, function() + client.focus = c + c:raise() + awful.mouse.client.resize(c) + end) + )) + + -- Now bring it all together + local layout = wibox.layout.align.horizontal() + layout:set_left(left_layout) + layout:set_right(right_layout) + layout:set_middle(title) + + awful.titlebar(c):set_widget(layout) + end +end) + +client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end) +client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) + +-- }}} diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker new file mode 100755 index 0000000..d1e95c3 --- /dev/null +++ b/rc.lua.powerarrow-darker @@ -0,0 +1,958 @@ +-- powerarrow-darker + +-- {{{ Required Libraries + +gears = require("gears") +awful = require("awful") +awful.rules = require("awful.rules") +awful.autofocus = require("awful.autofocus") +wibox = require("wibox") +beautiful = require("beautiful") +naughty = require("naughty") +vicious = require("vicious") +scratch = require("scratch") + +-- }}} + +-- {{{ Autostart + +function run_once(cmd) + findme = cmd + firstspace = cmd:find(" ") + if firstspace then + findme = cmd:sub(0, firstspace-1) + end + awful.util.spawn_with_shell("pgrep -u $USER -x " .. findme .. " > /dev/null || (" .. cmd .. ")") + end + +run_once("urxvtd") +run_once("unclutter -idle 10") + +-- }}} + +-- {{{ Localization + +os.setlocale(os.getenv("LANG")) + +-- }}} + +-- {{{ Error Handling + +-- Check if awesome encountered an error during startup and fell back to +-- another config (This code will only ever execute for the fallback config) +if awesome.startup_errors then + naughty.notify({ preset = naughty.config.presets.critical, + title = "Oops, there were errors during startup!", + text = awesome.startup_errors }) +end + +-- Handle runtime errors after startup +do + in_error = false + awesome.connect_signal("debug::error", function (err) + -- Make sure we don't go into an endless error loop + if in_error then return end + in_error = true + + naughty.notify({ preset = naughty.config.presets.critical, + title = "Oops, an error happened!", + text = err }) + in_error = false + end) +end + +-- }}} + +-- {{{ Variable Definitions + +-- Useful Paths +home = os.getenv("HOME") +confdir = home .. "/.config/awesome" +themes = confdir .. "/themes" +active_theme = themes .. "/powerarrow-darker" + +-- Themes define colours, icons, and wallpapers +beautiful.init(active_theme .. "/theme.lua") + +terminal = "urxvtc" +editor = os.getenv("EDITOR") +editor_cmd = terminal .. " -e " .. editor +gui_editor = "geany -ps" +browser = "dwb" +browser2 = "midori" +mail = terminal .. " -e mutt " +chat = terminal .. " -e irssi " +tasks = terminal .. " -e htop " +iptraf = terminal .. " -g 180x54-20+34 -e sudo iptraf-ng -i all " +musicplr = terminal .. " -g 130x34-320+16 -e ncmpcpp " + +-- Default modkey. +-- Usually, Mod4 is the key with a logo between Control and Alt. +-- If you do not like this or do not have such a key, +-- I suggest you to remap Mod4 to another key using xmodmap or other tools. +-- However, you can use another modifier like Mod1, but it may interact with others. +modkey = "Mod4" +altkey = "Mod1" + +-- Table of layouts to cover with awful.layout.inc, order matters. +layouts = +{ + awful.layout.suit.floating, -- 1 + awful.layout.suit.tile, -- 2 + awful.layout.suit.tile.left, -- 3 + awful.layout.suit.tile.bottom, -- 4 + awful.layout.suit.tile.top, -- 5 + awful.layout.suit.fair, -- 6 + awful.layout.suit.fair.horizontal, -- 7 + awful.layout.suit.spiral, -- 8 + awful.layout.suit.spiral.dwindle, -- 9 + awful.layout.suit.max, -- 10 + --awful.layout.suit.max.fullscreen, -- 11 + --awful.layout.suit.magnifier -- 12 +} + +-- }}} + +-- {{{ Wallpaper + +if beautiful.wallpaper then + for s = 1, screen.count() do + gears.wallpaper.maximized(beautiful.wallpaper, s, true) + end +end + +-- }}} + +-- {{{ Tags + +-- Define a tag table which hold all screen tags. +tags = { + names = { "1", "2", "3", "4", "5"}, + layout = { layouts[1], layouts[4], layouts[3], layouts[1], layouts[7] } + } +for s = 1, screen.count() do +-- Each screen has its own tag table. + tags[s] = awful.tag(tags.names, s, tags.layout) +end +-- }}} + +-- {{{ Menu +myaccessories = { + { "archives", "7zFM" }, + { "file manager", "spacefm" }, + { "editor", gui_editor }, +} +myinternet = { + { "browser", browser }, + { "irc client" , chat }, + { "torrent" , "rtorrent" }, + { "torrtux" , terminal .. " -e torrtux " }, + { "torrent search" , "torrent-search" } +} +mygames = { + { "NES", "fceux" }, + { "Super NES", "zsnes" }, +} +mygraphics = { + { "gimp" , "gimp" }, + { "inkscape", "inkscape" }, + { "dia", "dia" }, + { "image viewer" , "viewnior" } +} +myoffice = { + { "writer" , "lowriter" }, + { "impress" , "loimpress" }, +} +mysystem = { + { "appearance" , "lxappearance" }, + { "cleaning" , "bleachbit" }, + { "powertop" , terminal .. " -e sudo powertop " }, + { "task manager" , tasks } +} +mymainmenu = awful.menu({ items = { + { "accessories" , myaccessories }, + { "graphics" , mygraphics }, + { "internet" , myinternet }, + { "games" , mygames }, + { "office" , myoffice }, + { "system" , mysystem }, + } + }) +mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, + menu = mymainmenu }) +-- }}} + +-- {{{ Wibox + +-- Colours +coldef = "" +colwhi = "" +red = "" + +-- Textclock widget +clockicon = wibox.widget.imagebox() +clockicon:set_image(beautiful.widget_clock) +mytextclock = awful.widget.textclock(" %a %d %b %H:%M") + +-- Calendar attached to the textclock +local os = os +local string = string +local table = table +local util = awful.util + +char_width = nil +text_color = theme.fg_normal or "#FFFFFF" +today_color = theme.tasklist_fg_focus or "#FF7100" +calendar_width = 21 + +local calendar = nil +local todo = nil +local offset = 0 + +local data = nil + +local function pop_spaces(s1, s2, maxsize) + local sps = "" + for i = 1, maxsize - string.len(s1) - string.len(s2) do + sps = sps .. " " + end + return s1 .. sps .. s2 +end + +local function create_calendar() + offset = offset or 0 + + local now = os.date("*t") + local cal_month = now.month + offset + local cal_year = now.year + if cal_month > 12 then + cal_month = (cal_month % 12) + cal_year = cal_year + 1 + elseif cal_month < 1 then + cal_month = (cal_month + 12) + cal_year = cal_year - 1 + end + + local last_day = os.date("%d", os.time({ day = 1, year = cal_year, + month = cal_month + 1}) - 86400) + local first_day = os.time({ day = 1, month = cal_month, year = cal_year}) + local first_day_in_week = + os.date("%w", first_day) + local result = "do lu ma me gi ve sa\n" + for i = 1, first_day_in_week do + result = result .. " " + end + + local this_month = false + for day = 1, last_day do + local last_in_week = (day + first_day_in_week) % 7 == 0 + local day_str = pop_spaces("", day, 2) .. (last_in_week and "" or " ") + if cal_month == now.month and cal_year == now.year and day == now.day then + this_month = true + result = result .. + string.format('%s', + today_color, day_str) + else + result = result .. day_str + end + if last_in_week and day ~= last_day then + result = result .. "\n" + end + end + + local header + if this_month then + header = os.date("%a, %d %b %Y") + else + header = os.date("%B %Y", first_day) + end + return header, string.format('%s', + theme.font, text_color, result) +end + +local function calculate_char_width() + return beautiful.get_font_height(theme.font) * 0.555 +end + +function hide() + if calendar ~= nil then + naughty.destroy(calendar) + naughty.destroy(todo) + calendar = nil + offset = 0 + end +end + +function show(inc_offset) + inc_offset = inc_offset or 0 + + local save_offset = offset + hide() + offset = save_offset + inc_offset + + local char_width = char_width or calculate_char_width() + local header, cal_text = create_calendar() + calendar = naughty.notify({ title = header, + text = cal_text, + timeout = 0, hover_timeout = 0.5, + }) +end + +mytextclock:connect_signal("mouse::enter", function() show(0) end) +mytextclock:connect_signal("mouse::leave", hide) +mytextclock:buttons(util.table.join( awful.button({ }, 1, function() show(-1) end), + awful.button({ }, 3, function() show(1) end))) + +-- Mail widget +mygmail = wibox.widget.textbox() +notify_shown = false +gmail_t = awful.tooltip({ objects = { mygmail },}) +mygmailimg = wibox.widget.imagebox(beautiful.widget_mail) +vicious.register(mygmail, vicious.widgets.gmail, +function (widget, args) + notify_title = "Hai un nuovo messaggio" + notify_text = '"' .. args["{subject}"] .. '"' + gmail_t:set_text(args["{subject}"]) + gmail_t:add_to_object(mygmailimg) + if (args["{count}"] > 0) then + if (notify_shown == false) then + if (args["{count}"] > 1) then + notify_title = "Hai " .. args["{count}"] .. " nuovi messaggi" + notify_text = 'Ultimo: "' .. args["{subject}"] .. '"' + end + naughty.notify({ title = notify_title, text = notify_text, + timeout = 7, + position = "top_left", + icon = beautiful.widget_mail_notify, + fg = beautiful.fg_urgent, + bg = beautiful.bg_urgent }) + notify_shown = true + end + return ' ' .. args["{count}"] .. ' ' + else + notify_shown = false + return "" + end +end, 60) +mygmail:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn(mail, false) end))) + +-- Music widget +mpdwidget = wibox.widget.textbox() +mpdicon = wibox.widget.imagebox() +mpdicon:set_image(beautiful.widget_music) +mpdicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(musicplr) end))) + +vicious.register(mpdwidget, vicious.widgets.mpd, +function(widget, args) + -- play + if (args["{state}"] == "Play") then + mpdicon:set_image(beautiful.widget_music_on) + return " " .. red .. args["{Title}"] .. coldef .. colwhi .. " - " .. coldef .. colwhi .. args["{Artist}"] .. coldef .. " " + -- pause + elseif (args["{state}"] == "Pause") then + mpdicon:set_image(beautiful.widget_music) + return " " .. colwhi .. "mpd in pausa" .. coldef .. " " + else + mpdicon:set_image(beautiful.widget_music) + return "" + end +end, 1) + +-- MEM widget +memicon = wibox.widget.imagebox() +memicon:set_image(beautiful.widget_mem) +memwidget = wibox.widget.textbox() +vicious.register(memwidget, vicious.widgets.mem, ' $2MB ', 13) + +-- CPU widget +cpuicon = wibox.widget.imagebox() +cpuicon:set_image(beautiful.widget_cpu) +cpuwidget = wibox.widget.textbox() +vicious.register(cpuwidget, vicious.widgets.cpu, ' $1% ', 3) +cpuicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn(tasks, false) end))) + +-- Temp widget +tempicon = wibox.widget.imagebox() +tempicon:set_image(beautiful.widget_temp) +tempicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn(terminal .. " -e sudo powertop ", false) end))) +tempwidget = wibox.widget.textbox() +vicious.register(tempwidget, vicious.widgets.thermal, ' $1°C ', 9, {"coretemp.0", "core"} ) + +-- /home fs widget +fshicon = wibox.widget.imagebox() +fshicon:set_image(beautiful.widget_hdd) +fshwidget = wibox.widget.textbox() +vicious.register(fshwidget, vicious.widgets.fs, +function (widget, args) + if args["{/home used_p}"] >= 95 and args["{/home used_p}"] < 99 then + return ' ' .. args["{/home used_p}"] .. '% ' + elseif args["{/home used_p}"] >= 99 and args["{/home used_p}"] <= 100 then + naughty.notify({ title = "Attenzione", text = "Partizione /home esaurita!\nFa' un po' di spazio.", + timeout = 10, + position = "top_right", + fg = beautiful.fg_urgent, + bg = beautiful.bg_urgent }) + return ' ' .. args["{/home used_p}"] .. '% ' + else + return ' ' .. args["{/home used_p}"] .. '% ' + end +end, 600) + + +local infos = nil + +function remove_info() + if infos ~= nil then + naughty.destroy(infos) + infos = nil + end +end + +function add_info() + remove_info() + local capi = { + mouse = mouse, + screen = screen + } + local cal = awful.util.pread("dfs") + cal = string.gsub(cal, " ^%s*(.-)%s*$", "%1") + infos = naughty.notify({ + text = string.format('%s', "Terminus", cal), + timeout = 0, + position = "top_right", + margin = 10, + height = 170, + width = 585, + border_color = '#404040', + border_width = 1, + opacity = 0.94, + screen = capi.mouse.screen + }) +end + +fshicon:connect_signal('mouse::enter', function () add_info() end) +fshicon:connect_signal('mouse::leave', function () remove_info() end) + +-- Battery widget +baticon = wibox.widget.imagebox() +baticon:set_image(beautiful.widget_battery) + +function batstate() + + local file = io.open("/sys/class/power_supply/BAT0/status", "r") + + if (file == nil) then + return "Cable plugged" + end + + local batstate = file:read("*line") + file:close() + + if (batstate == 'Discharging' or batstate == 'Charging') then + return batstate + else + return "Fully charged" + end +end + +batwidget = wibox.widget.textbox() +vicious.register(batwidget, vicious.widgets.bat, +function (widget, args) + -- plugged + if (batstate() == 'Cable plugged') then + baticon:set_image(beautiful.widget_ac) + return ' AC ' + -- critical + elseif (args[2] <= 5 and batstate() == 'Discharging') then + baticon:set_image(beautiful.widget_battery_empty) + naughty.notify({ + text = "sto per spegnermi...", + title = "Carica quasi esaurita!", + position = "top_right", + timeout = 1, + fg="#000000", + bg="#ffffff", + screen = 1, + ontop = true, + }) + -- low + elseif (args[2] <= 10 and batstate() == 'Discharging') then + baticon:set_image(beautiful.widget_battery_low) + naughty.notify({ + text = "attacca il cavo!", + title = "Carica bassa", + position = "top_right", + timeout = 1, + fg="#ffffff", + bg="#262729", + screen = 1, + ontop = true, + }) + else baticon:set_image(beautiful.widget_battery) + end + return ' ' .. args[2] .. '% ' +end, 1, 'BAT0') + +-- Volume widget +volicon = wibox.widget.imagebox() +volicon:set_image(beautiful.widget_vol) +volumewidget = wibox.widget.textbox() +vicious.register(volumewidget, vicious.widgets.volume, +function (widget, args) + if (args[2] ~= "♩" ) then + if (args[1] == 0) then volicon:set_image(beautiful.widget_vol_no) + elseif (args[1] <= 50) then volicon:set_image(beautiful.widget_vol_low) + else volicon:set_image(beautiful.widget_vol) + end + else volicon:set_image(beautiful.widget_vol_mute) + end + return ' ' .. args[1] .. '% ' +end, 1, "Master") + +-- Net widget +netwidget = wibox.widget.textbox() +vicious.register(netwidget, vicious.widgets.net, ' ${wlan0 down_kb} ↓↑ ${wlan0 up_kb} ', 3) +neticon = wibox.widget.imagebox() +neticon:set_image(beautiful.widget_net) +netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(iptraf) end))) + +-- Separators +spr = wibox.widget.textbox(' ') +arrl = wibox.widget.imagebox() +arrl:set_image(beautiful.arrl) +arrl_dl = wibox.widget.imagebox() +arrl_dl:set_image(beautiful.arrl_dl) +arrl_ld = wibox.widget.imagebox() +arrl_ld:set_image(beautiful.arrl_ld) + +-- }}} + +-- {{{ Layout + +-- Create a wibox for each screen and add it +mywibox = {} +mypromptbox = {} +mylayoutbox = {} +mytaglist = {} +mytaglist.buttons = awful.util.table.join( + awful.button({ }, 1, awful.tag.viewonly), + awful.button({ modkey }, 1, awful.client.movetotag), + awful.button({ }, 3, awful.tag.viewtoggle), + awful.button({ modkey }, 3, awful.client.toggletag), + awful.button({ }, 4, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end), + awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end) + ) +mytasklist = {} +mytasklist.buttons = awful.util.table.join( + awful.button({ }, 1, function (c) + if c == client.focus then + c.minimized = true + else + -- Without this, the following + -- :isvisible() makes no sense + c.minimized = false + if not c:isvisible() then + awful.tag.viewonly(c:tags()[1]) + end + -- This will also un-minimize + -- the client, if needed + client.focus = c + c:raise() + end + end), + awful.button({ }, 3, function () + if instance then + instance:hide() + instance = nil + else + instance = awful.menu.clients({ width=250 }) + end + end), + awful.button({ }, 4, function () + awful.client.focus.byidx(1) + if client.focus then client.focus:raise() end + end), + awful.button({ }, 5, function () + awful.client.focus.byidx(-1) + if client.focus then client.focus:raise() end + end)) + +for s = 1, screen.count() do + + -- Create a promptbox for each screen + mypromptbox[s] = awful.widget.prompt() + + -- We need one layoutbox per screen. + mylayoutbox[s] = awful.widget.layoutbox(s) + mylayoutbox[s]:buttons(awful.util.table.join( + awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end), + awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end), + awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end), + awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end))) + + -- Create a taglist widget + mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons) + + -- Create a tasklist widget + mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons) + + -- Create the upper wibox + mywibox[s] = awful.wibox({ position = "top", screen = s, height = 18 }) + + -- Widgets that are aligned to the upper left + local left_layout = wibox.layout.fixed.horizontal() + left_layout:add(spr) + left_layout:add(mytaglist[s]) + left_layout:add(mypromptbox[s]) + left_layout:add(spr) + + -- Widgets that are aligned to the upper right + 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(mpdwidget) + right_layout:add(arrl_dl) + right_layout:add(volicon) + right_layout:add(volumewidget) + right_layout:add(arrl_ld) + right_layout:add(mygmailimg) + right_layout:add(mygmail) + 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(fshicon) + right_layout:add(fshwidget) + 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]) + + -- Now bring it all together (with the tasklist in the middle) + local layout = wibox.layout.align.horizontal() + layout:set_left(left_layout) + layout:set_middle(mytasklist[s]) + layout:set_right(right_layout) + mywibox[s]:set_widget(layout) + +end + +-- }}} + +-- {{{ Mouse Bindings + +root.buttons(awful.util.table.join( + awful.button({ }, 4, awful.tag.viewnext), + awful.button({ }, 5, awful.tag.viewprev) +)) + +-- }}} + +-- {{{ Key bindings +globalkeys = awful.util.table.join( + -- Capture a screenshot + awful.key({ altkey }, "p", function() awful.util.spawn("screenshot",false) end), + + -- Move clients + awful.key({ altkey }, "Next", function () awful.client.moveresize( 1, 1, -2, -2) end), + awful.key({ altkey }, "Prior", function () awful.client.moveresize(-1, -1, 2, 2) end), + awful.key({ altkey }, "Down", function () awful.client.moveresize( 0, 1, 0, 0) end), + awful.key({ altkey }, "Up", function () awful.client.moveresize( 0, -1, 0, 0) end), + awful.key({ altkey }, "Left", function () awful.client.moveresize(-1, 0, 0, 0) end), + awful.key({ altkey }, "Right", function () awful.client.moveresize( 1, 0, 0, 0) end), + + awful.key({ modkey, }, "Left", awful.tag.viewprev ), + awful.key({ modkey, }, "Right", awful.tag.viewnext ), + awful.key({ modkey, }, "Escape", awful.tag.history.restore), + + awful.key({ modkey, }, "k", + function () + awful.client.focus.byidx( 1) + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, }, "j", + function () + awful.client.focus.byidx(-1) + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, }, "w", function () mymainmenu:show({keygrabber=true}) end), + + -- Show/Hide Wibox + awful.key({ modkey }, "b", function () + mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible + mybottomwibox[mouse.screen].visible = not mybottomwibox[mouse.screen].visible end), + + -- Layout manipulation + awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), + awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), + awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end), + awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end), + awful.key({ modkey, }, "u", awful.client.urgent.jumpto), + awful.key({ modkey, }, "Tab", + function () + awful.client.focus.history.previous() + if client.focus then + client.focus:raise() + end + end), + + -- Standard program + awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), + awful.key({ modkey, "Control" }, "r", awesome.restart), + awful.key({ modkey, "Shift" }, "q", awesome.quit), + + awful.key({ modkey, }, "z", function () scratch.drop(terminal) end), + awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end), + awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end), + awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end), + awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end), + awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), + awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), + awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), + awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), + + awful.key({ modkey, "Control" }, "n", awful.client.restore), + + -- Volume control + awful.key({ "Control" }, "Up", function () os.execute("amixer set Master playback 1%+", false ) end), + awful.key({ "Control" }, "Down", function () os.execute("amixer set Master playback 1%-", false ) end), + awful.key({ "Control" }, "m", function () os.execute("amixer set Master playback mute", false ) end), + awful.key({ "Control" }, "u", function () os.execute("amixer set Master playback unmute", false ) end), + awful.key({ altkey, "Control" }, "m", function () os.execute("amixer set Master playback 100%", false ) end), + + -- Music control + awful.key({ altkey, "Control" }, "Up", function () awful.util.spawn( "mpc toggle", false ) end), + awful.key({ altkey, "Control" }, "Down", function () awful.util.spawn( "mpc stop", false ) end ), + awful.key({ altkey, "Control" }, "Left", function () awful.util.spawn( "mpc prev", false ) end ), + awful.key({ altkey, "Control" }, "Right", function () awful.util.spawn( "mpc next", false ) end ), + + -- Other stuff + awful.key({ modkey, }, "c", function () os.execute("xsel -p -o | xsel -i -b") end), + awful.key({ modkey, }, "q", function () awful.util.spawn( "dwb", false ) end), + awful.key({ modkey, }, "a", function () awful.util.spawn( "midori", false ) end), + awful.key({ modkey, }, "s", function () awful.util.spawn(gui_editor) end), + awful.key({ modkey, }, "t", function () awful.util.spawn( "thunderbird", false ) end), + awful.key({ modkey, }, "d", function () awful.util.spawn( "spacefm", false ) end), + + -- Prompt + awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end), + + awful.key({ modkey }, "x", + function () + awful.prompt.run({ prompt = "Run Lua code: " }, + mypromptbox[mouse.screen].widget, + awful.util.eval, nil, + awful.util.getdir("cache") .. "/history_eval") + end) +) + +clientkeys = awful.util.table.join( + awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end), + awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end), + awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ), + awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end), + awful.key({ modkey, }, "o", awful.client.movetoscreen ), + awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end), + awful.key({ modkey, }, "n", + function (c) + -- The client currently has the input focus, so it cannot be + -- minimized, since minimized clients can't have the focus. + c.minimized = true + end), + awful.key({ modkey, }, "m", + function (c) + c.maximized_horizontal = not c.maximized_horizontal + c.maximized_vertical = not c.maximized_vertical + end) +) + +-- Compute the maximum number of digit we need, limited to 9 +keynumber = 0 +for s = 1, screen.count() do + keynumber = math.min(9, math.max(#tags[s], keynumber)); +end + +-- Bind all key numbers to tags. +-- Be careful: we use keycodes to make it works on any keyboard layout. +-- This should map on the top row of your keyboard, usually 1 to 9. +for i = 1, keynumber do + globalkeys = awful.util.table.join(globalkeys, + awful.key({ modkey }, "#" .. i + 9, + function () + screen = mouse.screen + if tags[screen][i] then + awful.tag.viewonly(tags[screen][i]) + end + end), + awful.key({ modkey, "Control" }, "#" .. i + 9, + function () + screen = mouse.screen + if tags[screen][i] then + awful.tag.viewtoggle(tags[screen][i]) + end + end), + awful.key({ modkey, "Shift" }, "#" .. i + 9, + function () + if client.focus and tags[client.focus.screen][i] then + awful.client.movetotag(tags[client.focus.screen][i]) + end + end), + awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, + function () + if client.focus and tags[client.focus.screen][i] then + awful.client.toggletag(tags[client.focus.screen][i]) + end + end)) +end + +clientbuttons = awful.util.table.join( + awful.button({ }, 1, function (c) client.focus = c; c:raise() end), + awful.button({ modkey }, 1, awful.mouse.client.move), + awful.button({ modkey }, 3, awful.mouse.client.resize)) + +-- Set keys +root.keys(globalkeys) + +-- }}} + +-- {{{ Rules + +awful.rules.rules = { + -- All clients will match this rule. + { rule = { }, + properties = { border_width = beautiful.border_width, + border_color = beautiful.border_normal, + focus = true, + keys = clientkeys, + buttons = clientbuttons, + size_hints_honor = false + } + }, + + { rule = { class = "MPlayer" }, + properties = { floating = true } }, + + { rule = { class = "Dwb" }, + properties = { tag = tags[1][1], + maximized_vertical=true, + maximized_horizontal=true } }, + + { rule = { class = "Midori" }, + properties = { tag = tags[1][1], + maximized_vertical=true, + maximized_horizontal=true } }, + + { rule = { class = "Geany" }, + properties = { tag = tags[1][2] } }, + + { rule = { class = "Zathura" }, + properties = { tag = tags[1][3] } }, + + { rule = { class = "Thunderbird" }, + properties = { tag = tags[1][3] } }, + + { rule = { class = "Dia" }, + properties = { tag = tags[1][4], + floating = true } }, + + { rule = { class = "Gimp" }, + properties = { tag = tags[1][4], + floating = true } }, + + { rule = { class = "Inkscape" }, + properties = { tag = tags[1][4], + floating = true } }, + + { rule = { class = "Transmission-gtk" }, + properties = { tag = tags[1][5] } }, + + { rule = { class = "Torrent-search" }, + properties = { tag = tags[1][5] } }, +} + +-- }}} + +-- {{{ Signals + +-- Signal function to execute when a new client appears. +client.connect_signal("manage", function (c, startup) + -- Enable sloppy focus + c:connect_signal("mouse::enter", function(c) + if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier + and awful.client.focus.filter(c) then + client.focus = c + end + end) + + if not startup then + -- Set the windows at the slave, + -- i.e. put it at the end of others instead of setting it master. + -- awful.client.setslave(c) + + -- Put windows in a smart way, only if they does not set an initial position. + if not c.size_hints.user_position and not c.size_hints.program_position then + awful.placement.no_overlap(c) + awful.placement.no_offscreen(c) + end + end + + local titlebars_enabled = false + if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then + -- Widgets that are aligned to the left + local left_layout = wibox.layout.fixed.horizontal() + left_layout:add(awful.titlebar.widget.iconwidget(c)) + + -- Widgets that are aligned to the right + local right_layout = wibox.layout.fixed.horizontal() + right_layout:add(awful.titlebar.widget.floatingbutton(c)) + right_layout:add(awful.titlebar.widget.maximizedbutton(c)) + right_layout:add(awful.titlebar.widget.stickybutton(c)) + right_layout:add(awful.titlebar.widget.ontopbutton(c)) + right_layout:add(awful.titlebar.widget.closebutton(c)) + right_layout:add(awful.titlebar.widget.closebutton(c)) + + -- The title goes in the middle + local title = awful.titlebar.widget.titlewidget(c) + title:buttons(awful.util.table.join( + awful.button({ }, 1, function() + client.focus = c + c:raise() + awful.mouse.client.move(c) + end), + awful.button({ }, 3, function() + client.focus = c + c:raise() + awful.mouse.client.resize(c) + end) + )) + + -- Now bring it all together + local layout = wibox.layout.align.horizontal() + layout:set_left(left_layout) + layout:set_right(right_layout) + layout:set_middle(title) + + awful.titlebar(c):set_widget(layout) + end +end) + +client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end) +client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) + +-- }}} diff --git a/scratch/drop.lua b/scratch/drop.lua new file mode 100644 index 0000000..4ba6b45 --- /dev/null +++ b/scratch/drop.lua @@ -0,0 +1,134 @@ +------------------------------------------------------------------- +-- Drop-down applications manager for the awesome window manager +------------------------------------------------------------------- +-- Coded by: * Lucas de Vries +-- Hacked by: * Adrian C. (anrxc) +-- Licensed under the WTFPL version 2 +-- * http://sam.zoy.org/wtfpl/COPYING +------------------------------------------------------------------- +-- To use this module add: +-- local scratch = require("scratch") +-- to the top of your rc.lua, and call it from a keybinding: +-- scratch.drop(prog, vert, horiz, width, height, sticky, screen) +-- +-- Parameters: +-- prog - Program to run; "urxvt", "gmrun", "thunderbird" +-- vert - Vertical; "bottom", "center" or "top" (default) +-- horiz - Horizontal; "left", "right" or "center" (default) +-- width - Width in absolute pixels, or width percentage +-- when <= 1 (1 (100% of the screen) by default) +-- height - Height in absolute pixels, or height percentage +-- when <= 1 (0.25 (25% of the screen) by default) +-- sticky - Visible on all tags, false by default +-- screen - Screen (optional), mouse.screen by default +------------------------------------------------------------------- + +-- Grab environment +local pairs = pairs +local awful = require("awful") +local setmetatable = setmetatable +local capi = { + mouse = mouse, + client = client, + screen = screen +} + +-- Scratchdrop: drop-down applications manager for the awesome window manager +local drop = {} -- module scratch.drop + + +local dropdown = {} + +-- Create a new window for the drop-down application when it doesn't +-- exist, or toggle between hidden and visible states when it does +function toggle(prog, vert, horiz, width, height, sticky, screen) + vert = vert or "top" + horiz = horiz or "center" + width = width or 1 + height = height or 0.25 + sticky = sticky or false + screen = screen or capi.mouse.screen + + -- Determine signal usage in this version of awesome + local attach_signal = capi.client.connect_signal or capi.client.add_signal + local detach_signal = capi.client.disconnect_signal or capi.client.remove_signal + + if not dropdown[prog] then + dropdown[prog] = {} + + -- Add unmanage signal for scratchdrop programs + attach_signal("unmanage", function (c) + for scr, cl in pairs(dropdown[prog]) do + if cl == c then + dropdown[prog][scr] = nil + end + end + end) + end + + if not dropdown[prog][screen] then + spawnw = function (c) + dropdown[prog][screen] = c + + -- Scratchdrop clients are floaters + awful.client.floating.set(c, true) + + -- Client geometry and placement + local screengeom = capi.screen[screen].workarea + + if width <= 1 then width = (screengeom.width * width) - 3 end + if height <= 1 then height = screengeom.height * height end + + if horiz == "left" then x = screengeom.x + elseif horiz == "right" then x = screengeom.width - width + else x = screengeom.x+(screengeom.width-width)/2 - 1 end + + if vert == "bottom" then y = screengeom.height + screengeom.y - height + elseif vert == "center" then y = screengeom.y+(screengeom.height-height)/2 + else y = screengeom.y end + + -- Client properties + c:geometry({ x = x, y = y, width = width, height = height }) + c.ontop = true + c.above = true + c.skip_taskbar = true + if sticky then c.sticky = true end + if c.titlebar then awful.titlebar.remove(c) end + + c:raise() + capi.client.focus = c + detach_signal("manage", spawnw) + end + + -- Add manage signal and spawn the program + attach_signal("manage", spawnw) + awful.util.spawn_with_shell(prog, false) -- original without '_with_shell' + else + -- Get a running client + c = dropdown[prog][screen] + + -- Switch the client to the current workspace + if c:isvisible() == false then c.hidden = true + awful.client.movetotag(awful.tag.selected(screen), c) + end + + -- Focus and raise if hidden + if c.hidden then + -- Make sure it is centered + if vert == "center" then awful.placement.center_vertical(c) end + if horiz == "center" then awful.placement.center_horizontal(c) end + c.hidden = false + c:raise() + capi.client.focus = c + else -- Hide and detach tags if not + c.hidden = true + local ctags = c:tags() + for i, t in pairs(ctags) do + ctags[i] = nil + end + c:tags(ctags) + end + end +end + +return setmetatable(drop, { __call = function(_, ...) return toggle(...) end }) diff --git a/scratch/init.lua b/scratch/init.lua new file mode 100644 index 0000000..f3b3e7e --- /dev/null +++ b/scratch/init.lua @@ -0,0 +1,14 @@ +--------------------------------------------------------------- +-- Drop-down applications and scratchpad manager for awesome wm +--------------------------------------------------------------- +-- Coded by: * Adrian C. (anrxc) +-- Licensed under the WTFPL version 2 +-- * http://sam.zoy.org/wtfpl/COPYING +--------------------------------------------------------------- + +local scratch = {} -- module scratch + +scratch.pad = require("scratch.pad") +scratch.drop = require("scratch.drop") + +return scratch diff --git a/scratch/pad.lua b/scratch/pad.lua new file mode 100644 index 0000000..cdc4c01 --- /dev/null +++ b/scratch/pad.lua @@ -0,0 +1,137 @@ +--------------------------------------------------------------- +-- Basic scratchpad manager for the awesome window manager +--------------------------------------------------------------- +-- Coded by: * Adrian C. (anrxc) +-- Licensed under the WTFPL version 2 +-- * http://sam.zoy.org/wtfpl/COPYING +--------------------------------------------------------------- +-- To use this module add: +-- local scratch = require("scratch") +-- to the top of your rc.lua, and call: +-- scratch.pad.set(c, width, height, sticky, screen) +-- from a clientkeys binding, and: +-- scratch.pad.toggle(screen) +-- from a globalkeys binding. +-- +-- Parameters: +-- c - Client to scratch or un-scratch +-- width - Width in absolute pixels, or width percentage +-- when <= 1 (0.50 (50% of the screen) by default) +-- height - Height in absolute pixels, or height percentage +-- when <= 1 (0.50 (50% of the screen) by default) +-- sticky - Visible on all tags, false by default +-- screen - Screen (optional), mouse.screen by default +--------------------------------------------------------------- + +-- Grab environment +local pairs = pairs +local awful = require("awful") +local capi = { + mouse = mouse, + client = client, + screen = screen +} + +-- Scratchpad: basic scratchpad manager for the awesome window manager +local pad = {} -- module scratch.pad + + +local scratchpad = {} + +-- Toggle a set of properties on a client. +local function toggleprop(c, prop) + c.ontop = prop.ontop or false + c.above = prop.above or false + c.hidden = prop.hidden or false + c.sticky = prop.stick or false + c.skip_taskbar = prop.task or false +end + +-- Scratch the focused client, or un-scratch and tile it. If another +-- client is already scratched, replace it with the focused client. +function pad.set(c, width, height, sticky, screen) + width = width or 0.50 + height = height or 0.50 + sticky = sticky or false + screen = screen or capi.mouse.screen + + -- Determine signal usage in this version of awesome + local attach_signal = capi.client.connect_signal or capi.client.add_signal + local detach_signal = capi.client.disconnect_signal or capi.client.remove_signal + + local function setscratch(c) + -- Scratchpad is floating and has no titlebar + awful.client.floating.set(c, true); awful.titlebar.remove(c) + + -- Scratchpad client properties + toggleprop(c, {ontop=true, above=true, task=true, stick=sticky}) + + -- Scratchpad geometry and placement + local screengeom = capi.screen[screen].workarea + if width <= 1 then width = screengeom.width * width end + if height <= 1 then height = screengeom.height * height end + + c:geometry({ -- Scratchpad is always centered on screen + x = screengeom.x + (screengeom.width - width) / 2, + y = screengeom.y + (screengeom.height - height) / 2, + width = width, height = height + }) + + -- Scratchpad should not loose focus + c:raise(); capi.client.focus = c + end + + -- Prepare a table for storing clients, + if not scratchpad.pad then scratchpad.pad = {} + -- add unmanage signal for scratchpad clients + attach_signal("unmanage", function (c) + for scr, cl in pairs(scratchpad.pad) do + if cl == c then scratchpad.pad[scr] = nil end + end + end) + end + + -- If the scratcphad is emtpy, store the client, + if not scratchpad.pad[screen] then + scratchpad.pad[screen] = c + -- then apply geometry and properties + setscratch(c) + else -- If a client is already scratched, + local oc = scratchpad.pad[screen] + -- unscratch, and compare it with the focused client + awful.client.floating.toggle(oc); toggleprop(oc, {}) + -- If it matches clear the table, if not replace it + if oc == c then scratchpad.pad[screen] = nil + else scratchpad.pad[screen] = c; setscratch(c) end + end +end + +-- Move the scratchpad to the current workspace, focus and raise it +-- when it's hidden, or hide it when it's visible. +function pad.toggle(screen) + screen = screen or capi.mouse.screen + + -- Check if we have a client on storage, + if scratchpad.pad and + scratchpad.pad[screen] ~= nil + then -- and get it out, to play + local c = scratchpad.pad[screen] + + -- If it's visible on another tag hide it, + if c:isvisible() == false then c.hidden = true + -- and move it to the current worskpace + awful.client.movetotag(awful.tag.selected(screen), c) + end + + -- Focus and raise if it's hidden, + if c.hidden then + awful.placement.centered(c) + c.hidden = false + c:raise(); capi.client.focus = c + else -- hide it if it's not + c.hidden = true + end + end +end + +return pad diff --git a/themes/multicolor/layouts/dwindle.png b/themes/multicolor/layouts/dwindle.png new file mode 100755 index 0000000..81bf3e9 Binary files /dev/null and b/themes/multicolor/layouts/dwindle.png differ diff --git a/themes/multicolor/layouts/fairh.png b/themes/multicolor/layouts/fairh.png new file mode 100755 index 0000000..89712e2 Binary files /dev/null and b/themes/multicolor/layouts/fairh.png differ diff --git a/themes/multicolor/layouts/fairv.png b/themes/multicolor/layouts/fairv.png new file mode 100755 index 0000000..e1ac18b Binary files /dev/null and b/themes/multicolor/layouts/fairv.png differ diff --git a/themes/multicolor/layouts/floating.png b/themes/multicolor/layouts/floating.png new file mode 100755 index 0000000..e0a3c39 Binary files /dev/null and b/themes/multicolor/layouts/floating.png differ diff --git a/themes/multicolor/layouts/fullscreen.png b/themes/multicolor/layouts/fullscreen.png new file mode 100755 index 0000000..84b7c27 Binary files /dev/null and b/themes/multicolor/layouts/fullscreen.png differ diff --git a/themes/multicolor/layouts/magnifier.png b/themes/multicolor/layouts/magnifier.png new file mode 100755 index 0000000..1188d50 Binary files /dev/null and b/themes/multicolor/layouts/magnifier.png differ diff --git a/themes/multicolor/layouts/max.png b/themes/multicolor/layouts/max.png new file mode 100755 index 0000000..f0979c9 Binary files /dev/null and b/themes/multicolor/layouts/max.png differ diff --git a/themes/multicolor/layouts/spiral.png b/themes/multicolor/layouts/spiral.png new file mode 100755 index 0000000..ec32ff3 Binary files /dev/null and b/themes/multicolor/layouts/spiral.png differ diff --git a/themes/multicolor/layouts/tile.png b/themes/multicolor/layouts/tile.png new file mode 100755 index 0000000..9bbf2fa Binary files /dev/null and b/themes/multicolor/layouts/tile.png differ diff --git a/themes/multicolor/layouts/tilebottom.png b/themes/multicolor/layouts/tilebottom.png new file mode 100755 index 0000000..ea85f92 Binary files /dev/null and b/themes/multicolor/layouts/tilebottom.png differ diff --git a/themes/multicolor/layouts/tileleft.png b/themes/multicolor/layouts/tileleft.png new file mode 100755 index 0000000..1b8e3c0 Binary files /dev/null and b/themes/multicolor/layouts/tileleft.png differ diff --git a/themes/multicolor/layouts/tiletop.png b/themes/multicolor/layouts/tiletop.png new file mode 100755 index 0000000..a2d0f6a Binary files /dev/null and b/themes/multicolor/layouts/tiletop.png differ diff --git a/themes/multicolor/submenu.png b/themes/multicolor/submenu.png new file mode 100644 index 0000000..7c81cab Binary files /dev/null and b/themes/multicolor/submenu.png differ diff --git a/themes/multicolor/taglist/square_a.png b/themes/multicolor/taglist/square_a.png new file mode 100755 index 0000000..df65248 Binary files /dev/null and b/themes/multicolor/taglist/square_a.png differ diff --git a/themes/multicolor/taglist/square_b.png b/themes/multicolor/taglist/square_b.png new file mode 100755 index 0000000..c3838b4 Binary files /dev/null and b/themes/multicolor/taglist/square_b.png differ diff --git a/themes/multicolor/theme.lua b/themes/multicolor/theme.lua new file mode 100644 index 0000000..48cc11a --- /dev/null +++ b/themes/multicolor/theme.lua @@ -0,0 +1,81 @@ +-- luke's multicolor + + +theme = {} +theme.confdir = os.getenv("HOME") .. "/.config/awesome/themes/lukes" + +theme.font = "Terminus 8" +--theme.taglist_font = + +theme.menu_bg_normal = "#000000" +theme.menu_bg_focus = "#000000" + +theme.bg_normal = "#000000" +theme.bg_focus = "#000000" +theme.bg_urgent = "#000000" + +theme.fg_normal = "#aaaaaa" +theme.fg_focus = "#ff8c00" +theme.fg_urgent = "#af1d18" +theme.fg_minimize = "#ffffff" + +theme.mouse_finder_color = "#afa72e" + +theme.fg_black = "#424242" +theme.fg_red = "#ce5666" +theme.fg_green = "#80a673" +theme.fg_yellow = "#ffaf5f" +theme.fg_blue = "#7788af" +theme.fg_magenta = "#94738c" +theme.fg_cyan = "#778baf" +theme.fg_white = "#aaaaaa" +theme.fg_blu = "#8ebdde" + +theme.border_width = "1" +theme.border_normal = "#1c2022" +theme.border_focus = "#606060" +theme.border_marked = "#3ca4d8" + +theme.menu_width = "110" +theme.menu_border_width = "0" +theme.menu_fg_normal = "#aaaaaa" +theme.menu_fg_focus = "#ff8c00" +theme.menu_bg_normal = "#050505dd" +theme.menu_bg_focus = "#050505dd" +theme.menu_submenu_icon = theme.confdir .. "/submenu.png" + +theme.widget_temp = theme.confdir .. "/widgets/temp.png" +theme.widget_cpu = theme.confdir .. "/widgets/cpu.png" +theme.widget_mem = theme.confdir .. "/widgets/mem.png" +theme.widget_fs = theme.confdir .. "/widgets/fs.png" +theme.widget_netdown = theme.confdir .. "/widgets/net_down.png" +theme.widget_netup = theme.confdir .. "/widgets/net_up.png" +theme.widget_gmail = theme.confdir .. "/widgets/mail.png" +theme.widget_batt = theme.confdir .. "/widgets/bat.png" +theme.widget_clock = theme.confdir .. "/widgets/clock.png" +theme.widget_vol = theme.confdir .. "/widgets/spkr.png" + +theme.taglist_squares_sel = theme.confdir .. "/taglist/square_a.png" +theme.taglist_squares_unsel = theme.confdir .. "/taglist/square_b.png" + +theme.tasklist_floating = "" +theme.tasklist_maximized_horizontal = "" +theme.tasklist_maximized_vertical = "" + +theme.layout_tile = theme.confdir .. "/layouts/tile.png" +theme.layout_tileleft = theme.confdir .. "/layouts/tileleft.png" +theme.layout_tilebottom = theme.confdir .. "/layouts/tilebottom.png" +theme.layout_tiletop = theme.confdir .. "/layouts/tiletop.png" +theme.layout_fairv = theme.confdir .. "/layouts/fairv.png" +theme.layout_fairh = theme.confdir .. "/layouts/fairh.png" +theme.layout_spiral = theme.confdir .. "/layouts/spiral.png" +theme.layout_dwindle = theme.confdir .. "/layouts/dwindle.png" +theme.layout_max = theme.confdir .. "/layouts/max.png" +theme.layout_fullscreen = theme.confdir .. "/layouts/fullscreen.png" +theme.layout_magnifier = theme.confdir .. "/layouts/magnifier.png" +theme.layout_floating = theme.confdir .. "/layouts/floating.png" + +--theme.awesome_icon = +theme.wallpaper = theme.confdir .. "/wall.png" + +return theme diff --git a/themes/multicolor/wall.png b/themes/multicolor/wall.png new file mode 100644 index 0000000..6eac193 Binary files /dev/null and b/themes/multicolor/wall.png differ diff --git a/themes/multicolor/widgets/ac.png b/themes/multicolor/widgets/ac.png new file mode 100644 index 0000000..41f49c5 Binary files /dev/null and b/themes/multicolor/widgets/ac.png differ diff --git a/themes/multicolor/widgets/bat.png b/themes/multicolor/widgets/bat.png new file mode 100755 index 0000000..6a3ad09 Binary files /dev/null and b/themes/multicolor/widgets/bat.png differ diff --git a/themes/multicolor/widgets/clock.png b/themes/multicolor/widgets/clock.png new file mode 100644 index 0000000..22aef71 Binary files /dev/null and b/themes/multicolor/widgets/clock.png differ diff --git a/themes/multicolor/widgets/cpu.png b/themes/multicolor/widgets/cpu.png new file mode 100644 index 0000000..1e3cba5 Binary files /dev/null and b/themes/multicolor/widgets/cpu.png differ diff --git a/themes/multicolor/widgets/dish.png b/themes/multicolor/widgets/dish.png new file mode 100644 index 0000000..6ae19fd Binary files /dev/null and b/themes/multicolor/widgets/dish.png differ diff --git a/themes/multicolor/widgets/fs.png b/themes/multicolor/widgets/fs.png new file mode 100755 index 0000000..f869349 Binary files /dev/null and b/themes/multicolor/widgets/fs.png differ diff --git a/themes/multicolor/widgets/mail.png b/themes/multicolor/widgets/mail.png new file mode 100755 index 0000000..2840f9d Binary files /dev/null and b/themes/multicolor/widgets/mail.png differ diff --git a/themes/multicolor/widgets/mem.png b/themes/multicolor/widgets/mem.png new file mode 100644 index 0000000..a71c2d5 Binary files /dev/null and b/themes/multicolor/widgets/mem.png differ diff --git a/themes/multicolor/widgets/net_down.png b/themes/multicolor/widgets/net_down.png new file mode 100644 index 0000000..09433b1 Binary files /dev/null and b/themes/multicolor/widgets/net_down.png differ diff --git a/themes/multicolor/widgets/net_up.png b/themes/multicolor/widgets/net_up.png new file mode 100644 index 0000000..395d014 Binary files /dev/null and b/themes/multicolor/widgets/net_up.png differ diff --git a/themes/multicolor/widgets/note.png b/themes/multicolor/widgets/note.png new file mode 100755 index 0000000..264d2c8 Binary files /dev/null and b/themes/multicolor/widgets/note.png differ diff --git a/themes/multicolor/widgets/spkr.png b/themes/multicolor/widgets/spkr.png new file mode 100644 index 0000000..80c20b0 Binary files /dev/null and b/themes/multicolor/widgets/spkr.png differ diff --git a/themes/multicolor/widgets/temp.png b/themes/multicolor/widgets/temp.png new file mode 100755 index 0000000..6c8f8bd Binary files /dev/null and b/themes/multicolor/widgets/temp.png differ diff --git a/themes/powerarrow-darker/icons/ac.png b/themes/powerarrow-darker/icons/ac.png new file mode 100644 index 0000000..96efcb4 Binary files /dev/null and b/themes/powerarrow-darker/icons/ac.png differ diff --git a/themes/powerarrow-darker/icons/arrl.png b/themes/powerarrow-darker/icons/arrl.png new file mode 100644 index 0000000..4e26795 Binary files /dev/null and b/themes/powerarrow-darker/icons/arrl.png differ diff --git a/themes/powerarrow-darker/icons/arrl_dl.png b/themes/powerarrow-darker/icons/arrl_dl.png new file mode 100644 index 0000000..fa0c4ea Binary files /dev/null and b/themes/powerarrow-darker/icons/arrl_dl.png differ diff --git a/themes/powerarrow-darker/icons/arrl_dl_sf.png b/themes/powerarrow-darker/icons/arrl_dl_sf.png new file mode 100644 index 0000000..eb2b11e Binary files /dev/null and b/themes/powerarrow-darker/icons/arrl_dl_sf.png differ diff --git a/themes/powerarrow-darker/icons/arrl_ld.png b/themes/powerarrow-darker/icons/arrl_ld.png new file mode 100644 index 0000000..cf98c8e Binary files /dev/null and b/themes/powerarrow-darker/icons/arrl_ld.png differ diff --git a/themes/powerarrow-darker/icons/arrl_ld_sf.png b/themes/powerarrow-darker/icons/arrl_ld_sf.png new file mode 100644 index 0000000..1d3a326 Binary files /dev/null and b/themes/powerarrow-darker/icons/arrl_ld_sf.png differ diff --git a/themes/powerarrow-darker/icons/arrl_sf.png b/themes/powerarrow-darker/icons/arrl_sf.png new file mode 100644 index 0000000..5d30369 Binary files /dev/null and b/themes/powerarrow-darker/icons/arrl_sf.png differ diff --git a/themes/powerarrow-darker/icons/battery.png b/themes/powerarrow-darker/icons/battery.png new file mode 100644 index 0000000..8c85596 Binary files /dev/null and b/themes/powerarrow-darker/icons/battery.png differ diff --git a/themes/powerarrow-darker/icons/battery_empty.png b/themes/powerarrow-darker/icons/battery_empty.png new file mode 100644 index 0000000..00821c9 Binary files /dev/null and b/themes/powerarrow-darker/icons/battery_empty.png differ diff --git a/themes/powerarrow-darker/icons/battery_low.png b/themes/powerarrow-darker/icons/battery_low.png new file mode 100644 index 0000000..29f3fc5 Binary files /dev/null and b/themes/powerarrow-darker/icons/battery_low.png differ diff --git a/themes/powerarrow-darker/icons/cal.png b/themes/powerarrow-darker/icons/cal.png new file mode 100644 index 0000000..fd79190 Binary files /dev/null and b/themes/powerarrow-darker/icons/cal.png differ diff --git a/themes/powerarrow-darker/icons/cpu.png b/themes/powerarrow-darker/icons/cpu.png new file mode 100644 index 0000000..ea8bfef Binary files /dev/null and b/themes/powerarrow-darker/icons/cpu.png differ diff --git a/themes/powerarrow-darker/icons/dwindle.png b/themes/powerarrow-darker/icons/dwindle.png new file mode 100644 index 0000000..6bf6508 Binary files /dev/null and b/themes/powerarrow-darker/icons/dwindle.png differ diff --git a/themes/powerarrow-darker/icons/fairh.png b/themes/powerarrow-darker/icons/fairh.png new file mode 100644 index 0000000..54a2f04 Binary files /dev/null and b/themes/powerarrow-darker/icons/fairh.png differ diff --git a/themes/powerarrow-darker/icons/fairv.png b/themes/powerarrow-darker/icons/fairv.png new file mode 100644 index 0000000..60dc36b Binary files /dev/null and b/themes/powerarrow-darker/icons/fairv.png differ diff --git a/themes/powerarrow-darker/icons/floating.png b/themes/powerarrow-darker/icons/floating.png new file mode 100644 index 0000000..a527fef Binary files /dev/null and b/themes/powerarrow-darker/icons/floating.png differ diff --git a/themes/powerarrow-darker/icons/hdd.png b/themes/powerarrow-darker/icons/hdd.png new file mode 100644 index 0000000..ad7eca5 Binary files /dev/null and b/themes/powerarrow-darker/icons/hdd.png differ diff --git a/themes/powerarrow-darker/icons/magnifier.png b/themes/powerarrow-darker/icons/magnifier.png new file mode 100644 index 0000000..fde2d74 Binary files /dev/null and b/themes/powerarrow-darker/icons/magnifier.png differ diff --git a/themes/powerarrow-darker/icons/mail.png b/themes/powerarrow-darker/icons/mail.png new file mode 100644 index 0000000..4357fea Binary files /dev/null and b/themes/powerarrow-darker/icons/mail.png differ diff --git a/themes/powerarrow-darker/icons/mail_notify.png b/themes/powerarrow-darker/icons/mail_notify.png new file mode 100644 index 0000000..b44851f Binary files /dev/null and b/themes/powerarrow-darker/icons/mail_notify.png differ diff --git a/themes/powerarrow-darker/icons/max.png b/themes/powerarrow-darker/icons/max.png new file mode 100644 index 0000000..fde2d74 Binary files /dev/null and b/themes/powerarrow-darker/icons/max.png differ diff --git a/themes/powerarrow-darker/icons/mem.png b/themes/powerarrow-darker/icons/mem.png new file mode 100644 index 0000000..7860a1a Binary files /dev/null and b/themes/powerarrow-darker/icons/mem.png differ diff --git a/themes/powerarrow-darker/icons/net.png b/themes/powerarrow-darker/icons/net.png new file mode 100644 index 0000000..4c1b24e Binary files /dev/null and b/themes/powerarrow-darker/icons/net.png differ diff --git a/themes/powerarrow-darker/icons/note.png b/themes/powerarrow-darker/icons/note.png new file mode 100644 index 0000000..9163f32 Binary files /dev/null and b/themes/powerarrow-darker/icons/note.png differ diff --git a/themes/powerarrow-darker/icons/note_on.png b/themes/powerarrow-darker/icons/note_on.png new file mode 100644 index 0000000..790b7b4 Binary files /dev/null and b/themes/powerarrow-darker/icons/note_on.png differ diff --git a/themes/powerarrow-darker/icons/playing.png b/themes/powerarrow-darker/icons/playing.png new file mode 100644 index 0000000..be40c17 Binary files /dev/null and b/themes/powerarrow-darker/icons/playing.png differ diff --git a/themes/powerarrow-darker/icons/scissors.png b/themes/powerarrow-darker/icons/scissors.png new file mode 100644 index 0000000..f8c700d Binary files /dev/null and b/themes/powerarrow-darker/icons/scissors.png differ diff --git a/themes/powerarrow-darker/icons/spiral.png b/themes/powerarrow-darker/icons/spiral.png new file mode 100644 index 0000000..69d68b6 Binary files /dev/null and b/themes/powerarrow-darker/icons/spiral.png differ diff --git a/themes/powerarrow-darker/icons/square_sel.png b/themes/powerarrow-darker/icons/square_sel.png new file mode 100644 index 0000000..1102a9f Binary files /dev/null and b/themes/powerarrow-darker/icons/square_sel.png differ diff --git a/themes/powerarrow-darker/icons/square_unsel.png b/themes/powerarrow-darker/icons/square_unsel.png new file mode 100644 index 0000000..7386b85 Binary files /dev/null and b/themes/powerarrow-darker/icons/square_unsel.png differ diff --git a/themes/powerarrow-darker/icons/submenu.png b/themes/powerarrow-darker/icons/submenu.png new file mode 100644 index 0000000..10ca014 Binary files /dev/null and b/themes/powerarrow-darker/icons/submenu.png differ diff --git a/themes/powerarrow-darker/icons/task.png b/themes/powerarrow-darker/icons/task.png new file mode 100644 index 0000000..0376e42 Binary files /dev/null and b/themes/powerarrow-darker/icons/task.png differ diff --git a/themes/powerarrow-darker/icons/temp.png b/themes/powerarrow-darker/icons/temp.png new file mode 100644 index 0000000..6793a9f Binary files /dev/null and b/themes/powerarrow-darker/icons/temp.png differ diff --git a/themes/powerarrow-darker/icons/tile.png b/themes/powerarrow-darker/icons/tile.png new file mode 100644 index 0000000..94a7410 Binary files /dev/null and b/themes/powerarrow-darker/icons/tile.png differ diff --git a/themes/powerarrow-darker/icons/tilebottom.png b/themes/powerarrow-darker/icons/tilebottom.png new file mode 100644 index 0000000..d1d123f Binary files /dev/null and b/themes/powerarrow-darker/icons/tilebottom.png differ diff --git a/themes/powerarrow-darker/icons/tileleft.png b/themes/powerarrow-darker/icons/tileleft.png new file mode 100644 index 0000000..b988004 Binary files /dev/null and b/themes/powerarrow-darker/icons/tileleft.png differ diff --git a/themes/powerarrow-darker/icons/tiletop.png b/themes/powerarrow-darker/icons/tiletop.png new file mode 100644 index 0000000..f7e25b6 Binary files /dev/null and b/themes/powerarrow-darker/icons/tiletop.png differ diff --git a/themes/powerarrow-darker/icons/vol.png b/themes/powerarrow-darker/icons/vol.png new file mode 100644 index 0000000..bbf33d4 Binary files /dev/null and b/themes/powerarrow-darker/icons/vol.png differ diff --git a/themes/powerarrow-darker/icons/vol_low.png b/themes/powerarrow-darker/icons/vol_low.png new file mode 100644 index 0000000..aa3ce4d Binary files /dev/null and b/themes/powerarrow-darker/icons/vol_low.png differ diff --git a/themes/powerarrow-darker/icons/vol_mute.png b/themes/powerarrow-darker/icons/vol_mute.png new file mode 100644 index 0000000..e855fd2 Binary files /dev/null and b/themes/powerarrow-darker/icons/vol_mute.png differ diff --git a/themes/powerarrow-darker/icons/vol_no.png b/themes/powerarrow-darker/icons/vol_no.png new file mode 100644 index 0000000..bbe917b Binary files /dev/null and b/themes/powerarrow-darker/icons/vol_no.png differ diff --git a/themes/powerarrow-darker/theme.lua b/themes/powerarrow-darker/theme.lua new file mode 100644 index 0000000..afa1db6 --- /dev/null +++ b/themes/powerarrow-darker/theme.lua @@ -0,0 +1,79 @@ + --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- +--{{ Awesome Powerarrow-dark theme by Rom Ockee - luke's mod }}--- + --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- + +theme = {} + +themes_dir = os.getenv("HOME") .. "/.config/awesome/themes/powerarrow-darker" +theme.wallpaper = themes_dir .. "/wall.png" + +theme.font = "Terminus 9" +theme.fg_normal = "#DCDCCC" +theme.fg_focus = "#F0DFAF" +theme.fg_urgent = "#CC9393" +theme.bg_normal = "#1A1A1A" +theme.bg_focus = "#313131" +theme.bg_urgent = "#1A1A1A" +theme.border_width = "1" +theme.border_normal = "#3F3F3F" +theme.border_focus = "#7F7F7F" +theme.border_marked = "#CC9393" +theme.titlebar_bg_focus = "#FFFFFF" +theme.titlebar_bg_normal = "#FFFFFF" +theme.taglist_fg_focus = "#FF7100" +theme.tasklist_bg_focus = "#1A1A1A" +theme.tasklist_fg_focus = "#FF7100" +theme.textbox_widget_margin_top = 1 +theme.notify_fg = theme.fg_normal +theme.notify_bg = theme.bg_normal +theme.notify_border = theme.border_focus +theme.awful_widget_height = 14 +theme.awful_widget_margin_top = 2 +theme.mouse_finder_color = "#CC9393" +theme.menu_height = "16" +theme.menu_width = "140" + +theme.menu_submenu_icon = themes_dir .. "/icons/submenu.png" +theme.taglist_squares_sel = themes_dir .. "/icons/square_sel.png" +theme.taglist_squares_unsel = themes_dir .. "/icons/square_unsel.png" + +theme.layout_tile = themes_dir .. "/icons/tile.png" +theme.layout_tileleft = themes_dir .. "/icons/tileleft.png" +theme.layout_tilebottom = themes_dir .. "/icons/tilebottom.png" +theme.layout_tiletop = themes_dir .. "/icons/tiletop.png" +theme.layout_fairv = themes_dir .. "/icons/fairv.png" +theme.layout_fairh = themes_dir .. "/icons/fairh.png" +theme.layout_spiral = themes_dir .. "/icons/spiral.png" +theme.layout_dwindle = themes_dir .. "/icons/dwindle.png" +theme.layout_max = themes_dir .. "/icons/max.png" +theme.layout_fullscreen = themes_dir .. "/icons/fullscreen.png" +theme.layout_magnifier = themes_dir .. "/icons/magnifier.png" +theme.layout_floating = themes_dir .. "/icons/floating.png" + +theme.arrl = themes_dir .. "/icons/arrl.png" +theme.arrl_dl = themes_dir .. "/icons/arrl_dl.png" +theme.arrl_ld = themes_dir .. "/icons/arrl_ld.png" + +theme.widget_ac = themes_dir .. "/icons/ac.png" +theme.widget_battery = themes_dir .. "/icons/battery.png" +theme.widget_battery_low = themes_dir .. "/icons/battery_low.png" +theme.widget_battery_empty = themes_dir .. "/icons/battery_empty.png" +theme.widget_mem = themes_dir .. "/icons/mem.png" +theme.widget_cpu = themes_dir .. "/icons/cpu.png" +theme.widget_temp = themes_dir .. "/icons/temp.png" +theme.widget_net = themes_dir .. "/icons/net.png" +theme.widget_hdd = themes_dir .. "/icons/hdd.png" +theme.widget_music = themes_dir .. "/icons/note.png" +theme.widget_music_on = themes_dir .. "/icons/note_on.png" +theme.widget_vol = themes_dir .. "/icons/vol.png" +theme.widget_vol_low = themes_dir .. "/icons/vol_low.png" +theme.widget_vol_no = themes_dir .. "/icons/vol_no.png" +theme.widget_vol_mute = themes_dir .. "/icons/vol_mute.png" +theme.widget_mail = themes_dir .. "/icons/mail.png" +theme.widget_mail_notify = themes_dir .. "/icons/mail_notify.png" + +theme.tasklist_floating = "" +theme.tasklist_maximized_horizontal = "" +theme.tasklist_maximized_vertical = "" + +return theme diff --git a/themes/powerarrow-darker/wall.png b/themes/powerarrow-darker/wall.png new file mode 100755 index 0000000..794eae2 Binary files /dev/null and b/themes/powerarrow-darker/wall.png differ