removed some archmetabox stuff and updated dwm.
This commit is contained in:
parent
7bc48e0a0d
commit
648b4ae031
@ -6,34 +6,21 @@ else
|
||||
. "$HOME/.xprofile"
|
||||
fi
|
||||
|
||||
if [ -f /etc/hostname ]; then
|
||||
HOST=$(cat /etc/hostname)
|
||||
else
|
||||
HOST=$(hostname)
|
||||
fi
|
||||
|
||||
if [ "$HOST" = "archmetabox" ] ; then
|
||||
# this is specifically for the laptop so check hostname
|
||||
xrandr --setprovideroutputsource modesetting NVIDIA-G0
|
||||
xrandr --auto
|
||||
fi
|
||||
|
||||
# start gnome keyring to, used to be done by login manager.
|
||||
eval "$(gnome-keyring-daemon --start)"
|
||||
export SSH_AUTH_SOCK
|
||||
|
||||
# My default is still xmonad, maybe dwm in future?
|
||||
session=${1:-xmonad}
|
||||
# My default is dwm for now.
|
||||
session=${1:-dwm}
|
||||
|
||||
case $session in
|
||||
i3|i3wm)
|
||||
exec i3;;
|
||||
exec i3 ;;
|
||||
dwm)
|
||||
dwmblocks &
|
||||
exec dwm;;
|
||||
exec "$HOME/.dwm/start-dwm.sh" ;;
|
||||
xmonad)
|
||||
exec "$HOME/.xmonad/start-xmonad.sh";;
|
||||
exec "$HOME/.xmonad/start-xmonad.sh" ;;
|
||||
# No known session, try to run it as command
|
||||
*)
|
||||
exec twm;;
|
||||
exec twm ;;
|
||||
esac
|
||||
|
||||
@ -13,16 +13,6 @@ numlockx
|
||||
# set default desktop window layout
|
||||
"$HOME/.screenlayout/default.sh"
|
||||
|
||||
|
||||
# handle some nvidia stuff for archmetabox
|
||||
HOST=$(cat /etc/hostname)
|
||||
if [ "$HOST" = "archmetabox" ] ; then
|
||||
# this is specifically for the laptop so check hostname
|
||||
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
||||
xrandr --auto
|
||||
fi
|
||||
|
||||
|
||||
# I don't use the following but I like it so I'll leave it for now.
|
||||
autostart=""
|
||||
|
||||
|
||||
13
.dwm/start-dwm.sh
Executable file
13
.dwm/start-dwm.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# Script to start dwm in loop
|
||||
|
||||
while true; do
|
||||
dwmblocks
|
||||
sleep 2
|
||||
done &
|
||||
|
||||
while true; do
|
||||
dwm >/dev/null
|
||||
# to log stderrors to a file
|
||||
# dwm 2> ~/Build/dwm/dwm.log
|
||||
done
|
||||
Loading…
Reference in New Issue
Block a user