dots

git clone git://mattcarlson.org/repos/dots.git
Log | Files | Refs

commit 431e1cbfdf532e2bd8fb2bd040a4541cc65dfc13
parent 1b0fe8051aff02b220e8145032a665e20830602f
Author: Matthew Carlson <matt@mattcarlson.org>
Date:   Tue, 18 Oct 2022 16:48:14 -0400

ability to adjust xrandr brightness

Diffstat:
M.config/sh/aliasrc | 3+++
M.config/sh/profile | 4+++-
M.config/transmission-daemon/settings.json | 2+-
M.config/x/xprofile | 2+-
4 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/.config/sh/aliasrc b/.config/sh/aliasrc @@ -85,6 +85,9 @@ alias dots='/usr/bin/git --git-dir=${HOME}/.dots/ --work-tree=${HOME}' # sync mail on mail exit when entered thru cmd line alias ${MAIL_CLIENT}='"${HOME}/.local/bin/bar/mail.sh" -o' +# brightness +alias brightness='xrandr --output "${MONITOR}" --mode 1920x1080 --rate 144 --brightness' + # youtube # NOTE: since 03 december 2021, youtube-dl should be a symlink to yt-dlp # youtube-dl seems to be dead (last commit 01 july 2021) and there are unresolved issues (e.g., bandwidth throttling) diff --git a/.config/sh/profile b/.config/sh/profile @@ -85,13 +85,15 @@ export FFF_LS_COLORS=1 export FFF_OPENER="${HOME}/.local/bin/open.sh" export FFF_STAT_CMD="stat" -# pfetch +# device specific hostname='/etc/hostname' if [ -f "${hostname}" ]; then if [ "$(cat "${hostname}")" = 'laptop' ]; then export HOSTNAME='laptop' + export MONITOR='DP3-2' elif [ "$(cat "${hostname}")" = 'pc' ]; then export HOSTNAME='pc' + export MONITOR='DisplayPort-1' fi fi export PF_INFO='ascii title os host kernel uptime pkgs memory shell editor wm palette' diff --git a/.config/transmission-daemon/settings.json b/.config/transmission-daemon/settings.json @@ -26,7 +26,7 @@ "peer-id-ttl-hours": 0, "peer-limit-global": 65535, "peer-limit-per-torrent": 65535, - "peer-port": 59043, + "peer-port": 57187, "peer-port-random-high": 65535, "peer-port-random-low": 49152, "peer-port-random-on-start": true, diff --git a/.config/x/xprofile b/.config/x/xprofile @@ -2,7 +2,7 @@ # # xprofile -autorandr -c external +xrandr --output "${MONITOR}" --mode 1920x1080 --rate 144 --brightness 0.5 "${HOME}/.local/bin/color.sh" -s # picom is compositor; touch blank config file to make picom like xcompmgr xrdb "${XDG_CONFIG_HOME:-${HOME}/.config/}/x/xresources" "${HOME}/.local/bin/lock.sh" &