2013-06-02 11:02:37 +00:00
|
|
|
#!/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
|
|
|
|
|
2013-06-02 18:38:35 +00:00
|
|
|
#DWM
|
|
|
|
|
|
|
|
#First, choose the wallpaper (important, isn't it ? :p)
|
2013-06-04 17:07:01 +00:00
|
|
|
~/Pictures/wallpapers/chooseWP.sh &
|
2013-06-02 18:38:35 +00:00
|
|
|
|
|
|
|
|
2013-06-02 11:02:37 +00:00
|
|
|
while true; do
|
2013-06-02 18:38:35 +00:00
|
|
|
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' )
|
2013-06-11 15:00:23 +00:00
|
|
|
VOLUME=`amixer get Master | tail -n 2 | head -n 1 | cut -d' ' -f7`
|
2013-06-04 16:56:56 +00:00
|
|
|
MEM=`awk '/MemTotal/ {printf( "%.0fMb", $2 / 1024 )}' /proc/meminfo`
|
2013-06-02 18:38:35 +00:00
|
|
|
|
|
|
|
|
2013-06-11 15:00:23 +00:00
|
|
|
xsetroot -name "$VOLUME :: $MEM :: $BATT :: $DATE"
|
2013-06-02 18:38:35 +00:00
|
|
|
sleep 2
|
2013-06-02 11:02:37 +00:00
|
|
|
done &
|
2013-06-02 18:38:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-02 11:02:37 +00:00
|
|
|
exec /home/frank/Programmation/dwm/dwm
|
2013-06-02 18:38:35 +00:00
|
|
|
|
|
|
|
|
2013-06-11 15:00:23 +00:00
|
|
|
# exec gnome-session
|
2013-06-02 18:38:35 +00:00
|
|
|
|
|
|
|
|
2013-06-02 11:02:37 +00:00
|
|
|
# exec startkde
|
|
|
|
# exec startxfce4
|
|
|
|
# ...or the Window Manager of your choice
|