This is a dirty script written in free time. This script just extract the schedule from the sites and prints the result in a desirable format. You can pipe the info to conky, dzen2, yabar or dunst.
Choose your own color for any table elements.
Fully tested on Arch Linux
[Note]There's a lot of cleanup needed in this script.
When used with the lemonbar and as conky:
Weekly view with current status indicated by color
-
Clone the repo or download the zip
git clone https://github.com/blacpythoz/Nepal-Loadshedding-Schedule.git
OR
wget https://codeload.github.com/blacpythoz/Nepal-Loadshedding-Schedule/zip/master
-
Change the directory
cd Nepal-Loadshedding-Schedule/
-
Make the script executable
chmod +x load
-
Run the program first by update
./load -u
usage: load [OPTIONS] [GROUP_NO]
Info:
-a [default] Show all schedule
-g [group [1-7]] Select the groups
-t [group no] Show the today schedule
-w [group no] Show the weekly schedule
-C [true/false] Toogle the color options
-G [Color codes] Sets the color of the side bar text
-d [Color codes] Sets the foreground color of day text
-D [Color codes] Sets the background color of days
-B [Color codes] Sets the background color of tables
-F [Color codes] Sets the foreground color of tables
-S [Color codes] Sets the Selected foreground color of tables
-U [true/false] Sets the underline in the tables data
-h [topics] Print this text and exit
[COLOR CODES] natural = natural black = 0 red = 1 green = 2 yellow = 3 blue = 4 magenta= 5 cyan = 6 white = 7
Examples: