summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-08-11 13:28:58 +0200
committerache <ache@ache.one>2017-08-11 13:28:58 +0200
commitfd024b0fde10f87759f41f30c8420b1e3f697088 (patch)
treeda67d27179671359e98cd88942faa5a4943ab24e
parentawesome should not start the xscreensaver server (diff)
Clean up of useless comments
-rw-r--r--rc.lua61
-rw-r--r--themes/customII/theme.lua1
2 files changed, 1 insertions, 61 deletions
diff --git a/rc.lua b/rc.lua
index 14960a5..597e1c9 100644
--- a/rc.lua
+++ b/rc.lua
@@ -116,7 +116,6 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ
-- {{{ Wibox
-- Create a textclock widget
---mytextclock = awful.widget.textclock()
mytextclock = awful.widget.textclock("<span color='#cbcbcb'> %H:%M</span> ")
markup = lain.util.markup
@@ -350,9 +349,6 @@ for s = 1, screen.count() do
local right_layout = wibox.layout.fixed.horizontal()
right_layout:add(mpdwidget)
if s == 1 then right_layout:add(wibox.widget.systray()) end
--- right_layout:add(musicwidget.widget)
--- right_layout:add(mybatwidget)
--- right_layout:add(wibox.widget.systray())
right_layout:add(first)
right_layout:add(spr)
right_layout:add(cpuwidget)
@@ -415,10 +411,6 @@ globalkeys = awful.util.table.join(
{description = "swap with next client by index", group = "client"}),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end,
{description = "swap with previous client by index", group = "client"}),
--- awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end,
--- {description = "focus the next screen", group = "screen"}),
--- awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end,
--- {description = "focus the previous screen", group = "screen"}),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
{description = "jump to urgent client", group = "client"}),
@@ -477,23 +469,6 @@ globalkeys = awful.util.table.join(
--
---awful.key({ modkey, }, "Tab",
--- function ()
--- for c in awful.client.iterate(function (x) return true end) do
--- client.focus = c
--- client.focus:raise()
--- end
--- end),
--- awful.key({ modkey, "Shift" }, "Tab",
--- function ()
--- -- awful.client.focus.history.previous()
--- awful.client.focus.byidx(1)
---
--- if client.focus then
---
--- client.focus:raise()
--- end
- -- end),
awful.key({ modkey, }, "w", function () awful.util.spawn("autoWall") end),
awful.key({ modkey, "Control" }, "w", function () awful.util.spawn_with_shell("setxkbmap -option grab:break_actions") end),
awful.key({ modkey, "Control" }, "w", function () awful.util.spawn("xscreensaver-command --lock") end),
@@ -584,7 +559,6 @@ clientkeys = awful.util.table.join(
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
@@ -605,25 +579,6 @@ clientkeys = awful.util.table.join(
end) do
c.minimized=false
end
- --[[
- local tag = awful.tag.selected()
- for i=1, #tag:clients() do
- tag:clients()[i].minimized=false
- tag:clients()[i]:redraw()
- tag:clients()[i]:raise()
- list=client.get()
- for k, c in pairs(list) do
- -- Without this, the following
- -- :isvisible() makes no sense
- c.minimized = false
- -- This will also un-minimize
- -- the client, if needed
- client.focus = c
- c:raise()
- end
- end
- -]]
-
end),
awful.key({ modkey, }, "d",
function (c)
@@ -632,6 +587,7 @@ clientkeys = awful.util.table.join(
awful.key({ modkey, }, "m",
function (c)
c.maximized = not c.maximized
+-- Alternative :
-- c.maximized_horizontal = not c.maximized_horizontal
-- c.maximized_vertical = not c.maximized_vertical
end),
@@ -642,13 +598,6 @@ clientkeys = awful.util.table.join(
-- 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.key({ modkey, "Control" }, "Menu",
@@ -856,18 +805,10 @@ awful.rules.rules = {
- -- awful.util.spawn_with_shell("volumeicon")
---awful.util.spawn_with_shell("nitrogen --restore")
- -- awful.util.spawn_with_shell("setxkbmap fr")
--- awful.util.spawn_with_shell("sleep 5; conky &")
awful.util.spawn_with_shell("xbindkeys")
awful.util.spawn_with_shell("autoWall")
awful.util.spawn_with_shell("setxkbmap -option grab:break_actions")
- -- awful.util.spawn_with_shell("setxkbmap -option grp:menu_toggle 'fr,us, dvorak'")
--- awful.util.spawn_with_shell("sleep 5; conky &")
- -- awful.util.spawn_with_shell("setxkbmap fr")
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/themes/customII/theme.lua b/themes/customII/theme.lua
index 7757e3d..f44b3bb 100644
--- a/themes/customII/theme.lua
+++ b/themes/customII/theme.lua
@@ -9,7 +9,6 @@ local theme = {}
theme.confdir = os.getenv("HOME") .. "/.config/awesome/themes/customII"
---theme.wallpaper_cmd = { "nitrogen --set-auto /mnt/Archive/NoDouble/H_3003.jpg" }
theme.font = "GohuFont Powerline Bold 8"
--theme.taglist_font =