scripts

random scripts
git clone git://parazyd.org/scripts.git
Log | Files | Refs

commit eccd9b0a829ccec8acb14c497535933fc870bc6e
parent 275ad683c9a7f263d2613164747540169a40f62c
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 11 Jan 2018 02:44:24 +0100

updates

Diffstat:
Mdn | 7-------
Mextmon | 14+++++++-------
2 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/dn b/dn @@ -16,13 +16,6 @@ use() { chattr off /usr/bin/printf "domain %s\nnameserver %s ## %s\n" "$dmn" "$srv" "$dmn"> /etc/resolv.conf chattr on - if test "$dmn" = out; then - /sbin/service unbound start - /sbin/service dnscrypt-proxy start - else - /sbin/service unbound stop - /sbin/service dnscrypt-proxy stop - fi } case "$1" in diff --git a/extmon b/extmon @@ -3,13 +3,13 @@ # parazyd - (c) wtfpl 2017 # skreenz - IN="${IN:-DP3}" -EXT="${EXT:-HDMI1}" + IN="${IN:-DP-3}" +EXT="${EXT:-HDMI-1}" setmon() { pos="$1" - xrandr --output LVDS1 --off + xrandr --output LVDS-1 --off xrandr --output $IN --auto --primary --output $EXT --auto --${pos} $IN setwall } @@ -19,19 +19,19 @@ case "$1" in right|r) setmon right-of ;; above|a) setmon above ;; dup|d) - xrandr --output LVDS1 --off + xrandr --output LVDS-1 --off xrandr --output $EXT --same-as $IN --output $IN --primary feh --no-fehbg --bg-fill "$WALL" ;; tv) - xrandr --output LVDS1 --off + xrandr --output LVDS-1 --off xrandr --output $IN --auto --primary --output $EXT --mode 1920x1080 --above $IN xrandr --output $EXT --set "Broadcast RGB" "Full" setwall ;; off|o) - xrandr --output $IN --auto --output $EXT --off --output HDMI1 --off - xrandr --output LVDS1 --auto + xrandr --output $IN --auto --output $EXT --off --output HDMI-1 --off + xrandr --output LVDS-1 --auto #xrandr --output HDMI1 --off setwall ;;