#conky

i3wm With Conky-i3bar-JSON
Desktop View. Well, not really a desktop. It's a Window Manager.

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:-\

.conkyrc
~/.conkyrc

out_to_x no own_window no out_to_console yes background no max_text_width 0 times_in_seconds true # Update interval in seconds update_interval 2.0 # This is the number of times Conky will update before quitting. # Set to zero to run forever. total_run_times 0 # Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off. short_units yes # How strict should if_up be when testing an interface for being up? # The value is one of up, link or address, to check for the interface # being solely up, being up and having link or being up, having link # and an assigned IP address.

conky-i3bar
~/.config/i3/conky-i3bar

#!/bin/sh # Send the header so that i3bar knows we want to use JSON: echo '{"version":1}' # Begin the endless array. echo '[' # We send an empty first array of blocks to make the loop simpler: echo '[],' # Now send blocks with information forever: exec conky -c $HOME/.conkyrc Rujukan: -- Lihat juga: i3wm With Conky-i3bar-JSON

config
~/.config/i3/config

# This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # # Should you change your keyboard layout some time, delete # this file and re-run i3-config-wizard(1). # # i3 config file (v4) # # Please see http://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below.

Top