]> git.cameronkatri.com Git - dotfiles.git/commitdiff
Various changes
authorCameron Katri <me@cameronkatri.com>
Fri, 13 Aug 2021 14:22:25 +0000 (10:22 -0400)
committerCameron Katri <me@cameronkatri.com>
Fri, 13 Aug 2021 14:22:25 +0000 (10:22 -0400)
.config/nvim/init.vim
.crossenv.zsh
.cwmrc
.local/bin/freebsd-patch
.login_conf
.xinitrc
.zshrc

index ec7c4815478144fa13ac97489577a2e620851042..901c99d55f1f550906c1e6224a8881d82291571a 100644 (file)
@@ -57,3 +57,6 @@ endif
 let g:airline_symbols.linenr = ''
 let g:airline_symbols.branch = '⎇ '
 let g:airline_symbols.dirty= ''
+
+au BufNewFile,BufRead *.x,*.xm,*.xmm,*.l.mm setf logos
+au BufNewFile,BufRead *.tbd setf yaml
index a547d11ee5423a686fb0926377d8f4ae14fcf5e5..4a0f182575641e75a9741198f382d15cfe9ef3f4 100644 (file)
@@ -1,12 +1,12 @@
 iphoneos-arm64-proenv() {
-       MEMO_TARGET='iphoneos-arm64' PLATFORM='iphoneos' MEMO_ARCH='arm64' TARGET_SYSROOT='/usr/home/cameron/Documents/iOS/SDK/iPhoneOS14.3.sdk' MACOSX_SYSROOT='/usr/home/cameron/Documents/iOS/SDK/MacOSX11.1.sdk' GNU_HOST_TRIPLE='aarch64-apple-darwin'
+       MEMO_TARGET='iphoneos-arm64' PLATFORM='iphoneos' MEMO_ARCH='arm64' TARGET_SYSROOT='/usr/home/cameron/Documents/iOS/SDK/iPhoneOS12.0.sdk' MACOSX_SYSROOT='/usr/home/cameron/Documents/iOS/SDK/MacOSX12.0.sdk' GNU_HOST_TRIPLE='aarch64-apple-darwin'
        CC='aarch64-apple-darwin-clang' CXX='aarch64-apple-darwin-clang++' AR='aarch64-apple-darwin-ar' LD='aarch64-apple-darwin-ld ' CPP='aarch64-apple-darwin-clang -E' RANLIB='aarch64-apple-darwin-ranlib   ' STRIP='aarch64-apple-darwin-strip' NM='aarch64-apple-darwin-nm' LIPO='aarch64-apple-darwin-lipo' OTOOL='aarch64-apple-darwin-otool' I_N_T='aarch64-apple-darwin-install_name_tool' EXTRA='' SED='sed ' LDID='ldid' GINSTALL='install ' LN='ln' CP='cp'
-       BUILD_ROOT='/usr/home/cameron/Documents/iOS/Procursus' BUILD_BASE='/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700' BUILD_INFO='/usr/home/cameron/Documents/iOS/Procursus/build_info' BUILD_WORK='/usr/home/cameron/Documents/iOS/Procursus/build_work/iphoneos-arm64/1700' BUILD_STAGE='/usr/home/cameron/Documents/iOS/Procursus/build_stage/iphoneos-arm64/1700' BUILD_DIST='/usr/home/cameron/Documents/iOS/Procursus/build_dist/iphoneos-arm64/1700' BUILD_STRAP='/usr/home/cameron/Documents/iOS/Procursus/build_strap/iphoneos-arm64/1700' BUILD_TOOLS='/usr/home/cameron/Documents/iOS/Procursus/build_tools'
+       BUILD_ROOT='/usr/home/cameron/Documents/iOS/Procursus' BUILD_BASE='/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500' BUILD_INFO='/usr/home/cameron/Documents/iOS/Procursus/build_info' BUILD_WORK='/usr/home/cameron/Documents/iOS/Procursus/build_work/iphoneos-arm64/1500' BUILD_STAGE='/usr/home/cameron/Documents/iOS/Procursus/build_stage/iphoneos-arm64/1500' BUILD_DIST='/usr/home/cameron/Documents/iOS/Procursus/build_dist/iphoneos-arm64/1500' BUILD_STRAP='/usr/home/cameron/Documents/iOS/Procursus/build_strap/iphoneos-arm64/1500' BUILD_TOOLS='/usr/home/cameron/Documents/iOS/Procursus/build_tools'
        DEB_ARCH='iphoneos-arm' DEB_ORIGIN='' DEB_MAINTAINER='Cameron Katri <me@cameronkatri.com>'
-       CFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=14.0 -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/include -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/local/include -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/System/Library/Frameworks -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/Library/Frameworks'
-       CXXFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=14.0 -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/include -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/local/include -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/System/Library/Frameworks -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/Library/Frameworks'
-       CPPFLAGS='-arch arm64 -miphoneos-version-min=14.0 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS14.3.sdk -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/include -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/local/include -Wno-error-implicit-function-declaration'
-       LDFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=14.0 -L/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/lib -L/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/usr/local/lib -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/System/Library/Frameworks -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1700/Library/Frameworks -liosexec'
+       CFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS12.0.sdk -miphoneos-version-min=12.0 -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/usr/include -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/usr/local/include -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/System/Library/Frameworks -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/Library/Frameworks'
+       CXXFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS12.0.sdk -miphoneos-version-min=12.0 -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/usr/include -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/usr/local/include -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/System/Library/Frameworks -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/Library/Frameworks'
+       CPPFLAGS='-arch arm64 -miphoneos-version-min=12.0 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS12.0.sdk -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/usr/include -isystem /usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/usr/local/include -Wno-error-implicit-function-declaration'
+       LDFLAGS='-Os -g -arch arm64 -isysroot /usr/home/cameron/Documents/iOS/SDK/iPhoneOS12.0.sdk -miphoneos-version-min=12.0 -L/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/usr/lib -L/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/usr/local/lib -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/System/Library/Frameworks -F/usr/home/cameron/Documents/iOS/Procursus/build_base/iphoneos-arm64/1500/Library/Frameworks -liosexec'
        export MEMO_TARGET PLATFORM MEMO_ARCH TARGET_SYSROOT MACOSX_SYSROOT GNU_HOST_TRIPLE
        export CC CXX AR LD CPP RANLIB STRIP NM LIPO OTOOL I_N_T EXTRA SED LDID GINSTALL LN CP
        export BUILD_ROOT BUILD_BASE BUILD_INFO BUILD_WORK BUILD_STAGE BUILD_DIST BUILD_STRAP BUILD_TOOLS
@@ -25,6 +25,26 @@ apple_cmds-env() {
        export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
 }
 
+darwin-arm64-env() {
+       CC='aarch64-apple-darwin-clang' CXX='aarch64-apple-darwin-clang++' AR='aarch64-apple-darwin-ar' LD='aarch64-apple-darwin-ld' CPP='aarch64-apple-darwin-clang -E' RANLIB='aarch64-apple-darwin-ranlib' STRIP='aarch64-apple-darwin-strip' NM='aarch64-apple-darwin-nm' LIPO='aarch64-apple-darwin-lipo' OTOOL='aarch64-apple-darwin-otool' I_N_T='aarch64-apple-darwin-install_name_tool'
+       CFLAGS="-arch arm64 -isysroot ${MACOSX_SYSROOT} -mmacosx-version-min=11.0"
+       CPPFLAGS="-arch arm64 -isysroot ${MACOSX_SYSROOT} -mmacosx-version-min=11.0"
+       CXXFLAGS="-arch arm64 -isysroot ${MACOSX_SYSROOT} -mmacosx-version-min=11.0"
+       LDFLAGS="-arch arm64 -isysroot ${MACOSX_SYSROOT} -mmacosx-version-min=11.0"
+       export CC CXX AR LD CPP RANLIB STRIP NM LIPO OTOOL I_N_T
+       export CFLAGS CPPFLAG CXXFLAGS LDFLAGS
+}
+
+darwin-amd64-env() {
+       CC='x86_64-apple-darwin-clang' CXX='x86_64-apple-darwin-clang++' AR='x86_64-apple-darwin-ar' LD='x86_64-apple-darwin-ld' CPP='x86_64-apple-darwin-clang -E' RANLIB='x86_64-apple-darwin-ranlib' STRIP='x86_64-apple-darwin-strip' NM='x86_64-apple-darwin-nm' LIPO='x86_64-apple-darwin-lipo' OTOOL='x86_64-apple-darwin-otool' I_N_T='x86_64-apple-darwin-install_name_tool'
+       CFLAGS="-arch x86_64 -isysroot ${MACOSX_SYSROOT} -mmacosx-version-min=11.0"
+       CPPFLAGS="-arch x86_64 -isysroot ${MACOSX_SYSROOT} -mmacosx-version-min=11.0"
+       CXXFLAGS="-arch x86_64 -isysroot ${MACOSX_SYSROOT} -mmacosx-version-min=11.0"
+       LDFLAGS="-arch x86_64 -isysroot ${MACOSX_SYSROOT} -mmacosx-version-min=11.0"
+       export CC CXX AR LD CPP RANLIB STRIP NM LIPO OTOOL I_N_T
+       export CFLAGS CPPFLAG CXXFLAGS LDFLAGS
+}
+
 darwin-env() {
        CC='aarch64-apple-darwin-clang' CXX='aarch64-apple-darwin-clang++' AR='aarch64-apple-darwin-ar' LD='aarch64-apple-darwin-ld' CPP='aarch64-apple-darwin-clang -E' RANLIB='aarch64-apple-darwin-ranlib' STRIP='aarch64-apple-darwin-strip' NM='aarch64-apple-darwin-nm' LIPO='aarch64-apple-darwin-lipo' OTOOL='aarch64-apple-darwin-otool' I_N_T='aarch64-apple-darwin-install_name_tool' LDID='ldid'
        OPTIMIZATION_FLAGS="-Os -g -flto=thin"
@@ -76,6 +96,9 @@ export MEMO_PGP_SIGN_KEY=7D3B36CEA40FCC2181FB6DCDBAFFD97826540F1C
 export MEMO_TARGET=iphoneos-arm64
 export DPKG_TYPE=xz
 export GNUBINDIR=/usr/local/gnubin
+export THEOS=~/Documents/iOS/theos
+export THEOS_DEVICE_IP="localhost"
+export THEOS_DEVICE_PORT="2222"
 
 function x86_64-linux-gnu-env() {
        export CC='clang --target=x86_64-linux-gnu' CFLAGS='--sysroot=/usr/compat/debian -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include/ -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/ -g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter' CPPFLAGS='--sysroot=/usr/compat/debian -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include/ -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/ -g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wno-unused-parameter' LDFLAGS='--sysroot=/usr/compat/debian -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include/ -isystem /usr/compat/debian/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/' LD='ld --target=x86_64-linux-gnu' AR='llvm-ar' NM='llvm-nm'
diff --git a/.cwmrc b/.cwmrc
index ded0c95bc7c50da2b8c2dc8856386eabf0ea4477..4bc48986cbb27f6f6befb4e9f3be776abc42fa08 100644 (file)
--- a/.cwmrc
+++ b/.cwmrc
@@ -7,6 +7,7 @@ bind-key 4-w firefox
 bind-key 4-q window-close
 bind-key 4-t "st -e neomutt"
 bind-key 4-space menu-exec
+bind-key 4C-s "xset dpms force off"
 
 command firefox firefox
 
index 6c1121b602f41888312f5394971cb5edc49e6fe9..83503e5ce69a9fc4df34c2c99fd027c0ad942d70 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 for patch in $HOME/Documents/freebsd-patches/*.patch; do
-       patch -d /usr/src -p1 < $patch
+       git -C /usr/src am < $patch
 done
index fdcf2ae162c27817b0100ed2591bdefdc84b8970..054c5d3dd840dc3432d563b1fe6b5e9b1fb5253b 100644 (file)
@@ -5,5 +5,5 @@
 me:\
        :lang=en_US.UTF-8:\
        :charset=UTF-8:\
-       :path=/usr/local/libexec/ccache /usr/local/llvm12/bin /sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/.local/bin /opt/limd/bin /usr/local/libexec/apple/bin ~/Documents/go/bin:\
+       :path=/usr/local/libexec/ccache /usr/local/llvm12/bin /sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/.local/bin ~/Documents/iOS/theos/bin /opt/limd/bin /usr/local/libexec/apple/bin ~/Documents/go/bin:\
        :umask=027:
index b5b262809e8d2fd9fed8274f4b1915f4922ea8c7..c0221c2743b14144fa2a43990c6256d6166763c1 100755 (executable)
--- a/.xinitrc
+++ b/.xinitrc
@@ -15,6 +15,9 @@ fi
 
 export $(dbus-launch)
 
+pkill xidle
+xidle -delay 5 -nw -program "/usr/local/bin/xlock -dpmsstandby 5 -mode lightning" -timeout 1800 &
+
 pkill -f lemonybar
 lemonybar &
 
diff --git a/.zshrc b/.zshrc
index faa5cd6339978323901e3909a77c8bf6ffe0408e..cbe0eaad186a981c7e38c0aa4ef8c18fab7ea02d 100755 (executable)
--- a/.zshrc
+++ b/.zshrc
@@ -39,7 +39,6 @@ export COLORTERM=1 CLICOLOR=1
 bindkey '^E' edit-command-line
 alias code='code-oss'
 alias sudo='sudo '
-alias icat="kitty +kitten icat"
 alias fuzz="fzf --preview 'bat --style=numbers,changes --color=always --line-range :500 {}' --preview-window=right:66%"
 alias sort='LC_ALL=C sort'
 # https://reviews.freebsd.org/D30545
@@ -67,9 +66,6 @@ setxkbmap -option compose:rctrl
 
 export GPG_TTY=$(tty)
 
-# Completion for kitty
-#kitty + complete setup zsh | source /dev/stdin
-
 export LESS='-FiMRx2$z-4$Dd+c$Du+g'
 
 # https://reviews.freebsd.org/D30341