Little things

This commit is contained in:
Frank Villaro-Dixon 2013-06-02 20:38:35 +02:00
parent 7e1408f5d1
commit cffd3418e9
2 changed files with 26 additions and 5 deletions

4
vimrc
View file

@ -23,8 +23,8 @@ set foldmethod=marker
"set cul "souligner la ligne actuelle
"color desert
colorscheme wombat256modv1
color desert
"colorscheme wombat256modv1
"color darkblue
set cursorline
hi CursorLine term=bold cterm=bold guibg=Grey40

27
xinitrc
View file

@ -11,12 +11,33 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
unset f
fi
#exec gnome-session
#DWM
#First, choose the wallpaper (important, isn't it ? :p)
wallpaper_path=/home/frank/Pictures/wallpapers/
image=$(ls $wallpaper_path | grep -E '(jpg|png)$' | sort -R | tail -1)
feh --bg-scale $wallpaper_path/$image &
while true; do
xsetroot -name "$( date +"%F %R" )"
sleep 1m # Update time every minute
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' )
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