i3wm With Conky-i3bar-JSON

Desktop View. Well, not really a desktop. It's a Window Manager.


geeky stuff
#i3wm | #conky | #i3bar | #json | #hijridate | #python | #archlinux
The [i3bar] located at the bottom of the desktop is filled with status (system information) piped from [conky] via JSON. Among the item shown in the i3bar is the Hijri date obtained from a python package called 'Umalqurra'. I tweaked a bit the original python codes and modified the date and year in Hijri so that it displays the date in full arabic format.

Listed below are the edited files related to the ‘Umalqurra’ package:-

  1. hijri.py;
  2. hijri_date.py; &
  3. idate.py (The script which I saved in my home directory to print the Hijri date)

Additional Info

If there is an error prompting the following,
"lib/python3.6/site-packages/umalqurra/hijri_date.py", line 10, in
from hijri import Umalqurra
ImportError: NO MODULE NAMED 'hijri'
You can do the following to solve the problem (as advised by sijms HERE):-
  1. Go to python folder @ /usr/lib/python3.6/site-packages/umalqurra,
  2. In the folder, edit the following files:-
    • File: hijri_date.py
      Replace "from hijri import Umalqurra" with
      from umalqurra.hijri import Umalqurra
    • File: hijri.py
      Replace "from ummalqura_arrray import UmalqurraArray" with
      from umalqurra.ummalqura_arrray import UmalqurraArray

The links to .conkyrc and i3 config files are available below:-

  1. .conkyrc;
  2. config (automatically generated by i3-config-wizard and modified to my liking). Specifically, take note of the configuration for i3bar in this particular file:
    # Start i3bar to display a workspace bar (plus the system information i3status finds out, if available)
    bar {
    status_command $HOME/.config/i3/conky-i3bar
    }
    A shell script saved as ‘conky-i3bar’ needs to be created where it will execute conky to display information as specified in the .conkyrc file
  3. conky-i3bar

Notes:-
  • If the package is installed through python-pip, the hijri.py and hijri_date.py file normally reside in "/usr/lib/python3.*/site-packages/umalqurra/" directory ;
  • The package can also be downloaded or cloned from [this github repository].

Kali terakhir halaman ini dikemaskini/disemak semula adalah pada .
Top