URxvt: init config. Used by default.
Awesome: uses URxvt. Many shortcuts for layout (move, resize, master/slave). Terminal: colors, shortcuts, properties (WIP). xinit: fix xrdb bug.master
parent
b6dae2fd8e
commit
e4ccf6030e
167
.Xresources
167
.Xresources
|
@ -1,88 +1,131 @@
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
!! Xresources
|
!! Xresources
|
||||||
!! 2011-10-25
|
!! 2012-07-12
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
! vim:nu:ai:si:et:ts=4:sw=4:ft=xdefaults:
|
!! TODO: what is charclass ?
|
||||||
|
!! TODO: prevent URxvt from intercepting ALT+Arrows and PageUp/Down.
|
||||||
|
|
||||||
! Commands : xfontsel
|
!! Xft options
|
||||||
! Colors : LightYellow Black
|
! Xft.hinting: true
|
||||||
|
! Xft.hintstyle: hintfull
|
||||||
|
! Xft.antialias: rgba
|
||||||
|
! Xft.rgba: rgb
|
||||||
|
|
||||||
!xterm*background: black
|
!!------------------------------------------------------------------------------
|
||||||
!xterm*faceName:terminus
|
!!URxvt
|
||||||
!xterm*faceSize:8
|
!!------------------------------------------------------------------------------
|
||||||
!xterm*font:-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*
|
|
||||||
|
|
||||||
! -------------------------------------------------
|
URxvt*saveLines: 1000
|
||||||
! terminal colors
|
URxvt*scrollBar: false
|
||||||
! -------------------------------------------------
|
|
||||||
|
|
||||||
!tangoesque scheme
|
!! URL Support
|
||||||
|
URxvt.perl-ext-common : default,matcher
|
||||||
|
URxvt.matcher.button : 1
|
||||||
|
URxvt.keysym.C-Delete : perl:matcher:last
|
||||||
|
URxvt.keysym.M-Delete : perl:matcher:list
|
||||||
|
URxvt.urlLauncher : luakit
|
||||||
|
URxvt.underlineURLs : true
|
||||||
|
|
||||||
|
!! Font
|
||||||
|
! URxvt*letterSpace: -1
|
||||||
|
|
||||||
|
URxvt*font : xft:Monospace:pixelsize=14
|
||||||
|
URxvt*boldFont : xft:Monospace:bold:pixelsize=14
|
||||||
|
! URxvt.font : xft:Bitstream Vera Sans Mono:pixelsize=14
|
||||||
|
! URxvt.font : -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1
|
||||||
|
! URxvt.font : -*-dina-medium-r-*-*-16-*-*-*-*-*-*-*
|
||||||
|
! URxvt.font : xft:DejaVu Sans Mono:pixelsize=12
|
||||||
|
! URxvt.font : xft:Monospace 10:pixelsize=12
|
||||||
|
! URxvt.font : xft:Monospace:pixelsize=12
|
||||||
|
! URxvt.font : xft:monaco:size=10
|
||||||
|
! URxvt*boldFont : xft:Monospace Bold:pixelsize=12
|
||||||
|
|
||||||
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
!! Styles
|
||||||
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
|
!! Colors list
|
||||||
|
!! color0 = black
|
||||||
|
!! color1 = red
|
||||||
|
!! color2 = green
|
||||||
|
!! color3 = yellow
|
||||||
|
!! color4 = blue
|
||||||
|
!! color5 = magenta
|
||||||
|
!! color6 = cyan
|
||||||
|
!! color7 = white
|
||||||
|
!! color8 = bright black
|
||||||
|
!! color9 = bright red
|
||||||
|
!! color10 = bright green
|
||||||
|
!! color11 = bright yellow
|
||||||
|
!! color12 = bright blue
|
||||||
|
!! color13 = bright magenta
|
||||||
|
!! color14 = bright cyan
|
||||||
|
!! color15 = bright white
|
||||||
|
|
||||||
|
!! Gnome style
|
||||||
|
URxvt*background: black
|
||||||
|
URxvt*foreground: #CCCCCC
|
||||||
|
URxvt.color0 : #000000
|
||||||
|
URxvt.color1 : #AA0000
|
||||||
|
URxvt.color2 : #00AA00
|
||||||
|
URxvt.color3 : #AA5500
|
||||||
|
URxvt.color4 : #0000AA
|
||||||
|
URxvt.color5 : #AA00AA
|
||||||
|
URxvt.color6 : #00AAAA
|
||||||
|
URxvt.color7 : #AAAAAA
|
||||||
|
URxvt.color8 : #555555
|
||||||
|
URxvt.color9 : #FF5555
|
||||||
|
URxvt.color10 : #55FF55
|
||||||
|
URxvt.color11 : #FFFF55
|
||||||
|
URxvt.color12 : #5555FF
|
||||||
|
URxvt.color13 : #FF55FF
|
||||||
|
URxvt.color14 : #55FFFF
|
||||||
|
URxvt.color15 : #FFFFFF
|
||||||
|
|
||||||
|
!! Dark style
|
||||||
|
! urxvt.color0: rgb:00/00/00
|
||||||
|
! urxvt.color1: rgb:9e/18/28
|
||||||
|
! urxvt.color2: rgb:5c/b2/47
|
||||||
|
! urxvt.color3: rgb:96/8a/38
|
||||||
|
! urxvt.color4: rgb:41/61/a0
|
||||||
|
! urxvt.color5: rgb:9b/76/8e
|
||||||
|
! urxvt.color6: rgb:41/91/89
|
||||||
|
! urxvt.color7: rgb:de/de/de
|
||||||
|
! urxvt.color8: rgb:66/66/66
|
||||||
|
! urxvt.color9: rgb:cf/61/71
|
||||||
|
! urxvt.color10: rgb:c5/f7/79
|
||||||
|
! urxvt.color11: rgb:ff/f7/96
|
||||||
|
! urxvt.color12: rgb:41/86/be
|
||||||
|
! urxvt.color13: rgb:cf/9e/be
|
||||||
|
! urxvt.color14: rgb:71/be/be
|
||||||
|
! urxvt.color15: rgb:dd/dd/dd
|
||||||
|
|
||||||
|
!! Tangoesque style
|
||||||
!*background: #111111
|
!*background: #111111
|
||||||
!*background: #000000
|
!*background: #000000
|
||||||
! *foreground: #babdb6
|
!*foreground: #babdb6
|
||||||
!Black (not tango) + DarkGrey
|
!! Black (not tango) + DarkGrey
|
||||||
! *color0: #000000
|
! *color0: #000000
|
||||||
! *color8: #555753
|
! *color8: #555753
|
||||||
! DarkRed + Red
|
!! DarkRed + Red
|
||||||
! *color1: #ff6565
|
! *color1: #ff6565
|
||||||
! *color9: #ff8d8d
|
! *color9: #ff8d8d
|
||||||
! DarkGreen + Green
|
!! DarkGreen + Green
|
||||||
! *color2: #93d44f
|
! *color2: #93d44f
|
||||||
! *color10: #c8e7a8
|
! *color10: #c8e7a8
|
||||||
! DarkYellow + Yellow
|
!! DarkYellow + Yellow
|
||||||
! *color3: #eab93d
|
! *color3: #eab93d
|
||||||
! *color11: #ffc123
|
! *color11: #ffc123
|
||||||
! DarkBlue + Blue
|
!! DarkBlue + Blue
|
||||||
! *color4: #204a87
|
! *color4: #204a87
|
||||||
! *color12: #3465a4
|
! *color12: #3465a4
|
||||||
! DarkMangenta + Mangenta
|
!! DarkMangenta + Mangenta
|
||||||
! *color5: #ce5c00
|
! *color5: #ce5c00
|
||||||
! *color13: #f57900
|
! *color13: #f57900
|
||||||
!DarkCyan + Cyan (both not tango)
|
!! DarkCyan + Cyan (both not tango)
|
||||||
! *color6: #89b6e2
|
! *color6: #89b6e2
|
||||||
! *color14: #46a4ff
|
! *color14: #46a4ff
|
||||||
! LightGrey + White
|
!! LightGrey + White
|
||||||
! *color7: #cccccc
|
! *color7: #cccccc
|
||||||
! *color15: #ffffff
|
! *color15: #ffffff
|
||||||
!
|
|
||||||
!=================
|
|
||||||
! Urxvt
|
|
||||||
!=================
|
|
||||||
|
|
||||||
urxvt*background: black
|
|
||||||
urxvt*foreground: white
|
|
||||||
urxvt*saveLines: 10000
|
|
||||||
URxvt.font: xft:DejaVu Sans Mono:pixelsize=12
|
|
||||||
! URxvt.font: -*-dina-medium-r-*-*-16-*-*-*-*-*-*-*
|
|
||||||
! URxvt.font: xft:monaco:size=10
|
|
||||||
urxvt*scrollBar:false
|
|
||||||
|
|
||||||
URxvt.perl-ext: default,url-select,tabbed
|
|
||||||
! URxvt.perl-ext-common:
|
|
||||||
URxvt.keysym.M-u: perl:url-select:select_next
|
|
||||||
URxvt.urlLauncher: luakit
|
|
||||||
URxvt.underlineURLs: true
|
|
||||||
|
|
||||||
! urxvt*font: -*-fixed-medium-r-*-*-18-*-*-*-*-*-iso8859-*
|
|
||||||
! urxvt*charClass: 33:48,35:48,37-38:48,43-47:48,58:48,61:48,63-64:48,95:48,126:48
|
|
||||||
! urxvt.perl-ext-common: default,tabbed
|
|
||||||
! urxvt.tabbed.tabbar-fg: 2
|
|
||||||
! urxvt.tabbed.tabbar-bg: 0
|
|
||||||
|
|
||||||
! urxvt.tabbed.tab-bg: 0
|
|
||||||
! urxvt.tabbed.tab-fg: 3
|
|
||||||
|
|
||||||
|
|
||||||
!=================
|
|
||||||
! Xterm
|
|
||||||
!=================
|
|
||||||
|
|
||||||
!xterm*background: black
|
|
||||||
!xterm*saveLines: 10000
|
|
||||||
!xterm*foreground: white
|
|
||||||
!xterm*font: -*-fixed-medium-r-*-*-18-*-*-*-*-*-iso8859-*
|
|
||||||
!xterm*charClass: 33:48,35:48,37-38:48,43-47:48,58:48,61:48,63-64:48,95:48,126:48
|
|
||||||
! xterm*scrollBar:true
|
|
||||||
! xterm*Scrollbar.backgroundPixmap: gradient:horizontal?dimension=14&start=darkgreen&end=pink
|
|
||||||
! xterm*Scrollbar.foregroungPixmap: black
|
|
||||||
|
|
|
@ -3,11 +3,13 @@ bashmount
|
||||||
bustle
|
bustle
|
||||||
dropbox
|
dropbox
|
||||||
dropbox-cli
|
dropbox-cli
|
||||||
|
emacs-mediawiki-bzr
|
||||||
emacs-yasnippet
|
emacs-yasnippet
|
||||||
gsharkdown
|
gsharkdown
|
||||||
movgrab
|
movgrab
|
||||||
package-query
|
package-query
|
||||||
pacman-color
|
pacman-color
|
||||||
|
rxvt-unicode-patched
|
||||||
trash-cli
|
trash-cli
|
||||||
urlview
|
urlview
|
||||||
yaourt
|
yaourt
|
||||||
|
|
|
@ -19,6 +19,8 @@ bustle
|
||||||
bzip2
|
bzip2
|
||||||
bzr
|
bzr
|
||||||
calc
|
calc
|
||||||
|
catdvi
|
||||||
|
ccrypt
|
||||||
cmus
|
cmus
|
||||||
consolekit
|
consolekit
|
||||||
coreutils
|
coreutils
|
||||||
|
@ -38,9 +40,11 @@ dropbox
|
||||||
dropbox-cli
|
dropbox-cli
|
||||||
e2fsprogs
|
e2fsprogs
|
||||||
emacs-lua-mode
|
emacs-lua-mode
|
||||||
|
emacs-mediawiki-bzr
|
||||||
emacs-nox
|
emacs-nox
|
||||||
emacs-yasnippet
|
emacs-yasnippet
|
||||||
fakeroot
|
fakeroot
|
||||||
|
fbv
|
||||||
feh
|
feh
|
||||||
file
|
file
|
||||||
filesystem
|
filesystem
|
||||||
|
@ -132,7 +136,7 @@ python2-udiskie
|
||||||
ranger
|
ranger
|
||||||
reiserfsprogs
|
reiserfsprogs
|
||||||
rtorrent
|
rtorrent
|
||||||
rxvt-unicode
|
rxvt-unicode-patched
|
||||||
scrot
|
scrot
|
||||||
sdparm
|
sdparm
|
||||||
sed
|
sed
|
||||||
|
@ -148,6 +152,7 @@ sysvinit
|
||||||
tar
|
tar
|
||||||
task
|
task
|
||||||
tcpdump
|
tcpdump
|
||||||
|
texi2html
|
||||||
texinfo
|
texinfo
|
||||||
texlive-genericextra
|
texlive-genericextra
|
||||||
texlive-latexextra
|
texlive-latexextra
|
||||||
|
|
|
@ -31,6 +31,8 @@ ca-certificates
|
||||||
cairo
|
cairo
|
||||||
cairomm
|
cairomm
|
||||||
calc
|
calc
|
||||||
|
catdvi
|
||||||
|
ccrypt
|
||||||
cdparanoia
|
cdparanoia
|
||||||
cloog
|
cloog
|
||||||
cmus
|
cmus
|
||||||
|
@ -78,6 +80,7 @@ faac
|
||||||
faad2
|
faad2
|
||||||
fakeroot
|
fakeroot
|
||||||
farstream
|
farstream
|
||||||
|
fbv
|
||||||
feh
|
feh
|
||||||
ffmpeg
|
ffmpeg
|
||||||
fftw
|
fftw
|
||||||
|
@ -166,6 +169,7 @@ initscripts
|
||||||
inkscape
|
inkscape
|
||||||
inputproto
|
inputproto
|
||||||
intel-dri
|
intel-dri
|
||||||
|
intltool
|
||||||
iproute2
|
iproute2
|
||||||
iptables
|
iptables
|
||||||
iputils
|
iputils
|
||||||
|
@ -390,6 +394,7 @@ pcre
|
||||||
perl
|
perl
|
||||||
perl-error
|
perl-error
|
||||||
perl-locale-gettext
|
perl-locale-gettext
|
||||||
|
perl-xml-parser
|
||||||
pidgin
|
pidgin
|
||||||
pinentry
|
pinentry
|
||||||
pixman
|
pixman
|
||||||
|
@ -431,7 +436,6 @@ rsync
|
||||||
rtmpdump
|
rtmpdump
|
||||||
rtorrent
|
rtorrent
|
||||||
run-parts
|
run-parts
|
||||||
rxvt-unicode
|
|
||||||
schroedinger
|
schroedinger
|
||||||
scrnsaverproto
|
scrnsaverproto
|
||||||
scrot
|
scrot
|
||||||
|
@ -458,6 +462,7 @@ t1lib
|
||||||
tar
|
tar
|
||||||
task
|
task
|
||||||
tcpdump
|
tcpdump
|
||||||
|
texi2html
|
||||||
texinfo
|
texinfo
|
||||||
texlive-bin
|
texlive-bin
|
||||||
texlive-core
|
texlive-core
|
||||||
|
|
|
@ -268,12 +268,13 @@ end
|
||||||
-- Note that some laptop will not work when pressing Super+Fn.
|
-- Note that some laptop will not work when pressing Super+Fn.
|
||||||
-- Therefore we only use Fn and Mod1+Fn.
|
-- Therefore we only use Fn and Mod1+Fn.
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
termcmd = "lxterminal -e "
|
-- termcmd = "lxterminal -e "
|
||||||
|
termcmd = "urxvt -e "
|
||||||
|
|
||||||
globalkeys = awful.util.table.join(
|
globalkeys = awful.util.table.join(
|
||||||
-- Terminal
|
-- Terminal
|
||||||
awful.key({ modkey, }, "Return", function () awful.util.spawn("lxterminal") end),
|
awful.key({ modkey, }, "Return", function () awful.util.spawn("urxvt") end),
|
||||||
awful.key({ }, "XF86Terminal", function () awful.util.spawn("lxterminal") 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, }, "c", function () awful.util.spawn(termcmd .. "calc") end),
|
||||||
|
@ -285,7 +286,7 @@ globalkeys = awful.util.table.join(
|
||||||
awful.key({ }, "XF86MyComputer", function () awful.util.spawn(termcmd .. "ranger") end),
|
awful.key({ }, "XF86MyComputer", function () awful.util.spawn(termcmd .. "ranger") end),
|
||||||
|
|
||||||
-- Screen lock
|
-- Screen lock
|
||||||
awful.key({ modkey, }, "l", function () awful.util.spawn("slock") end),
|
awful.key({ modkey, }, "s", function () awful.util.spawn("slock") end),
|
||||||
awful.key({ }, "XF86ScreenSaver", function () awful.util.spawn("slock") end),
|
awful.key({ }, "XF86ScreenSaver", function () awful.util.spawn("slock") end),
|
||||||
awful.key({ }, "XF86Sleep", function () awful.util.spawn("slock") end),
|
awful.key({ }, "XF86Sleep", function () awful.util.spawn("slock") end),
|
||||||
awful.key({ }, "XF86Standby", function () awful.util.spawn("slock") end),
|
awful.key({ }, "XF86Standby", function () awful.util.spawn("slock") end),
|
||||||
|
@ -294,7 +295,7 @@ globalkeys = awful.util.table.join(
|
||||||
awful.key({ modkey, }, "p", function () awful.util.spawn("zathura") end),
|
awful.key({ modkey, }, "p", function () awful.util.spawn("zathura") end),
|
||||||
|
|
||||||
-- Mail user agent
|
-- Mail user agent
|
||||||
awful.key({ modkey, }, "t", function () awful.util.spawn(termcmd .. "mutt") end),
|
awful.key({ modkey, }, "m", function () awful.util.spawn(termcmd .. "mutt") end),
|
||||||
awful.key({ }, "XF86Mail", function () awful.util.spawn(termcmd .. "mutt") end),
|
awful.key({ }, "XF86Mail", function () awful.util.spawn(termcmd .. "mutt") end),
|
||||||
|
|
||||||
-- Web browser
|
-- Web browser
|
||||||
|
@ -313,29 +314,33 @@ globalkeys = awful.util.table.join(
|
||||||
awful.key({ }, "XF86AudioPrev", function () awful.util.spawn("cmus-remote -r") end),
|
awful.key({ }, "XF86AudioPrev", function () awful.util.spawn("cmus-remote -r") end),
|
||||||
|
|
||||||
-- Screenshot
|
-- Screenshot
|
||||||
awful.key({}, "Print", function () awful.util.spawn("scrot '%Y-%m-%d-%H%M%S_$wx$h.png' -e 'mkdir -p ~/temp && mv $f ~/temp/'") end),
|
awful.key({}, "Print", function () awful.util.spawn("scrot 'screen-%Y-%m-%d-%H%M%S.png' -e 'mkdir -p ~/temp && mv $f ~/temp/'") end),
|
||||||
|
|
||||||
-- Sound Volume
|
-- Sound Volume
|
||||||
awful.key({ modkey, }, "KP_Subtract", function () awful.util.spawn("amixer set Master 5%- >/dev/null") end),
|
awful.key({ modkey, }, "KP_Subtract", function () awful.util.spawn("amixer set Master 5%- >/dev/null") end),
|
||||||
awful.key({ modkey, }, "KP_Add", function () awful.util.spawn("amixer set Master 5%+ >/dev/null") end),
|
awful.key({ modkey, }, "KP_Add", function () awful.util.spawn("amixer set Master 5%+ >/dev/null") end),
|
||||||
awful.key({ modkey, }, "KP_Enter", function () awful.util.spawn("amixer set Master toggle >/dev/null") end),
|
awful.key({ modkey, }, "KP_Enter", function () awful.util.spawn("amixer set Master toggle >/dev/null") end),
|
||||||
awful.key({ modkey, "Mod1" }, "KP_Subtract", function () awful.util.spawn("amixer set PCM 5%- >/dev/null") end),
|
awful.key({ modkey, "Mod1" }, "KP_Subtract", function () awful.util.spawn("amixer set PCM 5%- >/dev/null") end),
|
||||||
awful.key({ modkey, "Mod1" }, "KP_Add", function () awful.util.spawn("amixer set PCM 5%+ >/dev/null") end),
|
awful.key({ modkey, "Mod1" }, "KP_Add", function () awful.util.spawn("amixer set PCM 5%+ >/dev/null") end),
|
||||||
|
|
||||||
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 5%+ >/dev/null") end),
|
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 5%+ >/dev/null") end),
|
||||||
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 5%- >/dev/null") end),
|
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 5%- >/dev/null") end),
|
||||||
awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer set Master toggle >/dev/null") end),
|
awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer set Master toggle >/dev/null") end),
|
||||||
awful.key({ "Mod1" }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set PCM 5%+ >/dev/null") end),
|
awful.key({ "Mod1" }, "XF86AudioRaiseVolume", 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),
|
awful.key({ "Mod1" }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set PCM 5%- >/dev/null") end),
|
||||||
|
|
||||||
|
-- Touchpad
|
||||||
|
awful.key({ }, "XF86TouchpadToggle", function () awful.util.spawn("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),
|
||||||
|
|
||||||
-- 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.
|
||||||
-- 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" }, "j", function() moveMouse(0, 5) end),
|
||||||
awful.key({ modkey, "Control" }, "k", 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, "Control" }, "l", function() moveMouse(5, 0) end),
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
-- Awesome specific
|
-- Awesome specific
|
||||||
|
@ -346,46 +351,56 @@ globalkeys = awful.util.table.join(
|
||||||
awful.key({ modkey, "Shift" }, "q", awesome.quit),
|
awful.key({ modkey, "Shift" }, "q", awesome.quit),
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
awful.key({ modkey, }, "Prior", awful.tag.viewprev ),
|
awful.key({ modkey }, "Prior", awful.tag.viewprev ),
|
||||||
awful.key({ modkey, }, "Next", awful.tag.viewnext ),
|
awful.key({ modkey }, "Next", awful.tag.viewnext ),
|
||||||
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
|
awful.key({ modkey }, "Escape", awful.tag.history.restore),
|
||||||
|
|
||||||
-- Layout manipulation
|
-- Layout select and switch
|
||||||
awful.key({ modkey, "Mod1" }, "Right", function () awful.client.swap.byidx( 1) end),
|
awful.key({ modkey }, "Up", function () awful.client.swap.byidx( 1) end),
|
||||||
awful.key({ modkey, "Mod1" }, "Left", function () awful.client.swap.byidx( -1) end),
|
awful.key({ modkey }, "Down", function () awful.client.swap.byidx( -1) end),
|
||||||
-- awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
|
-- awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
|
||||||
-- awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
|
awful.key({ modkey }, "Tab",
|
||||||
awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
|
function ()
|
||||||
awful.key({ modkey, }, "Tab",
|
awful.client.focus.history.previous()
|
||||||
function ()
|
if client.focus then
|
||||||
awful.client.focus.history.previous()
|
client.focus:raise()
|
||||||
if client.focus then
|
end
|
||||||
client.focus:raise()
|
end),
|
||||||
end
|
|
||||||
end),
|
|
||||||
|
|
||||||
awful.key({ modkey, }, "Right",
|
awful.key({ modkey }, "Right",
|
||||||
function ()
|
function ()
|
||||||
awful.client.focus.byidx( 1)
|
awful.client.focus.byidx( 1)
|
||||||
if client.focus then client.focus:raise() end
|
if client.focus then client.focus:raise() end
|
||||||
end),
|
end),
|
||||||
awful.key({ modkey, }, "Left",
|
awful.key({ modkey }, "Left",
|
||||||
function ()
|
function ()
|
||||||
awful.client.focus.byidx(-1)
|
awful.client.focus.byidx(-1)
|
||||||
if client.focus then client.focus:raise() end
|
if client.focus then client.focus:raise() end
|
||||||
end),
|
end),
|
||||||
|
|
||||||
awful.key({ modkey,"Shift" }, "Right", function () awful.tag.incmwfact( 0.05) end),
|
-- Layout resize
|
||||||
awful.key({ modkey,"Shift" }, "Left", function () awful.tag.incmwfact(-0.05) end),
|
awful.key({ modkey, "Mod1" }, "Up", function () awful.tag.incmwfact( 0.05) end),
|
||||||
-- awful.key({ modkey, "Shift" }, "Right", function () awful.tag.incnmaster( 1) end),
|
awful.key({ modkey, "Mod1" }, "Down", function () awful.tag.incmwfact(-0.05) end),
|
||||||
-- awful.key({ modkey, "Shift" }, "Left", function () awful.tag.incnmaster(-1) end),
|
awful.key({ modkey, "Mod1" }, "Left", function () awful.client.incwfact(-0.05) end),
|
||||||
-- awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
|
awful.key({ modkey, "Mod1" }, "Right", function () awful.client.incwfact( 0.05) end),
|
||||||
-- awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
|
|
||||||
|
-- Floating clients move and resize
|
||||||
|
awful.key({ modkey , "Mod1"}, "j", function () awful.client.moveresize( 20, 20, -40, -40) end),
|
||||||
|
awful.key({ modkey , "Mod1"}, "k", function () awful.client.moveresize(-20, -20, 40, 40) end),
|
||||||
|
awful.key({ modkey }, "j", function () awful.client.moveresize( 0, 20, 0, 0) end),
|
||||||
|
awful.key({ modkey }, "k", function () awful.client.moveresize( 0, -20, 0, 0) end),
|
||||||
|
awful.key({ modkey }, "h", function () awful.client.moveresize(-20, 0, 0, 0) end),
|
||||||
|
awful.key({ modkey }, "l", function () awful.client.moveresize( 20, 0, 0, 0) end),
|
||||||
|
|
||||||
|
-- Layout organization
|
||||||
|
awful.key({ modkey, "Control" }, "Up", function () awful.tag.incnmaster( 1) end),
|
||||||
|
awful.key({ modkey, "Control" }, "Down", function () awful.tag.incnmaster(-1) end),
|
||||||
|
awful.key({ modkey, "Control" }, "Left", function () awful.tag.incncol( 1) end),
|
||||||
|
awful.key({ modkey, "Control" }, "Right", 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),
|
||||||
|
|
||||||
awful.key({ modkey, "Control" }, "n", awful.client.restore),
|
|
||||||
|
|
||||||
-- Prompt
|
-- Prompt
|
||||||
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
||||||
|
@ -416,8 +431,9 @@ clientkeys = awful.util.table.join(
|
||||||
-- -- minimized, since minimized clients can't have the focus.
|
-- -- minimized, since minimized clients can't have the focus.
|
||||||
-- c.minimized = true
|
-- c.minimized = true
|
||||||
-- end),
|
-- end),
|
||||||
|
-- awful.key({ modkey, "Control" }, "n", awful.client.restore),
|
||||||
|
|
||||||
awful.key({ modkey, }, "m",
|
awful.key({ modkey, "Shift" }, "m",
|
||||||
function (c)
|
function (c)
|
||||||
c.maximized_horizontal = not c.maximized_horizontal
|
c.maximized_horizontal = not c.maximized_horizontal
|
||||||
c.maximized_vertical = not c.maximized_vertical
|
c.maximized_vertical = not c.maximized_vertical
|
||||||
|
@ -482,24 +498,32 @@ awful.rules.rules = {
|
||||||
focus = true,
|
focus = true,
|
||||||
keys = clientkeys,
|
keys = clientkeys,
|
||||||
buttons = clientbuttons } },
|
buttons = clientbuttons } },
|
||||||
|
|
||||||
{ rule = { class = "MPlayer" },
|
{ rule = { class = "MPlayer" },
|
||||||
properties = { floating = true } },
|
properties = { floating = true } },
|
||||||
|
{ rule = { class = "mplayer2" },
|
||||||
|
properties = { floating = true } },
|
||||||
|
|
||||||
{ rule = { class = "pinentry" },
|
{ rule = { class = "pinentry" },
|
||||||
properties = { floating = true } },
|
properties = { floating = true } },
|
||||||
|
|
||||||
{ rule = { class = "Gimp" },
|
{ rule = { class = "Gimp" },
|
||||||
properties = { floating = true } },
|
properties = { floating = true } },
|
||||||
{ rule = { class = "Thunderbird" },
|
|
||||||
properties = { tag = tags[1][7] } },
|
|
||||||
|
|
||||||
|
-- Flash workaround. Does not work?
|
||||||
{ rule = { instance = "plugin-container" },
|
{ rule = { instance = "plugin-container" },
|
||||||
properties = { floating = true } },
|
properties = { floating = true } },
|
||||||
|
|
||||||
{ rule = { instance = "exe" },
|
{ rule = { instance = "exe" },
|
||||||
properties = { floating = true } },
|
properties = { floating = true } },
|
||||||
|
|
||||||
-- TODO: does not work.
|
-- TODO: Only works for terminal with WM_COMMAND property?
|
||||||
|
-- Does not work with LXTerminal.
|
||||||
{ rule = { name = "cmus"},
|
{ rule = { name = "cmus"},
|
||||||
properties = { tag = tags[1][6] } },
|
properties = { tag = tags[1][6] } },
|
||||||
|
{ rule = { name = "mutt"},
|
||||||
|
properties = { tag = tags[1][7] } },
|
||||||
|
|
||||||
}
|
}
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,8 @@ theme.fg_minimize = "#ffffff"
|
||||||
|
|
||||||
theme.border_width = "2"
|
theme.border_width = "2"
|
||||||
theme.border_normal = "#222222"
|
theme.border_normal = "#222222"
|
||||||
theme.border_focus = "#535d6c"
|
-- theme.border_focus = "#535d6c"
|
||||||
|
theme.border_focus = "#BFBFBF"
|
||||||
theme.border_marked = "#91231c"
|
theme.border_marked = "#91231c"
|
||||||
|
|
||||||
-- There are other variable sets
|
-- There are other variable sets
|
||||||
|
|
|
@ -120,8 +120,8 @@ add_binds("normal", {
|
||||||
-- key({}, "$", function (w) w:scroll{ x = "100%" } end),
|
-- key({}, "$", function (w) w:scroll{ x = "100%" } end),
|
||||||
-- key({"Control"}, "e", function (w) w:scroll{ y = more } end),
|
-- key({"Control"}, "e", function (w) w:scroll{ y = more } end),
|
||||||
-- key({"Control"}, "y", function (w) w:scroll{ y = less } end),
|
-- key({"Control"}, "y", function (w) w:scroll{ y = less } end),
|
||||||
-- key({"Control"}, "d", function (w) w:scroll{ y = "+0.5p" } end),
|
key({}, "J", function (w) w:scroll{ y = "+0.5p" } end),
|
||||||
-- key({"Control"}, "u", function (w) w:scroll{ y = "-0.5p" } end),
|
key({}, "K", function (w) w:scroll{ y = "-0.5p" } end),
|
||||||
-- key({"Control"}, "f", function (w) w:scroll{ y = "+1.0p" } end),
|
-- key({"Control"}, "f", function (w) w:scroll{ y = "+1.0p" } end),
|
||||||
-- key({"Control"}, "b", function (w) w:scroll{ y = "-1.0p" } end),
|
-- key({"Control"}, "b", function (w) w:scroll{ y = "-1.0p" } end),
|
||||||
key({}, "space", function (w) w:scroll{ y = "+0.5p" } end),
|
key({}, "space", function (w) w:scroll{ y = "+0.5p" } end),
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
# Which colorscheme to use? These colorschemes are available by default:
|
# Which colorscheme to use? These colorschemes are available by default:
|
||||||
# default, default88, jungle, snow
|
# default, default88, jungle, snow
|
||||||
# Snow is monochrome and default88 uses 88 colors.
|
# Snow is monochrome and default88 uses 88 colors.
|
||||||
colorscheme = 'default88'
|
# colorscheme = 'jungle'
|
||||||
|
|
||||||
# Display the directory name in tabs?
|
# Display the directory name in tabs?
|
||||||
dirname_in_tabs = True
|
dirname_in_tabs = True
|
||||||
|
|
19
.emacs
19
.emacs
|
@ -90,7 +90,10 @@
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(lazy-highlight ((t (:background "blue"))))
|
'(lazy-highlight ((t (:background "blue"))))
|
||||||
'(link ((t (:foreground "cyan" :underline t))))
|
'(link ((t (:foreground "cyan" :underline t))))
|
||||||
'(minibuffer-prompt ((t (:foreground "cyan")))))
|
'(minibuffer-prompt ((t (:foreground "cyan"))))
|
||||||
|
'(shadow ((t (:foreground "green")))))
|
||||||
|
|
||||||
|
(set-face-foreground 'font-lock-comment-face "Red" )
|
||||||
|
|
||||||
;;==============================================================================
|
;;==============================================================================
|
||||||
;; Completion
|
;; Completion
|
||||||
|
@ -454,7 +457,15 @@
|
||||||
;;==============================================================================
|
;;==============================================================================
|
||||||
;; MediaWiki
|
;; MediaWiki
|
||||||
;;==============================================================================
|
;;==============================================================================
|
||||||
|
(require 'mediawiki)
|
||||||
|
(custom-set-variables
|
||||||
|
'(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-site-alist
|
;;==============================================================================
|
||||||
;; (append '("ArchWiki" "https://wiki.archlinux.org/" "username" "password" "Main Page")
|
;;==============================================================================
|
||||||
;; mediawiki-site-alist))
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name : fprintf
|
||||||
|
# contributor : joaotavora, ambrevar
|
||||||
|
# --
|
||||||
|
fprintf ($1, "${2:%s}\\n"${2:$(if (string-match "%" text) "," "\);")
|
||||||
|
}$3${2:$(if (string-match "%" text) "\);" "")}
|
6
.netinit
6
.netinit
|
@ -32,12 +32,12 @@ if [ $# -eq 0 ]; then
|
||||||
while [ "$(iwconfig ${NET_INTERFACE} | grep 'off/any')" != "" ] && [ $i -lt $TIMEOUT_LIMIT ] ; do
|
while [ "$(iwconfig ${NET_INTERFACE} | grep 'off/any')" != "" ] && [ $i -lt $TIMEOUT_LIMIT ] ; do
|
||||||
i=$(($i+1))
|
i=$(($i+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
## Get IP.
|
|
||||||
dhcpcd $NET_INTERFACE
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "ucd" ]; then
|
if [ "$1" == "ucd" ]; then
|
||||||
iwconfig ${NET_INTERFACE} essid "WaveLAN Network"
|
iwconfig ${NET_INTERFACE} essid "WaveLAN Network"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## Get IP.
|
||||||
|
dhcpcd ${NET_INTERFACE}
|
||||||
|
|
||||||
|
|
|
@ -51,9 +51,6 @@ if [ -e "/usr/bin/emacs" ]; then
|
||||||
alias emacs-reload="emacsclient -e '(kill-emacs)' >/dev/null 2>&1; /usr/bin/emacs --daemon"
|
alias emacs-reload="emacsclient -e '(kill-emacs)' >/dev/null 2>&1; /usr/bin/emacs --daemon"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Check colors supported by the current terminal.
|
|
||||||
alias printcolors='(x=`tput op` y=`printf %76s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done)'
|
|
||||||
|
|
||||||
# List desktop applications
|
# List desktop applications
|
||||||
alias applist='grep -r "^Name=" /usr/share/applications/* | cut -d'=' -f2| sort'
|
alias applist='grep -r "^Name=" /usr/share/applications/* | cut -d'=' -f2| sort'
|
||||||
|
|
||||||
|
@ -146,10 +143,11 @@ if [ "$PACMAN_FRONTEND" = "pacman-color" ]; then
|
||||||
alias pr='sudo pacman-color -Rs'
|
alias pr='sudo pacman-color -Rs'
|
||||||
alias pss='pacman-color -Ss'
|
alias pss='pacman-color -Ss'
|
||||||
alias pu='sudo pacman-color -Syu'
|
alias pu='sudo pacman-color -Syu'
|
||||||
|
alias pql='pacman -Ql'
|
||||||
|
|
||||||
## Change 'name' and 'size' variables according your locale.
|
## Change 'name' and 'size' variables according your locale.
|
||||||
# alias pql='pacman-color -Qi | awk '"'"'/^Nom/ {pkg=$3} /Taille/ {print $4$5,pkg}'"'"' | sort -n'
|
# alias pql='pacman-color -Qi | awk '"'"'/^Nom/ {pkg=$3} /Taille/ {print $4$5,pkg}'"'"' | sort -n'
|
||||||
alias pql='pacman-color -Qi | awk '"'"'/^Name/ {pkg=$3} /Size/ {print $4$5,pkg}'"'"' | sort -n'
|
alias pacman-list='pacman-color -Qi | awk '"'"'/^Name/ {pkg=$3} /Size/ {print $4$5,pkg}'"'"' | sort -n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##==============================================================================
|
##==============================================================================
|
||||||
|
|
|
@ -187,6 +187,29 @@ blind-append()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
## Term properties
|
||||||
|
termcolors(){
|
||||||
|
x=$(tput op)
|
||||||
|
y=$(printf %76s)
|
||||||
|
for i in {0..256}; do
|
||||||
|
o=00$i
|
||||||
|
echo -e "${o:${#o}-3:3} $(tput setaf $i;tput setab $i)${y// /=}$x"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
termprop()
|
||||||
|
{
|
||||||
|
infocmp -1 | sed -nu 's/^[ \000\t]*//;s/[ \000\t]*$//;/[^ \t\000]\{1,\}/!d;/acsc/d;s/=.*,//p'| column -c80
|
||||||
|
}
|
||||||
|
|
||||||
|
termsupport()
|
||||||
|
{
|
||||||
|
for T in `find "/usr/share/terminfo" -type f -printf '%f\n'`;do
|
||||||
|
echo "$T `tput -T $T colors`"
|
||||||
|
done | sort -nk2
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
## Start X and lock current terminal (press ENTER when back in terminal to prompt for password)
|
## Start X and lock current terminal (press ENTER when back in terminal to prompt for password)
|
||||||
if [ -e "/usr/bin/vlock" ]; then
|
if [ -e "/usr/bin/vlock" ]; then
|
||||||
sx(){
|
sx(){
|
||||||
|
|
|
@ -12,7 +12,7 @@ umask 027
|
||||||
export PATH=.:$PATH
|
export PATH=.:$PATH
|
||||||
|
|
||||||
## Terminal
|
## Terminal
|
||||||
# export TERM=xterm-256color
|
export TERM=xterm
|
||||||
|
|
||||||
## Make 'less' more friendly for non-text input files, see lesspipe(1).
|
## Make 'less' more friendly for non-text input files, see lesspipe(1).
|
||||||
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
|
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
|
||||||
|
|
2
.xinitrc
2
.xinitrc
|
@ -5,7 +5,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
## Config (for rxvt)
|
## Config (for rxvt)
|
||||||
[ -f "~/.Xresources" ] && xrdb -merge "~/.Xresources"
|
[ -f "${HOME}/.Xresources" ] && xrdb -merge "${HOME}/.Xresources"
|
||||||
|
|
||||||
## Useful tools
|
## Useful tools
|
||||||
[ "$(which numlockx)" != "" ] && numlockx on
|
[ "$(which numlockx)" != "" ] && numlockx on
|
||||||
|
|
Loading…
Reference in New Issue