dotfiles/xinitrc
Frank Villaro-Dixon 49a4423e99 Wallpapers
2013-06-04 19:07:01 +02:00

42 lines
756 B
Bash

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
#DWM
#First, choose the wallpaper (important, isn't it ? :p)
~/Pictures/wallpapers/chooseWP.sh &
while true; do
DATE=`date +"%F, %H:%M:%S - %s"`
BATT=$( acpi -b | sed 's/.*[charg.|], \([0-9]*\)%.*/\1/gi' )
# STATUS=$( acpi -b | sed 's/.*: \([a-zA-Z]*\),.*/\1/gi' )
MEM=`awk '/MemTotal/ {printf( "%.0fMb", $2 / 1024 )}' /proc/meminfo`
xsetroot -name "$MEM :: $BATT :: $DATE"
sleep 2
done &
exec /home/frank/Programmation/dwm/dwm
#exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice