You are not logged in.
Hi,
I am relatively new to arch. I've been using it for about 3 months now and have tried many Desktop environments and i'm now trying DWM. I can install DWM fine from source, as well as configure it where necessary, but i haven't got it working with startx. I added it to my .xinitrc file in /etc/skel as
exec dwm
and i always get the basic x environment (3 white terminals on a black bg). I changed my .xinitrc to
#!/bin/bash
# Taken from:
# https://raw.github.com/kaihendry/Kai-s- … r/.xinitrc
#
# for terminus font in Archlinux ![]()
xset +fp /usr/share/fonts/local
xset fp rehash
xset -b # disable bell
eval `/usr/bin/ssh-agent`
if test -f /usr/lib/openssh/x11-ssh-askpass # Archlinux
then
SSH_ASKPASS=/usr/lib/openssh/x11-ssh-askpass ssh-add < /dev/null
fi
if test -f /usr/lib/ssh/x11-ssh-askpass # Debian
then
SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass ssh-add < /dev/null
fi
# 1280x720 = 720p X220
hash fswebcam && fswebcam -q --no-banner -r 1280x720 ~/private/login-photos/$(date +%Y-%m-%dT%H).jpg &
xrdb -merge $HOME/.Xresources
xmodmap ~/.Xmodmap
setxkbmap -layout gb -option ctrl:nocaps
hash chromium && chromium &
while true
do
VOL=$(amixer get Master | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/')
LOCALTIME=$(date +%Z\=%Y-%m-%dT%H:%M)
OTHERTIME=$(TZ=Europe/London date +%Z\=%H:%M)
IP=$(for i in `ip r`; do echo $i; done | grep -A 1 src | tail -n1) # can get confused if you use vmware
TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C"
if acpi -a | grep off-line > /dev/null
then
BAT="Bat. $(acpi -b | awk '{ print $4 " " $5 }' | tr -d ',')"
xsetroot -name "$IP $BAT $VOL $TEMP $LOCALTIME $OTHERTIME"
else
xsetroot -name "$IP $VOL $TEMP $LOCALTIME $OTHERTIME"
fi
sleep 20s
done &
exec dwm
as per instructions i found on a tutorial, and still i get the same basic x environment. The only reason that i want to so this is so that i can run some scripts at startup (feh, transset, conky, etc). Is there any way i can fix this or run scripts automatically though dwm, instead on xinitrc
Thanks,
rend0g
Offline
Please use code tags when pasting into the boards
https://wiki.archlinux.org/index.php/Fo … s_and_Code
Your .xinitrc has to be in your /home - you don't use the one in /etc/skel, you copy it to ~ and modify it accordingly.
See: https://wiki.archlinux.org/index.php/Xinitrc
Offline