various improvements and fixes
authorIan Kelling <iank@fsf.org>
Sun, 7 Jan 2018 21:58:44 +0000 (16:58 -0500)
committerIan Kelling <iank@fsf.org>
Sun, 7 Jan 2018 21:58:44 +0000 (16:58 -0500)
btrfsmaint
btrfsmaintstop [deleted file]
distro-begin
distro-end
input-setup
mail-setup

index 4bb22464086f2c7894f42dcbab0050eb1c184475..22cd4c695e23e37d675e96ae1817740833a6294c 100755 (executable)
@@ -16,9 +16,17 @@ e() { echo "cron: $*"; "$@"; }
 
 check-idle() {
     export DISPLAY=:0
-    idle_time=$(xprintidle 2>/dev/null) ||:
     # 3 hours, assume a movie might run that long.
-    if [[ $idle_time ]] && (( idle_time < 1000 * 60 * 60 * 3 )); then
+    idle_limit=$((1000 * 60 * 60 * 3))
+    idle_time=$idle_limit
+    id=999
+    while id $((++id)) &>/dev/null; do
+        new_idle_time=$(sudo -u \#$id xprintidle 2>/dev/null) ||:
+        if [[ $new_idle_time && $new_idle_time -lt $idle_time ]]; then
+            idle_time=$new_idle_time
+        fi
+    done
+    if (( idle_time < idle_limit )); then
         idle=false
     else
         idle=true
diff --git a/btrfsmaintstop b/btrfsmaintstop
deleted file mode 100755 (executable)
index a9bf588..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#!/bin/bash
index ff3c1bae87e9a8936e4cf831a1c72b5c736e300f..a408d27bec7b3919e5a24e05e69502de9c4c4eb9 100755 (executable)
@@ -346,7 +346,10 @@ case $(distro-name) in
             else
                 pi xmacro
             fi
-            pi gtk-redshift xinput
+            pi xinput
+            # recommends gets us geoclue (for darkening automatically at night i assume),
+            # which recommends modemmanager, which is annoying to fix for the model01 keyboard.
+            pi --no-install-recommends gtk-redshift
         fi
         ;;&
     fedora)
index 0c80a1d5d9037d55e308e07b6263ba206c1ad746..ea16efc5a1f204fd44d04163903729fcd4749b6c 100755 (executable)
@@ -118,6 +118,7 @@ case $HOSTNAME in
             jq
             kid3-qt
             kid3-cli
+            konsole
             linphone
             linux-doc
             locate
@@ -952,6 +953,11 @@ esac
 
 ####### begin misc packages ###########
 
+reset-sakura
+sudo -u traci -i reset-sakura
+reset-konsole
+sudo -u traci -i reset-konsole
+
 if [[ ! -e ~/.linphonerc && -e /p/.linphonerc-initial ]]; then
     cp /p/.linphonerc-initial ~/.linphonerc
 fi
@@ -1611,8 +1617,9 @@ fi
 # esac
 
 
-
+pi --no-install-recommends kdeconnect-plasma
 ### kdeconnect for gnome. started in /a/bin/distro-setup/desktop-20-autostart.sh
+### but gnome + xmonad not working in flidas, so i disabled it
 pi libgtk-3-dev python3-requests-oauthlib valac cmake python-nautilus libappindicator3-dev
 cd /a/opt/indicator-kdeconnect
 mkdir -p build
@@ -1625,6 +1632,20 @@ sudo make install
 # /etc/xdg/autostart/kdeconnectd.desktop
 # I'm not seeing the icon, but the clipboard replication is working
 
+
+### model 01 arduino support ###
+# https://github.com/keyboardio/Kaleidoscope/wiki/Install-Arduino-support-on-Linux
+# also built latest arduino in /a/opt/Arduino, (just cd build; ant build; ant run )
+# set arduino var in bashrc,
+# have system config file setup too.
+sudo adduser $USER dialout
+case $distro in
+    arch)
+        sudo usermod -a -G uucp $USER
+        ;;
+esac
+lnf -T /a/opt/sketches ~/Arduino
+
 ######### end misc packages #########
 
 
index 798748a282cc7e5be2e2a7924900572e2f1ec2f1..1a762e9f9e1f6cb4ceea75b549ee8289f22b2026 100755 (executable)
@@ -15,7 +15,7 @@ set -x
 # limitations under the License.
 
 # set to oppsite if the order is flipped.
-k2flip=false
+k2flip=true
 if $k2flip; then
     k2inorder=false
 else
@@ -32,6 +32,7 @@ esac
 case $1 in
     l) type=laptop ;;
     k) type=kinesis ;;
+    m) type=model01 ;;
 esac
 
 #set -x
@@ -62,7 +63,28 @@ set_device_id() {
     fi
 }
 
+# default via xset q is 660 25. (delay for autorepeat, repeat rate)
+# was at 200 13, but while learning to use keyboardio, i hold keys a bit longer sometimes.
+xset r rate 400 13 # decrease rate delay
+
+if set_device_id "SteelSeries World of Warcraft MMO Gaming Mouse"; then
+    ms "$device_id" 100 1000/1 7 4 1
+    #ms "$device_id" 1 7/2 2 2.5 2
+
+    # makes it compatible with what windows sends using synergy
+    # commented out because i never expect to use windows again
+    #xinput --set-button-map "$device_id" 1 2 3 4 5 6 7 6 7 10 11 12 13 14 15
+
+    # under the new "improved" libinput, the mouse speed/accel has
+    # changed all around and is much more limited.
+    # Other xinput commands will fail and this will succeed.
+    xinput --set-prop "$device_id" "libinput Accel Speed" '.8'
+fi
+
 case $type in
+    model01)
+        xkbcomp /a/c/model01.xkb $DISPLAY
+        ;;
     laptop)
        # original saved with: xkbcomp $DISPLAY /a/c/stretch-11-2016.xkb
        xkbcomp /a/c/x2.xkb $DISPLAY
@@ -81,7 +103,6 @@ case $type in
 
             xkbset exp =m  # stop mousekeys expiring after a timeout
 
-            xset r rate 200 13 # decrease rate delay
             cd / # so xbindkeys does not hold open mountpoints
             killall xbindkeys # having some lag, thinking this might help.
             xbindkeys # configured to grab left and right scroll button presses
@@ -107,18 +128,6 @@ case $type in
         # razer naga middle mouse stopped working. it's settings were:
         #ms "$device_id" 100 1000/1 7 4 1
 
-        if set_device_id "SteelSeries World of Warcraft MMO Gaming Mouse"; then
-            ms "$device_id" 100 1000/1 7 4 1
-            #ms "$device_id" 1 7/2 2 2.5 2
-
-            # makes it compatible with what windows sends using synergy
-            xinput --set-button-map "$device_id" 1 2 3 4 5 6 7 6 7 10 11 12 13 14 15
-
-            # under the new "improved" libinput, the mouse speed/accel has
-            # changed all around and is much more limited.
-            # Other xinput commands will fail and this will succeed.
-            xinput --set-prop "$device_id" "libinput Accel Speed" '.8'
-        fi
 
 
         # disable the mouse movements mouse wheel
@@ -141,9 +150,9 @@ case $type in
 esac
 
 # for desktop and htpc
-set_device_id "Logitech Unifying Device"
+if set_device_id "Logitech Unifying Device"; then
 xinput --set-prop "$device_id" 'Evdev Middle Button Emulation' 1
-
+fi
 
 #ms 'Kensington Kensington Slimblade Trackball' 1 7/2 2 4 5 = 2.01
 # ms 9 10 20/1 6 4 .2
@@ -181,3 +190,4 @@ xinput --set-prop "$device_id" 'Evdev Middle Button Emulation' 1
 
 
 #set +x
+exit 0
index d6ba6f7f7b07ef24b90d6e2a16cfdb0b61c6c37d..afbc1945d553102a2aaef46f22a85194b20e0ed3 100755 (executable)
@@ -345,6 +345,12 @@ EOF
 
     # most of these settings get translated into settings
     # in /etc/exim4/update-exim4.conf.conf
+    # how /etc/exim4/update-exim4.conf.conf translates into actual exim settings is
+    # documented in man update-exim4.conf, which outputs to the config that
+    # exim actually reads. except the man page is not perfect, for example,
+    # it doesn't document that it sets
+    # DCconfig_${dc_eximconfig_configtype}" "1"
+    # which is a line from update-exim4.conf, which is a relatively short bash script.
     # mailname setting sets /etc/mailname
 
     debconf-set-selections <<EOF