mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
added manpage
fixed mem-available comma/whitespace problem Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
1fa9ca6618
commit
ed12262f3b
4 changed files with 25 additions and 3 deletions
|
@ -19,7 +19,11 @@
|
||||||
|
|
||||||
comma=
|
comma=
|
||||||
whitespace=
|
whitespace=
|
||||||
grep -qs "^mem-used=1$" "$HOME/.screen-profiles/status" && comma="," || whitespace=" "
|
if [ -r "$HOME/.screen-profiles/status" ]; then
|
||||||
|
grep -qs "^mem-used=1$" "$HOME/.screen-profiles/status" && comma="," || whitespace=" "
|
||||||
|
else
|
||||||
|
comma=","
|
||||||
|
fi
|
||||||
|
|
||||||
mem=`free | grep -m 1 "^Mem:" | awk '{print $2}'`
|
mem=`free | grep -m 1 "^Mem:" | awk '{print $2}'`
|
||||||
if [ $mem -ge 1048576 ]; then
|
if [ $mem -ge 1048576 ]; then
|
||||||
|
|
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -19,8 +19,11 @@ screen-profiles (1.48) unreleased; urgency=low
|
||||||
ITP; I suppose we want to know if the diversion removal failed
|
ITP; I suppose we want to know if the diversion removal failed
|
||||||
* screen-profiles, screen-profiles-status: default uptime status to 'on',
|
* screen-profiles, screen-profiles-status: default uptime status to 'on',
|
||||||
generally useful, and pretty compact
|
generally useful, and pretty compact
|
||||||
|
* bin/mem-available: fix subtle bug where whitespace is printed if in a
|
||||||
|
totally default (no status file) configuration
|
||||||
|
* screen-profiles-status.1, debian/rules: manpage added
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 21 Apr 2009 15:11:29 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 21 Apr 2009 15:35:34 -0500
|
||||||
|
|
||||||
screen-profiles (1.47-0ubuntu1) jaunty; urgency=low
|
screen-profiles (1.47-0ubuntu1) jaunty; urgency=low
|
||||||
|
|
||||||
|
|
2
debian/rules
vendored
2
debian/rules
vendored
|
@ -57,7 +57,7 @@ binary-indep: build install
|
||||||
dh_testdir -i
|
dh_testdir -i
|
||||||
dh_testroot -i
|
dh_testroot -i
|
||||||
dh_installdocs -X.bzr -i
|
dh_installdocs -X.bzr -i
|
||||||
dh_installman -i screen-launcher.1 screen-profiles.1 select-screen-profile.1 motd+shell.1 screen-profiles-export.1
|
dh_installman -i screen-launcher.1 screen-profiles.1 select-screen-profile.1 motd+shell.1 screen-profiles-export.1 screen-profiles-status.1
|
||||||
dh_installchangelogs -i
|
dh_installchangelogs -i
|
||||||
dh_installdebconf -i
|
dh_installdebconf -i
|
||||||
dh_compress -i
|
dh_compress -i
|
||||||
|
|
15
screen-profiles-status.1
Normal file
15
screen-profiles-status.1
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
.TH screen-profiles-status 1 "21 Apr 2009" screen-profiles "screen-profiles"
|
||||||
|
.SH NAME
|
||||||
|
screen\-profiles\-status \- Common starting point for running screen\-profiles status commands
|
||||||
|
|
||||||
|
.SH DESCRIPTION
|
||||||
|
\fBscreen\-profiles\-status\fP is a simple script that takes a single argument: a script defined in /var/lib/screen\-profiles. This wrapper is useful for doing some common functionality, like setting the cpu and/or io proirity, determining sane defaults, pre/post processing.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
\fIhttp://launchpad.net/screen-profiles\fP
|
||||||
|
.PD
|
||||||
|
|
||||||
|
.SH AUTHOR
|
||||||
|
This manpage and the \fBscreen\-profiles\-status\fP utility was written by Dustin Kirkland <kirkland@canonical.com> for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.
|
||||||
|
|
||||||
|
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
|
Loading…
Add table
Add a link
Reference in a new issue