how to lemonbar configuration

today, i wanna tell you how to configuration lemonbar or lemonbar configruation. lemonbar (formerly known as bar) is a lightweight bar entirely based on XCB. Provides full UTF-8 support, basic formatting, RandR and Xinerama support and EWMH compliance without wasting your precious memory. so lets begin.

to install lemonbar and load font on lemonbar you can go here > installing lemonbar and load font on lemonbar

remember lemonbar is statusbar, not panel. so, its not any taskbar. just print the output.

we wanna fetching information about :
1. date
2. ssid of wifi
3. batery
4. sound level
5. clock
6. window active status
7. music
8. icon for this item

1. fetching the date
 we would use date command to print out that.

date '+%d %b' #this print day number of the month and month

2. ssid of wifi
we would use iwgetid command to make simply setup but powerfull. let's se bellow

iwgetid -r  # it just print the ssid no other

3. battery
its important to avoid the low battery status and urged you to chare your laptop. i use acpi command to make it simple

acpi | cut -d, -f2 #its only  print battery level

4. sound level
sound level can print into two type of output. can be proggesbar and can be text. if you wanna proggressbar use mkb and if you want text lets follow me.
we use amixer command.

amixer get master | grep "Front Left:" | awk '{print $5}' | cut -d [ -f2 | cut -d ] -f1 # its only print sound level

5. clock
as same as with date we use date command

date '+%H:%M'

6. window active status
window active status only print the name of focused window not like panel clickable and print the name. we use xdotool command

xdotool getwindowfocus getwindowname

7. music
we use mpd and mpc command to print the listening music status

mpc -p 6601 -f "%artist% >> %title%" | head -1

8. icon for this item
you must install siji font to get icon for this ouput and to make more beautiful setup of bar.
if you already install that font let's follow

run this command to get the glymphes code
xfd -fa Siji
and choose icon what you want to print at your bar setup for example:
the glymphes code of music icon is : 0x00e05c to print on the bar just run like this
echo -e "\ue05c" | lemonbar -f "Siji-8" -p #this print with bar standalone not fetch with all

PRINT THEM ALL ONLY WITH LEMONBAR
this setup will be eat more reosources of ram, coz you will run two lemonbar to get bar on right and left. but, not much eat resource. on this setup we would use bash script, if statement, case statement, while true do, and function like a C. oke let's follow.

make bash script like this
1. for status item of lemonbar

$vim statusquh

#!/bin/bash
#arg
#ndow="$(xdotool get_desktop | grep 0)"
#inf="$(mpc -p 6601 -f "%artist%" | head -1 | wc -l)"
#wifikek='iwgetid -r | wc -l'
#bat='acpi -i | head -1 | cut -d, -f1 | cut -d: -f2 | sed 's/ //g' | grep "Charging" | wc -l'


case $1 in

 window)
 ndow=`xdotool get_desktop | wc -l`
 if [ $ndow -eq 1 ]; then
 xdotool getwindowfocus getwindowname
 fi
 ;;

 musik)
 inf=`mpc -p 6601 -f "%artist%" | head -1 | wc -l`
 if [ $inf -eq 1 ]; then
 mpc -p 6601 -f "%artist% >> %title%" | head -1
 else
 echo not playing
 fi
 ;;

 volume)
 amixer get Master | grep "Front Left:" | awk '{print $5}' | cut -d [ -f2 | cut -d ] -f1
 ;;

 wifi)
 wifiqu=`iwgetid | wc -l`
 if [ $wifiqu -eq 0 ]; then
 echo "off"
 else
 iwgetid -r
 fi
 ;;

 infobat)
 bat=`acpi -i | head -1 | cut -d, -f1 | cut -d: -f2 | sed 's/ //g' | grep "Charging" | wc -l`
 if [ $bat -eq 1 ]; then
 echo "Charging"
 else
 echo "Discharging"
 fi
 ;;

 desktop)
 des=`xdotool get_desktop | wc -l`
 if [ $des -eq 1 ]; then
 xdotool get_desktop
 fi
 ;;

 batre)
 acpi | cut -d, -f2
 ;;

 jam)
 date '+%H:%M'
 ;;

 tanggal)
 date '+%d %b'
 ;;

esac

save this code and move into /usr/local/bin/ with this command

 sudo mv statusquh /usr/local/bin

2. now then, for left lemonbar

$vim kiri

#!/bin/bash

#colour
red="#D24D57"
case $1 in
semua)
nda() {
    echo -e "\ue0b1" && statusquh window
}

ndi() {
    echo -e "\ue224" && statusquh infobat
}

ndu() {
    echo -e "\ue10f" && statusquh wifi
}

nde() {
    echo -e "\ue107" && echo Hana
}

while :; do
kok="$(nda)"
kek="$(ndi)"
kuk="$(ndu)"
kik="$(nde)"

echo $kok $kek $kuk $kik
sleep 1
done
;;
esac

save it, and move into /usr/local/bin

3. and this for right lemonbar

$vim kanan

#!/bin/bash

#colour
red="#D24D57"
case $1 in
semua)
nda() {
    echo "%{F$red}TGL:%{F-}" && statusquh tanggal
}

ndi() {
    echo "%{F$red}JAM:%{F-}" && statusquh jam
}

ndu() {
    echo "%{F$red}VOL:%{F-}" && statusquh volume
}

nde() {
    echo "%{F$red}BAT:%{F-}" && statusquh batre
}

while :; do
kok="$(nda)"
kek="$(ndi)"
kuk="$(ndu)"
kik="$(nde)"

echo $kok $kek $kuk $kik
sleep 1
done
;;
esac

save it and move into /usr/local/bin

5. for lemonbar to print out that

$vim barkiri

#!/bin/bash
kiri semua | lemonbar -p -f "Clean-10" -f "Siji-8" -g 1366x24

save it and move into /usr/local/bin

6. for second lemonbar to print out that

$vim barkanan

#!/bin/bash
kanan semua | lemonbar -p -f "Clean-10" -g 250x24+1116+0

7. testing time !
for testing. run kiri and kanan like this

$barkiri
$barkanan

the result is like this

if you want find much more about lemonbar configuration or my dotfile just visit my github page > dante08
oke, i hope you can do about configuration lemonbar. only that for me, littlebit about lemonbar especialy about lemonbar configuration. so thank you much.

[SOLVED] how to fix touchpad acer Aspire E14 ES1-411 after install windows 10

hi guys tonight i will tell you about how to fix touchpad acer Aspire E14 ES1-411 after install windows 10. becasue this laptop is not supported on windows 7 ( i think ) , so i installed windows 10 and after that i got an  error on touchpad and some combination keyboard shortcut like fn+f7 and on BIOS not any configuration about that touchpad. so i want to show you how think work out, let's check this out.

material ( you must download that and installing on your  acer Aspire E14 ES1-411)
IO Drivers_Intel_604.10135.1001.53001_W10x64_A.zip
Touchpad_ELANTECH_13.6.3.1_W10x64_A.zip
TXE_Intel_1.1.0.1064W81x64_A.zip

step:
1. you must downloaded all this driver, install that and follow the step in the installation
2. if everything installed correctly and reboot your acer Aspire E14 ES1-411
3. taarrraa, if cursor indikator are show its mean your done to fix  acer Aspire E14 ES1-411 touchpad.

note :
1. its A.K.A like same installing other dirver
2. if this step fail on you. another way is update your BIOS system, but i test on  acer Aspire E14 ES1-411-C61F its worked perfectly. so try this tutorial before you got wrong way

well, i hope you can and your touchpad worked. if any feedback, question or etc please comment below but dont spam. have nice day see you..


TAGS:
cara fix touchpad di  acer Aspire E14 ES1-411, cara fix touchpad di  acer Aspire E14 ES1-411-C61F, how to fix acer touchpad, how to fix touchpad on  acer Aspire E14 ES1-411 after installing windows 10

[ORI] download windows 7 sp1 iso file

hai guys, gimana kabar nya ? semoga sehat semua ya dan laptop atau komputer nya juga. oke guys diwaktu luang ini saya akan berbagi link download nih yaitu windows 7 sp1 yang berbentuk iso file, apa sih itu sp1, sp1 itu singkatan dari service pack 1 jadi bisa di mengerti kan apa maksud nya. microsoft  menyediakan 3 bagian service pack guys, yaitu windows 7 service pack 1, service pack 2, service pack 3. oke guys berikut link download untuk windows 7 sp1 yang berbentuk iso file nya. klik link dibawah ini
download windows 7 sp1 iso file ori

cara menggunakan nya yakni
1. kalian harus menginstall windows 7 biasa atau ultimate terlebih dahulu
2. install semua driver yang kalian perlu
3. install software utiliti yang kalian butuh kan ( jangan install antivirus) termaksud daemon tool ultra 4 karena digunakan untuk mounting file iso nya (ultra iso juga bisa)
4. download windows 7 sp1 file ori diatas
5. setelah di download mount file iso windows 7 sp 1 tadi menggunakan daemon tool ultra atau ultra iso (ultra iso dengan cara klik kanan file windows 7 sp1 tadi lalu pilih mount to , kalo daemon tool ultra tinggal double klik aja)
6. jika sudah buka hasil mounting tadi dengan nama folder atau partisi CD ROM lalu klik setup dan ikuti perintah didalamnya gampang kok cuma next next aja, dan tunggu proses hingga selesai maka pc otomatis akan reboot.
proses penginstalan tampak seperti ini guys 

7. cek apakah sudah sp1 atau belum windows 7 nya dengan cara buka windows exploler klik kanan computer lalu pilih properties dan akan tampak seperti ini

oke guys segitu aja kali ini semoga bermanfaat, kenapa sih kok harus windows sp 1 karena ada masalah atau tidak mendukung nya library libray baru di windows 7 biasa, apalagi buat para gamers yang ingin ringan saat bermain game kesayangan nya sangat cocok menggunakan windows 7 sp1 ini. sudah saya test saya bermain game Devil may cry di windows 10 hanya dapat 15-20 fps sedangkan di windows 7 sp1 ini 30-45 fps dengan high texture di core i3 ram 2gb waw bukan. jika ada yang ingin di tanyakan silakan berkomentar. sekian terima kasih.

cara mempercepat shutdown di windows 8, 8.1, 10

hi guys, di waktu senggang ini saya akan berbagi tips tentang windows nih. yaps bagi para pengguna laptop dan pengguna os windows 8 dan 10 terasa gak sih kalo shutdown lampu indikator nya lama banget mati nya setelah laptop tersebut menjalankan perintah shutdown melalui gui atau alt+f4 ?. karena di windows seri ini perangkat tidak mati atau off dengan sempurna. maka dari itu setelah shutdown kadang lampu indikator masih cepat menyala. oke dari pada penasaran mari ikuti langkah dibawah ini untuk mengatur nya agar shutdown lebih cepat.

1. tekan tombol win+s untuk search dan ketikan power option
2. lalu pilih choose what the power buttons do. seperti gambar dibawah ini
3. lalu setelah itu pilih change setting that are currently unavailable. lihat gambar dibwah ini.
4. scroll kebawah dan uncentang pada turn on fast startup (recommended
5. klik save changes lalu restart..

setelah booting coba shutdown laptop kalian apakah cepat atau belum. oiya pemberitahuan JIKA LAPTOP KALIAN MENGALAMI BOOTUP YANG LAMA ITU BERARTI LAPTOP ANDA TERMAKSUD KATEGORI LAMA SOALNYA PADA LAPTOP KELUARAN BARU bootup nya juga lumayan cepat tanpa fast startup dihidupkan. tested laptop core i3 5005u masih bisa boot dengan cepat walau fast startup dimatikan dan untuk pengguna celeron N280 lambat dalam bootup dengan kondisi faststartup dimatikan. oke guys, sekiranya cukup jika ada komentar, masukan, atau berhasil.. :D silakan tinggalkan komentar dibwah ya. sekian terimakasih !

How to run ifconfig or etc without sudo or su

 Hasil gambar untuk ifconfig command not found\



hi guys, welcome back at wandapcguide. to day i will tell and explain with you about linux especialy for you if debian and CentOs user. if you manage your network or practice about configuration with debian especialy high vocational. sure, its must login throught tty mode and loggin as root to simply you at practice and if you loggin as user and you will run ifconfig or iwgetid or etc you got an error its say unknow command for ifconfig and its can be do in superuser alias root. and than i'd like to tell you to fix ifconfig command not found lets follow this instruction.

1. open your terminal and type
$export PATH:$PATH:/sbin
2. and type
$ifconfig

its be done, but if you close the terminal it will reset these setting. best solution to take them into the autostart program. lets follow the instruction:

1. create your own executable file or bash script file
2. add #!/bin/bash on header at your executable file or bash script file
3. add this command to your executable file or bash script file
 export PATH:$PATH:/sbin
4. add your window manager command or DE command on footer at your executable file or bash script file like this

#!/bin/bash
#for ifconfig or etc
export PATH:$PATH:/sbin
#starting GUI interface
2bwm

5. save it, and copy the file to /usr/local/bin.
6. add to your desktop entries file at /usr/share/xsession/ like this

[Desktop Entry]
Encoding=UTF-8
Name=2bwm
Comment=Binary space partitioning window manager
Exec=/usr/local/bin/yourfilebashscript
Type=Application

7. and try restart your display manager
8.  and open terminal and type ifconfig
9. and tara!! bingo!

if you fail adding into this, try other method  about adding autostart program, sure its done. i feel enought, i hope you can. if any comment, feedback or etc leave comment bellow. see you!

how to load font on lemonbar

hi guys, today i wanna tell you about linux again especially, for you which happy with your desktop or linux rice. so, i want to tell about lemonbar.
lemonbar (formerly known as bar) is a lightweight bar entirely based on XCB. Provides full UTF-8 support, basic formatting, RandR and Xinerama support and EWMH compliance without wasting your precious memory.

many people asked how to load font on lemonbar or why i was load font in lemonbar and show could not load font blabla. today i give your solution to load font on lemonbar. lets to step;

1. first you must completed and install the deppedencies for lemonbar
$sudo apt-get install libxcb-xinerama0-dev
$sudo apt-get install libxcb-randr0-dev

2. clone this repository and take in into the folder
$git clone https://github.com/krypt-n/bar && cd bar

3. install apt-file to search additional deppedencies
$sudo apt-get install apt-file

4. and try to compile with make ($sudo make) if you found log error like below follow step 5
5. search the file what they need the picture above say, they need Xlib-xcb.h so we use apt-file to search main deppedencies of Xlib-xcb.h
$apt-file search Xlib-xcb.h

6. if already search and show like this picture bellow
you must install the deppedencies like red tag on picture above. so, you must install libx11-xcb-dev
$sudo apt-get install libx11-xcb-dev

7. clear ?, back into bar folder and compile with make like this
$sudo make
8. and install with make like this
$sudo make install



and then its my lemonbar. i use HIVNotRetro and Hack font, you can pick your font name from lxappearance or other tweak tool

okey, thanks guy. if you harder to try, found other command, success, or etc please leave comment bellow. we disqus together.

download removewat7 untuk aktivasi windows 7 dan cara aktivasi windows 7 menggunakan removewat

hi sobat wandapcguide, gimana kabar nya ? semoga sehat terus ya, dan laptop dan komputer nya juga hehe :D kali ini aku akan berbagi removeWAT nih, apa sih itu removewat? singkat aja ya removewat adalah tool untuk aktivasi windows yang sangat mudah dan offline. walau beberapa windows nya tidak genuie tetapi dia sudah aktif atau memcrack windows itu tadi, tool ini sangat cocok untuk teknisi atau umum. karena, untuk aktifasi windows nya yang sangat mudah. oke langsung aja ini dia cara aktivasi windows 7 menggunakan removewat

bahan:
removewat dapat kalian download disini
password rar : windows

langkah:
1. ekstrak berkas yang kalian download
2. jalankan removewat nya
3. jika sudah dijalankan tekan tekan bacaan removeWAT seperti gambar dibawah ini
4. lalu klik yes
5. jika ada popup victim software close atau ok aja.

6. jika layar black screen dan hanya tinggal window dari removeWAT atau winRAR biarkan saja dan tunggu ada bacaan installation complete blabla. please, press ok to reboot! dan baru kalian klik ok.

note : untuk step 5 dan 6 maaf saya tidak bisa ambil gambar nya soalnya windows exploler bakal close.

dan setelah reboot lihat hasil nya, jika berhasil tidak akan ada lagi tulisan windows is not genuie, selamat !.
oke sob, itu saja yang dapat saya sampaikan semoga bermanfaat bagi kalian dan berguna. jika ada saran maupun berhasil dan kurang paham bisa tinggalkan komentar dibawah ini. sekian terimakasih :D

Search This Blog

Powered by Blogger.

About Us

Nama Blog

All About PC

Blog ini hanya membahas tentang pc, jika ada yang lain maka label atau tag nya saya taroh di lain-lain. mari belajar via internet :D

Earn Bitcoin with EZ click, no scam! TESTED BY ME

Advertisement

Formulir Kontak

Name

Email *

Message *