diff options
Diffstat (limited to 'files/usr/local/libexec')
5 files changed, 38 insertions, 0 deletions
diff --git a/files/usr/local/libexec/lid-close.laptop b/files/usr/local/libexec/lid-close.laptop new file mode 100644 index 0000000..acbd93e --- /dev/null +++ b/files/usr/local/libexec/lid-close.laptop @@ -0,0 +1,4 @@ +#!/bin/sh + +/usr/bin/pkill -USR1 xidle +/usr/sbin/acpiconf -s3 diff --git a/files/usr/local/libexec/lid-close.roadwarrior_laptop b/files/usr/local/libexec/lid-close.roadwarrior_laptop new file mode 120000 index 0000000..698096f --- /dev/null +++ b/files/usr/local/libexec/lid-close.roadwarrior_laptop @@ -0,0 +1 @@ +lid-close.laptop
\ No newline at end of file diff --git a/files/usr/local/libexec/poudriere-cron.pkg_repository b/files/usr/local/libexec/poudriere-cron.pkg_repository index f0291ec..0d713a9 100644 --- a/files/usr/local/libexec/poudriere-cron.pkg_repository +++ b/files/usr/local/libexec/poudriere-cron.pkg_repository @@ -9,6 +9,7 @@ poudriere ports -u -p "$ports_tree" > /dev/null for jail in "$@"; do poudriere jail -u -j "$jail" > /dev/null + poudriere bulk -j "$jail" -f /usr/local/etc/poudriere.d/pkglist-idm -p "$ports_tree" -z idm > /dev/null poudriere bulk -j "$jail" -f /usr/local/etc/poudriere.d/pkglist -p "$ports_tree" > /dev/null done diff --git a/files/usr/local/libexec/thinkpad-brightness.laptop b/files/usr/local/libexec/thinkpad-brightness.laptop new file mode 100644 index 0000000..16cc01a --- /dev/null +++ b/files/usr/local/libexec/thinkpad-brightness.laptop @@ -0,0 +1,31 @@ +#!/bin/sh + +cur=$(/usr/bin/backlight -q) + +case $1 in + up) + if [ "$cur" -ge 50 ]; then + delta=10 + elif [ "$cur" -ge 10 ]; then + delta=5 + else + delta=2 + fi + + /usr/bin/backlight incr "$delta" + ;; + down) + if [ "$cur" -le 10 ]; then + delta=2 + elif [ "$cur" -le 50 ]; then + delta=5 + else + delta=10 + fi + + /usr/bin/backlight decr "$delta" + ;; + *) + exit 1 + ;; +esac diff --git a/files/usr/local/libexec/thinkpad-brightness.roadwarrior_laptop b/files/usr/local/libexec/thinkpad-brightness.roadwarrior_laptop new file mode 120000 index 0000000..d1bcb34 --- /dev/null +++ b/files/usr/local/libexec/thinkpad-brightness.roadwarrior_laptop @@ -0,0 +1 @@ +thinkpad-brightness.laptop
\ No newline at end of file |