Created
June 7, 2011 06:02
-
-
Save ciembor/1011759 to your computer and use it in GitHub Desktop.
CouterStrike and Windows .xinit
This file contains 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 | |
###################### | |
# ~/.xinit/cstrike # | |
###################### | |
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 | |
wine ~/.wine/drive_c/Program\ Files/Valve/hl.exe -- hl.exe -game cstrike |
This file contains 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 | |
###################### | |
# ~/.xinit/windows # | |
###################### | |
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 | |
twm & | |
VirtualBox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment