dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit de91700ca02a19d33edf113090589c98f980d7c3
parent c0c6f2562404a2a5f5c2503f5410cbc8efb6f382
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sat, 10 Sep 2022 21:28:27 -0400

Get rid of machine-specific screen scripts

Diffstat:
M.xsession | 14++++++++++----
Dbin/screen.carbon | 34----------------------------------
2 files changed, 10 insertions(+), 38 deletions(-)

diff --git a/.xsession b/.xsession @@ -6,8 +6,14 @@ date +'%m/%d/%Y %H:%M:%S' >&2 env >&2 xset dpms 0 0 900 -setxkbmap -option -option ctrl:nocaps -screen.$HOSTNAME -xcompmgr & +xset s 300 +xinput set-prop "Synaptics TM3289-021" "libinput Natural Scrolling Enabled" 1 +xinput set-prop "Synaptics TM3289-021" "libinput Click Method Enabled" 0 1 +xinput set-prop "TPPS/2 Elan TrackPoint" "libinput Button Scrolling Button" 0 +xsidle.sh slock & +mpd & +picom & -exec riostart +autorandr -c --default default + +exec dwmstart diff --git a/bin/screen.carbon b/bin/screen.carbon @@ -1,34 +0,0 @@ -#!/bin/sh - -expected="eDP-1 DP-2-1 HDMI-1" - -for mon in $expected -do - if xrandr -q | grep $mon | grep ' connected' >/dev/null 2>&1 - then - connected="$connected $mon" - fi -done - -if echo $connected | grep HDMI-1 >/dev/null 2>&1 -then - cmd="xrandr --dpi HDMI-1 --output HDMI-1 --auto --primary - --output DP-2-1 --auto --right-of HDMI-1 - --output eDP-1 --off --output DP-2-2 --off" -else - cmd="xrandr --dpi eDP-1 --output HDMI-1 --off - --output DP-2-1 --off --output DP-2-2 --off - --output eDP-1 --mode 1920x1080 --primary" -fi - -if [ -z "$1" ] -then - echo "my-screen.local: Running cmd $cmd" >> "$HOME/var/log/my" - $cmd -elif [ "$1" = "-d" ] -then - echo $cmd -else - echo $(basename $0): unknown flag --- $1 - exit 1 -fi