diff options
author | Andrew Cady <d@cryptonomic.net> | 2022-11-29 12:00:08 -0500 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2022-11-29 12:00:08 -0500 |
commit | 61564e4d18058031d96e207862f72f0628934ea3 (patch) | |
tree | 1a43ee54623384f0b09387c68062905aeefe36f5 /sliceweasel | |
parent | 42a4367a83645b2bca1f0a4d48917fb9ec3bbf5b (diff) |
move files to src; add README.txt
Diffstat (limited to 'sliceweasel')
-rwxr-xr-x | sliceweasel | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sliceweasel b/sliceweasel deleted file mode 100755 index f9df2c8..0000000 --- a/sliceweasel +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | . sliceweasel.lib.sh | ||
3 | |||
4 | set -e | ||
5 | IO_ROOT_DIR=$HOME/.cache/mozilla/firefox/ | ||
6 | [ -d "$IO_ROOT_DIR" ] | ||
7 | [ "$(id -un)" = 0 ] && AS_ROOT= || AS_ROOT='sudo --' | ||
8 | |||
9 | group=/sys/fs/cgroup/user.slice/user-$(id -u).slice/firefox | ||
10 | join_group "$group" | ||
11 | set_max_ratio "$group" memory 1/2 | ||
12 | set_max_ratio "$group" io 7/10 | ||
13 | exec firefox "$@" | ||
14 | |||
15 | |||