/conky-modern

A modern theme for conky with media and hardware information

Primary LanguageShellMIT LicenseMIT

conky-modern

A modern theme for conky with media and hardware information

conky-modern preview

Installation

Dependencies

Playerctl for media information

Instructions

Install playerctl, and run the following command in a terminal:

wget -O - https://github.com/jamerst/conky-modern/raw/master/install.sh | bash

This will download and run the install.sh script, which will clone the repository into the correct directory, install the necessary font, and create a symlink to ~/.conkyrc. Any existing .conkyrc will not be overwritten, but will be renamed.

Alternatively, just clone the repository manually into ~/.conky/conky-modern and install the font in the fonts folder, then create a symlink from ~/.conky/conky-modern/conky-modern.conky to ~/.conkyrc, or start conky with an explicit reference to the theme file using the -c option.

Configuration

As with all conky themes, this theme probably isn't very portable. It's configured and tested to work on my system, since that's the system I use it on, but to get it working to your liking on your system, you may have to modify it. This section covers the most common modifications you may need to make.

Setting Position

The position of the meter can be set using the alignment, gap_x and gap_y variables in the conky theme file (~/.conkyrc if you used the install script). The theme is best optimised for the top_left alignment, and it hasn't been tested with the other layouts, so I wouldn't advise changing this. If you find that the theme displays on the wrong monitor, as I found it did, using a large/negative value for gap_x was the easiest way I found to move it to the correct monitor.

Setting Media Player

Playerctl should work with any media player that implements MPRIS. Change PLAYER_NAME on line 72 of the theme file to the process name of your chosen media player to allow detecting when the player is open.

If your player doesn't implement MPRIS, but has an alternative way to extract data about the currently playing media, you can modify the theme file to perform the data retrieval actions.

Network Information

To change the source of network information, change every instance of eno1 to the identifier of your desired network interface. This can be found by running the command ifconfig in a terminal.

GPU Information

I can only test with an Nvidia GPU and the Nvidia proprietary driver, but if you're using an AMD or Intel GPU, or even a different driver, you'll need to modify the commands used to get GPU information since none of them are native to conky. I don't know and can't test the specific commands needed, so you'll need to use Google to find commands that work for you, then simply change the commands in the execi variables.

Known Issues

  • None! (Probably isn't very efficient, though I'm not sure what can be done about this)

Attributions