Commit Graph

3881 Commits

Author SHA1 Message Date
Vincent Aranega 90c46651d6 Add terminal font detection support for terminology
Support for terminology font name detection is based on the terminology config file. This file is always located here: `~/.config/terminology/config/standard/base.cfg` (30cb65625b/src/bin/config.c (L216)) and is in a data/binary format. The only way I found (beside coding a dedicated extractor) is to use `strings`. The font name seems to be placed right before the `font.name` string.

    strings ~/.config/terminology/config/standard/base.cfg | grep -B1 font.name | head -1

Here are results that could be output:

    $ strings ~/.config/terminology/config/standard/base.cfg | grep -B1 font.name | head -1
    6x13.pcf
    --> (for a bitmap font) and with another font selected
    $ strings ~/.config/terminology/config/standard/base.cfg | grep -B1 font.name | head -1
    Inconsolata:style=Regular

These results are easily "parseable" in order to extract the font name for display.
2016-06-16 12:14:05 +02:00
Dylan Araps 09e3dc5146 Changelog 2016-06-16 17:19:58 +10:00
Dylan Araps 65c2854caf Make --image off behave like other modes 2016-06-16 17:19:00 +10:00
Dylan Araps c13c17888e Fix #289 2016-06-16 17:09:24 +10:00
Dylan Araps 5f2f1aaeae Merge pull request #287 from iandrewt/refresh_osx-2
improved refresh_rate fix, now actually works on OS X...
2016-06-15 21:24:51 +10:00
Andrew Titmuss df1e73a6b0
better way that works in multi monitor setups 2016-06-15 21:02:33 +10:00
Andrew Titmuss cd51987f17
improved refresh_rate fix, now actually works on OS X... 2016-06-15 20:18:57 +10:00
Dylan Araps 0840ef2466 Changelog 2016-06-14 17:10:59 +10:00
Dylan Araps 9e49e31bba Merge branch 'master' of https://github.com/dylanaraps/neofetch 2016-06-14 17:10:14 +10:00
Dylan Araps 3b4335583d Merge pull request #285 from iandrewt/refresh_fix
fixed refresh rate on OS X
2016-06-14 17:10:10 +10:00
Andrew Titmuss f61dde03b0
missed the other brackets... 2016-06-14 17:07:35 +10:00
Andrew Titmuss 47a850a305
changed double bracket 2016-06-14 17:04:22 +10:00
Dylan Araps 517bde1ce3 Merge branch 'master' of https://github.com/dylanaraps/neofetch 2016-06-14 17:02:29 +10:00
Dylan Araps 50ff116b64 Remove regex matching from disk usage 2016-06-14 17:02:14 +10:00
Andrew Titmuss 1d6f99b0d4
better test for 0Hz 2016-06-14 17:01:04 +10:00
Andrew Titmuss 3d52a73e3a
fixed refresh rate on OS X 2016-06-14 11:46:41 +10:00
Dylan Araps 115f23fa22 Update 1.8.md 2016-06-14 08:32:37 +10:00
Dylan Araps 00b4327ff3 Merge pull request #284 from iandrewt/patch-2
Add support for macOS Sierra
2016-06-14 08:32:03 +10:00
Andrew Titmuss 9eea0ac869 Add support for macOS Sierra 2016-06-14 08:08:09 +10:00
Dylan Araps b12ebdb5ed Merge pull request #283 from konimex/master
New installation instruction for Gentoo/Funtoo
2016-06-13 23:02:03 +10:00
Muhammad Herdiansyah fb836d5e91 New installation instruction for Gentoo/Funtoo 2016-06-13 19:47:11 +07:00
Dylan Araps 5e0c15a352 Merge pull request #281 from dylanaraps/usage
Fix CPU Usage
2016-06-13 22:37:47 +10:00
Dylan Araps 59e0a166a2 Changelog 2016-06-13 22:37:11 +10:00
Dylan Araps 9f28c025bb Condense awk command 2016-06-13 22:33:34 +10:00
Dylan Araps 758f883eb9 Update comments 2016-06-13 22:22:59 +10:00
Dylan Araps 296c0d7e61 Changelog 2016-06-13 22:06:22 +10:00
Dylan Araps 51c8c80d4a Changelog 2016-06-13 22:03:24 +10:00
Dylan Araps e54ebf8367 Fix incorrect info color when barinfo is used. Closes #282 2016-06-13 21:59:54 +10:00
Dylan Araps 57a0ed4d5d Update usage 2016-06-13 21:42:53 +10:00
Dylan Araps 1be5423b1d Fix usage on BSD 2016-06-13 21:21:32 +10:00
Dylan Araps d3c2216f48 Add CPU Usage comments 2016-06-13 20:46:13 +10:00
Dylan Araps 5a976e9d45 Remove stray newline 2016-06-13 20:45:06 +10:00
Dylan Araps 82143f4712 Fuck wmic 2016-06-13 20:42:16 +10:00
Dylan Araps 4a3de0c8ae Fixed whitespace for realsies this time 2016-06-13 20:40:31 +10:00
Dylan Araps dd82e6de24 Fix whitespace take 2 2016-06-13 20:32:20 +10:00
Dylan Araps ac9c0a80c7 Fix whitespace on Windows 2016-06-13 20:28:31 +10:00
Dylan Araps 8e8ac505ca Fix spacing on windows 2016-06-13 20:26:21 +10:00
Dylan Araps c3ddcaa331 --test: Include cpu usage 2016-06-13 20:23:57 +10:00
Dylan Araps c69a8f2418 Move CPU Usage to its own function 2016-06-13 20:22:38 +10:00
Dylan Araps 24fde4f6a6 Fix prompt issues 2016-06-13 19:50:20 +10:00
Dylan Araps d65aa4bc6b Fix cpu usage 2016-06-13 19:40:54 +10:00
Dylan Araps efcc7e8273 Fix image mode in tmux 2016-06-13 19:25:09 +10:00
Dylan Araps c5beb9f0dc Remove comment at the top of the script about dependencies 2016-06-13 19:18:47 +10:00
Dylan Araps 00bf34b88f Changelog 2016-06-13 19:16:00 +10:00
Dylan Araps 45445e2c5e Changelog 2016-06-13 19:14:56 +10:00
Dylan Araps 1be7454d08 Merge pull request #280 from dylanaraps/image_position
Remove Image position
2016-06-13 19:12:29 +10:00
Dylan Araps 0b0021ed31 Merge pull request #279 from dylanaraps/prompt
Dynamically set cursor position in image mode.
2016-06-13 19:10:50 +10:00
Dylan Araps ec8e4f5d5b Remove image_position 2016-06-13 19:08:03 +10:00
Dylan Araps 43d4e1e865 Add comment 2016-06-13 17:29:25 +10:00
Dylan Araps 64ed65fbf0 Uncomment functions 2016-06-13 17:28:01 +10:00