Awesome: fixed some shortcuts.

Emacs: fixed MediaWiki shortcuts and set default browser to be Luakit.
master
Ambrevar 2012-07-20 14:10:18 +01:00
parent 67af066e2d
commit 5c2c6abbd7
3 changed files with 37 additions and 20 deletions

View File

@ -277,7 +277,7 @@ globalkeys = awful.util.table.join(
awful.key({ }, "XF86Terminal", function () awful.util.spawn("urxvt") end), awful.key({ }, "XF86Terminal", function () awful.util.spawn("urxvt") end),
-- Calc -- Calc
awful.key({ modkey, }, "c", function () awful.util.spawn(termcmd .. "calc") end), awful.key({ modkey, }, "b", function () awful.util.spawn(termcmd .. "calc") end),
awful.key({ }, "XF86Calculator", function () awful.util.spawn(termcmd .. "calc") end), awful.key({ }, "XF86Calculator", function () awful.util.spawn(termcmd .. "calc") end),
-- File browser -- File browser
@ -330,8 +330,8 @@ globalkeys = awful.util.table.join(
awful.key({ "Mod1" }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set PCM 5%- >/dev/null") end), awful.key({ "Mod1" }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set PCM 5%- >/dev/null") end),
-- Touchpad -- Touchpad
awful.key({ }, "XF86TouchpadToggle", function () awful.util.spawn("synclient TouchpadOff=`synclient -l | grep -c 'TouchpadOff.*=.*0'`") end), awful.key({ }, "XF86TouchpadToggle", function () os.execute("synclient TouchpadOff=`synclient -l | grep -c 'TouchpadOff.*=.*0'`") end),
-- awful.key({ }, "XF86Tool", function () awful.util.spawn("synclient TouchpadOff=`synclient -l | grep -c 'TouchpadOff.*=.*0'`") end), -- awful.key({ }, "XF86Tool", function () os.execute("synclient TouchpadOff=`synclient -l | grep -c 'TouchpadOff.*=.*0'`") end),
-- Mouse control -- Mouse control
-- 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.
@ -379,10 +379,10 @@ globalkeys = awful.util.table.join(
end), end),
-- Layout resize -- Layout resize
awful.key({ modkey, "Mod1" }, "Up", function () awful.tag.incmwfact( 0.05) end), awful.key({ modkey, "Mod1" }, "Left", function () awful.tag.incmwfact(-0.05) end),
awful.key({ modkey, "Mod1" }, "Down", function () awful.tag.incmwfact(-0.05) end), awful.key({ modkey, "Mod1" }, "Right", function () awful.tag.incmwfact(0.05) end),
awful.key({ modkey, "Mod1" }, "Left", function () awful.client.incwfact(-0.05) end), awful.key({ modkey, "Mod1" }, "Up", function () awful.client.incwfact(0.05) end),
awful.key({ modkey, "Mod1" }, "Right", function () awful.client.incwfact( 0.05) end), awful.key({ modkey, "Mod1" }, "Down", function () awful.client.incwfact(-0.05) end),
-- Floating clients move and resize -- Floating clients move and resize
awful.key({ modkey , "Mod1"}, "j", function () awful.client.moveresize( 20, 20, -40, -40) end), awful.key({ modkey , "Mod1"}, "j", function () awful.client.moveresize( 20, 20, -40, -40) end),
@ -393,10 +393,10 @@ globalkeys = awful.util.table.join(
awful.key({ modkey }, "l", function () awful.client.moveresize( 20, 0, 0, 0) end), awful.key({ modkey }, "l", function () awful.client.moveresize( 20, 0, 0, 0) end),
-- Layout organization -- Layout organization
awful.key({ modkey, "Control" }, "Up", function () awful.tag.incnmaster( 1) end), awful.key({ modkey, "Control" }, "Left", function () awful.tag.incnmaster( 1) end),
awful.key({ modkey, "Control" }, "Down", function () awful.tag.incnmaster(-1) end), awful.key({ modkey, "Control" }, "Right", function () awful.tag.incnmaster(-1) end),
awful.key({ modkey, "Control" }, "Left", function () awful.tag.incncol( 1) end), awful.key({ modkey, "Control" }, "Up", function () awful.tag.incncol( 1) end),
awful.key({ modkey, "Control" }, "Right", function () awful.tag.incncol(-1) end), awful.key({ modkey, "Control" }, "Down", function () awful.tag.incncol(-1) end),
awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end), awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end), awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
@ -465,18 +465,19 @@ for i = 1, keynumber do
awful.tag.viewtoggle(tags[screen][i]) awful.tag.viewtoggle(tags[screen][i])
end end
end), end),
awful.key({ modkey, "Shift" }, "#" .. i + 9, awful.key({ modkey, "Mod1" }, "#" .. i + 9,
function () function ()
if client.focus and tags[client.focus.screen][i] then if client.focus and tags[client.focus.screen][i] then
awful.client.movetotag(tags[client.focus.screen][i]) awful.client.movetotag(tags[client.focus.screen][i])
end end
end), end)
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, )
function () -- awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
if client.focus and tags[client.focus.screen][i] then -- function ()
awful.client.toggletag(tags[client.focus.screen][i]) -- if client.focus and tags[client.focus.screen][i] then
end -- awful.client.toggletag(tags[client.focus.screen][i])
end)) -- end
-- end)
end end
clientbuttons = awful.util.table.join( clientbuttons = awful.util.table.join(

14
.emacs
View File

@ -81,6 +81,10 @@
;; Man-mode ;; Man-mode
(setenv "MANWIDTH" "80") (setenv "MANWIDTH" "80")
;; Browser
(setq browse-url-generic-program (executable-find "luakit")
browse-url-browser-function 'browse-url-generic)
;;============================================================================== ;;==============================================================================
;; Theme ;; Theme
;;============================================================================== ;;==============================================================================
@ -572,6 +576,7 @@ the line."
;;============================================================================== ;;==============================================================================
;; MediaWiki ;; MediaWiki
;;============================================================================== ;;==============================================================================
(require 'mediawiki) (require 'mediawiki)
;; TODO: make it 'customize' independant. ;; TODO: make it 'customize' independant.
@ -582,6 +587,13 @@ the line."
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(mediawiki-site-alist (quote (("Wikipedia" "http://en.wikipedia.org/w/" "Ambrevar" "" "Main Page") ("Wikibooks" "http://en.wikibooks.org/w/" "Ambrevar" "" "LaTeX") ("ArchLinux" "https://wiki.archlinux.org/" "Ambrevar" "" "Mutt"))))) '(mediawiki-site-alist (quote (("Wikipedia" "http://en.wikipedia.org/w/" "Ambrevar" "" "Main Page") ("Wikibooks" "http://en.wikibooks.org/w/" "Ambrevar" "" "LaTeX") ("ArchLinux" "https://wiki.archlinux.org/" "Ambrevar" "" "Mutt")))))
;;==============================================================================
(setq mediawiki-mode-hook (lambda ()
(visual-line-mode 1)
(turn-off-auto-fill)
))
;;=============================================================================↑=
;;============================================================================== ;;==============================================================================
;; ;;

4
README
View File

@ -147,11 +147,13 @@ gdb
gimp gimp
gnumeric gnumeric
gnuplot gnuplot
gpicview
handbrake handbrake
hdparm hdparm
help2man help2man
highlight highlight
htop htop
imagemagick
inkscape inkscape
irssi irssi
lrzip lrzip
@ -172,6 +174,7 @@ openshot
openssh openssh
p7zip p7zip
pari pari
pdfinfo
pidgin pidgin
pwgen pwgen
pwsafe pwsafe
@ -192,6 +195,7 @@ tcpdump
texlive texlive
trash-cli trash-cli
tree tree
udiskie
valgrind valgrind
vim vim
vlock vlock