FINALLY! SOME UPDATES! This website is being reconstructed. Some content will go away soon. If you want to see my new stuff, visit my github: https://github.com/jrcharney/.

September 28, 2012

A little more bash

I am happy to report that thermos.sh is now ready for tmux. However, tmux refuses to honor the color codes that were put into thermos.sh, not even after rewriting it with an option to not use colors and replacing much of the gawk code with bash so that options could be added.

It also turns out I hadn't had a ~./tmux.conf file set up. There wasn't one in /etc/ either. At any rate, the local file hidden in the home directory still allows for greater freedom as things can be applied to my own environment.

# File: ~/.tmux.conf
# Info: This file manipulate the appearance of tmux.  See man tmux for options.
set-option -g status-bg colour0 # black		# TODO: I wan't this to be TRANSPARENT not black
set-option -g status-fg white
set-option -g status-interval 15
set-option -g status-right "#(~/thermos.sh --nocolor)"
set-option -g pane-active-border-fg blue
This is what I have so far in my ~/.tmux.conf

Take note, that anything that is not applied in the above file thus far is set to the default settings, which I wish tmux had come with a /etc/tmux.config file so that I could take a peek at what the default settings were.

I want you to take note of a couple of settings status-interval and status-right. The first line says that every 15 seconds, the status bar should update, the second line runs thermos.sh in the lower right corner thanks to a little ncurses.h magic. There is a status-left btw, but the status-right is particularly worth noting as that is your widget area. I have some ideas for using this space better, but it will require more frequent status updates. As great as the image icons have a purpose for the general computer user, people who know computer enthusiasts love the command line. Things like tmux, urxvt (which I'm still trying to get set up), and ncurses.h still allow the programmer to exercise their minds and imagination. Of course, this is to an extent. I mean, if you want to write a program in OpenGL or HTML5 Canvas, GUIs are the way to go. But the real impressive stuff is still the low-high-tech way to do things. It's not enough for you to wait for someone else to create something awesome. That's where you must fill in that need and make something yourself.

Tags

Under Construction