-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
57 lines (57 loc) · 2.54 KB
/
.xinitrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
case $(hostname):$1 in
alpha:)
xrandr --output default --mode 1440x900
xrdb ~/.Xresources
exec ratpoison
;;
delta:alpha)
export QEMU_AUDIO_DRV=alsa
exec qemu-system-x86_64 -m 2G -machine type=pc,accel=kvm -cpu host -enable-kvm \
-vga vmware -hda ~/.qemu/alpha.img -smp 2 -netdev user,id=network0,hostfwd=tcp:127.0.0.1:8922-:22 \
-device rtl8139,netdev=network0 -virtfs local,id=home,path=/home/rcog/media,security_model=none,mount_tag=media \
-virtfs local,id=doc,path=/home/rcog/doc,security_model=none,mount_tag=doc \
-soundhw ac97
;;
delta:gulf)
export QEMU_AUDIO_DRV=alsa
exec qemu-system-x86_64 -smp 2 -m 4G -machine pc,accel=kvm -cpu kvm64 -enable-kvm -usb -device usb-tablet\
-netdev user,id=mynet0,hostfwd=tcp:127.0.0.1:7922-:22 -device e1000,netdev=mynet0 \
-audiodev driver=alsa,id=a1 -device AC97,audiodev=a1 \
-vga vmware ~/.qemu/gulf.img -boot order=dc # -cdrom ~/bak/apps/os/install72.iso
#-netdev user,id=mynet0,hostfwd=tcp:127.0.0.1:7922-:22,hostfwd=tcp:192.168.0.107:8080-:80 -device e1000,netdev=mynet0 \
;;
delta:)
feh --bg-center --no-fehbg ~/.wallpaper.jpg
xrdb ~/.Xresources # -merge ?
xsetroot -cursor_name left_ptr
xset r rate 500 90
x-terminal-emulator &
setxkbmap -layout us,ca -variant ,multix -option grp:caps_toggle -option ctrl:swap_lwin_lctl -option ctrl:swap_rwin_rctl
exec ssh-agent x-window-manager
;;
delta:echo)
qemu-system-x86_64 ~/.qemu/echo.img -machine type=pc,accel=kvm -m 2G -cpu host -enable-kvm \
-vga virtio -netdev user,id=network0 -device rtl8139,netdev=network0 -boot order=cd -cdrom ~/bak/apps/os/debian-11.2.0-amd64-netinst.iso &
sleep 2
xdotool search --sync --name QEMU windowsize %@ 1440 900
wait $!
;;
gulf*)
. ~/.profile
xrandr --output default --mode 1440x900
export LC_CTYPE="en_US.UTF-8"
xset +fp /usr/local/share/fonts/inconsolata
xrdb ~/.Xresources # -merge ?
feh --bg-center --no-fehbg ~/.wallpaper.jpg
setxkbmap -layout us,ca,vn -variant ,multix, -option grp:caps_toggle -option ctrl:swap_lwin_lctl -option ctrl:swap_rwin_rctl
xset r rate 500 90
export TABBED_XID=$(tabbed -g 1440x900+0+0 -d)
urxvt &
# firefox-esr &
xidle &
exec ssh-agent cwm
;;
*)
echo "cannot start $(hostname):$1"
;;
esac