parent
ffa6b50281
commit
77912ddfac
|
@ -264,6 +264,9 @@ root.buttons(awful.util.table.join(
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- CUSTOM
|
-- CUSTOM
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
-- Mouse control
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
-- set the desired pixel coordinates:
|
-- set the desired pixel coordinates:
|
||||||
local safeCoords = {x=0, y=0}
|
local safeCoords = {x=0, y=0}
|
||||||
-- Flag to tell Awesome whether to do this at startup.
|
-- Flag to tell Awesome whether to do this at startup.
|
||||||
|
@ -274,11 +277,9 @@ local function moveMouseAway(x_co, y_co)
|
||||||
mouse.coords({ x=x_co, y=y_co })
|
mouse.coords({ x=x_co, y=y_co })
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Does not work
|
|
||||||
local function moveMouse(x_co, y_co)
|
local function moveMouse(x_co, y_co)
|
||||||
t=mouse.coords()
|
t=mouse.coords()
|
||||||
-- t is 'nil', why?
|
mouse.coords( {x = t.x + x_co, y = t.y + y_co} )
|
||||||
-- mouse.coords( {x=t[1], y=t[2]} )
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Optionally move the mouse when rc.lua is read (startup)
|
-- Optionally move the mouse when rc.lua is read (startup)
|
||||||
|
@ -300,7 +301,10 @@ globalkeys = awful.util.table.join(
|
||||||
-- Bind ''Meta4+Ctrl+m'' to move the mouse to the coordinates set above.
|
-- Bind ''Meta4+Ctrl+m'' to move the mouse to the coordinates set above.
|
||||||
-- this is useful if you needed the mouse for something and now want it out of the way
|
-- this is useful if you needed the mouse for something and now want it out of the way
|
||||||
awful.key({ modkey, "Control" }, "m", function() moveMouseAway(safeCoords.x, safeCoords.y) end),
|
awful.key({ modkey, "Control" }, "m", function() moveMouseAway(safeCoords.x, safeCoords.y) end),
|
||||||
awful.key({ modkey, "Control" }, "h", function() moveMouse(5, 0) end),
|
awful.key({ modkey, "Control" }, "h", function() moveMouse(-5, 0) end),
|
||||||
|
awful.key({ modkey, "Control" }, "j", function() moveMouse(0, 5) end),
|
||||||
|
awful.key({ modkey, "Control" }, "k", function() moveMouse(0, -5) end),
|
||||||
|
awful.key({ modkey, "Control" }, "l", function() moveMouse(5, 0) end),
|
||||||
|
|
||||||
|
|
||||||
awful.key({ modkey, "Mod1" }, "a", function () awful.util.spawn("cmus-remote -u") end),
|
awful.key({ modkey, "Mod1" }, "a", function () awful.util.spawn("cmus-remote -u") end),
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
[ -d /usr/share/awesome/themes/default ] && cp -rn "/usr/share/awesome/themes/default/*" "${HOME}/.config/awesome/themes/custom/"
|
[ -d /usr/share/awesome/themes/default ] && cp -rn "/usr/share/awesome/themes/default/" "${HOME}/.config/awesome/themes/custom"
|
||||||
|
|
2
.save
2
.save
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
################################################################################
|
################################################################################
|
||||||
## Home Config Backup Script
|
## Home Config Backup Script
|
||||||
## 2012-05-12
|
## 2012-06-15
|
||||||
################################################################################
|
################################################################################
|
||||||
## Note for Zsh: because of the KSH-style arrays (index starting at 0), the
|
## Note for Zsh: because of the KSH-style arrays (index starting at 0), the
|
||||||
## KSH_ARRAYS option must be used.
|
## KSH_ARRAYS option must be used.
|
||||||
|
|
79
README
79
README
|
@ -1 +1,78 @@
|
||||||
Work in progress.
|
###########################
|
||||||
|
# Unix Home Configuration #
|
||||||
|
###########################
|
||||||
|
Author: Ambrevar
|
||||||
|
Date: 2012-06-18
|
||||||
|
Target distribution: Arch Linux (might work for most Unices as well)
|
||||||
|
|
||||||
|
Synopsis
|
||||||
|
********
|
||||||
|
This repository contains configuration files for various Unix-programs.
|
||||||
|
|
||||||
|
Generic Comments
|
||||||
|
****************
|
||||||
|
There is no use in blind-copying the content of any file into your personal home
|
||||||
|
folder. At best it might break things. The only purpose is to be a source of
|
||||||
|
inspiration. Examples are always a good tehcnical support. (Especially for
|
||||||
|
applications that do not provide examples in their documentation.)
|
||||||
|
|
||||||
|
In case you still want to copy some files -- for bare testing -- do not forget
|
||||||
|
that most of the files are in hidden folders. Also note that in some shells,
|
||||||
|
the '*' joker will NOT match hidden files, that is
|
||||||
|
|
||||||
|
cp -r source-dir/* dest-dir/
|
||||||
|
|
||||||
|
will copy non-hidden folders only. To match all folders, use the following
|
||||||
|
joker instead:
|
||||||
|
|
||||||
|
cp -r source-dir/.??* dest-dir/
|
||||||
|
|
||||||
|
Some applications will need extra dependencies other than the default ones. You
|
||||||
|
might have a look at the .arch-pkg-explicit* files to see what software I've
|
||||||
|
been using.
|
||||||
|
|
||||||
|
Final word: do not forget to read the manpages!
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
Shell
|
||||||
|
*****
|
||||||
|
Target: zsh, bash
|
||||||
|
|
||||||
|
Probably the most interesting part here. A lot of stuff: aliases, functions,
|
||||||
|
shell options, etc.
|
||||||
|
|
||||||
|
Please note that this config is mainly intended--and tested--for zsh. It should
|
||||||
|
be mostly bash-compatible though. When incompabilities have been encountered,
|
||||||
|
it has been reported in the configuration files. Hence the shared folder
|
||||||
|
.shell.d/, whose files get sourced by both bash and zsh. Bash-specific and
|
||||||
|
zsh-specific options are in dedicated files ending with the apropriate shell
|
||||||
|
name.
|
||||||
|
|
||||||
|
Vim
|
||||||
|
***
|
||||||
|
I've only been a casual Vim user, so do not expect to much from it.
|
||||||
|
|
||||||
|
WMFS
|
||||||
|
****
|
||||||
|
The last time I used WMFS, the development was in a transition from version 1.x
|
||||||
|
to 2.x. So beware!, configuration files might be quite broken.
|
||||||
|
|
||||||
|
Awesome
|
||||||
|
*******
|
||||||
|
Extra deps: Vicious
|
||||||
|
|
||||||
|
Configuration is very close to the default one, which mostly fits my needs.
|
||||||
|
Most of the work I've done is for the status bar, but since I'm using the
|
||||||
|
Vicious plugin, it has not been a tremendous task.
|
||||||
|
|
||||||
|
Emacs
|
||||||
|
*****
|
||||||
|
Extra deps: auctex, auto-complete, emacs-lua-mode, emacs-yasnippet,
|
||||||
|
emacs-yasnippet-latex-git
|
||||||
|
|
||||||
|
Not much personal work, mostly use of plugins. Still very powerful.
|
||||||
|
|
||||||
|
Scripts
|
||||||
|
*******
|
||||||
|
.save archives the home configuration.
|
||||||
|
|
Loading…
Reference in New Issue