diff options
| author | Josh Rahm <rahm@google.com> | 2021-11-01 11:14:31 -0600 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-10-09 12:19:44 -0600 |
| commit | 3cd8f412028b78a8a2624e0d184213781cb2218e (patch) | |
| tree | 376e117119c1c4d17c2da09b292cb781f710e253 | |
| parent | c5fd4c259e3fdcfa1806147d1ebdac8ffc7c90a7 (diff) | |
| download | rde-3cd8f412028b78a8a2624e0d184213781cb2218e.tar.gz rde-3cd8f412028b78a8a2624e0d184213781cb2218e.tar.bz2 rde-3cd8f412028b78a8a2624e0d184213781cb2218e.zip | |
fix startup script
| -rwxr-xr-x | startup | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -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 |