Added bin/cfgxport.sh and some fixes.

This commit is contained in:
Johannes Findeisen 2025-07-03 02:51:45 +02:00
commit 818620d474
4 changed files with 62 additions and 8 deletions

1
.gitignore vendored
View file

@ -3,6 +3,7 @@
!bin
#!bin/**
!bin/ac.sh
!bin/cfgxport.sh
!bin/eagle.sh
!bin/forksync.sh
!bin/gnucash.sh

View file

@ -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

View file

@ -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...!

36
bin/cfgxport.sh Executable file
View file

@ -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