#!/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' ) VOLUME=`amixer get Master | tail -n 2 | head -n 1 | cut -d' ' -f7` MEM=`awk '/MemTotal/ {printf( "%.0fMb", $2 / 1024 )}' /proc/meminfo` xsetroot -name "$VOLUME :: $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