From 1581b827a1e6440f3cbb270905865cc2ca9d8ac2 Mon Sep 17 00:00:00 2001 From: hanez Date: Thu, 26 Jun 2025 23:57:12 +0200 Subject: [PATCH 1/7] added alias --- .zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshrc b/.zshrc index 486e2293..e2f16a2f 100644 --- a/.zshrc +++ b/.zshrc @@ -106,6 +106,7 @@ alias gitd='git diff' alias gitp='git push' alias gitpp='git pull' alias gits='git status' +alias kubectl="minikube kubectl --" alias l='ls --color' alias ls='ls --color' alias lsa='ls -a --color' From a97c892c9e8ae53dd59e0b06b5513afb0ccef2f9 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Wed, 2 Jul 2025 20:28:23 +0200 Subject: [PATCH 2/7] Added bin/su.sh --- .gitignore | 1 + bin/su.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 bin/su.sh diff --git a/.gitignore b/.gitignore index f697a9d9..113b4420 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ !bin/nas-shutdown.sh !bin/stats.sh !bin/steam.sh +!bin/su.sh !.config diff --git a/bin/su.sh b/bin/su.sh new file mode 100755 index 00000000..5f580882 --- /dev/null +++ b/bin/su.sh @@ -0,0 +1,14 @@ +#!/data/data/com.termux/files/usr/bin/bash + +# My su script for my rooted Android tablet using Termux. +# +# You need to do a normal su before and then "mkdir /data/root" +# as the default $HOME for the root user is / on Android devices +# and we have no write permission for a /root there. +# +# /system/bin PATH? + +su -c "HOME=/data/root \ + PATH=/data/data/com.termux/files/usr/bin \ + SHELL=/data/data/com.termux/files/usr/bin/zsh /data/data/com.termux/files/usr/bin/zsh -l && cd /data/root" + From 762b252321ab4657833d39adfcc72972cdaa3685 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 3 Jul 2025 00:55:55 +0200 Subject: [PATCH 3/7] Use /bin/sh instead of /bin/bash to su.sh. --- bin/su.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/su.sh b/bin/su.sh index 5f580882..25dfb645 100755 --- a/bin/su.sh +++ b/bin/su.sh @@ -1,4 +1,4 @@ -#!/data/data/com.termux/files/usr/bin/bash +#!/data/data/com.termux/files/usr/bin/sh # My su script for my rooted Android tablet using Termux. # From c9f650cacc0e644a592c7067a023299884dd2311 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 3 Jul 2025 00:59:17 +0200 Subject: [PATCH 4/7] Added /system/bin to PATH in bin/su.sh. --- bin/su.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/su.sh b/bin/su.sh index 25dfb645..e80d12d0 100755 --- a/bin/su.sh +++ b/bin/su.sh @@ -6,9 +6,9 @@ # as the default $HOME for the root user is / on Android devices # and we have no write permission for a /root there. # -# /system/bin PATH? +# Do I need/want /system/bin in $PATH? su -c "HOME=/data/root \ - PATH=/data/data/com.termux/files/usr/bin \ + PATH=/data/data/com.termux/files/usr/bin:/system/bin \ SHELL=/data/data/com.termux/files/usr/bin/zsh /data/data/com.termux/files/usr/bin/zsh -l && cd /data/root" From 818620d474e3ebd62b91ed0f6cdf8b3de27f3915 Mon Sep 17 00:00:00 2001 From: hanez Date: Thu, 3 Jul 2025 02:51:45 +0200 Subject: [PATCH 5/7] Added bin/cfgxport.sh and some fixes. --- .gitignore | 1 + .xinitrc | 18 +++++++++++++----- README.md | 15 ++++++++++++--- bin/cfgxport.sh | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 8 deletions(-) create mode 100755 bin/cfgxport.sh diff --git a/.gitignore b/.gitignore index 113b4420..6df7f16e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ !bin #!bin/** !bin/ac.sh +!bin/cfgxport.sh !bin/eagle.sh !bin/forksync.sh !bin/gnucash.sh diff --git a/.xinitrc b/.xinitrc index 818f008e..df4d8fe4 100644 --- a/.xinitrc +++ b/.xinitrc @@ -1,13 +1,20 @@ #!/bin/bash -. /home/hanez/.env +. ~/.env # Export DEFAULT_SESSION in this file: -. /home/hanez/.penv +. ~/.penv -# My Xorg screen configuration is loaded here and looks something like this: -# xrandr --output DisplayPort-0 --mode 2560x1440 --pos 0x0 --rotate normal --output DisplayPort-1 --primary --mode 2560x1440 --pos 2560x0 --rotate normal --output DisplayPort-2 --mode 2560x1440 --pos 5120x0 --rotate normal --output HDMI-A-0 --off -/home/hanez/.config/screenlayout.sh +# Xorg screen setup +export DISPLAY=:0.0 + +xrandr --output DisplayPort-0 --mode 2560x1440 --pos 0x0 --rotate normal --output DisplayPort-1 --primary --mode 2560x1440 --pos 2560x0 --rotate normal --output DisplayPort-2 --mode 2560x1440 --pos 5120x0 --rotate normal --output HDMI-A-0 --off + +# Disable screen blanking +# Source: https://superuser.com/questions/644804/disable-screensaver-screen-blank-via-command-line +xset s off +xset s noblank +xset -dpms if [[ "$1" == "xterm" ]]; then shift @@ -26,3 +33,4 @@ case $1 in exec dbus-launch $DEFAULT_SESSION ;; esac + diff --git a/README.md b/README.md index edc95aed..ce0dd94e 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ This is my $HOME This repository contains my complete configuration for awesome, Zsh, Vim etc. -It is actually a work in progress because I try to migrate stuff used in more +It is actually a work in progress because I try to migrate stuff used in more then 15 years to a new and fresh $HOME setup. Don't wonder why some parts look stupid... ;) -It is a special configured repository where every file is ignored in +It is a special configured repository where every file is ignored in .gitignore. Only files I am sharing accross users/systems are "unignored". This repo is for my personal use only. Feel free to take a look... ;) @@ -15,7 +15,7 @@ This repo is for my personal use only. Feel free to take a look... ;) I am using a lot of Git submodules so take care of the licenses of each project. I use a default wallpaper provided by Willi Thiel licensed under CC BY-BC-SA -2.0 (https://creativecommons.org/licenses/by-nc-sa/2.0/). The source for this +2.0 (https://creativecommons.org/licenses/by-nc-sa/2.0/). The source for this image is: https://willithiel.photography/photo/31c3-saal-3 Clone to your $HOME @@ -41,3 +41,12 @@ If you want to see a list of all commands run: home help +Install without using Git (requires 7zip) +----------------------------------------- + + cd ~ + wget https://hanez.org/files/home.7z + 7z x home.7z + +done...! + diff --git a/bin/cfgxport.sh b/bin/cfgxport.sh new file mode 100755 index 00000000..3e324f88 --- /dev/null +++ b/bin/cfgxport.sh @@ -0,0 +1,36 @@ +#!/bin/env sh + +TARGET=$1 + +cd $HOME + +rm -f ${TARGET} + +7z a ${TARGET} bin/cfgxport.sh +7z a ${TARGET} bin/su.sh + +7z a ${TARGET} .env + +7z a ${TARGET} .config/awesome +7z d ${TARGET} .config/awesome/config.lua +7z d ${TARGET} .config/awesome/vicious/.git* + +7z a ${TARGET} .byobu +7z a ${TARGET} .config/byobu + +7z a ${TARGET} .screenrc +7z a ${TARGET} .tmux.conf + +7z a ${TARGET} .vim* +7z d ${TARGET} .vim/.netrwhist + +7z a ${TARGET} .Xresources +7z a ${TARGET} .xinitrc +7z a ${TARGET} .zoha.toml + +7z a ${TARGET} .zsh* +7z a ${TARGET} .zsh_functions.zsh +7z d ${TARGET} .zsh_history +7z d ${TARGET} .zsh/oh-my-zsh/.git* +7z d ${TARGET} .zsh/oh-my-zsh/custom/themes/powerlevel10k + From 65250580e6e5972232eff8d5ffe489a3e2dd6968 Mon Sep 17 00:00:00 2001 From: hanez Date: Thu, 3 Jul 2025 21:04:27 +0200 Subject: [PATCH 6/7] Cleanup. --- bin/cfgxport.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/cfgxport.sh b/bin/cfgxport.sh index 3e324f88..e95ba27c 100755 --- a/bin/cfgxport.sh +++ b/bin/cfgxport.sh @@ -29,7 +29,6 @@ rm -f ${TARGET} 7z a ${TARGET} .zoha.toml 7z a ${TARGET} .zsh* -7z a ${TARGET} .zsh_functions.zsh 7z d ${TARGET} .zsh_history 7z d ${TARGET} .zsh/oh-my-zsh/.git* 7z d ${TARGET} .zsh/oh-my-zsh/custom/themes/powerlevel10k From 593a74905bd4998d60523e4bf4b1c783e34aad77 Mon Sep 17 00:00:00 2001 From: hanez Date: Mon, 14 Jul 2025 00:44:36 +0200 Subject: [PATCH 7/7] Added more lines to backlog in .tmux.conf. --- .tmux.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 27b4f568..8576a136 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,11 +1,13 @@ -# Original Source: -# https://github.com/jonasjacek/colorcli +# Original Source: https://github.com/jonasjacek/ # Set prefix key unbind-key C-b bind y send-prefix set -g prefix ^y +# CONFIGURATION +set-option -g history-limit 10000 + # DESIGN: 256 COLOR SUPPORT setw -g default-terminal "screen-256color" @@ -63,3 +65,4 @@ set -g status-right '' setw -g window-status-bell-style fg=red,bold set-window-option -g window-status-bell-style bg=colour160 +