From a9b95646b8581e8b0afd4eec99f960d9f42b9c38 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Mon, 1 Nov 2021 11:14:31 -0600 Subject: fix startup script --- startup | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/startup b/startup index 5c59e4d..a7cd604 100755 --- a/startup +++ b/startup @@ -1,14 +1,5 @@ #!/bin/bash - -common - -hostname_fn="hostname_$(hostname)" - -if [[ typeset -f "$hostname_fn" ]] ; then - "$hostname_fn" -fi - common() { # Startup commands common to all the hosts. xsetroot -cursor_name left_ptr @@ -17,7 +8,6 @@ common() { hostname_rahm1() { # Startup commands specific to my worktop. - xinput set-prop "TPPS/2 Elan TrackPoint" "Coordinate Transformation Matrix" 3 0 0 0 3 0 0 0 1 xinput set-prop "SYNA8004:00 06CB:CD8B Touchpad" "Coordinate Transformation Matrix" 3 0 0 0 3 0 0 0 1 @@ -33,3 +23,12 @@ hostname_photon() { xrandr --output DVI-I-1 --right-of DP-5 --mode 2560x1440 feh --bg-scale "/home/rahm/.xmonad/wallpaper.jpg" } + + +common + +hostname_fn="hostname_$(hostname)" + +if [[ "$(type -t "$hostname_fn")" == function ]] ; then + "$hostname_fn" +fi -- cgit