diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-02-27 20:12:38 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-02-27 20:12:38 -0500 |
commit | 4e802e740bb2f7c6891271d3eaab39768360e261 (patch) | |
tree | 52cd247d9ffabab2f5cfb9f7821fbafbb27678f7 /.local/bin | |
parent | bd42aa1b31e2e41cac7ac2ffa6edc05e04354815 (diff) | |
parent | d09fa8687ee01dcb4ef540deb106b8531f56b403 (diff) |
Merge branch 'master' into build64-par/master
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/systemd-import-profile | 9 | ||||
-rwxr-xr-x | .local/bin/xrdb-set-dpi | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/.local/bin/systemd-import-profile b/.local/bin/systemd-import-profile new file mode 100755 index 0000000..c896e31 --- /dev/null +++ b/.local/bin/systemd-import-profile @@ -0,0 +1,9 @@ +#!/bin/sh +. ~/.profile +vars=$(declare -x -p | sed -rn 's/^declare -x ([^=]+)(=.*)?$/\1/p' | grep -xFv -e PWD -e OLDPWD -e SHLVL) +if test "$1" = '-p'; then + declare -p $vars + echo systemctl --user import-environment $vars +else + systemctl --user import-environment $vars +fi diff --git a/.local/bin/xrdb-set-dpi b/.local/bin/xrdb-set-dpi new file mode 100755 index 0000000..2a6b055 --- /dev/null +++ b/.local/bin/xrdb-set-dpi @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +dpi=$(LC_ALL=C DISPLAY=:0 xdpyinfo|sed -rn 's/^\s*resolution:\s*(.*) dots per inch$/\1/p') +xrdb -merge <<<"Xft.dpi: ${dpi}" |