summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-10-25 08:52:41 +0000
committerXiao Pan <gky44px1999@gmail.com>2023-10-25 08:52:41 +0000
commitfe65a913b440f529c831f172486103feadcdfb94 (patch)
treefcb18ad2460b6d1f4163beecc7363705f9fd6d6b /home
parentca118323ae9ae29468ce485f8ad230cbf0366bd1 (diff)
new files
Diffstat (limited to 'home')
-rw-r--r--home/xyz/.config/lf/lfrc1
-rw-r--r--home/xyz/.config/myconf/pacman_Qqme18
-rw-r--r--home/xyz/.config/myconf/pacman_Qqne115
-rw-r--r--home/xyz/.config/myconf/sye15
-rw-r--r--home/xyz/.config/myconf/syue6
-rw-r--r--home/xyz/.gnupg/gpg.conf1
-rwxr-xr-xhome/xyz/.local/bin/loop15
-rwxr-xr-xhome/xyz/.local/bin/lsp3
-rwxr-xr-xhome/xyz/.local/bin/mvtu13
-rw-r--r--home/xyz/.ssh/config29
10 files changed, 216 insertions, 0 deletions
diff --git a/home/xyz/.config/lf/lfrc b/home/xyz/.config/lf/lfrc
new file mode 100644
index 00000000..c78889d6
--- /dev/null
+++ b/home/xyz/.config/lf/lfrc
@@ -0,0 +1 @@
+set hidden
diff --git a/home/xyz/.config/myconf/pacman_Qqme b/home/xyz/.config/myconf/pacman_Qqme
new file mode 100644
index 00000000..a173d6fe
--- /dev/null
+++ b/home/xyz/.config/myconf/pacman_Qqme
@@ -0,0 +1,18 @@
+absolutely-proprietary
+bash-complete-alias
+dashbinsh
+dwm_fly-git
+f3
+htop-vim
+hw-probe-git
+iotop-c
+jackett-bin
+johnnydep
+librespeed-cli
+neofetch-git
+paru-bin
+pipdeptree
+tldr-sh
+ts
+units
+xxd-standalone
diff --git a/home/xyz/.config/myconf/pacman_Qqne b/home/xyz/.config/myconf/pacman_Qqne
new file mode 100644
index 00000000..c052086d
--- /dev/null
+++ b/home/xyz/.config/myconf/pacman_Qqne
@@ -0,0 +1,115 @@
+alacritty
+alsa-utils
+aria2
+autoconf
+automake
+base
+bash-completion
+bind
+binutils
+bison
+busybox
+checkbashisms
+chrony
+clang
+cmake
+cups
+dash
+dmenu
+dos2unix
+enca
+fakeroot
+fbgrab
+fio
+flex
+fuse2
+fuse3
+fwupd
+fzf
+gcc
+git
+grub
+hdparm
+hyperfine
+ifplugd
+ifuse
+imagemagick
+intel-ucode
+ioping
+jq
+lf
+libtool
+libva-mesa-driver
+libva-utils
+libxft
+linux
+linux-docs
+linux-firmware
+llvm
+lostfiles
+lsof
+m4
+make
+man-db
+man-pages
+mesa-vdpau
+moreutils
+nawk
+neovim
+nethogs
+networkmanager
+nftables
+ninja
+nmap
+npm
+openssh
+p7zip
+pacman-contrib
+patch
+pkgconf
+posix
+posix-c-development
+posix-software-development
+posix-user-portability
+posix-xsi
+powertop
+python-pip
+python-pkginfo
+python-wheel
+qbittorrent
+qrencode
+radeontop
+reflector
+remind
+rsync
+rtmpdump
+rustup
+shellcheck
+smartmontools
+speedtest-cli
+splix
+sqlite
+strace
+sudo
+sysbench
+texinfo
+tmux
+tree
+udisks2
+unzip
+usbutils
+vdpauinfo
+vidir2-git
+w3m
+wget
+which
+xdg-user-dirs
+xdg-utils
+xf86-video-ati
+xorg-server
+xorg-xinit
+xorg-xrandr
+xorg-xsetroot
+yarn
+zip
+zoxide
diff --git a/home/xyz/.config/myconf/sye b/home/xyz/.config/myconf/sye
new file mode 100644
index 00000000..79938852
--- /dev/null
+++ b/home/xyz/.config/myconf/sye
@@ -0,0 +1,15 @@
+UNIT FILE STATE PRESET
+getty@.service enabled enabled
+NetworkManager-dispatcher.service enabled disabled
+NetworkManager-wait-online.service enabled disabled
+NetworkManager.service enabled disabled
+nftables.service enabled disabled
+sshd.service enabled disabled
+systemd-resolved.service enabled enabled
+systemd-time-wait-sync.service enabled disabled
+systemd-timesyncd.service enabled enabled
+remote-fs.target enabled enabled
+paccache.timer enabled disabled
+pacman-filesdb-refresh.timer enabled disabled
+
+12 unit files listed.
diff --git a/home/xyz/.config/myconf/syue b/home/xyz/.config/myconf/syue
new file mode 100644
index 00000000..41742797
--- /dev/null
+++ b/home/xyz/.config/myconf/syue
@@ -0,0 +1,6 @@
+UNIT FILE STATE PRESET
+ssh-agent.service enabled enabled
+xdg-user-dirs-update.service enabled enabled
+p11-kit-server.socket enabled enabled
+
+3 unit files listed.
diff --git a/home/xyz/.gnupg/gpg.conf b/home/xyz/.gnupg/gpg.conf
new file mode 100644
index 00000000..8f7aa8dc
--- /dev/null
+++ b/home/xyz/.gnupg/gpg.conf
@@ -0,0 +1 @@
+with-subkey-fingerprint
diff --git a/home/xyz/.local/bin/loop b/home/xyz/.local/bin/loop
new file mode 100755
index 00000000..6a578267
--- /dev/null
+++ b/home/xyz/.local/bin/loop
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+while getopts t: opt; do
+ case $opt in
+ t) time="$OPTARG";;
+ \?) exit 1;;
+ esac
+done
+shift $((OPTIND-1))
+
+while :; do
+ # suggested by https://github.com/koalaman/shellcheck/wiki/SC2294
+ "$@"
+ sleep "${time:-1}"
+done
diff --git a/home/xyz/.local/bin/lsp b/home/xyz/.local/bin/lsp
new file mode 100755
index 00000000..4e2caa01
--- /dev/null
+++ b/home/xyz/.local/bin/lsp
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+loop ssh "${1:-pp}"
diff --git a/home/xyz/.local/bin/mvtu b/home/xyz/.local/bin/mvtu
new file mode 100755
index 00000000..6160507f
--- /dev/null
+++ b/home/xyz/.local/bin/mvtu
@@ -0,0 +1,13 @@
+#!/bin/sh
+# MV Time-Uuid
+
+find "$@" -type f -execdir sh -c '
+ file="$(basename "$1")"
+ ext="${file##*.}"
+ if [ "$ext" != "$file" ]; then
+ dest="$(time-uuid).$ext"
+ else
+ dest="$(time-uuid)"
+ fi
+ [ -e "dest" ] || mv -v -- "$1" "$dest"
+' shell '{}' \;
diff --git a/home/xyz/.ssh/config b/home/xyz/.ssh/config
new file mode 100644
index 00000000..7e857975
--- /dev/null
+++ b/home/xyz/.ssh/config
@@ -0,0 +1,29 @@
+# be careful not to put this under `HOST xxx`, else only when ssh to that host will add keys to agent
+# another approach is to put it under `HOST *`
+# https://unix.stackexchange.com/a/577490/459013
+AddKeysToAgent yes
+
+# tabs and empty only for readability, without also works, not sure about newline
+Host studio
+ HostName xyzstudio.local
+ User xyz
+
+Host aur aur.archlinux.org
+ Hostname aur.archlinux.org
+ User aur
+
+Host insp
+ HostName xyzinsp.local
+ User xyz
+
+Host pi raspberrypi.local
+ HostName raspberrypi.local
+ User pi
+
+Host pp
+ HostName xyzpp.local
+ User xyz
+
+Host ka
+ HostName xyzka.kyun.li
+ User xyz