Merge branch 'master' of git.xw3.org:hanez/home
This commit is contained in:
commit
a9454b47cd
7 changed files with 82 additions and 10 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,6 +3,7 @@
|
||||||
!bin
|
!bin
|
||||||
#!bin/**
|
#!bin/**
|
||||||
!bin/ac.sh
|
!bin/ac.sh
|
||||||
|
!bin/cfgxport.sh
|
||||||
!bin/eagle.sh
|
!bin/eagle.sh
|
||||||
!bin/forksync.sh
|
!bin/forksync.sh
|
||||||
!bin/gnucash.sh
|
!bin/gnucash.sh
|
||||||
|
|
@ -16,6 +17,7 @@
|
||||||
!bin/nas-shutdown.sh
|
!bin/nas-shutdown.sh
|
||||||
!bin/stats.sh
|
!bin/stats.sh
|
||||||
!bin/steam.sh
|
!bin/steam.sh
|
||||||
|
!bin/su.sh
|
||||||
|
|
||||||
!.config
|
!.config
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
# Original Source:
|
# Original Source: https://github.com/jonasjacek/
|
||||||
# https://github.com/jonasjacek/colorcli
|
|
||||||
|
|
||||||
# Set prefix key
|
# Set prefix key
|
||||||
unbind-key C-b
|
unbind-key C-b
|
||||||
bind y send-prefix
|
bind y send-prefix
|
||||||
set -g prefix ^y
|
set -g prefix ^y
|
||||||
|
|
||||||
|
# CONFIGURATION
|
||||||
|
set-option -g history-limit 10000
|
||||||
|
|
||||||
# DESIGN: 256 COLOR SUPPORT
|
# DESIGN: 256 COLOR SUPPORT
|
||||||
setw -g default-terminal "screen-256color"
|
setw -g default-terminal "screen-256color"
|
||||||
|
|
||||||
|
|
@ -63,3 +65,4 @@ set -g status-right ''
|
||||||
|
|
||||||
setw -g window-status-bell-style fg=red,bold
|
setw -g window-status-bell-style fg=red,bold
|
||||||
set-window-option -g window-status-bell-style bg=colour160
|
set-window-option -g window-status-bell-style bg=colour160
|
||||||
|
|
||||||
|
|
|
||||||
18
.xinitrc
18
.xinitrc
|
|
@ -1,13 +1,20 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. /home/hanez/.env
|
. ~/.env
|
||||||
|
|
||||||
# Export DEFAULT_SESSION in this file:
|
# Export DEFAULT_SESSION in this file:
|
||||||
. /home/hanez/.penv
|
. ~/.penv
|
||||||
|
|
||||||
# My Xorg screen configuration is loaded here and looks something like this:
|
# Xorg screen setup
|
||||||
# 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
|
export DISPLAY=:0.0
|
||||||
/home/hanez/.config/screenlayout.sh
|
|
||||||
|
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
|
if [[ "$1" == "xterm" ]]; then
|
||||||
shift
|
shift
|
||||||
|
|
@ -26,3 +33,4 @@ case $1 in
|
||||||
exec dbus-launch $DEFAULT_SESSION
|
exec dbus-launch $DEFAULT_SESSION
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
1
.zshrc
1
.zshrc
|
|
@ -106,6 +106,7 @@ alias gitd='git diff'
|
||||||
alias gitp='git push'
|
alias gitp='git push'
|
||||||
alias gitpp='git pull'
|
alias gitpp='git pull'
|
||||||
alias gits='git status'
|
alias gits='git status'
|
||||||
|
alias kubectl="minikube kubectl --"
|
||||||
alias l='ls --color'
|
alias l='ls --color'
|
||||||
alias ls='ls --color'
|
alias ls='ls --color'
|
||||||
alias lsa='ls -a --color'
|
alias lsa='ls -a --color'
|
||||||
|
|
|
||||||
|
|
@ -41,3 +41,12 @@ If you want to see a list of all commands run:
|
||||||
|
|
||||||
home help
|
home help
|
||||||
|
|
||||||
|
Install without using Git (requires 7zip)
|
||||||
|
-----------------------------------------
|
||||||
|
|
||||||
|
cd ~
|
||||||
|
wget https://hanez.org/files/home.7z
|
||||||
|
7z x home.7z
|
||||||
|
|
||||||
|
done...!
|
||||||
|
|
||||||
|
|
|
||||||
35
bin/cfgxport.sh
Executable file
35
bin/cfgxport.sh
Executable file
|
|
@ -0,0 +1,35 @@
|
||||||
|
#!/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 d ${TARGET} .zsh_history
|
||||||
|
7z d ${TARGET} .zsh/oh-my-zsh/.git*
|
||||||
|
7z d ${TARGET} .zsh/oh-my-zsh/custom/themes/powerlevel10k
|
||||||
|
|
||||||
14
bin/su.sh
Executable file
14
bin/su.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/data/data/com.termux/files/usr/bin/sh
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
# Do I need/want /system/bin in $PATH?
|
||||||
|
|
||||||
|
su -c "HOME=/data/root \
|
||||||
|
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"
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue