Showing posts with label terminal. Show all posts
Showing posts with label terminal. Show all posts

Saturday, March 11, 2017

GTK3 Tiling Terminal Emulator Terminix 1 1 0 Beta Released With UI Changes Background Image Support

GTK3 Tiling Terminal Emulator Terminix 1 1 0 Beta Released With UI Changes Background Image Support


Almost two months after its first stable version, Terminix 1.1.0 beta was released today, bringing UI changes, support for background images and more.

Terminix GTK3 Tiling Terminal Emulator

In case youre not familiar with Terminix, this is a GTK3 tiling terminal emulator. The application allows splitting terminals, both horizontally and vertically (which can be re-arranged using dragndrop), and it features options to save and restore the layouts.

The most important change in the latest Terminix 1.1.0 is probably the redesign of some parts of the application, making it less cluttered and more intuitive.

For instance, until now you had to look into a terminals title or context menu to create a new horizontal or vertical terminal split. Thats no longer the case and in Terminix 1.1.0 beta, there are two headerbar buttons that allow you to add a new terminal to the right or down.

Other UI changes include the addition of a find button in the headerbar, decluttered terminal menu, the session button no longer uses the new tab icon, which was confusing, and more.

You can read more about the design changes in Terminix 1.1.0 beta, HERE.

Terminix GTK3 Terminal Emulator
Terminix 1.1.0 with the default Ubuntu 16.04 wallpaper used as background image

Other changes in the latest Terminix 1.1.0 beta:
  • support for background images;
  • limited support for automatic profile switching;
  • option to globally disable shortcuts;
  • option to automatically copy text to clipboard when selecting;
  • support for a Visual Bell;
  • numerous bug fixes.

For a bit more information, including how to disable the client-side decorations and use a traditional titlebar, see our initial Terminix article.

Download Terminix


Download Terminix (source code and 64-bit binary - requires GTK 3.14+ and GTK VTE Widget 0.42, available with Ubuntu 15.04+)

To install the latest Terminix 1.1.0 beta 1.2.0 64bit binary in Ubuntu (15.04, 15.10, 16.04 or 16.10) or Linux Mint 18, you can use the following commands:
sudo apt-get install wget unzip libglib2.0-bin
cd /tmp
wget https://github.com/gnunn1/terminix/releases/download/1.2.0/terminix.zip
sudo unzip terminix.zip -d /
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

If the application doesnt show up in the menu or its menu entry doesnt have an icon, you can try to restart the session (logout/login), or run the following command to update the HiColor icon theme cache:
sudo gtk-update-icon-cache --ignore-theme-index -f -q /usr/share/icons/hicolor/

Or build it from source. For other Linux distributions, see THIS page.


Available link for download

Read more »

Friday, February 3, 2017

Get Weather Information From A Terminal Using Nothing But cURL

Get Weather Information From A Terminal Using Nothing But cURL


wttr.in is a web frontent for Wego, a weather app for the terminal. Using nothing but cURL and wttr.in, you can get weather information from a terminal, without having to install anything (well, except for cURL).


By default, the service tries to determine your location automatically but if that fails, it allows you to specify the location in multiple ways, by city name, 3-letter airport code, ZIP code and it even allows retrieving the weather for the location of a domain name or IP address.

Other features include a 3-day weather forecast, display moon phase and support for both metric (SI; used by default everywhere except the US) and USCS (used by default in the US).

Under the hood, wttr.in uses WorldWeatherOnline for the weather information, though this might change in the future because Wego, the tool which wttr.in uses as its backend, recently switched to forecast.io by default.

While its not required to install wttr.in to use it, you can install it on your server if you want - see the installation instructions HERE.

wttr.in: online service | source (GitHub)


Using wttr.in


The only requirement for using wttr.in is "curl". Ubuntu / Debian / Linux Mint users (and derivatives) can install it using the following command:
sudo apt-get install curl

Then simply run the command below to get the weather for your current location:
curl wttr.in

If wttr.in fails to detect your current location or if you want to get weather information for a different location, you can specify 3-letter airport codes, city names, domain names or IP addresses. Here are a few examples:

- get the weather for New York (for city names containing spaces, you can either enter the name in quotes or use an underscore - for example, both "new york" and new_york work):
curl wttr.in/"new york"
- get the weather for Paris:
curl wttr.in/paris
- get the weather for London using a 3-letter airport code (Im using the Heathrow Airport code below):
curl wttr.in/lhr
- get weather information using a ZIP code (note that wttr.in calls this "area code" but area codes are actually a different thing):
curl wttr.in/60602

To retrieve the weather using metric or USCS units, simply append "?m" or "?u" to the command (without the quotes). For instance, to force metric (SI) units to get weather information for Chicago, you would use:
curl wttr.in/chicago?m

To see all the available options, use "curl wttr.in/:help". Heres how it looks like:
$ curl wttr.in/:help
Usage:

$ curl wttr.in # current location
$ curl wttr.in/muc # weather in the Munic airport

Supported location types:

/paris # city name
/muc # airport code (3 letters)
/@stackoverflow.com # domain name
/94107 # area codes

Special locations:

/moon # Moon phase (add ,+US or ,+France for these
cities)

Units:

?m # metric (SI) (used by default everywhere
except US)
?u # USCS (used by default in US)

Special URLs:

/:help # show this page


Tip: add a wattr.io alias for your current location

From what Ive read, it looks like wttr.io fails to get the location pretty often so to make it easy to use, you can add an alias to your ~/.bashrc file so you can simply type "wttr" to get the weather for your location.

To add an wttr.io alias for your current location, open ~/.bashrc with a text editor - Ill use Gedit below:
gedit ~/.bashrc
and at the end of the file, paste this:
alias wttr=curl wttr.in/CITY_NAME
... replace "CITY_NAME" with your city name (or another way supported by wttr.in for getting your location - ZIP code, airpode code, etc. - see above), then save the file and run the following command in a terminal to source the ~/.bashrc file (use its new configuration):
. ~/.bashrc
(theres a dot, then a space before ~/.bashrc)

After youre done, you can simply type "wttr" in a terminal to check the weather.

seen @ UbuntuLife, Taringa


Available link for download

Read more »