Blog Code Forum

ArchLinux:Desktop

From Wiki.cyring.fr

(Difference between revisions)
Jump to: navigation, search
(.twmrc)
 
(6 intermediate revisions not shown)
Line 1: Line 1:
-
===== X.Org =====
+
== Xorg ==
-
French keyboard
+
=== 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 />
-
===== KDM =====
+
=== NVIDIA driver ===
-
Set Numlock ON at login<br />
+
<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

  1. Section "InputClass"
  2.         Identifier "evdev keyboard catchall"
  3.         MatchIsKeyboard "on"
  4.         MatchDevicePath "/dev/input/event*"
  5.         Driver "evdev"
  6.         Option "xkb_layout" "fr"
  7. EndSection

NVIDIA driver

# nano /etc/X11/xorg.conf

  1. Section "Device"
  2.     Identifier     "Device0"
  3.     Driver         "nvidia"
  4.     VendorName     "NVIDIA Corporation"
  5.     Option         "Coolbits" "1"
  6. EndSection

KDM

Switch Numlock ON at login
Redirect the error log file (ie. tmpfs)

# nano /usr/share/config/kdm/kdmrc

  1. [X-*-Greeter]
  2. NumLock=On
  3.  
  4. [X-:0-Core]
  5. 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
}
Personal tools