summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2015-09-25 11:26:11 -0400
committerLuke Shumaker <shumakl@purdue.edu>2015-09-25 11:26:11 -0400
commitc38a92a75bddfd91285657778a7b663d6d0c3136 (patch)
tree72666c6c69d98ee2268e13904764a2b7f6144b77
parent899ce57d60523ee9679dfd4bd2e75f50901f32d1 (diff)
display quota information
-rw-r--r--.config/login.d/00_quota.sh4
-rwxr-xr-x.local/bin/xmessage2
2 files changed, 4 insertions, 2 deletions
diff --git a/.config/login.d/00_quota.sh b/.config/login.d/00_quota.sh
new file mode 100644
index 0000000..afe7211
--- /dev/null
+++ b/.config/login.d/00_quota.sh
@@ -0,0 +1,4 @@
+#!/hint/sh
+if { ! quota -s; } && [ -n "$DISPLAY" ]; then
+ xmessage -center "$(quota -s)" &
+fi
diff --git a/.local/bin/xmessage b/.local/bin/xmessage
deleted file mode 100755
index 46647e0..0000000
--- a/.local/bin/xmessage
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec gxmessage "$@" -fn 'Monospace'