Skip to content

Instantly share code, notes, and snippets.

@ciembor
Created June 7, 2011 06:02
Show Gist options
  • Save ciembor/1011759 to your computer and use it in GitHub Desktop.
Save ciembor/1011759 to your computer and use it in GitHub Desktop.
CouterStrike and Windows .xinit
#!/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
#!/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