From ab55d384dceff5028de8225c468a1c32d8c8d229 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Thu, 17 Jun 2010 20:20:38 +0200 Subject: [PATCH 01/10] vicious --- vicious | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vicious b/vicious index ca1d8d7..0d73f6d 160000 --- a/vicious +++ b/vicious @@ -1 +1 @@ -Subproject commit ca1d8d79e55b7addc28dc442832815692b01b894 +Subproject commit 0d73f6d8ae32f1cd48ce9f089b902eb0877605e1 From 30fd81b3a3e9046f94137b4584ff6d72a55f488c Mon Sep 17 00:00:00 2001 From: crater2150 Date: Thu, 24 Jun 2010 18:14:00 +0200 Subject: [PATCH 02/10] rules --- rules.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rules.lua b/rules.lua index 903b24c..991b00b 100644 --- a/rules.lua +++ b/rules.lua @@ -29,6 +29,8 @@ awful.rules.rules = { properties = { tag = tags[1][3] } }, { rule = { role = "buddy_list" }, properties = { master = true } }, + { rule = { class = "Claws-mail" }, + properties = { tag = tags[1][4] } }, { rule = { class = "Thunderbird" }, properties = { tag = tags[1][4] } }, { rule = { class = "Sunbird-bin" }, @@ -41,5 +43,13 @@ awful.rules.rules = { properties = { tag = tags[1][22] } }, --{ rule = { class = "OpenOffice.org 3.2" }, --properties = { floating = false } }, + { rule = { class = "Cellwriter" }, + properties = { tag = tags[1][1], + ontop = true, + size_hints_honor = true, + float = true, + sticky = true, + fullscreen = true + } }, } -- }}} From 7bf8e56a3523f4b298e7c85037416b1256a2b1eb Mon Sep 17 00:00:00 2001 From: crater2150 Date: Thu, 24 Jun 2010 18:15:08 +0200 Subject: [PATCH 03/10] zenburn --- zenburn/theme.lua | 30 +++++++++--------- zenburn/titlebar/close_normal.png | Bin 370 -> 370 bytes zenburn/titlebar/floating_focus_inactive.png | Bin 339 -> 339 bytes zenburn/titlebar/floating_normal_active.png | Bin 361 -> 361 bytes zenburn/titlebar/floating_normal_inactive.png | Bin 328 -> 328 bytes zenburn/titlebar/maximized_focus_inactive.png | Bin 337 -> 337 bytes zenburn/titlebar/maximized_normal_active.png | Bin 369 -> 369 bytes .../titlebar/maximized_normal_inactive.png | Bin 349 -> 349 bytes zenburn/titlebar/ontop_focus_inactive.png | Bin 333 -> 333 bytes zenburn/titlebar/ontop_normal_active.png | Bin 349 -> 349 bytes zenburn/titlebar/ontop_normal_inactive.png | Bin 334 -> 334 bytes zenburn/titlebar/sticky_focus_inactive.png | Bin 330 -> 330 bytes zenburn/titlebar/sticky_normal_active.png | Bin 361 -> 361 bytes zenburn/titlebar/sticky_normal_inactive.png | Bin 329 -> 329 bytes 14 files changed, 15 insertions(+), 15 deletions(-) diff --git a/zenburn/theme.lua b/zenburn/theme.lua index 756d611..dae417f 100644 --- a/zenburn/theme.lua +++ b/zenburn/theme.lua @@ -8,25 +8,25 @@ -- {{{ Main theme = {} -theme.wallpaper_cmd = { "awsetbg -a /home/crater2150/.config/awesome/wallpaper" } +theme.wallpaper_cmd = { "nitrogen --restore" } -- }}} -- {{{ Styles theme.font = "sans 8" -- {{{ Colors -theme.fg_normal = "#8888FF" -theme.fg_focus = "#000000" -theme.fg_urgent = "#FF0000" -theme.bg_normal = "#000000" -theme.bg_focus = "#8888FF" -theme.bg_urgent = "#880000" +theme.fg_normal = "#DCDCCC" +theme.fg_focus = "#F0DFAF" +theme.fg_urgent = "#CC9393" +theme.bg_normal = "#3F3F3F" +theme.bg_focus = "#1E2320" +theme.bg_urgent = "#3F3F3F" -- }}} -- {{{ Borders theme.border_width = "2" -theme.border_normal = "#DDDDFF" -theme.border_focus = "#8888FF" +theme.border_normal = "#3F3F3F" +theme.border_focus = "#6F6F6F" theme.border_marked = "#CC9393" -- }}} @@ -83,12 +83,12 @@ theme.tasklist_floating_icon = "/usr/share/awesome/themes/default/tasklist/float -- }}} -- {{{ Layout -theme.layout_tile = "/usr/share/awesome/themes/zenburn/layouts/tilebottom.png" -theme.layout_tileleft = "/usr/share/awesome/themes/zenburn/layouts/tiletop.png" -theme.layout_tilebottom = "/usr/share/awesome/themes/zenburn/layouts/tileleft.png" -theme.layout_tiletop = "/usr/share/awesome/themes/zenburn/layouts/tile.png" -theme.layout_fairv = "/usr/share/awesome/themes/zenburn/layouts/fairh.png" -theme.layout_fairh = "/usr/share/awesome/themes/zenburn/layouts/fairv.png" +theme.layout_tile = "/usr/share/awesome/themes/zenburn/layouts/tile.png" +theme.layout_tileleft = "/usr/share/awesome/themes/zenburn/layouts/tileleft.png" +theme.layout_tilebottom = "/usr/share/awesome/themes/zenburn/layouts/tilebottom.png" +theme.layout_tiletop = "/usr/share/awesome/themes/zenburn/layouts/tiletop.png" +theme.layout_fairv = "/usr/share/awesome/themes/zenburn/layouts/fairv.png" +theme.layout_fairh = "/usr/share/awesome/themes/zenburn/layouts/fairh.png" theme.layout_spiral = "/usr/share/awesome/themes/zenburn/layouts/spiral.png" theme.layout_dwindle = "/usr/share/awesome/themes/zenburn/layouts/dwindle.png" theme.layout_max = "/usr/share/awesome/themes/zenburn/layouts/max.png" diff --git a/zenburn/titlebar/close_normal.png b/zenburn/titlebar/close_normal.png index c5266d7979efa7744480f32c87505f7e9cc3934a..bc97b7c651fc86d7f806dc11fc564ec5df9554df 100644 GIT binary patch delta 108 zcmeyw^oeOgG3S2mdKI;Vst E0NAi0L;wH) delta 108 zcmeyw^oeOgF((5E{B+)3Ke1+Bgn^~5p@FWENr-`^m9eFjiLthUft7(l?P=$kKvk+G yt`Q|Ei6yC4x%nxXX_X8{22c$KA%+%KCWcmq77z_DOdEE9%=L8jb6Mw<&;$Uu@E)Q7 diff --git a/zenburn/titlebar/floating_focus_inactive.png b/zenburn/titlebar/floating_focus_inactive.png index 6a8bd86f0a48341134834ed34260a9bae03d75c0..f442d7863e1d5e05447b70db96ffbcd9ae3688b4 100644 GIT binary patch delta 104 zcmcc2beU;FG3)>K{xkb0Ry0Q#8t59B=^B}Y7+P2vm|7WHY8x0?85o#u`@_n>z@S>< z8c~vxSdwa$o1c=IR>@#w0McNpYiJN+Xkuk-X=Q2-(Xf_%{sEu{22WQ%mvv4FO#tIj B9`67E delta 104 zcmcc2beU;FF)PEWUS*?+70nR_mb!)px<)1;29{RFmR2Ul+6D$z1_rgKoo6yIFsPQe yMwFx^mZVzc=BH$)RWcYEKs6YI7+P4F7+M)xKs3BCZP)?Sz~JfX=d#Wzp$Pyn#T{1w diff --git a/zenburn/titlebar/floating_normal_active.png b/zenburn/titlebar/floating_normal_active.png index 609a2a2f0b47e6b48eba9c5261c5f18106cf0262..1355a55527934580d4bcce3aacd18bc05e0d2ce8 100644 GIT binary patch delta 108 zcmaFK^pa^pG3S2mdKI;Vst E0L}m*DF6Tf delta 108 zcmaFK^pa^pF((5E{B+)3Ke1+Ngn^~5p@FWENr-`^m9eFjiLthUft7(l?P=$kKvk+G yt`Q|Ei6yC4x%nxXX_X8{22c$KA%+%KCWcmq77z_DOdEE9%=L8jb6Mw<&;$UkKpuwx diff --git a/zenburn/titlebar/floating_normal_inactive.png b/zenburn/titlebar/floating_normal_inactive.png index 579ebd3749c589c075c5fd5acbad36c9aae6ccf1..e6731a33686be5d5f8c3a655d12f5b79e548ef6e 100644 GIT binary patch delta 104 zcmX@Xbb@I@G3)>K{xkb0R#Ze78t59B=^B}Y7+P2vm|7W`Xd4(=85rDpH%pCyfkCyz nHKHUXu_VK{xkb0Ry0N!8t59B=^B}Y7+P2vm|7WHY8x0?85o#u`@_n>z@S>< z8c~vxSdwa$o1c=IR>@#w0McNpYiJN+Xkuk-X=Q2-(Xf_%{sEu{22WQ%mvv4FO#tBm B9_au8 delta 104 zcmcb}bdhO7F)PEWUS*?+6^#)Fmb!)px<)1;29{RFmR2Ul+6D$z1_rgKoo6yIFsPQe yMwFx^mZVzc=BH$)RWcYEKs6YI7+P4F7+M)xKs3BCZP)?Sz~JfX=d#Wzp$PylbsbRv diff --git a/zenburn/titlebar/maximized_normal_active.png b/zenburn/titlebar/maximized_normal_active.png index f98030eb9109ed68125e40d094d567f47253b7c4..ba5139abfcf1eedb14d84ccb174a36185ff80aee 100644 GIT binary patch delta 108 zcmey!^pR;oG3S2mdKI;Vst E0M~#aK>z>% delta 108 zcmey!^pR;oF((5E{B+)3Ke1+Rgn^~5p@FWENr-`^m9eFjiLthUft7(l?P=$kKvk+G yt`Q|Ei6yC4x%nxXX_X8{22c$KA%+%KCWcmq77z_DOdEE9%=L8jb6Mw<&;$Utz#g9f diff --git a/zenburn/titlebar/maximized_normal_inactive.png b/zenburn/titlebar/maximized_normal_inactive.png index d84c2be4976fcb40f0241ac600a8b5171112cab9..debd21f25778608e3cc5d9b47c6d28e44c6bd6a8 100644 GIT binary patch delta 87 zcmcc1beCyDG3)>K{xkb0R`g068t59B=^B}Y7+P2vm|7W`Xd4(=85rDpH%o1@0;8BZ V4*Auam1Z#jfv2mV%Q~loCIIL+8SwxB delta 87 zcmcc1beCyDF)PEWUS*?+6}{31mb!)px<)1;29{RFmR6=F+6D$z1_mX^YC9(@Fp8<; VkY}BJ)RX}TJYD@<);T3K0RS`87b^e& diff --git a/zenburn/titlebar/ontop_focus_inactive.png b/zenburn/titlebar/ontop_focus_inactive.png index dd29ebedae49694f96beb23c6a8f3b9808191bd7..3b8b5c33ce6d1c8c87dff15f33fbae3cf588f55d 100644 GIT binary patch delta 87 zcmX@hbe3sCG3)>K{xkb0R@6!x8t59B=^B}Y7+P2vm|7WHY8x0?85o#u`@=d}fKf~x kByXx~Xb@s(Vr6V;WoizQU&}uK00R(sy85}Sb4q9e0Jw)46#xJL delta 87 zcmX@hbe3sCF)PEWUS*?+6}8d^mb!)px<)1;29{RFmR2Ul+6D$z1_rgKoo7xKU=&k_ g${U0jT3DGFS{YhE|g)_Pgg&ebxsLQ0472geEQH%u5JL+q6GJOQ3yAy+(}o=&V?15`T-G@yGywpM9~i3u diff --git a/zenburn/titlebar/ontop_normal_inactive.png b/zenburn/titlebar/ontop_normal_inactive.png index 05ed63fc8cc81a364399f0c9fd1bed2ad6c330e4..136f3f07d2181839cf5e0f361385fd956a18fc64 100644 GIT binary patch delta 87 zcmX@dbdG64G3)>K{xkb0R@6xw8t59B=^B}Y7+P2vm|7W`Xd4(=85rDpH%o1@AfuQ% V4*Auam1Z#jfv2mV%Q~loCIHu08MOca delta 87 zcmX@dbdG64F)PEWUS*?+6?M`Emb!)px<)1;29{RFmR6=F+6D$z1_mX^YC9(jGK#6= VkY}BJ)RX}TJYD@<);T3K0RSTN7ViK6 diff --git a/zenburn/titlebar/sticky_focus_inactive.png b/zenburn/titlebar/sticky_focus_inactive.png index 93ea06f0707281e14b2a55bab261a112276ab9da..b83ceffde2cd803c049c4e41811aeb0f41344918 100644 GIT binary patch delta 104 zcmX@bbc$(0G3)>K{xkb0R#Zh88t59B=^B}Y7+P2vm|7WHY8x0?85o#u`@_n>z@S>< z8c~vxSdwa$o1c=IR>@#w0McNpYiJN+Xkuk-X=Q2-(Xf_%{sEu{22WQ%mvv4FO#s;G B9@GE; delta 104 zcmX@bbc$(0F)PEWUS*?+6;%-imb!)px<)1;29{RFmR2Ul+6D$z1_rgKoo6yIFsPQe yMwFx^mZVzc=BH$)RWcYEKs6YI7+P4F7+M)xKs3BCZP)?Sz~JfX=d#Wzp$PydT^&3C diff --git a/zenburn/titlebar/sticky_normal_active.png b/zenburn/titlebar/sticky_normal_active.png index 57984a0e91b0f59206294d383acf9ec6865d3f83..9b740568e587207f24e6b7dfa60aa8b6d14a418c 100644 GIT binary patch delta 108 zcmaFK^pa^pG3S2mdKI;Vst E0L}m*DF6Tf delta 108 zcmaFK^pa^pF((5E{B+)3Ke1+Ngn^~5p@FWENr-`^m9eFjiLthUft7(l?P=$kKvk+G yt`Q|Ei6yC4x%nxXX_X8{22c$KA%+%KCWcmq77z_DOdEE9%=L8jb6Mw<&;$UkKpuwx diff --git a/zenburn/titlebar/sticky_normal_inactive.png b/zenburn/titlebar/sticky_normal_inactive.png index 617c51716fd4bd90e60bcd71abcebdfd47aba0c2..0e2978084fdd2ecbe310b209f4ab25825480a56b 100644 GIT binary patch delta 104 zcmX@fbdqU8G3)>K{xkb0R#Zk98t59B=^B}Y7+P2vm|7W`Xd4(=85rDpH%pCyfkCyz nHKHUXu_V Date: Thu, 24 Jun 2010 18:15:35 +0200 Subject: [PATCH 04/10] submodules --- obvious | 2 +- vicious | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/obvious b/obvious index 565f11c..e3a3e05 160000 --- a/obvious +++ b/obvious @@ -1 +1 @@ -Subproject commit 565f11c05dd28a2bfe8a96a6ec0950b970f5abcd +Subproject commit e3a3e05405d6c622326f3faba6ce6b7c188bf1e9 diff --git a/vicious b/vicious index 0d73f6d..ca1d8d7 160000 --- a/vicious +++ b/vicious @@ -1 +1 @@ -Subproject commit 0d73f6d8ae32f1cd48ce9f089b902eb0877605e1 +Subproject commit ca1d8d79e55b7addc28dc442832815692b01b894 From 5bf889823d85e33f6f7c927f1eaf27b29f218bc0 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Thu, 24 Jun 2010 18:15:57 +0200 Subject: [PATCH 05/10] tags no more local --- tags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags.lua b/tags.lua index 836ed58..68484da 100644 --- a/tags.lua +++ b/tags.lua @@ -1,6 +1,6 @@ -- {{{ Tags -local tags = {} +tags={} tags.setup = { { name = "1:⚙", layout = layouts[1] }, { name = "2:⌘", layout = layouts[7] }, From 21b9bf3edc3f5f7e27f3b51bfb76877bf6702ee9 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 29 Jun 2010 12:27:30 +0200 Subject: [PATCH 06/10] zenburn fixed, bindings for tabletkeys --- bindings.lua | 17 ++++--- rc.lua | 1 + zenburn.lua | 141 --------------------------------------------------- 3 files changed, 12 insertions(+), 147 deletions(-) delete mode 100644 zenburn.lua diff --git a/bindings.lua b/bindings.lua index ea14360..b4a806b 100644 --- a/bindings.lua +++ b/bindings.lua @@ -1,7 +1,6 @@ -- {{{ Mouse bindings root.buttons(awful.util.table.join( -awful.button({ }, 3, function () mymainmenu:toggle() end), awful.button({ }, 4, awful.tag.viewnext), awful.button({ }, 5, awful.tag.viewprev) )) @@ -57,16 +56,22 @@ globalkeys = awful.util.table.join( -- awful.key({ modkey, }, "p", function () awful.util.spawn("pidgin") end), -- awful.key({ modkey, }, "s", function () awful.util.spawn("sunbird") end), -- awful.key({ modkey, }, "g", function () awful.util.spawn("gmpc") end), - awful.key({ modkey, }, "f", function () runraise("firefox", { class = "Firefox" }) end), - awful.key({ modkey, }, "t", function () runraise("thunderbird", { class = "Thunderbird" }) end), - awful.key({ modkey, }, "p", function () runraise("pidgin", { class = "Pidgin" }) end), - awful.key({ modkey, }, "s", function () runraised("sunbird", { class = "Sunbirdi-bin" }) end), - awful.key({ modkey, }, "g", function () runraise("gmpc", { class = "Gmpc" }) end), + awful.key({ modkey, }, "f", function () awful.util.spawn("firefox") end), + awful.key({ modkey, }, "t", function () awful.util.spawn("thunderbird") end), + awful.key({ modkey, }, "p", function () awful.util.spawn("pidgin") end), + awful.key({ modkey, }, "s", function () awful.util.spawn("sunbird") end), + awful.key({ modkey, }, "g", function () awful.util.spawn("gmpc") end), awful.key({ }, "XF86Mail", function () awful.util.spawn("xset dpms force off") end), awful.key({ }, "XF86Mail", function () awful.util.spawn("xset dpms force off") end), awful.key({ modkey }, "XF86Mail", function () awful.util.spawn("urslock") end), awful.key({ modkey, "Control" }, "r", awesome.restart), awful.key({ modkey, "Shift" }, "q", awesome.quit), + + + --tabletpc keys + awful.key({ hyper }, "6", function () awful.util.spawn("/usr/local/bin/rotate") end), + awful.key({ modkey }, "x", function () awful.util.spawn("cellwriter --show-window") end), + awful.key({ modkey, "Control" }, "Delete", function () awful.util.spawn("xlock") end), -- Audio control awful.key({ }, "Print", function () teardrop("sakura --class=Teardrop -e alsamixer","top","center", 0.99, 0.4)end ), diff --git a/rc.lua b/rc.lua index 254a1fa..9400fa6 100644 --- a/rc.lua +++ b/rc.lua @@ -1,6 +1,7 @@ terminal = "sakura -e screen" editor_cmd = "sakura -e vim" modkey = "Mod4" +hyper = "Mod3" -- Standard awesome library require("awful") diff --git a/zenburn.lua b/zenburn.lua deleted file mode 100644 index c293633..0000000 --- a/zenburn.lua +++ /dev/null @@ -1,141 +0,0 @@ -------------------------------- --- "Zenburn" awesome theme -- --- By Adrian C. (anrxc) -- -------------------------------- - - --- {{{ Main -theme = {} -theme.confdir = awful.util.getdir("config") -theme.wallpaper_cmd = { "/usr/bin/nitrogen --restore" } ---theme.wallpaper_cmd = { "awsetbg /usr/share/awesome/themes/zenburn/zenburn-background.png" } --- }}} - - --- {{{ Styles -theme.font = "Profont 8" - --- {{{ Colors -theme.fg_normal = "#DCDCCC" -theme.fg_focus = "#F0DFAF" -theme.fg_urgent = "#CC9393" -theme.bg_normal = "#3F3F3F" -theme.bg_focus = "#1E2320" -theme.bg_urgent = "#ff0000" --- }}} - --- {{{ Borders -theme.border_width = "1" -theme.border_normal = "#3F3F3F" -theme.border_focus = "#6F6F6F" -theme.border_marked = "#CC9393" --- }}} - --- {{{ Titlebars -theme.titlebar_bg_focus = "#3F3F3F" -theme.titlebar_bg_normal = "#3F3F3F" --- theme.titlebar_[normal|focus] --- }}} - --- {{{ Widgets -theme.fg_widget = "#AECF96" -theme.fg_center_widget = "#88A175" -theme.fg_end_widget = "#FF5656" -theme.fg_off_widget = "#494B4F" -theme.fg_netup_widget = "#7F9F7F" -theme.fg_netdn_widget = "#CC9393" -theme.bg_widget = "#3F3F3F" -theme.border_widget = "#3F3F3F" --- }}} - --- {{{ Mouse finder -theme.mouse_finder_color = "#CC9393" --- theme.mouse_finder_[timeout|animate_timeout|radius|factor] --- }}} - --- {{{ Tooltips --- theme.tooltip_[font|opacity|fg_color|bg_color|border_width|border_color] --- }}} - --- {{{ Taglist and Tasklist --- theme.[taglist|tasklist]_[bg|fg]_[focus|urgent] --- }}} - --- {{{ Menu --- theme.menu_[bg|fg]_[normal|focus] --- theme.menu_[height|width|border_color|border_width] --- }}} --- }}} - - --- {{{ Icons --- --- {{{ Taglist icons -theme.taglist_squares_sel = theme.confdir .. "/icons/taglist/squarefz.png" -theme.taglist_squares_unsel = theme.confdir .. "/icons/taglist/squareza.png" ---theme.taglist_squares_resize = "false" --- }}} - --- {{{ Misc icons ---theme.awesome_icon = theme.confdir .. "/icons/awesome.png" ---theme.menu_submenu_icon = "/usr/share/awesome/themes/default/submenu.png" ---theme.tasklist_floating_icon = "/usr/share/awesome/themes/default/tasklist/floatingw.png" --- }}} - --- {{{ Layout icons -theme.layout_tile = theme.confdir .. "/icons/layouts/tile.png" -theme.layout_tileleft = theme.confdir .. "/icons/layouts/tileleft.png" -theme.layout_tilebottom = theme.confdir .. "/icons/layouts/tilebottom.png" -theme.layout_tiletop = theme.confdir .. "/icons/layouts/tiletop.png" -theme.layout_fairv = theme.confdir .. "/icons/layouts/fairv.png" -theme.layout_fairh = theme.confdir .. "/icons/layouts/fairh.png" -theme.layout_spiral = theme.confdir .. "/icons/layouts/spiral.png" -theme.layout_dwindle = theme.confdir .. "/icons/layouts/dwindle.png" -theme.layout_max = theme.confdir .. "/icons/layouts/max.png" -theme.layout_fullscreen = theme.confdir .. "/icons/layouts/fullscreen.png" -theme.layout_magnifier = theme.confdir .. "/icons/layouts/magnifier.png" -theme.layout_floating = theme.confdir .. "/icons/layouts/floating.png" --- }}} - --- {{{ Widget icons -theme.widget_cpu = theme.confdir .. "/icons/cpu.png" -theme.widget_bat = theme.confdir .. "/icons/bat.png" -theme.widget_mem = theme.confdir .. "/icons/mem.png" -theme.widget_fs = theme.confdir .. "/icons/disk.png" -theme.widget_net = theme.confdir .. "/icons/down.png" -theme.widget_netup = theme.confdir .. "/icons/up.png" -theme.widget_mail = theme.confdir .. "/icons/mail.png" -theme.widget_vol = theme.confdir .. "/icons/vol.png" -theme.widget_org = theme.confdir .. "/icons/cal.png" -theme.widget_date = theme.confdir .. "/icons/time.png" -theme.widget_crypto = theme.confdir .. "/icons/crypto.png" --- }}} - --- {{{ Titlebar icons -theme.titlebar_close_button_focus = theme.confdir .. "/icons/titlebar/close_focus.png" -theme.titlebar_close_button_normal = theme.confdir .. "/icons/titlebar/close_normal.png" - -theme.titlebar_ontop_button_focus_active = theme.confdir .. "/icons/titlebar/ontop_focus_active.png" -theme.titlebar_ontop_button_normal_active = theme.confdir .. "/icons/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_inactive = theme.confdir .. "/icons/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_inactive = theme.confdir .. "/icons/titlebar/ontop_normal_inactive.png" - -theme.titlebar_sticky_button_focus_active = theme.confdir .. "/icons/titlebar/sticky_focus_active.png" -theme.titlebar_sticky_button_normal_active = theme.confdir .. "/icons/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_inactive = theme.confdir .. "/icons/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_inactive = theme.confdir .. "/icons/titlebar/sticky_normal_inactive.png" - -theme.titlebar_floating_button_focus_active = theme.confdir .. "/icons/titlebar/floating_focus_active.png" -theme.titlebar_floating_button_normal_active = theme.confdir .. "/icons/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_inactive = theme.confdir .. "/icons/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_inactive = theme.confdir .. "/icons/titlebar/floating_normal_inactive.png" - -theme.titlebar_maximized_button_focus_active = theme.confdir .. "/icons/titlebar/maximized_focus_active.png" -theme.titlebar_maximized_button_normal_active = theme.confdir .. "/icons/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_inactive = theme.confdir .. "/icons/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_inactive = theme.confdir .. "/icons/titlebar/maximized_normal_inactive.png" --- }}} --- }}} - - -return theme From 3820f1882e181b46b77f4f463a0b0c70aaf45976 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Wed, 1 Sep 2010 17:52:20 +0200 Subject: [PATCH 07/10] foo --- bindings.lua | 3 ++- rules.lua | 7 ++++++- tags.lua | 2 +- zenburn/theme.lua | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bindings.lua b/bindings.lua index b4a806b..3f04c85 100644 --- a/bindings.lua +++ b/bindings.lua @@ -70,7 +70,8 @@ globalkeys = awful.util.table.join( --tabletpc keys awful.key({ hyper }, "6", function () awful.util.spawn("/usr/local/bin/rotate") end), - awful.key({ modkey }, "x", function () awful.util.spawn("cellwriter --show-window") end), + --awful.key({ modkey }, "x", function () awful.util.spawn("cellwriter --show-window") end), + awful.key({ modkey }, "x", function () teardrop("cellwriter","top","center", 0.99, 0.4)end ), awful.key({ modkey, "Control" }, "Delete", function () awful.util.spawn("xlock") end), -- Audio control diff --git a/rules.lua b/rules.lua index 991b00b..fc16100 100644 --- a/rules.lua +++ b/rules.lua @@ -26,9 +26,14 @@ awful.rules.rules = { { rule = { class = "Firefox" }, properties = { tag = tags[1][2] } }, { rule = { class = "Pidgin" }, - properties = { tag = tags[1][3] } }, + properties = { tag = tags[1][3]} }, { rule = { role = "buddy_list" }, properties = { master = true } }, + { rule = { role = "conversation" }, + callback = awful.client.setslave}, + { rule = { class = "Irssi"}, + properties = { tag = tags[1][3]} , + callback = awful.client.setslave}, { rule = { class = "Claws-mail" }, properties = { tag = tags[1][4] } }, { rule = { class = "Thunderbird" }, diff --git a/tags.lua b/tags.lua index 68484da..1af42e9 100644 --- a/tags.lua +++ b/tags.lua @@ -4,7 +4,7 @@ tags={} tags.setup = { { name = "1:⚙", layout = layouts[1] }, { name = "2:⌘", layout = layouts[7] }, - { name = "3:☻", layout = layouts[2], mwfact = 0.80 }, + { name = "3:☻", layout = layouts[2], mwfact = 0.20 }, { name = "4:✉", layout = layouts[7] }, { name = "5:☑", layout = layouts[7] }, { name = "6:♫", layout = layouts[1] }, diff --git a/zenburn/theme.lua b/zenburn/theme.lua index dae417f..ae93bb1 100644 --- a/zenburn/theme.lua +++ b/zenburn/theme.lua @@ -8,7 +8,7 @@ -- {{{ Main theme = {} -theme.wallpaper_cmd = { "nitrogen --restore" } +theme.wallpaper_cmd = { "awsetbg /usr/share/awesome/themes/zenburn/zenburn-background.png" } -- }}} -- {{{ Styles From ade6d89c41085c3f22056a0fcb9407767e7c2d25 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Sat, 4 Sep 2010 00:52:38 +0200 Subject: [PATCH 08/10] update --- bindings.lua | 1 + rc.lua | 2 ++ rules.lua | 3 ++- zenburn/theme.lua | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bindings.lua b/bindings.lua index 3f04c85..86095b4 100644 --- a/bindings.lua +++ b/bindings.lua @@ -66,6 +66,7 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "XF86Mail", function () awful.util.spawn("urslock") end), awful.key({ modkey, "Control" }, "r", awesome.restart), awful.key({ modkey, "Shift" }, "q", awesome.quit), + awful.key({ }, "Menu", aweswt.switch), --tabletpc keys diff --git a/rc.lua b/rc.lua index 9400fa6..7ae56bc 100644 --- a/rc.lua +++ b/rc.lua @@ -13,6 +13,8 @@ require("teardrop") require("obvious.battery") require("obvious.popup_run_prompt") require("vicious") +require("aweswt") + diff --git a/rules.lua b/rules.lua index fc16100..15ca44f 100644 --- a/rules.lua +++ b/rules.lua @@ -24,7 +24,8 @@ awful.rules.rules = { properties = { floating = true } }, -- Set Firefox to always map on tags number 2 of screen 1. { rule = { class = "Firefox" }, - properties = { tag = tags[1][2] } }, + properties = { tag = tags[1][2], + floating = false } }, { rule = { class = "Pidgin" }, properties = { tag = tags[1][3]} }, { rule = { role = "buddy_list" }, diff --git a/zenburn/theme.lua b/zenburn/theme.lua index ae93bb1..dae417f 100644 --- a/zenburn/theme.lua +++ b/zenburn/theme.lua @@ -8,7 +8,7 @@ -- {{{ Main theme = {} -theme.wallpaper_cmd = { "awsetbg /usr/share/awesome/themes/zenburn/zenburn-background.png" } +theme.wallpaper_cmd = { "nitrogen --restore" } -- }}} -- {{{ Styles From c7985df86a5d9cc053ff37bc1aff962365a84a68 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Sat, 4 Sep 2010 01:09:24 +0200 Subject: [PATCH 09/10] some things --- aweswt.lua | 50 +++++++++++++++++++++++++++++++++++++++++++++++ rc.lua | 6 ++---- tags.lua | 6 +++--- zenburn/theme.lua | 20 +++++++++---------- 4 files changed, 65 insertions(+), 17 deletions(-) create mode 100644 aweswt.lua diff --git a/aweswt.lua b/aweswt.lua new file mode 100644 index 0000000..2ccf363 --- /dev/null +++ b/aweswt.lua @@ -0,0 +1,50 @@ + -- aweswt.lua + local io=io + local table=table + local pairs=pairs + local awful=awful + local client=client + local string=string + local USE_T=true + module("aweswt") + function get_out (a) + local f=io.popen (a) + t={} + for line in f:lines() do + table.insert(t, line ) + end + return t + end + function get_input (a) + s1='echo -e "'..a..'"|dmenu' + return get_out(s1) + end + + function switch() + local clients = client.get() + if table.getn(clients) == 0 then + return + end + local m1="" + local t2={} + local tmp + for i, c in pairs(clients) do + if USE_T then do + tmp=i..':'..string.sub(c['name'], 1, 20) + end + else do + tmp=i..':'..c['instance']..'.'..c['class'] + end + end + m1=m1..tmp..'\n' + t2[tmp]=c + end + local t6=t2[get_input(m1)[1]] + if t6 then + local ctags = t6:tags() + awful.tag.viewonly(ctags[1]) + client.focus = t6 + t6:raise() + end + end + diff --git a/rc.lua b/rc.lua index 7ae56bc..1fd564b 100644 --- a/rc.lua +++ b/rc.lua @@ -25,12 +25,10 @@ beautiful.init("/home/crater2150/.config/awesome/zenburn/theme.lua") -- Table of layouts to cover with awful.layout.inc, order matters. layouts = { - awful.layout.suit.tile, - awful.layout.suit.tile.left, - awful.layout.suit.tile.bottom, - awful.layout.suit.tile.top, awful.layout.suit.fair, awful.layout.suit.fair.horizontal, + awful.layout.suit.tile, + awful.layout.suit.tile.bottom, awful.layout.suit.max, awful.layout.suit.max.fullscreen, awful.layout.suit.floating diff --git a/tags.lua b/tags.lua index 1af42e9..4bc1ef9 100644 --- a/tags.lua +++ b/tags.lua @@ -3,10 +3,10 @@ tags={} tags.setup = { { name = "1:⚙", layout = layouts[1] }, - { name = "2:⌘", layout = layouts[7] }, + { name = "2:⌘", layout = layouts[5] }, { name = "3:☻", layout = layouts[2], mwfact = 0.20 }, - { name = "4:✉", layout = layouts[7] }, - { name = "5:☑", layout = layouts[7] }, + { name = "4:✉", layout = layouts[5] }, + { name = "5:☑", layout = layouts[1] }, { name = "6:♫", layout = layouts[1] }, { name = "7:☣", layout = layouts[1] }, { name = "8:☕", layout = layouts[1] }, diff --git a/zenburn/theme.lua b/zenburn/theme.lua index dae417f..346a717 100644 --- a/zenburn/theme.lua +++ b/zenburn/theme.lua @@ -15,12 +15,12 @@ theme.wallpaper_cmd = { "nitrogen --restore" } theme.font = "sans 8" -- {{{ Colors -theme.fg_normal = "#DCDCCC" +theme.fg_normal = "#DCDCDC" theme.fg_focus = "#F0DFAF" theme.fg_urgent = "#CC9393" -theme.bg_normal = "#3F3F3F" -theme.bg_focus = "#1E2320" -theme.bg_urgent = "#3F3F3F" +theme.bg_normal = "#121212" +theme.bg_focus = "#3F3F3F" +theme.bg_urgent = "#DA4E4E" -- }}} -- {{{ Borders @@ -83,12 +83,12 @@ theme.tasklist_floating_icon = "/usr/share/awesome/themes/default/tasklist/float -- }}} -- {{{ Layout -theme.layout_tile = "/usr/share/awesome/themes/zenburn/layouts/tile.png" -theme.layout_tileleft = "/usr/share/awesome/themes/zenburn/layouts/tileleft.png" -theme.layout_tilebottom = "/usr/share/awesome/themes/zenburn/layouts/tilebottom.png" -theme.layout_tiletop = "/usr/share/awesome/themes/zenburn/layouts/tiletop.png" -theme.layout_fairv = "/usr/share/awesome/themes/zenburn/layouts/fairv.png" -theme.layout_fairh = "/usr/share/awesome/themes/zenburn/layouts/fairh.png" +theme.layout_tiletop = "/usr/share/awesome/themes/zenburn/layouts/tile.png" +theme.layout_tilebottom = "/usr/share/awesome/themes/zenburn/layouts/tileleft.png" +theme.layout_tile = "/usr/share/awesome/themes/zenburn/layouts/tilebottom.png" +theme.layout_tileleft = "/usr/share/awesome/themes/zenburn/layouts/tiletop.png" +theme.layout_fairh = "/usr/share/awesome/themes/zenburn/layouts/fairv.png" +theme.layout_fairv = "/usr/share/awesome/themes/zenburn/layouts/fairh.png" theme.layout_spiral = "/usr/share/awesome/themes/zenburn/layouts/spiral.png" theme.layout_dwindle = "/usr/share/awesome/themes/zenburn/layouts/dwindle.png" theme.layout_max = "/usr/share/awesome/themes/zenburn/layouts/max.png" From 4542e5ac2ecd0d523c25e3e4dbe0fc0c5ba196b1 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Sat, 4 Sep 2010 01:11:13 +0200 Subject: [PATCH 10/10] fixing --- tags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags.lua b/tags.lua index 4bc1ef9..f36117e 100644 --- a/tags.lua +++ b/tags.lua @@ -4,7 +4,7 @@ tags={} tags.setup = { { name = "1:⚙", layout = layouts[1] }, { name = "2:⌘", layout = layouts[5] }, - { name = "3:☻", layout = layouts[2], mwfact = 0.20 }, + { name = "3:☻", layout = layouts[3], mwfact = 0.20 }, { name = "4:✉", layout = layouts[5] }, { name = "5:☑", layout = layouts[1] }, { name = "6:♫", layout = layouts[1] },