/dwm

dwm - dynamic window manager v6.2

Primary LanguageCMIT LicenseMIT

dwm v6.2

Instalar

git clone https://github.com/phpbell/dwm.git && cd dwm && sh make

Configurações

nano config.h

.profile

# resolve o bug de apps java
export _JAVA_AWT_WM_NONREPARENTING=1 

# aviso de bateria descarregando
while true; do
    BATT=$( acpi -b | awk '{ split($5,a,":"); print substr($4,0,2)}')
    STATUS=$( acpi -b | awk '{ split($5,a,":"); print substr($3,0,2)}')
    if [ $BATT -le 50 ] && [ $STATUS == 'Di' ]; then
        notify-send "$BATT% de bateria"
    fi
    sleep 10s
done &

# bateria, cpu, memória, calendário e relógio
while true; do
    bat="$(acpi -b)"
    mem="$(free -h --si | awk '(NR==2){ print $3 }')"
    data="$(php /opt/home/www/html/data.php)"
    cpu="$(mpstat | awk '(NR==4){ print $4 }')"
    status="$(echo "$bat, CPU: $cpu%, Mem: $mem ~ $data")"
    xsetroot -name " $(echo $status | xargs) "
    sleep 1s
done &

# programas
setsid alarm-clock-applet &
setsid firefox &
setsid pavucontrol &
setsid rhythmbox &
setsid nitrogen --restore &