ArchLinux:Desktop
From Wiki.cyring.fr
(Difference between revisions)
(→.twmrc) |
|||
(6 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | ===== | + | == Xorg == |
- | + | === French keyboard === | |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# nano /etc/X11/xorg.conf.d/10-evdev.conf | # nano /etc/X11/xorg.conf.d/10-evdev.conf | ||
Line 13: | Line 13: | ||
EndSection | EndSection | ||
</syntaxhighlight><br /> | </syntaxhighlight><br /> | ||
- | ===== | + | === NVIDIA driver === |
- | + | <syntaxhighlight lang="bash"> | |
+ | # nano /etc/X11/xorg.conf | ||
+ | </syntaxhighlight><br /> | ||
+ | <syntaxhighlight lang="xorg_conf" line start="1"> | ||
+ | Section "Device" | ||
+ | Identifier "Device0" | ||
+ | Driver "nvidia" | ||
+ | VendorName "NVIDIA Corporation" | ||
+ | Option "Coolbits" "1" | ||
+ | EndSection | ||
+ | </syntaxhighlight><br /> | ||
+ | |||
+ | == KDM == | ||
+ | Switch Numlock ON at login<br /> | ||
Redirect the error log file (ie. tmpfs) | Redirect the error log file (ie. tmpfs) | ||
<br /> | <br /> | ||
Line 27: | Line 40: | ||
ClientLogFile=tmp/.xsession-errors | ClientLogFile=tmp/.xsession-errors | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | == Twm == | ||
+ | ===== .twmrc ===== | ||
+ | <pre> | ||
+ | OpaqueMove | ||
+ | RandomPlacement | ||
+ | ShowIconManager | ||
+ | NoGrabServer | ||
+ | RestartPreviousState | ||
+ | DecorateTransients | ||
+ | TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" | ||
+ | ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" | ||
+ | MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" | ||
+ | IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" | ||
+ | IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*" | ||
+ | #ClientBorderWidth | ||
+ | |||
+ | Color | ||
+ | { | ||
+ | BorderColor "slategrey" | ||
+ | DefaultBackground "black" | ||
+ | DefaultForeground "darkred" | ||
+ | TitleBackground "darkred" | ||
+ | TitleForeground "white" | ||
+ | MenuBackground "darkred" | ||
+ | MenuForeground "black" | ||
+ | MenuBorderColor "slategrey" | ||
+ | MenuTitleBackground "black" | ||
+ | MenuTitleForeground "darkred" | ||
+ | IconBackground "red" | ||
+ | IconForeground "black" | ||
+ | IconBorderColor "gray85" | ||
+ | IconManagerBackground "darkred" | ||
+ | IconManagerForeground "black" | ||
+ | } | ||
+ | |||
+ | NoTitle { "xclock" "chromium" } | ||
+ | IconBorderWidth 1 | ||
+ | IconManagerDontShow { "xclock" } | ||
+ | IconManagerGeometry "2500x16+0+0" 32 | ||
+ | IconRegion "640x32+0-0" North East 32 32 | ||
+ | # | ||
+ | MoveDelta 3 | ||
+ | Function "move-or-lower" { f.move f.deltastop f.lower } | ||
+ | Function "move-or-raise" { f.move f.deltastop f.raise } | ||
+ | Function "move-or-iconify" { f.move f.deltastop f.iconify } | ||
+ | # | ||
+ | Button1 = : root : f.menu "defops" | ||
+ | |||
+ | Button1 = m : window|icon : f.function "move-or-lower" | ||
+ | Button2 = m : window|icon : f.iconify | ||
+ | Button3 = m : window|icon : f.function "move-or-raise" | ||
+ | |||
+ | Button1 = : title : f.function "move-or-raise" | ||
+ | Button2 = : title : f.raiselower | ||
+ | |||
+ | Button1 = : icon : f.function "move-or-iconify" | ||
+ | Button2 = : icon : f.iconify | ||
+ | |||
+ | Button1 = : iconmgr : f.iconify | ||
+ | Button2 = : iconmgr : f.iconify | ||
+ | # | ||
+ | menu "defops" | ||
+ | { | ||
+ | "Computer" f.title | ||
+ | "Iconify" f.iconify | ||
+ | "Resize" f.resize | ||
+ | "Move" f.move | ||
+ | "Raise" f.raise | ||
+ | "Lower" f.lower | ||
+ | "" f.nop | ||
+ | "Focus" f.focus | ||
+ | "Unfocus" f.unfocus | ||
+ | "Show Iconmgr" f.showiconmgr | ||
+ | "Hide Iconmgr" f.hideiconmgr | ||
+ | "" f.nop | ||
+ | "Xterm" f.exec "exec xterm -bg black -fg white -geometry 96x30 -fn 7x14 &" | ||
+ | "Chrome" f.exec "chromium &" | ||
+ | "" f.nop | ||
+ | "Kill" f.destroy | ||
+ | "Delete" f.delete | ||
+ | "" f.nop | ||
+ | "Restart" f.restart | ||
+ | "Exit" f.quit | ||
+ | } | ||
+ | </pre> |
Latest revision as of 07:58, 14 November 2012
Contents |
Xorg
French keyboard
# nano /etc/X11/xorg.conf.d/10-evdev.conf
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "xkb_layout" "fr"
EndSection
NVIDIA driver
# nano /etc/X11/xorg.conf
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "Coolbits" "1"
EndSection
KDM
Switch Numlock ON at login
Redirect the error log file (ie. tmpfs)
# nano /usr/share/config/kdm/kdmrc
[X-*-Greeter]
NumLock=On
[X-:0-Core]
ClientLogFile=tmp/.xsession-errors
Twm
.twmrc
OpaqueMove RandomPlacement ShowIconManager NoGrabServer RestartPreviousState DecorateTransients TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*" #ClientBorderWidth Color { BorderColor "slategrey" DefaultBackground "black" DefaultForeground "darkred" TitleBackground "darkred" TitleForeground "white" MenuBackground "darkred" MenuForeground "black" MenuBorderColor "slategrey" MenuTitleBackground "black" MenuTitleForeground "darkred" IconBackground "red" IconForeground "black" IconBorderColor "gray85" IconManagerBackground "darkred" IconManagerForeground "black" } NoTitle { "xclock" "chromium" } IconBorderWidth 1 IconManagerDontShow { "xclock" } IconManagerGeometry "2500x16+0+0" 32 IconRegion "640x32+0-0" North East 32 32 # MoveDelta 3 Function "move-or-lower" { f.move f.deltastop f.lower } Function "move-or-raise" { f.move f.deltastop f.raise } Function "move-or-iconify" { f.move f.deltastop f.iconify } # Button1 = : root : f.menu "defops" Button1 = m : window|icon : f.function "move-or-lower" Button2 = m : window|icon : f.iconify Button3 = m : window|icon : f.function "move-or-raise" Button1 = : title : f.function "move-or-raise" Button2 = : title : f.raiselower Button1 = : icon : f.function "move-or-iconify" Button2 = : icon : f.iconify Button1 = : iconmgr : f.iconify Button2 = : iconmgr : f.iconify # menu "defops" { "Computer" f.title "Iconify" f.iconify "Resize" f.resize "Move" f.move "Raise" f.raise "Lower" f.lower "" f.nop "Focus" f.focus "Unfocus" f.unfocus "Show Iconmgr" f.showiconmgr "Hide Iconmgr" f.hideiconmgr "" f.nop "Xterm" f.exec "exec xterm -bg black -fg white -geometry 96x30 -fn 7x14 &" "Chrome" f.exec "chromium &" "" f.nop "Kill" f.destroy "Delete" f.delete "" f.nop "Restart" f.restart "Exit" f.quit }