summaryrefslogtreecommitdiff
path: root/src/sliceuser
diff options
context:
space:
mode:
Diffstat (limited to 'src/sliceuser')
-rwxr-xr-xsrc/sliceuser13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sliceuser b/src/sliceuser
new file mode 100755
index 0000000..16d441f
--- /dev/null
+++ b/src/sliceuser
@@ -0,0 +1,13 @@
1#!/bin/sh
2. sliceweasel.lib.sh
3
4set -e
5IO_ROOT_DIR=$HOME/.cache/mozilla/firefox/
6[ -d "$IO_ROOT_DIR" ]
7[ "$(id -un)" = 0 ] && AS_ROOT= || AS_ROOT='sudo --'
8
9group=$(get_current_group)
10set -x
11set_max_ratio "$group" memory 3/4
12set_max_ratio "$group" io 8/10
13