i3wm xenial-i3 introduction -- mate terminal & battery monitor
#1
Information 
Greetings,

The purpose of this blog post is to introduce the  i3  window manager , as well the ayufan xenial-i3 pine community image.  I am a completely sold out i3wm convert ;  never going back--  i3 for me !

The i3 Window Manager Tutorials and Introductory Videos

       Tutorial Introduction from i3wm.org

       On-line Tutorial Video Part (1/3)

       On-line Tutorial Video Part (2/3)

       On-line Tutorial Video Part (3/3)

       i3wm User's Guide from i3wm.org

The above tutorials are well worth the time and effort, are fast--and fun--and will get you up and running with this super tiling windows manager on your new Pinebook !

I am currently running the 0.4.16 xenial-i3 on my Pinebook with the mate-terminal;  you may quickly want to replace the terminal on i3 because the font is so small, and because the dafault is a minimalist terminal;  the mate-terminal is fully equipped and ready to roll with nice fonts and a rich tool-bar:

       sudo apt install mate-terminal

Below I am going to show the interface of this excellent tiling window manager, and provide a batt_status.sh script which can be used to monitor your battery status more effectively than the i3 status bar.

         


The pic above is my first ( #1 ) virtual work space;  I have three terminals open--  it is clearly obvious why its called a tiling window manager.  Not to worry , floating windows are configurable too!

I'm doing some Python work in the left terminal, and in the right terminal I'm displaying the code ( also included here ) for displaying the battery status in a loop-- running in the bottom right-hand terminal of work-space #1.

I removed the battery block of my  .i3status.conf  file.  The script below ( batt_status.sh ) goes in your ~/bin/  folder and runs in a forever loop in a small terminal showing the battery current status ( charging | discharging ) the voltage in micro volts, and the percent capacity. 

Note:  the battery status bar component is broken on this image.  The script below is a simple elegant solution for battery monitoring in a tiling terminal environment.

batt_status.sh

Code:
#!/bin/bash
   
while [ 1 == 1 ]
do
   echo " capacity : " `cat /sys/class/power_supply/battery/capacity`
   echo "  voltage : " `cat /sys/class/power_supply/battery/voltage_now`
   echo "   status : " `cat /sys/class/power_supply/battery/status`
   sleep 7
done

Note:  the little quote-like characters above ARE NOT quotes-- they are back-ticks;  the little character under the tilde ( to the left of the 1 key on most keyboards ).


Remember,  i3  is a tiling window manager NOT an OS;  the operating system under the covers is ubuntu which is a debian derivative.  

Enjoy !

Shy
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
  Reply


Messages In This Thread
i3wm xenial-i3 introduction -- mate terminal & battery monitor - by MarkHaysHarris777 - 08-29-2017, 05:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] How to poweroff PBP from Linux terminal? mx43 1 1,220 03-21-2020, 12:49 PM
Last Post: tllim
  Display battery charge value with LXDE and lxpanel wlad 1 1,923 12-04-2019, 03:36 AM
Last Post: pnts-se
  Armbian - Xenial Desktop (Pinebook) pineadmin 83 46,405 07-17-2019, 01:22 PM
Last Post: catsmile
  Improve the life of your Pinebook battery by setting charger's voltage limits wlad 0 1,303 06-11-2019, 02:27 PM
Last Post: wlad
  Adding coherent_pool to boot.cmd on Xenial Mate by Ayufan causes boot loop k_mp 0 701 06-11-2019, 01:36 PM
Last Post: k_mp
  How can I reliably get battery status on pinebook tillea 5 4,077 06-11-2019, 10:10 AM
Last Post: wlad
  Problems putting Ubuntu (Xenial Mate) on my replacement eMMC. frank-zappa 11 4,143 05-01-2019, 12:09 PM
Last Post: frank-zappa
  Battery Status in Bionic X-Istence 3 1,715 03-11-2019, 03:52 PM
Last Post: soupbowl
  .bashrc to show battery percentage at prompt e-minguez 1 961 03-05-2019, 07:03 PM
Last Post: PatrickM
Information How to set the Power Off key binding in i3wm for the Pinebook MarkHaysHarris777 4 3,181 12-25-2018, 05:57 AM
Last Post: binholz

Forum Jump:


Users browsing this thread: 1 Guest(s)