diff options
| author | Josh Rahm <rahm@google.com> | 2021-11-01 11:14:31 -0600 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2021-11-01 11:14:31 -0600 |
| commit | a9b95646b8581e8b0afd4eec99f960d9f42b9c38 (patch) | |
| tree | 376e117119c1c4d17c2da09b292cb781f710e253 | |
| parent | b0ed43f0509c45211a3ed6b72e78b9b45cfe2ada (diff) | |
| download | rde-a9b95646b8581e8b0afd4eec99f960d9f42b9c38.tar.gz rde-a9b95646b8581e8b0afd4eec99f960d9f42b9c38.tar.bz2 rde-a9b95646b8581e8b0afd4eec99f960d9f42b9c38.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 |