You are not logged in.

#1 2016-05-11 09:59:23

yuga252
Member
Registered: 2016-04-10
Posts: 12

Failed add dzen2 to bspwm

This is my dzen2.sh config :

#/bin/bash

ICONPATH="/home/scilix/xbm"
DZEN_BG="#0F0F0F"
DZEN_FG="FCFCFC"

ICON_RAM="$ICONPATH/cpu.xbm"
ICON_BAT="$ICONPATH/bat_full_01.xbm"
ICON_DATE="$ICONPATH/clock.xbm"

Ram ()
{
        RAM=$(free -h | awk '/Mem/ {print $3}')
        echo -n "^i($ICON_RAM) ${RAM}"
        return
}

Bat ()
{
        BAT=$(cat /sys/class/power_supply/BAT0/capacity)
        echo -n "^i($ICON_BAT) ${BAT}"
}

Date ()
{
        DATE=$(date +'%H:%M')
        echo -n "^i($ICON_DATE) ${DATE}"
}

while true
do
        echo " $(Bat) $(Date) "
done | dzen2 -x "1248" -y "6" -w "107" -h "23" -sa 'r' -ta 'r' -bg "#0F0F0F" -fg "#FCFCFC" -fn 'glisp'

Image of script https://cloudup.com/iHZAjjuuatA/

Then i add directory of this script to bspwmrc example /home/scilix/Script/bar.sh with & in the end line.I succes to add the bar but after i log out to tty again,display this image :
https://cloudup.com/iZ--Bf0_jAt/

Offline

#2 2016-05-11 16:46:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Failed add dzen2 to bspwm

Don't paste screenshots of text, paste the actual text...


Moving to NC.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB