From: Ian Kelling Date: Thu, 3 Oct 2024 18:04:21 +0000 (-0400) Subject: minor improvements X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=16efa3ac9663aa1e7f2075aab8c9c8c0262e7eb5;p=distro-setup minor improvements --- diff --git a/filesystem/usr/local/bin/irc-backup b/filesystem/usr/local/bin/irc-backup new file mode 100755 index 0000000..67de7a4 --- /dev/null +++ b/filesystem/usr/local/bin/irc-backup @@ -0,0 +1,29 @@ +#!/bin/bash +# I, Ian Kelling, follow the GNU license recommendations at +# https://www.gnu.org/licenses/license-recommendations.en.html. They +# recommend that small programs, < 300 lines, be licensed under the +# Apache License 2.0. This file contains or is part of one or more small +# programs. If a small program grows beyond 300 lines, I plan to change +# to a recommended GPL license. + +# Copyright 2024 Ian Kelling + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# skip if it is not mounted or something like that. +if mountpoint -q /p && [[ -d /p/irc-backup ]]; then + rsync -rlptDhSAX root@iankelling.org:/var/lib/znc/moddata/log/iank/ /p/irc-backup +else + echo "no /p/irc-backup, failing this run" + exit 1 +fi diff --git a/myx b/myx index 61d1607..d3284b8 100755 --- a/myx +++ b/myx @@ -101,6 +101,7 @@ primary_res=${primary_res_info%%+*} primary_x=${primary_res%x*} primary_y=${primary_res#*x} +# monitor at chair by window winchair() { if [[ $(edid card1-DP-1) == 192efbdcef ]]; then return 0