template: modified clipboard keys

This commit is contained in:
copycat-killer 2017-01-28 21:45:39 +01:00
parent 2ce94d0fb6
commit be7dd58c7b
3 changed files with 17 additions and 13 deletions

View File

@ -81,13 +81,17 @@ Installation
$ git clone -b modular --recursive https://github.com/copycat-killer/awesome-copycats.git
$ mv -bv awesome-copycats/* ~/.config/awesome; rm -r awesome-copycats
$ cd ~/.config/awesome
$ cp rc.lua.template rc.lua
Usage
=====
Set the variable ``chosen_theme`` in ``rc.lua`` to your preferred theme and restart Awesome (``Mod4 + ctrl + r``).
::
$ cd ~/.config/awesome
$ cp rc.lua.template rc.lua
Then, set the variable ``chosen_theme`` in ``rc.lua`` to your preferred theme and restart Awesome (``Mod4 + ctrl + r``).
To customize a theme, head over ``themes/$chosen_teme/theme.lua``.
Notes
=====

2
lain

@ -1 +1 @@
Subproject commit 1b428513fdede06ef54679edbfd267534f49659e
Subproject commit 08b9a76662135b39da0f8aed35aa78932e1b43da

View File

@ -65,7 +65,6 @@ local terminal = "urxvtc" or "xterm"
local editor = os.getenv("EDITOR") or "nano" or "vi"
local gui_editor = "gvim"
local browser = "firefox"
local graphics = "gimp"
awful.util.terminal = terminal
awful.util.tagnames = { "web", "term", "docs", "media", "files", "other" }
@ -378,33 +377,34 @@ globalkeys = awful.util.table.join(
-- MPD control
awful.key({ altkey, "Control" }, "Up",
function ()
awful.spawn.with_shell("mpc toggle || ncmpc toggle || pms toggle")
awful.spawn.with_shell("mpc toggle")
beautiful.mpd.update()
end),
awful.key({ altkey, "Control" }, "Down",
function ()
awful.spawn.with_shell("mpc stop || ncmpc stop || pms stop")
awful.spawn.with_shell("mpc stop")
beautiful.mpd.update()
end),
awful.key({ altkey, "Control" }, "Left",
function ()
awful.spawn.with_shell("mpc prev || ncmpc prev || pms prev")
awful.spawn.with_shell("mpc prev")
beautiful.mpd.update()
end),
awful.key({ altkey, "Control" }, "Right",
function ()
awful.spawn.with_shell("mpc next || ncmpc next || pms next")
awful.spawn.with_shell("mpc next")
beautiful.mpd.update()
end),
--]]
-- Copy primary to clipboard
awful.key({ modkey }, "c", function () os.execute("xsel | xsel -b") end),
-- Copy primary to clipboard (terminals to gtk)
awful.key({ modkey }, "c", function () awful.spawn("xsel | xsel -i -b") end),
-- Copy clipboard to primary (gtk to terminals)
awful.key({ modkey }, "v", function () awful.spawn("xsel -b | xsel") end),
-- User programs
awful.key({ modkey }, "q", function () awful.spawn(browser) end),
awful.key({ modkey }, "e", function () awful.spawn(gui_editor) end),
awful.key({ modkey }, "g", function () awful.spawn(graphics) end),
awful.key({ modkey }, "q", function () awful.spawn(browser) end),
-- Default
-- Prompt