Commit Graph

79 Commits

Author SHA1 Message Date
Lucien Cartier-Tilet 2ed6b68d1a
Bump version, add Github link 2021-05-02 17:57:35 +02:00
Juergen Hoetzel 08f16efde7 Use C locale for external processes to prevent parsing issues 2021-05-02 16:28:22 +02:00
Lucien Cartier-Tilet 3ebb3a65fe
Merge pull request #2 from bkaestner/main
Use alternatives for /etc/os-release
2021-05-02 14:02:01 +02:00
Benjamin Kästner 3ac03293a9 os: Remove fall-back on function argument
As `release-file` is used only once in the function, we don't need to
set its default value via `setq' if it is `nil`.
2021-05-01 23:46:56 +02:00
Benjamin Kästner c432776b95 os: Check for programs/files instead of ignoring errors 2021-05-01 17:48:15 +02:00
Lucien Cartier-Tilet 1c3c31ace7
Merge pull request #3 from juergenhoetzel/undefine-funtions
Replace undefined functions length= and length> with Emacs builtins
2021-05-01 15:34:46 +02:00
Juergen Hoetzel 1fdf0b0c0a Replace undefined functions length= and length> with Emacs builtins 2021-05-01 14:04:53 +02:00
Benjamin Kästner 9ccd234a3d os: search in temporary buffer instead of string
Instead of filtering all lines for `PRETTY_LINE` and then replace the
line with only the quoted contents, `re-serach-forward` (or -backward)
provide a `match-*` interface. That way we can work solely inside the
buffer and return only the matching string part.
2021-05-01 12:47:29 +02:00
Benjamin Kästner f4734014ac Provide more operating system identification methods
While `/etc/os-release` is usually available on Linux systems, it
might be missing on distribution that don't follow that convention.

For those distributions, the commands `hostnamectl` (from systemd) and
`lsb_release` might provide an alternative. Unfortunately, those
commands might also be missing as well as `/etc/os-release`, so the
newly introduced `eshell-info-banner--get-os-information` function
falls back to the string "Unknown" (and should never fail).

Fixes #1.
2021-05-01 12:46:25 +02:00
Lucien Cartier-Tilet 6ad83f2a0d
Bump package version, add upcoming changes in README
I forgot to bump the package version in the previous commits orz
2021-04-30 16:59:42 +02:00
Lucien Cartier-Tilet 1b7ed9e9c8
Add battery level to header 2021-04-29 23:59:56 +02:00
Lucien Cartier-Tilet 7054b08123
Some more instructions on customization 2021-04-29 23:05:31 +02:00
Lucien Cartier-Tilet 77f90dd35e
Update screenshot to fixed version of package 2021-04-29 22:03:17 +02:00
Lucien Cartier-Tilet eaddd07e87
Fix shortening paths 2021-04-29 22:00:54 +02:00
Lucien Cartier-Tilet ba99c6cfa7
Fix README’s headings 2021-04-29 21:58:20 +02:00
Lucien Cartier-Tilet d780c3ffde
Add README 2021-04-29 21:57:30 +02:00
Lucien Cartier-Tilet 872bee6a9f
Add GPL-3.0 License 2021-04-29 21:57:19 +02:00
Lucien Cartier-Tilet 4f34968363
Remove unused variable, fix default values, add autoload 2021-04-29 21:56:53 +02:00
Lucien Cartier-Tilet 0974464af2
Fix package requirements 2021-04-29 21:56:30 +02:00
Lucien Cartier-Tilet ccb4bf0c36
Add autoload, banner updater and correct require 2021-04-29 20:07:16 +02:00
Lucien Cartier-Tilet 3d3e2b3bbe
Display of memory and partitions added!
FIXME: Wrong face used, warning instead of critical
2021-04-29 20:03:02 +02:00
Lucien Cartier-Tilet 4b592a1f9e
Preliminary banner written, rest should be written easily
Ensures there will always be space for OS, kernel, uptime and hostname
information. Padding works well.

Now, I need to work on the progress bars with the memory and the
partitions.

I might add later a bar for the battery.
2021-04-29 19:42:18 +02:00
Lucien Cartier-Tilet f6caf18f19
Actually respect user’s choice of percentages 2021-04-29 14:19:24 +02:00
Lucien Cartier-Tilet a7017ac0e1
Shorten paths only when needed 2021-04-29 14:19:05 +02:00
Lucien Cartier-Tilet 1914b7d0c2
Fix issue with last element in path shortened 2021-04-29 14:18:34 +02:00
Lucien Cartier-Tilet c40d13a0fd
Add constant for path shortening 2021-04-29 14:17:51 +02:00
Lucien Cartier-Tilet dab66a1c92
Add FIXME 2021-04-29 12:30:08 +02:00
Lucien Cartier-Tilet 37656ed83c
Better string formatting, add partition display
FIXME: All elements in a path are shortened even if not necessary
2021-04-29 12:28:07 +02:00
Lucien Cartier-Tilet ed7319bd09
Initial commit, most code is already written 2021-04-29 12:08:52 +02:00