dot

packages and services management
Log | Files | Refs | README

commit 1c337fbdf697feca81bf188b27a09e8dfdec9a82
parent a3401838e786f3cef2737ab3cb3826c4978cd423
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Sun, 10 Sep 2017 12:53:54 +0200

xen, freebsd, slstatus: added

Diffstat:
Afreebsd/git | 1+
Aiomenu/git | 1+
Mrc | 8--------
Aslstatus/config.h | 57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aslstatus/git | 1+
Axen/tar | 1+
6 files changed, 61 insertions(+), 8 deletions(-)

diff --git a/freebsd/git b/freebsd/git @@ -0,0 +1 @@ +https://github.com/freebsd/freebsd diff --git a/iomenu/git b/iomenu/git @@ -0,0 +1 @@ +http://github.com/josuah/iomenu diff --git a/rc b/rc @@ -12,14 +12,6 @@ export XDG_DATA_DIRS="$SYSROOT/share" export XDG_CONFIG_HOME="$SYSROOT/etc" export XDG_CONFIG_DIRS="$SYSROOT/etc" -export XDG_CACHE_HOME="$SYSROOT/var/cache" -export XDG_DOWNLOAD_DIR="$SYSROOT/var/tmp" - -export XDG_MUSIC_DIR="$SYSROOT/lib/music" -export XDG_VIDEOS_DIR="$SYSROOT/lib/videos" -export XDG_PICTURES_DIR="$SYSROOT/lib/images" -export XDG_DOCUMENTS_DIR="$SYSROOT/lib/documents" - export XDG_DESKTOP_DIR="/tmp" export XDG_TEMPLATES_DIR="/tmp" export XDG_PUBLICSHARE_DIR="/tmp" diff --git a/slstatus/config.h b/slstatus/config.h @@ -0,0 +1,57 @@ +/* See LICENSE file for copyright and license details. */ + +/* interval between updates (in ms) */ +static const int interval = 1000; + +/* text to show if no value can be retrieved */ +static const char unknown_str[] = "n/a"; + +/* maximum output string length */ +#define MAXLEN 2048 + +/* + * function description argument + * + * battery_perc battery percentage battery name + * battery_power battery power usage battery name + * battery_state battery charging state battery name + * cpu_perc cpu usage in percent NULL + * cpu_freq cpu frequency in MHz NULL + * datetime date and time format string + * disk_free free disk space in GB mountpoint path + * disk_perc disk usage in percent mountpoint path + * disk_total total disk space in GB mountpoint path + * disk_used used disk space in GB mountpoint path + * entropy available entropy NULL + * gid GID of current user NULL + * hostname hostname NULL + * ipv4 IPv4 address interface name + * ipv6 IPv6 address interface name + * kernel_release `uname -r` NULL + * keyboard_indicators caps/num lock indicators NULL + * load_avg load average NULL + * num_files number of files in a directory path + * ram_free free memory in GB NULL + * ram_perc memory usage in percent NULL + * ram_total total memory size in GB NULL + * ram_used used memory in GB NULL + * run_command custom shell command command + * swap_free free swap in GB NULL + * swap_perc swap usage in percent NULL + * swap_total total swap size in GB NULL + * swap_used used swap in GB NULL + * temp temperature in degree celsius sensor file + * uid UID of current user NULL + * uptime system uptime NULL + * username username of current user NULL + * vol_perc OSS/ALSA volume in percent "/dev/mixer" + * wifi_perc WiFi signal in percent interface name + * wifi_essid WiFi ESSID interface name + */ +static const struct arg args[] = { + /* function format argument */ + { cpu_perc, "[CPU %3s%%] ", NULL }, + { ram_perc, "[RAM %2s%%] ", NULL }, + { datetime, "[ %s ]", "%F %T" }, + { load_avg, "[ %s ]", NULL }, +}; diff --git a/slstatus/git b/slstatus/git @@ -0,0 +1 @@ +git://git.drkhsh.at/slstatus diff --git a/xen/tar b/xen/tar @@ -0,0 +1 @@ +https://downloads.xenproject.org/release/xen/4.9.0/xen-4.9.0.tar.gz