ssh-copy-id $1
}
-# ya, hacky hardcoded hostnames in 2023. we could do better
-hssh-update() {
- local -a failed_hosts hosts
- case $HOSTNAME in
- sy|kd)
- hosts=(
- kd x3.office.fsf.org syw
- )
- ;;
- x3)
- hosts=(
- b8.nz sywg.b8.nz
- )
- ;;
- esac
- for host in ${hosts[@]}; do
- e $host
- if ! scp /b/fai/fai/config/files/usr/local/bin/hssh/IANK root@$host:/usr/local/bin/hssh; then
- failed_hosts+=($host)
- fi
- done
- if (( ${#failed_hosts[@]} >= 1 )); then
- echo failed_hosts=${failed_hosts[*]}
- return 1
- fi
-}
-
a() {
local x
x=$(readlink -nf "${1:-$PWD}")
# re all my files more expansively
rem() {
local paths
- paths="/p/c /b"
+ paths="/p/c /b/"
find $paths -not \( -name .svn -prune -o -name .git -prune \
-o -name .hg -prune -o -name .editor-backups -prune \
-o -name .undo-tree-history -prune \) 2>/dev/null | grep -iP --color=auto -- "$*" ||:
# so its included in overall env
+# ya, hacky hardcoded hostnames in 2023. we could do better
+hssh-update() {
+ local -a failed_hosts hosts
+ case $HOSTNAME in
+ sy|kd)
+ hosts=(
+ kd x3.office.fsf.org syw
+ )
+ ;;
+ x3)
+ hosts=(
+ b8.nz sywg.b8.nz
+ )
+ ;;
+ esac
+ for host in ${hosts[@]}; do
+ e $host
+ if ! scp /b/fai/fai/config/files/usr/local/bin/hssh/IANK root@$host:/usr/local/bin/hssh; then
+ failed_hosts+=($host)
+ fi
+ done
+ if (( ${#failed_hosts[@]} >= 1 )); then
+ echo failed_hosts=${failed_hosts[*]}
+ return 1
+ fi
+}
+
+
export BASEFILE_DIR=/a/bin/fai-basefiles
#export ANDROID_HOME=/a/opt/android-home
bindsym $mod+Shift+9 move container to workspace 10
bindsym $mod+9 workspace 10
-
-bindsym $mod+Shift+m border toggle
+b
+indsym $mod+Shift+m border toggle
# 65 = space.
# toggle tiling / floating
#!/bin/bash
set -e; . /usr/local/lib/err; set +e
-if xrandr | grep -q '^HDMI2 disconnected' &>/dev/null; then
+
+output=HDMI2
+output=DP1
+
+if xrandr | grep -q "^$output disconnected" &>/dev/null; then
xrandr --auto
else
- xrandr --output HDMI2 --right-of eDP1 --mode 3840x2160
+ xrandr --output $output --right-of eDP1 --mode 3840x2160
for i in 1 2 4 5 6 7 8 9 10; do
# if the workspace is already there, this will fail
- i3-msg '[workspace="'$i'"]' move workspace to output HDMI2 ||:
+ i3-msg '[workspace="'$i'"]' move workspace to output $output ||:
done
fi
# workarounds for broken debbugsconfig which is
# itself deprecated. this is temporary before I
# figure out how to install from git
-gunzip /usr/share/doc/debbugs/examples/text.gz
-mkdir -p /etc/debbugs/sources
+if [[ -e /usr/share/doc/debbugs/examples/text.gz ]]; then
+ gunzip /usr/share/doc/debbugs/examples/text.gz
+fi
+mkdir -p /etc/debbugs/indices
debbugsconfig
#keyserver hkp://pgp.mit.edu
#keyserver hkp://keyserver.pgp.com
#keyserver hkp://ipv4.pool.sks-keyservers.net
-keyserver hkp://keys.gnupg.net
+#keyserver hkp://keys.gnupg.net
#keyserver hkp://keyserver.ubuntu.com
#keyserver hkp://keyring.debian.org
#keyserver keyserver.ubuntu.com
# more secure hkps, but had problems with my gpg version
-#keyserver hkps://hkps.pool.sks-keyservers.net
+keyserver hkps://hkps.pool.sks-keyservers.net
### begin things added by enigmail
cert-digest-algo SHA256
e "found different version on old_host=$old_hostname, reexecing"
m install -T $tmpf /usr/local/bin/switch-mail-host
m /usr/local/bin/switch-mail-host --pull-reexec "${orig_args[@]}"
- mexit 0
+ exit 0
fi
fi