Created
December 16, 2012 10:14
-
-
Save Leonidas-from-XIV/4306072 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Catch-all evdev loader for udev-based systems | |
# We don't simply match on any device since that also adds accelerometers | |
# and other devices that we don't really want to use. The list below | |
# matches everything but joysticks. | |
Section "InputClass" | |
Identifier "evdev pointer catchall" | |
MatchIsPointer "on" | |
MatchDevicePath "/dev/input/event*" | |
Driver "evdev" | |
EndSection | |
Section "InputClass" | |
Identifier "evdev keyboard catchall" | |
MatchIsKeyboard "on" | |
MatchDevicePath "/dev/input/event*" | |
Driver "evdev" | |
EndSection | |
Section "InputClass" | |
Identifier "evdev touchpad catchall" | |
MatchIsTouchpad "on" | |
MatchDevicePath "/dev/input/event*" | |
Driver "evdev" | |
EndSection | |
Section "InputClass" | |
Identifier "evdev tablet catchall" | |
MatchIsTablet "on" | |
MatchDevicePath "/dev/input/event*" | |
Driver "evdev" | |
EndSection | |
Section "InputClass" | |
Identifier "evdev touchscreen catchall" | |
MatchIsTouchscreen "on" | |
MatchDevicePath "/dev/input/event*" | |
Driver "evdev" | |
EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Collection of quirks and blacklist/whitelists for specific devices. | |
# Accelerometer device, posts data through ABS_X/ABS_Y, making X unusable | |
# http://bugs.freedesktop.org/show_bug.cgi?id=22442 | |
Section "InputClass" | |
Identifier "ThinkPad HDAPS accelerometer blacklist" | |
MatchProduct "ThinkPad HDAPS accelerometer data" | |
Option "Ignore" "on" | |
EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "InputClass" | |
Identifier "touchpad catchall" | |
Driver "synaptics" | |
MatchIsTouchpad "on" | |
MatchDevicePath "/dev/input/event*" | |
Option "TapButton1" "1" | |
Option "TapButton2" "2" | |
Option "TapButton3" "3" | |
EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "InputClass" | |
Identifier "Trackpoint Wheel Emulation" | |
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint" | |
MatchDevicePath "/dev/input/event*" | |
Option "EmulateWheel" "true" | |
Option "EmulateWheelButton" "2" | |
Option "Emulate3Buttons" "false" | |
Option "XAxisMapping" "6 7" | |
Option "YAxisMapping" "4 5" | |
EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# launches a session dbus instance | |
dbuslaunch="`which dbus-launch 2>/dev/null`" | |
if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then | |
eval `$dbuslaunch --sh-syntax --exit-with-session` | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case "$DESKTOP_SESSION" in | |
gnome) # Done by gnome-settings-daemon | |
;; | |
*) | |
# Extra check in case DESKTOP_SESSION is not set correctly | |
if [[ -z $GNOME_DESKTOP_SESSION_ID ]]; then | |
if [[ -z $GTK_MODULES ]]; then | |
GTK_MODULES="canberra-gtk-module" | |
else | |
GTK_MODULES="$GTK_MODULES:canberra-gtk-module" | |
fi | |
export GTK_MODULES | |
fi | |
;; | |
esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/X11/twm: | |
total 4 | |
-rw-r--r-- 1 root root 2419 Mar 10 2011 system.twmrc | |
/etc/X11/xinit: | |
total 12 | |
-rw-r--r-- 1 root root 736 Mar 10 2011 xinitrc | |
drwxr-xr-x 2 root root 4096 Dec 11 00:37 xinitrc.d | |
-rw-r--r-- 1 root root 132 Oct 31 01:10 xserverrc | |
/etc/X11/xorg.conf.d: | |
total 16 | |
-rw-r--r-- 1 root root 1099 Nov 1 16:28 10-evdev.conf | |
-rw-r--r-- 1 root root 377 Apr 16 2011 10-quirks.conf | |
-rw-r--r-- 1 root root 267 Mar 18 2011 10-synaptics.conf | |
-rw-r--r-- 1 root root 476 Nov 1 16:23 20-thinkpad.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case "$DESKTOP_SESSION" in | |
gnome|kde*|xfce*) # PulseAudio is started via XDG Autostart | |
;; | |
*) | |
# Extra checks in case DESKTOP_SESSION is not set correctly | |
if [[ -z $KDE_FULL_SESSION && -z $GNOME_DESKTOP_SESSION_ID ]]; then | |
/usr/bin/start-pulseaudio-x11 | |
fi | |
;; | |
esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Default twm configuration file; needs to be kept small to conserve string | |
# space in systems whose compilers don't handle medium-sized strings. | |
# | |
# Sites should tailor this file, providing any extra title buttons, menus, etc. | |
# that may be appropriate for their environment. For example, if most of the | |
# users were accustomed to uwm, the defaults could be set up not to decorate | |
# any windows and to use meta-keys. | |
# | |
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 "rgb:2/a/9" | |
DefaultForeground "gray85" | |
TitleBackground "rgb:2/a/9" | |
TitleForeground "gray85" | |
MenuBackground "rgb:2/a/9" | |
MenuForeground "gray85" | |
MenuBorderColor "slategrey" | |
MenuTitleBackground "gray70" | |
MenuTitleForeground "rgb:2/a/9" | |
IconBackground "rgb:2/a/9" | |
IconForeground "gray85" | |
IconBorderColor "gray85" | |
IconManagerBackground "rgb:2/a/9" | |
IconManagerForeground "gray85" | |
} | |
# | |
# Define some useful functions for motion-based actions. | |
# | |
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 } | |
# | |
# Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish | |
# | |
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 | |
# | |
# And a menus with the usual things | |
# | |
menu "defops" | |
{ | |
"Twm" 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 &" | |
"" f.nop | |
"Kill" f.destroy | |
"Delete" f.delete | |
"" f.nop | |
"Restart" f.restart | |
"Exit" f.quit | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
userresources=$HOME/.Xresources | |
usermodmap=$HOME/.Xmodmap | |
sysresources=/etc/X11/xinit/.Xresources | |
sysmodmap=/etc/X11/xinit/.Xmodmap | |
# merge in defaults and keymaps | |
if [ -f $sysresources ]; then | |
xrdb -merge $sysresources | |
fi | |
if [ -f $sysmodmap ]; then | |
xmodmap $sysmodmap | |
fi | |
if [ -f "$userresources" ]; then | |
xrdb -merge "$userresources" | |
fi | |
if [ -f "$usermodmap" ]; then | |
xmodmap "$usermodmap" | |
fi | |
# start some nice programs | |
if [ -d /etc/X11/xinit/xinitrc.d ] ; then | |
for f in /etc/X11/xinit/xinitrc.d/* ; do | |
[ -x "$f" ] && . "$f" | |
done | |
unset f | |
fi | |
twm & | |
xclock -geometry 50x50-1+1 & | |
xterm -geometry 80x50+494+51 & | |
xterm -geometry 80x20+494-0 & | |
exec xterm -geometry 80x66+0+0 -name login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -z "$XDG_VTNR" ]; then | |
exec /usr/bin/X -nolisten tcp "$@" | |
else | |
exec /usr/bin/X -nolisten tcp "$@" vt$XDG_VTNR | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment