- update to version 2.15:

* man: document --run-once flag
  * meson: replace bashisms
  * update to clang-format-12
  * add missing newlines to some error messages
  * make maybe_escape_markup() memory-safe
  * fix segfault when read_file lacks a path
  * ethernet: printer faster speeds in Gbit/s, e.g. 2.5 Gbit/s
  * wireless: correctly display bitrates > 2147483647 bps
  * ipv6: add support for %iface placeholder
  * battery: add status idle (e.g. configured to stop charging)
  * battery: increase maximum string size to make space for markup
  * *BSD: fix build, use statvfs
  * *BSD: use f_bsize for disk_info
  * OpenBSD: add CPU spin support
  * OpenBSD: properly print wireless signal strength

OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/i3status?expand=0&rev=24
This commit is contained in:
Dan Čermák 2025-02-11 08:41:29 +00:00 committed by Git OBS Bridge
commit 73b80feab6
9 changed files with 448 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
i3status-2.13.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce89c9ff8565f62e88299f1a611229afdfc356b4e97368a5f8c4f06ad2fa1466
size 201409

16
i3status-2.13.tar.bz2.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEQk4U1wPnxtQ9nW82TnFg7UrI7h0FAl0Y+OoACgkQTnFg7UrI
7h2rVQ//VptgbqdGqnoXT57cGv8qUqCKwhwR7NP/stx45MLuh7Zcs5Fn/kOCloLL
Zj70orw6e9URwPldnSDDOS0au+OvLaCnQN1ZskIQ3LWxEOKAW9zK2qdnlK+AC2ps
xUaiSPuoPRg1c/NoaIzBSIosH2hpCAQViaNP8MdfY/EZ72HAIvws3S2xF6zC5R8R
V4g/ckuUYLE44dfUtioSrrh7mOVPLSbd+refHt3JuKgwaTq6PJg7QMcxYgZGosZu
qXdaiik8hrHGKMW/J8HE9oKa0p8wStoXfvW19T+3sMUdRgf20E7vdCpmise8OjsB
PrM9cuPn2eQT7VQC32HTAvkRbkZ0r6VUPrexJuHVAKjTIRCx/kIdR948Z222z+bh
CwmoOAUVrYAD3H+cdmeTkhUR1OcZT/j0U3Y6V42RX2ETkNro7Gowy9w99lm/aNKu
Sex9t36P0ELP7JoQY3ekKAXcjA0ks4Z3wndIcqDxSFHMqMF5Pnjr4kXIgFb1Ctfu
j0FvhzrUxtp147hcoOibMi7cAEJqAPnAK2YopncabswHfBfTg0ThSkQM/GLhnLEY
vW2HaiolPFDfbKGTSwoaPrKnjZ0yOO0PjnPC5NxPy+v+RDjMiYwILNNP+/Y82xCY
DrlXMeE6STBPW5A/UMNYbTzC0DlhIqngF25VwoA8z8ZdrrGpI4g=
=2ZfC
-----END PGP SIGNATURE-----

3
i3status-2.15.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6c67f52cae4f139df764ad1cc736562be0f97750791bc212b53f34c06eaf2205
size 70220

16
i3status-2.15.tar.xz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEQk4U1wPnxtQ9nW82TnFg7UrI7h0FAmbDdD0ACgkQTnFg7UrI
7h3/9xAA0dBtE+8vPNWULZKpPbiqU4O9M7+/XJJDzOpvBs+JdHuG7N0id+WJEo36
AqAlgQ9+433oLkSTldIlKuudvX3nTBmOoeKEahytSCNuGOTybujADCg91QipjRZa
HAMt84Vq+IGLDsq5b99LB5pJUijK8/CACmSBuD56bKFp5mpm2HS1kv64m8+MtTve
peTBiTXoPLw40jAo+6MNIBgeXw0FxWd9JfkEe704cJpQo00i9+KZsauXfa5nE0vL
RNZiB5soSXfroKIibMOulnAtNJUsxode+IDkFzCidTuDsZbxRG1J2sua9Zhsjeoz
DZal7iu+DtBHCFpNdrMXqIC7iJGoS/iLVJQxCxjHZau57xi1bJG56R3ohwnDra2b
ZIZTgHlASHPfeenhlyr8i4axAnMtcZ6d5iyR7SB5sjoY4SErUqmu0gpvcntADP7M
KXee3TSMMKtITARjdVJMdng5HXhuBb9y+c6aJoG1XNzq3wGEDPGCHo/CqM3ofnD9
fICbO89D1sUrO0kxKTlaCKGODC7zOoQ2Nu+61HaWnjsEjEvquHATIuoUuJ2/LXq8
CaKxBVDqFrz1f+iXo9s3nVOAMK9/AwyGmpLbqGLVZxhtws7ZJCE9KxDlGrad9agx
HlOufYlIGV4Y79AHqOOfp1hf4s5lJeAgaF8uK1dhnEeefjbIL2M=
=7jFz
-----END PGP SIGNATURE-----

252
i3status.changes Normal file
View File

@ -0,0 +1,252 @@
-------------------------------------------------------------------
Mon Feb 10 19:55:16 UTC 2025 - Matthias Eliasson <elimat@opensuse.org>
- update to version 2.15:
* man: document --run-once flag
* meson: replace bashisms
* update to clang-format-12
* add missing newlines to some error messages
* make maybe_escape_markup() memory-safe
* fix segfault when read_file lacks a path
* ethernet: printer faster speeds in Gbit/s, e.g. 2.5 Gbit/s
* wireless: correctly display bitrates > 2147483647 bps
* ipv6: add support for %iface placeholder
* battery: add status idle (e.g. configured to stop charging)
* battery: increase maximum string size to make space for markup
* *BSD: fix build, use statvfs
* *BSD: use f_bsize for disk_info
* OpenBSD: add CPU spin support
* OpenBSD: properly print wireless signal strength
-------------------------------------------------------------------
Mon Sep 9 08:50:37 UTC 2019 - Dan Čermák <dcermak@suse.com>
- update to version 2.13:
* add memory module
* add read_file module
* drop CAP_NET_ADMIN (not needed on Linux ≥ 2.6.37)
* switch to autotools
* battery: hide seconds by default
* wireless: add format_quality
* doc: clarify min_width not being supported with dzen2/xmobar
* battery: read multiple batteries on DragonFlyBSD
* make: dont use pulseaudio on DragonFlyBSD
* wireless: detect interface type on DragonFlyBSD
* cpu usage: fix: correctly print usage for cpu 10
* cpu usage: fix: correctly print for invalid %cpu placeholder
* cpu usage: support non-consecutive CPUs
* time: add only_when_tz_different option
* ethernet: add %interface
* ethernet: fix speed display for 100 Gbit/s cards
* battery: handle POWER_SUPPLY_STATUS=Not charging
* volume: provide more natural volume percentage with ALSA
* volume: fix ALSA capture device monitoring
* volume: implement %devicename for PulseAudio and ALSA
* config: re-arrange disk after network interfaces
* fix: include sys/socket.h on macOS
* fix: strip network interface labels
* fix glob(3) error handling
* various testsuite improvements
* switch to clang-format-3.8
-------------------------------------------------------------------
Fri May 18 15:47:31 UTC 2018 - jengelh@inai.de
- Ensure neutrality of description.
-------------------------------------------------------------------
Sat May 12 03:32:58 UTC 2018 - avindra@opensuse.org
- update to version 2.12:
* show IP address when address has a label
* treat zero battery capacity as "not available"
* add IPv6 address when IPv4 isn't available
* call tzset at each time print to pick up time zone changes
* doc: fixed minor typos
* be more cautious about handling invalid battery measurements.
* fix CPU unit tests
* use local timezone for battery %emptytime
* fix memory leak/use BEGINS_WITH macro
* _first_: add check for virtual ethernet devices
* add battery capacity parsing
* multiple CPU support for cpu_usage
* remove useless checks (we use char, not unsigned char) to fix
compilation warnings
* disk: sanitize trailing slashes
* suppress printing :00 seconds of remaining battery lifetime, as
apm(4)'s estimate only has a granularity of minutes.
* Makefile: make PKG_CONFIG overridable
* man page updates
- cleanup with spec-cleaner
- use https urls
- remove yajl fallback from source to ensure ours is used
- remove SLOC comment from description (no longer valid)
-------------------------------------------------------------------
Wed Apr 12 20:47:43 UTC 2017 - arun@gmx.de
- update to version 2.11:
* re-add forgotten wakeup call from SIGUSR1 handler
* disk_info: bugfix: check format_not_mounted is not NULL before
using it
* revert back to using nanosleep
* man: give more descriptive symbols to battery format
* battery: removes the 'remaining' time when the battery is full
* add separator and separator_block_width as universal module
options
* man: fix link to contrib
* cpu_temperature: add glob check
* battery: add status_unk
* reconnect to PluseAudio when connection is lost
* wireless: add ifdef to compile on macOS
* order default configuration paths the same as in i3
* add version files for release tarball
* man: make tztime example config match the context
* cpu_usage: add color thresholds
* battery: support multiple batteries
* disk: use empty string for not mounted disks
* default config: remove DHCP, VPN
* wireless: fix FTBFS on hurd and kFreeBSD
* parse uevent file to detect network device type
* allow pulse device to be specified by name
* battery: find batteries using glob
* tztime: support locales
* wireless: use blank padding for quality
* add unit tests
* fix compilation with -fno-common
-------------------------------------------------------------------
Tue Mar 8 08:03:19 UTC 2016 - arun@gmx.de
- specfile:
* add libnl3-devel, libpulse-devel
- update to version 2.10:
* man: fix typo in battery example
* Pass the "instance" JSON property key for tztime blocks
* Fix build (and build warnings) on FreeBSD
* Fix build on OpenBSD
* path_exists, run_watch: add format_down
* volume: add PulseAudio support. This significantly reduces battery
consumption on systems that use PulseAudio, which is the default
on any modern Linux desktop.
* wireless/OpenBSD: use the maximum rssi, not the scaled percentage
for the signal level.
* make: Add support for differing PREFIX and MANPREFIX.
* battery: make output HH:MM across all platforms.
* battery: clamp the percentage at 100% when last_full_capacity is
enabled.
* Use format_not_mounted if the directory for a disk_info block does
not exist.
* disk_info/OS X: Fix build.
* volume/OpenBSD: use SndIO.
* eth, wireless: Use "color_degraded" when interface has no IP.
* eth, wireless/FreeBSD: Fix for recent FreeBSD versions.
* wireless/Linux: switch from libiw to libnl. This allows you to run
i3status on kernels which dont have the wext compatibility module
enabled.
* battery/FreeBSD: properly detect charging status
* eth: first_eth_interface: ignore MAC addresses, look for IPv4/IPv6
addresses
* Implement support for Pango markup.
* format detection: recognise swaybar
-------------------------------------------------------------------
Mon Jun 8 04:52:20 UTC 2015 - arun@gmx.de
- update to version 2.9:
* meta: i3status is now on GitHub and uses clang-format
* allow customization of the module separator
* add “align” and “min_width” options for each module
* fix CFLAGS and LDFLAGS for DragonFly and FreeBSD
* add contrib/net-speed, a more light-weight reimplementation of
* contrib/measure-net-speed.bash
* battery: add hide_seconds option
* battery: fix for systems without POWER_SUPPLY_VOLTAGE_NOW
* battery: for %percentage, drop leading 0 for values < 10
* battery: add NetBSD support
* battery: use absolute values for (dis)charging rates
* battery: introduce status_{chr,bat,full}
* cpu_temperature: fix displaying multiple sensors
* cpu_temperature: fix NetBSD support
* cpu_temperature: fix DragonFly support
* disk: introduce threshold_type and low_threshold
* disk: add format_not_mounted for unmounted paths
* ethernet, wireless: support special interface name _first_
* run_watch: check all matching pid files until first valid one
* volume: fix wrong color tags with xmobar
* wireless: support %frequency (2.4 vs. 5 GHz)
-------------------------------------------------------------------
Sun Feb 1 00:41:34 UTC 2015 - arun@gmx.de
- replaced tar-ball with tar-ball from Source location
(they were different for some location, which was the
reason the package didn't get updated in Factory)
- Removed i3status-2.7-makefile.patch
-------------------------------------------------------------------
Sa Jul 26 22:2:11 UTC 2014 - email@pfeiffer.pw
Fix build on GNU/Hurd
Add format_down for battery if no battery is available
Use degraded color in case volume is muted with OSS
Support mixer_idx with OSS
Enable colored output for battery on FreeBSD
print_volume: dont return, complete the buffer first
Support colored output for CPU temperature on FreeBSD
manpage: mention i3bar in the description
manpage: be more explicit about the path option
battery: use path as i3bar JSON “instance”
print_volume(linux): Open a new mixer every time
Implement term output format
signal handler: set flag because directly calling fprintf() is unsafe
Makefile: use .SILENT and support V=1 for verbose builds
load: allow max_threshold to be a float
manpage: Add example path for CPU temperature
Fix build on NetBSD
Implement cpu usage, ethernet status, cpu temperature on NetBSD
fix slurp(), it needs to read size-1 for the trailing NUL
format detection: simplify code, handle "sh" processes in the hierarchy
default config: show %avail disk space instead of %free
Added different format string for volume in case it is muted
manpage: document format_muted
add support for path_exists directive
disk: Distinguish between IEC, SI and custom prefixes
-------------------------------------------------------------------
Thu Mar 14 08:52:47 UTC 2013 - toganm@opensuse.org
- Update to 2.7 version
* Skip a day in the Discordian calendar when St. Tib's Day has
passed
* colors: Handle down wireless interfaces just like ethernet
interfaces
* temperature: introduce max_threshold
* battery: colorize output even without discharge rate
* ddate: Reduce the season day to 0-9 to properly print ordinal
suffixes
* add good, degraded and bad colors per module
* config: introduce an utf-8 character so that editors are forced
to use utf-8
* ddate: Teen ordinal numbers always use a 'th' suffix.
* make SIGUSR1 do nothing, so that killall -USR1 i3status will
force an update
* changing volume color from bad to degraded if muted
* make refreshs align with minutes
* wifi: properly display ad-hoc networks
* Bugfix: output auto detect: properly detect ambiguous situations
* Add tztime module to support multiple different timezones
* battery: add option to show capacity without decimals
* Add colorized output for load avg
* ipv6: properly handle colors for output_format == xmobar
* contrib: fix premature insetion of status message into JSON
- Spec file cleanup
* rebased i3status-makefile.patch and renamed as
i3status-2.7-makefile.patch
-------------------------------------------------------------------
Sat Nov 24 18:39:30 CET 2012 - pascal.bleser@opensuse.org
- initial version (2.6)

56
i3status.keyring Normal file
View File

@ -0,0 +1,56 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBEoVG4cBEADX2160pBoUf2vSWKbUa8soEMscBFjmb/NajCxwX/BlD1sVNyDm
twZ74CNPS7X5GgNQoXCzkm7v18zOpON69/pwQ0C4T4P+dvewaDzi2+4/bZsXSor1
mA3C9lHcKDbpH7jHkN2AbMnY3Z4LD46LA1qfCISAAKtx1h4peBF6Xhu743dKXrBa
zg/TEJwWIWSyPKgIhur95yebD/Tws+gWlOfBKkF1v1PA+5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+OK8nfd3JJAQz+UtiFP4VG
FRnle5+GgunYbMMJH++6oDKmG1YGQeSm1jrX4vNuybQAhALjiKSBs9K0OU1pY2hh
ZWwgU3RhcGVsYmVyZyAoUkVOVC1BLUdVUlUpIDxtaWNoYWVsQHJlbnQtYS1ndXJ1
LmRlPokCVAQTAQoAPgIbLwIeAQIXgAULCQgHAwUVCgkICwUWAgMBABYhBEJOFNcD
58bUPZ1vNk5xYO1KyO4dBQJZDbU5BQkYXpsuAAoJEE5xYO1KyO4dKPMP/187duTP
rW5A6WyAlttOzBBtaOyEgW1fM6TeGLRiQ5YePfp5sGr7J405er0upgT7nmiggnKT
U7joq6GNP/cCOhja54+h5/HGveGrs9xpngdxNvMt7R26LOv4uYLsGMPus2Ek9YMC
DO3p1zFzZmV4L0WRIEZNfKbPN+nPk/zv1hB92hKhn8uKGNf4s4T0iHE1JUM0ZWU3
riMceMQ4KwZgYMvCFvQz5Y5+qCpScE3xWlGViDP1yj5XSt6NzrtgeXlnax0Oxy6L
HDMRs8SDiZvLsNP10Q2IHn32WFUBfAi3I8kNSdnhSDDbynsVB48RkNGv212J/u7N
qYsSuo8lwqAdFc1A10msaV5cDjfLumn0iOogloMul4t/Umal42IFi8UJq19m/Ujk
wz3v6KlcNhuqJUvwRpTvCrMT+DkkI35NTbcrTjH5OAwcR93HP7cTbYctn89QdOBd
P8oPqrCBmcCtBRKFdMUrnlMCYhVrdJienAtbKSipbmxziX+Lo9SlmLNKqy4caNz3
HuowFkxw8IG6eSz/ap04Vxa97G5LrXD59bRoXEOQmlYmO4cAhtsY2i2GeEm5NFJV
44ed8ek7TDSSmAEqLGLwyPmimFbZN0Le8rroyRU+IYBDAwv1oqQ4GJLvvcjrR86c
lvBaQ1/2dDXBLz+nASWfFaa584Dwq9mi4YRI
=mjdA
-----END PGP PUBLIC KEY BLOCK-----

78
i3status.spec Normal file
View File

@ -0,0 +1,78 @@
#
# spec file for package i3status
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2014 Thomas Pfeiffer <email@pfeiffer.pw>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: i3status
Version: 2.15
Release: 0
Summary: I3 Status Bar
License: BSD-3-Clause
Group: System/Monitoring
URL: https://i3wm.org/i3status/
Source0: %{url}/%{name}-%{version}.tar.xz
Source1: %{url}/%{name}-%{version}.tar.xz.asc
# Michael Stapelberg's GPG key:
# 424E14D703E7C6D43D9D6F364E7160ED4AC8EE1D
Source2: %{name}.keyring
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(libconfuse)
BuildRequires: pkgconfig(libnl-genl-3.0)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(yajl)
# man pages
BuildRequires: asciidoc
BuildRequires: xmlto
%description
i3status is a program for generating a status bar for i3bar, dzen2,
xmobar or similar programs. It issues a small number of system
calls, as one generally wants to update such status lines every
second so that the bar is updated even under load. It saves a bit of
energy by being more efficient than shell commands.
%prep
%autosetup
for f in contrib/*py; do
sed -i.orig "s:^#\!%{_bindir}/env\s\+python\s\?$:#!/usr/bin/python3:" $f
touch -r $f.orig $f
rm $f.orig
done
for f in contrib/*pl; do
sed -i.orig "s:^#\!%{_bindir}/env\s\+perl\s\?$:#!/usr/bin/perl:" $f
touch -r $f.orig $f
rm $f.orig
done
%build
%meson
%meson_build
%install
%meson_install
%files
%license LICENSE
%doc CHANGELOG contrib/
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog