summaryrefslogtreecommitdiff
path: root/src/sliceweasel
diff options
context:
space:
mode:
Diffstat (limited to 'src/sliceweasel')
-rwxr-xr-xsrc/sliceweasel15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/sliceweasel b/src/sliceweasel
deleted file mode 100755
index f9df2c8..0000000
--- a/src/sliceweasel
+++ /dev/null
@@ -1,15 +0,0 @@
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=/sys/fs/cgroup/user.slice/user-$(id -u).slice/firefox
10join_group "$group"
11set_max_ratio "$group" memory 1/2
12set_max_ratio "$group" io 7/10
13exec firefox "$@"
14
15