From 87fd01d6545c25d63f8f0b754a406a53390674f9 Mon Sep 17 00:00:00 2001 From: copycat-killer Date: Sat, 5 Nov 2016 14:09:02 +0100 Subject: [PATCH] #128; add original prompt keybinding commented; list default additional software used --- README.rst | 5 +++++ rc.lua.blackburn | 19 +++++++++++++++++++ rc.lua.copland | 19 +++++++++++++++++++ rc.lua.dremora | 19 +++++++++++++++++++ rc.lua.holo | 19 +++++++++++++++++++ rc.lua.multicolor | 21 ++++++++++++++++++++- rc.lua.powerarrow-darker | 21 ++++++++++++++++++++- rc.lua.rainbow | 2 ++ rc.lua.steamburn | 19 +++++++++++++++++++ 9 files changed, 142 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 9a38163..4f3d57c 100644 --- a/README.rst +++ b/README.rst @@ -112,6 +112,10 @@ Every theme has a colorscheme_. Blackburn and Dremora use Icons_: be sure to have bitmaps enabled if running under Debian_ or Ubuntu_. +Default additional software used: :: + + unclutter firefox scrot mpd mpc dmenu xsel + .. _BY-NC-SA: http://creativecommons.org/licenses/by-nc-sa/4.0/ .. _Awesome: http://github.com/awesomeWM/awesome .. _lucamanni: https://github.com/lucamanni/awesome @@ -131,3 +135,4 @@ Blackburn and Dremora use Icons_: be sure to have bitmaps enabled if running und .. _Icons: https://github.com/copycat-killer/dots/tree/master/.fonts .. _Debian: http://weiwu.sdf.org/100921.html .. _Ubuntu: https://wiki.ubuntu.com/Fonts#Enabling_Bitmapped_Fonts +.. _screenshot: https://github.com/copycat-killer/dots/blob/master/bin/screenshot diff --git a/rc.lua.blackburn b/rc.lua.blackburn index 0d42591..a26e257 100644 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -14,6 +14,7 @@ local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") local lain = require("lain") +--local menubar = require("menubar") -- }}} -- {{{ Error handling @@ -104,6 +105,8 @@ end -- {{{ Menu mymainmenu = awful.menu.new({ items = require("menugen").build_menu(), theme = { height = 16, width = 130 }}) +-- Menubar configuration +--menubar.utils.terminal = terminal -- Set the terminal for applications that require it -- }}} -- {{{ Wibox @@ -475,7 +478,22 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end), awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end), + --[[ Default -- 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), + -- Menubar + awful.key({ modkey }, "p", function() menubar.show() end) + --]] + + -- dmenu awful.key({ modkey }, "x", function () awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) @@ -563,6 +581,7 @@ awful.rules.rules = { properties = { border_width = beautiful.border_width, border_color = beautiful.border_normal, focus = awful.client.focus.filter, + raise = true, keys = clientkeys, buttons = clientbuttons, size_hints_honor = false } }, diff --git a/rc.lua.copland b/rc.lua.copland index c7b7d13..42b9a8c 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -15,6 +15,7 @@ local beautiful = require("beautiful") local naughty = require("naughty") local lain = require("lain") local eminent = require("eminent") +--local menubar = require("menubar") -- }}} -- {{{ Error handling @@ -115,6 +116,8 @@ end -- {{{ Menu mymainmenu = awful.menu.new({ items = require("menugen").build_menu(), theme = { height = 16, width = 130 }}) +-- Menubar configuration +--menubar.utils.terminal = terminal -- Set the terminal for applications that require it -- }}} -- {{{ Wibox @@ -547,7 +550,22 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end), awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end), + --[[ Default -- 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), + -- Menubar + awful.key({ modkey }, "p", function() menubar.show() end) + --]] + + -- dmenu awful.key({ modkey }, "x", function () awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) @@ -636,6 +654,7 @@ awful.rules.rules = { properties = { border_width = beautiful.border_width, border_color = beautiful.border_normal, focus = awful.client.focus.filter, + raise = true, keys = clientkeys, buttons = clientbuttons, size_hints_honor = false } }, diff --git a/rc.lua.dremora b/rc.lua.dremora index 262ae60..c89d995 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -14,6 +14,7 @@ local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") local lain = require("lain") +--local menubar = require("menubar") -- }}} -- {{{ Error handling @@ -104,6 +105,8 @@ end -- {{{ Menu mymainmenu = awful.menu.new({ items = require("menugen").build_menu(), theme = { height = 16, width = 130 }}) +-- Menubar configuration +--menubar.utils.terminal = terminal -- Set the terminal for applications that require it -- }}} -- {{{ Wibox @@ -474,7 +477,22 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end), awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end), + --[[ Default -- 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), + -- Menubar + awful.key({ modkey }, "p", function() menubar.show() end) + --]] + + -- dmenu awful.key({ modkey }, "x", function () awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) @@ -562,6 +580,7 @@ awful.rules.rules = { properties = { border_width = beautiful.border_width, border_color = beautiful.border_normal, focus = awful.client.focus.filter, + raise = true, keys = clientkeys, buttons = clientbuttons, size_hints_honor = false } }, diff --git a/rc.lua.holo b/rc.lua.holo index f390985..f34533a 100644 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -14,6 +14,7 @@ local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") local lain = require("lain") +--local menubar = require("menubar") -- }}} -- {{{ Error handling @@ -107,6 +108,8 @@ mymainmenu = awful.menu.new({ items = require("menugen").build_menu(), theme = { height = 16, width = 130 }}) mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, menu = mymainmenu }) +-- Menubar configuration +--menubar.utils.terminal = terminal -- Set the terminal for applications that require it -- }}} -- {{{ Wibox @@ -613,7 +616,22 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end), awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end), + --[[ Default -- 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), + -- Menubar + awful.key({ modkey }, "p", function() menubar.show() end) + --]] + + -- dmenu awful.key({ modkey }, "x", function () awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) @@ -701,6 +719,7 @@ awful.rules.rules = { properties = { border_width = beautiful.border_width, border_color = beautiful.border_normal, focus = awful.client.focus.filter, + raise = true, keys = clientkeys, buttons = clientbuttons, size_hints_honor = false } }, diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 7ffe6ba..57e7b63 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -14,6 +14,7 @@ local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") local lain = require("lain") +--local menubar = require("menubar") -- }}} -- {{{ Error handling @@ -108,9 +109,11 @@ if beautiful.wallpaper then end -- }}} --- {{{ Freedesktop Menu +-- {{{ Menu mymainmenu = awful.menu.new({ items = require("menugen").build_menu(), theme = { height = 16, width = 130 }}) +-- Menubar configuration +--menubar.utils.terminal = terminal -- Set the terminal for applications that require it -- }}} -- {{{ Wibox @@ -566,7 +569,22 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end), awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end), + --[[ Default -- 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), + -- Menubar + awful.key({ modkey }, "p", function() menubar.show() end) + --]] + + -- dmenu awful.key({ modkey }, "x", function () awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) @@ -654,6 +672,7 @@ awful.rules.rules = { properties = { border_width = beautiful.border_width, border_color = beautiful.border_normal, focus = awful.client.focus.filter, + raise = true, keys = clientkeys, buttons = clientbuttons, size_hints_honor = false } }, diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 8e267d5..c0bc65d 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -14,6 +14,7 @@ local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") local lain = require("lain") +--local menubar = require("menubar") -- }}} -- {{{ Error handling @@ -108,6 +109,8 @@ end -- {{{ Menu mymainmenu = awful.menu.new({ items = require("menugen").build_menu(), theme = { height = 16, width = 130 }}) +-- Menubar configuration +--menubar.utils.terminal = terminal -- Set the terminal for applications that require it -- }}} -- {{{ Wibox @@ -333,7 +336,7 @@ for s = 1, screen.count() do -- Widgets that are aligned to the upper left local left_layout = wibox.layout.fixed.horizontal() - left_layout:add(spr) + --left_layout:add(spr) left_layout:add(mytaglist[s]) left_layout:add(mypromptbox[s]) left_layout:add(spr) @@ -536,7 +539,22 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end), awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end), + --[[ Default -- 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), + -- Menubar + awful.key({ modkey }, "p", function() menubar.show() end) + --]] + + -- dmenu awful.key({ modkey }, "x", function () awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) @@ -624,6 +642,7 @@ awful.rules.rules = { properties = { border_width = beautiful.border_width, border_color = beautiful.border_normal, focus = awful.client.focus.filter, + raise = true, keys = clientkeys, buttons = clientbuttons, size_hints_honor = false } }, diff --git a/rc.lua.rainbow b/rc.lua.rainbow index f15ee72..c1929be 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -111,6 +111,8 @@ end -- {{{ Menu mymainmenu = awful.menu.new({ items = require("menugen").build_menu(), theme = { height = 16, width = 130 }}) +-- Menubar configuration +--menubar.utils.terminal = terminal -- Set the terminal for applications that require it -- }}} -- {{{ Wibox diff --git a/rc.lua.steamburn b/rc.lua.steamburn index c691287..f32d69d 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -14,6 +14,7 @@ local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") local lain = require("lain") +--local menubar = require("menubar") -- }}} -- {{{ Error handling @@ -109,6 +110,8 @@ end -- {{{ Menu mymainmenu = awful.menu.new({ items = require("menugen").build_menu(), theme = { height = 16, width = 130 }}) +-- Menubar configuration +--menubar.utils.terminal = terminal -- Set the terminal for applications that require it -- }}} -- {{{ Wibox @@ -490,7 +493,22 @@ globalkeys = awful.util.table.join( awful.key({ modkey }, "s", function () awful.util.spawn(gui_editor) end), awful.key({ modkey }, "g", function () awful.util.spawn(graphics) end), + --[[ Default -- 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), + -- Menubar + awful.key({ modkey }, "p", function() menubar.show() end) + --]] + + -- dmenu awful.key({ modkey }, "x", function () awful.util.spawn(string.format("dmenu_run -i -fn 'Tamsyn' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) @@ -578,6 +596,7 @@ awful.rules.rules = { properties = { border_width = beautiful.border_width, border_color = beautiful.border_normal, focus = awful.client.focus.filter, + raise = true, keys = clientkeys, buttons = clientbuttons, size_hints_honor = false } },