mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 11:12:31 +00:00
template: modified clipboard keys
This commit is contained in:
parent
2ce94d0fb6
commit
be7dd58c7b
10
README.rst
10
README.rst
|
@ -81,13 +81,17 @@ Installation
|
||||||
|
|
||||||
$ git clone -b modular --recursive https://github.com/copycat-killer/awesome-copycats.git
|
$ git clone -b modular --recursive https://github.com/copycat-killer/awesome-copycats.git
|
||||||
$ mv -bv awesome-copycats/* ~/.config/awesome; rm -r awesome-copycats
|
$ mv -bv awesome-copycats/* ~/.config/awesome; rm -r awesome-copycats
|
||||||
$ cd ~/.config/awesome
|
|
||||||
$ cp rc.lua.template rc.lua
|
|
||||||
|
|
||||||
Usage
|
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
|
Notes
|
||||||
=====
|
=====
|
||||||
|
|
2
lain
2
lain
|
@ -1 +1 @@
|
||||||
Subproject commit 1b428513fdede06ef54679edbfd267534f49659e
|
Subproject commit 08b9a76662135b39da0f8aed35aa78932e1b43da
|
|
@ -65,7 +65,6 @@ local terminal = "urxvtc" or "xterm"
|
||||||
local editor = os.getenv("EDITOR") or "nano" or "vi"
|
local editor = os.getenv("EDITOR") or "nano" or "vi"
|
||||||
local gui_editor = "gvim"
|
local gui_editor = "gvim"
|
||||||
local browser = "firefox"
|
local browser = "firefox"
|
||||||
local graphics = "gimp"
|
|
||||||
|
|
||||||
awful.util.terminal = terminal
|
awful.util.terminal = terminal
|
||||||
awful.util.tagnames = { "web", "term", "docs", "media", "files", "other" }
|
awful.util.tagnames = { "web", "term", "docs", "media", "files", "other" }
|
||||||
|
@ -378,33 +377,34 @@ globalkeys = awful.util.table.join(
|
||||||
-- MPD control
|
-- MPD control
|
||||||
awful.key({ altkey, "Control" }, "Up",
|
awful.key({ altkey, "Control" }, "Up",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn.with_shell("mpc toggle || ncmpc toggle || pms toggle")
|
awful.spawn.with_shell("mpc toggle")
|
||||||
beautiful.mpd.update()
|
beautiful.mpd.update()
|
||||||
end),
|
end),
|
||||||
awful.key({ altkey, "Control" }, "Down",
|
awful.key({ altkey, "Control" }, "Down",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn.with_shell("mpc stop || ncmpc stop || pms stop")
|
awful.spawn.with_shell("mpc stop")
|
||||||
beautiful.mpd.update()
|
beautiful.mpd.update()
|
||||||
end),
|
end),
|
||||||
awful.key({ altkey, "Control" }, "Left",
|
awful.key({ altkey, "Control" }, "Left",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn.with_shell("mpc prev || ncmpc prev || pms prev")
|
awful.spawn.with_shell("mpc prev")
|
||||||
beautiful.mpd.update()
|
beautiful.mpd.update()
|
||||||
end),
|
end),
|
||||||
awful.key({ altkey, "Control" }, "Right",
|
awful.key({ altkey, "Control" }, "Right",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn.with_shell("mpc next || ncmpc next || pms next")
|
awful.spawn.with_shell("mpc next")
|
||||||
beautiful.mpd.update()
|
beautiful.mpd.update()
|
||||||
end),
|
end),
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
-- Copy primary to clipboard
|
-- Copy primary to clipboard (terminals to gtk)
|
||||||
awful.key({ modkey }, "c", function () os.execute("xsel | xsel -b") end),
|
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
|
-- User programs
|
||||||
awful.key({ modkey }, "q", function () awful.spawn(browser) end),
|
|
||||||
awful.key({ modkey }, "e", function () awful.spawn(gui_editor) 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
|
-- Default
|
||||||
-- Prompt
|
-- Prompt
|
||||||
|
|
Loading…
Reference in a new issue