diff options
| author | navewindre <boneyaard@gmail.com> | 2025-07-13 01:45:05 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2025-07-13 01:45:05 +0200 |
| commit | d49e4b0a25c7cc75ade210c7092eea8feb75e692 (patch) | |
| tree | 2a38c3846dee25d0d83c820de6bade62f54db90f /home | |
| parent | 1fe841b80b6284737661870c87abbc26ecba4109 (diff) | |
restructure
Diffstat (limited to 'home')
| -rw-r--r-- | home/.Xmodmap | 13 | ||||
| -rw-r--r-- | home/.Xresources | 66 | ||||
| -rwxr-xr-x | home/.lang.sh | 17 | ||||
| -rwxr-xr-x | home/.lscolors | 1 | ||||
| -rwxr-xr-x | home/.panel.sh | 18 | ||||
| -rwxr-xr-x | home/.panel2.sh | 17 | ||||
| -rwxr-xr-x | home/.projector_off | 7 | ||||
| -rwxr-xr-x | home/.projector_on | 29 | ||||
| -rwxr-xr-x | home/.restart-panel | 3 | ||||
| -rwxr-xr-x | home/.signout.sh | 12 | ||||
| -rwxr-xr-x | home/.xinitrc | 15 |
11 files changed, 198 insertions, 0 deletions
diff --git a/home/.Xmodmap b/home/.Xmodmap new file mode 100644 index 0000000..f49fa66 --- /dev/null +++ b/home/.Xmodmap @@ -0,0 +1,13 @@ +remove Lock = Caps_Lock +keysym Caps_Lock = Escape + +clear Mod1 +clear Mod4 + +keycode 133 = Alt_L +keycode 134 = Alt_R +keycode 64 = Super_L +keycode 108 = Super_R + +add Mod1 = Alt_L Alt_R +add Mod4 = Super_L Super_R diff --git a/home/.Xresources b/home/.Xresources new file mode 100644 index 0000000..26fc791 --- /dev/null +++ b/home/.Xresources @@ -0,0 +1,66 @@ +Xft.dpi:88 + +*.background: #000000 +*.foreground: #ffffff +URxvt.font: xft:Px437 DOS/V re. JPN12:size=10 +URxvt.boldFont: xft:Px437 DOS/V re. JPN12:size=10 + +! black +*.color0: #000000 +*.color8: #4d4d4d + +! red +*.color1: #9f2625 +*.color9: #ff0400 + +! green +*.color2: #31cb1b +*.color10: #23fd00 + +! yellow +*.color3: #cecb00 +*.color11: #fffd00 + +! blue +*.color4: #3347c8 +*.color12: #3655ff + +! magenta +*.color5: #cb1ed1 +*.color13: #fd28ff + +! cyan +*.color6: #0dcdcd +*.color14: #3bffff + +! white +*.color7: #e5e5e5 +*.color15: #ffffff + + +URxvt.scrollBar: false +URxvt.depth: 32 +URxvt.urgentOnBell: true +URxvt.Iso14755: false +URxvt.keysym.Shift-Up: command:\033]720;1\007 +URxvt.keysym.Shift-Down: command:\033]721;1\007 +URxvt.keysym.Control-Up: \033[1;5A +URxvt.keysym.Control-Down: \033[1;5B +URxvt.keysym.Control-Right: \033[1;5C +URxvt.keysym.Control-Left: \033[1;5D +URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select +URxvt.copyCommand: xclip -i -selection clipboard +URxvt.pasteCommand: xclip -o -selection clipboard +URxvt.keysym.M-c: perl:clipboard:copy +URxvt.keysym.M-v: perl:clipboard:paste +URxvt.keysym.M-C-v: perl:clipboard:paste_escaped +URxvt.keysym.M-Escape: perl:keyboard-select:activate +URxvt.keysym.M-s: perl:keyboard-select:search +URxvt.keysym.M-u: perl:url-select:select_next +URxvt.keysym.C-minus: command:\033]710;xft:Px437 DOS/V re. JPN12:size=10\007 +URxvt.keysym.C-0: command:\033]710;xft:Px437 DOS/V re. JPN24:size=18\007 +URxvt.urlLauncher: firefox +URxvt.underlineURLs: true +URxvt.urlButton: 1 +URxvt.geometry: 84x24 +URXvt.inputMethod: ibus diff --git a/home/.lang.sh b/home/.lang.sh new file mode 100755 index 0000000..8b9fab1 --- /dev/null +++ b/home/.lang.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +ENGINES=$(ibus engine) +case "$ENGINES" in + *en*) + echo "EN" + ;; + *pl*) + echo "PL" + ;; + *anthy*) + echo "JA" + ;; + *) + echo "??" + ;; +esac diff --git a/home/.lscolors b/home/.lscolors new file mode 100755 index 0000000..41e35c0 --- /dev/null +++ b/home/.lscolors @@ -0,0 +1 @@ +export LS_COLORS="ca=0:st=0:tw=0:cd=0;38;2;249;38;114;48;2;51;51;51:su=0:pi=0;38;2;0;0;0;48;2;102;217;239:bd=0;38;2;102;217;239;48;2;51;51;51:rs=0:ln=0;38;2;249;38;114:ow=0:sg=0:do=0;38;2;0;0;0;48;2;249;38;114:di=0;38;2;102;217;239:or=0;38;2;0;0;0;48;2;255;74;68:no=0:ex=1;38;2;249;38;114:so=0;38;2;0;0;0;48;2;249;38;114:mi=0;38;2;0;0;0;48;2;255;74;68:*~=0;38;2;122;112;112:mh=0:fi=0:*.o=0;38;2;122;112;112:*.d=0;38;2;0;255;135:*.h=0;38;2;0;255;135:*.c=0;38;2;0;255;135:*.r=0;38;2;0;255;135:*.t=0;38;2;0;255;135:*.z=4;38;2;249;38;114:*.m=0;38;2;0;255;135:*.p=0;38;2;0;255;135:*.a=1;38;2;249;38;114:*.bc=0;38;2;122;112;112:*.as=0;38;2;0;255;135:*.nb=0;38;2;0;255;135:*.rm=0;38;2;253;151;31:*.js=0;38;2;0;255;135:*.cr=0;38;2;0;255;135:*css=0;38;2;0;255;135:*.py=0;38;2;0;255;135:*.la=0;38;2;122;112;112:*.di=0;38;2;0;255;135:*.jl=0;38;2;0;255;135:*.gz=4;38;2;249;38;114:*.pp=0;38;2;0;255;135:*.go=0;38;2;0;255;135:*.vb=0;38;2;0;255;135:*.hs=0;38;2;0;255;135:*.hh=0;38;2;0;255;135:*.el=0;38;2;0;255;135:*.mn=0;38;2;0;255;135:*.xz=4;38;2;249;38;114:*.rs=0;38;2;0;255;135:*.md=0;38;2;226;209;57:*.ml=0;38;2;0;255;135:*.cc=0;38;2;0;255;135:*.kt=0;38;2;0;255;135:*.7z=4;38;2;249;38;114:*.pm=0;38;2;0;255;135:*.sh=0;38;2;0;255;135:*.ts=0;38;2;0;255;135:*.so=1;38;2;249;38;114:*.ex=0;38;2;0;255;135:*.rb=0;38;2;0;255;135:*.ll=0;38;2;0;255;135:*.fs=0;38;2;0;255;135:*.td=0;38;2;0;255;135:*.gv=0;38;2;0;255;135:*.ui=0;38;2;166;226;46:*.pl=0;38;2;0;255;135:*.wv=0;38;2;253;151;31:*.hi=0;38;2;122;112;112:*.lo=0;38;2;122;112;112:*.ko=1;38;2;249;38;114:*.cs=0;38;2;0;255;135:*.ps=0;38;2;230;219;116:*.bz=4;38;2;249;38;114:*.cp=0;38;2;0;255;135:*.bib=0;38;2;166;226;46:*.aif=0;38;2;253;151;31:*.sxi=0;38;2;230;219;116:*.rtf=0;38;2;230;219;116:*.mp4=0;38;2;253;151;31:*.tif=0;38;2;253;151;31:*.jar=4;38;2;249;38;114:*.aux=0;38;2;122;112;112:*.swf=0;38;2;253;151;31:*.nix=0;38;2;166;226;46:*.pid=0;38;2;122;112;112:*.otf=0;38;2;253;151;31:*.erl=0;38;2;0;255;135:*.zip=4;38;2;249;38;114:*.lua=0;38;2;0;255;135:*.gif=0;38;2;253;151;31:*.ps1=0;38;2;0;255;135:*.xmp=0;38;2;166;226;46:*.vim=0;38;2;0;255;135:*.ltx=0;38;2;0;255;135:*.iso=4;38;2;249;38;114:*.ipp=0;38;2;0;255;135:*.mpg=0;38;2;253;151;31:*.tex=0;38;2;0;255;135:*.vcd=4;38;2;249;38;114:*.pod=0;38;2;0;255;135:*.dot=0;38;2;0;255;135:*.xlr=0;38;2;230;219;116:*.inc=0;38;2;0;255;135:*.psd=0;38;2;253;151;31:*.mid=0;38;2;253;151;31:*.hpp=0;38;2;0;255;135:*.sxw=0;38;2;230;219;116:*.bat=1;38;2;249;38;114:*.dmg=4;38;2;249;38;114:*.htm=0;38;2;226;209;57:*.yml=0;38;2;166;226;46:*.xls=0;38;2;230;219;116:*.pps=0;38;2;230;219;116:*.fsi=0;38;2;0;255;135:*.mp3=0;38;2;253;151;31:*.m4v=0;38;2;253;151;31:*.mkv=0;38;2;253;151;31:*.png=0;38;2;253;151;31:*.gvy=0;38;2;0;255;135:*hgrc=0;38;2;166;226;46:*.pkg=4;38;2;249;38;114:*.awk=0;38;2;0;255;135:*.csx=0;38;2;0;255;135:*.tsx=0;38;2;0;255;135:*.zsh=0;38;2;0;255;135:*.eps=0;38;2;253;151;31:*.ttf=0;38;2;253;151;31:*.jpg=0;38;2;253;151;31:*.doc=0;38;2;230;219;116:*.out=0;38;2;122;112;112:*.flv=0;38;2;253;151;31:*.log=0;38;2;122;112;112:*.pyo=0;38;2;122;112;112:*.bz2=4;38;2;249;38;114:*.ics=0;38;2;230;219;116:*.img=4;38;2;249;38;114:*.idx=0;38;2;122;112;112:*.bsh=0;38;2;0;255;135:*.wav=0;38;2;253;151;31:*.fnt=0;38;2;253;151;31:*.bin=4;38;2;249;38;114:*.c++=0;38;2;0;255;135:*.mov=0;38;2;253;151;31:*.tgz=4;38;2;249;38;114:*.cxx=0;38;2;0;255;135:*.dll=1;38;2;249;38;114:*.fon=0;38;2;253;151;31:*.bag=4;38;2;249;38;114:*.csv=0;38;2;226;209;57:*.pro=0;38;2;166;226;46:*.bst=0;38;2;166;226;46:*.vob=0;38;2;253;151;31:*.inl=0;38;2;0;255;135:*.xcf=0;38;2;253;151;31:*.git=0;38;2;122;112;112:*.fsx=0;38;2;0;255;135:*.exs=0;38;2;0;255;135:*.apk=4;38;2;249;38;114:*.hxx=0;38;2;0;255;135:*.php=0;38;2;0;255;135:*.exe=1;38;2;249;38;114:*.sbt=0;38;2;0;255;135:*.mir=0;38;2;0;255;135:*.ilg=0;38;2;122;112;112:*.pyd=0;38;2;122;112;112:*.htc=0;38;2;0;255;135:*.com=1;38;2;249;38;114:*.ppm=0;38;2;253;151;31:*.tmp=0;38;2;122;112;112:*.ind=0;38;2;122;112;112:*.cpp=0;38;2;0;255;135:*.odp=0;38;2;230;219;116:*.ppt=0;38;2;230;219;116:*.zst=4;38;2;249;38;114:*.svg=0;38;2;253;151;31:*.rar=4;38;2;249;38;114:*.wma=0;38;2;253;151;31:*.toc=0;38;2;122;112;112:*.ico=0;38;2;253;151;31:*.odt=0;38;2;230;219;116:*.tbz=4;38;2;249;38;114:*.bbl=0;38;2;122;112;112:*.asa=0;38;2;0;255;135:*.pas=0;38;2;0;255;135:*.swp=0;38;2;122;112;112:*.dox=0;38;2;166;226;46:*.wmv=0;38;2;253;151;31:*.txt=0;38;2;226;209;57:*.tar=4;38;2;249;38;114:*.def=0;38;2;0;255;135:*.sty=0;38;2;122;112;112:*.kts=0;38;2;0;255;135:*.pyc=0;38;2;122;112;112:*.elm=0;38;2;0;255;135:*.m4a=0;38;2;253;151;31:*.bak=0;38;2;122;112;112:*.sql=0;38;2;0;255;135:*.arj=4;38;2;249;38;114:*.ini=0;38;2;166;226;46:*.h++=0;38;2;0;255;135:*.blg=0;38;2;122;112;112:*.rpm=4;38;2;249;38;114:*.tcl=0;38;2;0;255;135:*.bcf=0;38;2;122;112;112:*.kex=0;38;2;230;219;116:*.mli=0;38;2;0;255;135:*.tml=0;38;2;166;226;46:*.xml=0;38;2;226;209;57:*.cfg=0;38;2;166;226;46:*.deb=4;38;2;249;38;114:*.bmp=0;38;2;253;151;31:*.ogg=0;38;2;253;151;31:*.rst=0;38;2;226;209;57:*.cgi=0;38;2;0;255;135:*.epp=0;38;2;0;255;135:*.pdf=0;38;2;230;219;116:*.pbm=0;38;2;253;151;31:*TODO=1:*.ods=0;38;2;230;219;116:*.dpr=0;38;2;0;255;135:*.clj=0;38;2;0;255;135:*.avi=0;38;2;253;151;31:*.pgm=0;38;2;253;151;31:*.fls=0;38;2;122;112;112:*.psd1=0;38;2;0;255;135:*.json=0;38;2;166;226;46:*.bash=0;38;2;0;255;135:*.fish=0;38;2;0;255;135:*.opus=0;38;2;253;151;31:*.epub=0;38;2;230;219;116:*.flac=0;38;2;253;151;31:*.h264=0;38;2;253;151;31:*.pptx=0;38;2;230;219;116:*.psm1=0;38;2;0;255;135:*.lock=0;38;2;122;112;112:*.docx=0;38;2;230;219;116:*.java=0;38;2;0;255;135:*.webm=0;38;2;253;151;31:*.tbz2=4;38;2;249;38;114:*.toml=0;38;2;166;226;46:*.less=0;38;2;0;255;135:*.html=0;38;2;226;209;57:*.tiff=0;38;2;253;151;31:*.xlsx=0;38;2;230;219;116:*.rlib=0;38;2;122;112;112:*.conf=0;38;2;166;226;46:*.diff=0;38;2;0;255;135:*.dart=0;38;2;0;255;135:*.lisp=0;38;2;0;255;135:*.purs=0;38;2;0;255;135:*.orig=0;38;2;122;112;112:*.mpeg=0;38;2;253;151;31:*.hgrc=0;38;2;166;226;46:*.yaml=0;38;2;166;226;46:*.make=0;38;2;166;226;46:*.jpeg=0;38;2;253;151;31:*.class=0;38;2;122;112;112:*.swift=0;38;2;0;255;135:*.xhtml=0;38;2;226;209;57:*.shtml=0;38;2;226;209;57:*.dyn_o=0;38;2;122;112;112:*.toast=4;38;2;249;38;114:*.cmake=0;38;2;166;226;46:*.patch=0;38;2;0;255;135:*.scala=0;38;2;0;255;135:*.ipynb=0;38;2;0;255;135:*.mdown=0;38;2;226;209;57:*.cabal=0;38;2;0;255;135:*passwd=0;38;2;166;226;46:*.cache=0;38;2;122;112;112:*shadow=0;38;2;166;226;46:*README=0;38;2;0;0;0;48;2;230;219;116:*.groovy=0;38;2;0;255;135:*.dyn_hi=0;38;2;122;112;112:*TODO.md=1:*.config=0;38;2;166;226;46:*.flake8=0;38;2;166;226;46:*.matlab=0;38;2;0;255;135:*.ignore=0;38;2;166;226;46:*INSTALL=0;38;2;0;0;0;48;2;230;219;116:*.gradle=0;38;2;0;255;135:*COPYING=0;38;2;182;182;182:*LICENSE=0;38;2;182;182;182:*setup.py=0;38;2;166;226;46:*.desktop=0;38;2;166;226;46:*TODO.txt=1:*.gemspec=0;38;2;166;226;46:*Doxyfile=0;38;2;166;226;46:*Makefile=0;38;2;166;226;46:*.rgignore=0;38;2;166;226;46:*.markdown=0;38;2;226;209;57:*.DS_Store=0;38;2;122;112;112:*README.md=0;38;2;0;0;0;48;2;230;219;116:*.fdignore=0;38;2;166;226;46:*configure=0;38;2;166;226;46:*COPYRIGHT=0;38;2;182;182;182:*.cmake.in=0;38;2;166;226;46:*.kdevelop=0;38;2;166;226;46:*.gitconfig=0;38;2;166;226;46:*Dockerfile=0;38;2;166;226;46:*README.txt=0;38;2;0;0;0;48;2;230;219;116:*.localized=0;38;2;122;112;112:*SConstruct=0;38;2;166;226;46:*.gitignore=0;38;2;166;226;46:*CODEOWNERS=0;38;2;166;226;46:*SConscript=0;38;2;166;226;46:*.scons_opt=0;38;2;122;112;112:*INSTALL.md=0;38;2;0;0;0;48;2;230;219;116:*.gitmodules=0;38;2;166;226;46:*Makefile.am=0;38;2;166;226;46:*.travis.yml=0;38;2;230;219;116:*MANIFEST.in=0;38;2;166;226;46:*LICENSE-MIT=0;38;2;182;182;182:*.synctex.gz=0;38;2;122;112;112:*Makefile.in=0;38;2;122;112;112:*INSTALL.txt=0;38;2;0;0;0;48;2;230;219;116:*CONTRIBUTORS=0;38;2;0;0;0;48;2;230;219;116:*configure.ac=0;38;2;166;226;46:*.fdb_latexmk=0;38;2;122;112;112:*.applescript=0;38;2;0;255;135:*appveyor.yml=0;38;2;230;219;116:*.clang-format=0;38;2;166;226;46:*.gitattributes=0;38;2;166;226;46:*LICENSE-APACHE=0;38;2;182;182;182:*CMakeCache.txt=0;38;2;122;112;112:*CMakeLists.txt=0;38;2;166;226;46:*CONTRIBUTORS.md=0;38;2;0;0;0;48;2;230;219;116:*.sconsign.dblite=0;38;2;122;112;112:*requirements.txt=0;38;2;166;226;46:*CONTRIBUTORS.txt=0;38;2;0;0;0;48;2;230;219;116:*package-lock.json=0;38;2;122;112;112:*.CFUserTextEncoding=0;38;2;122;112;112" diff --git a/home/.panel.sh b/home/.panel.sh new file mode 100755 index 0000000..6d0e225 --- /dev/null +++ b/home/.panel.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Get CPU usage +cpu_usage=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print int(100 - $1)"%"}') + +# Get free space on root drive +free_space=$(df -h / | awk '/\// {print $4}') + +if command -v nvidia-smi &> /dev/null; then + gpu_usage=$(nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{print $1"%"}') + gpu_info="| GPU: $gpu_usage" +else + gpu_info="" +fi + + +echo "CPU: $cpu_usage $gpu_info | ヂスク: $free_space |" + diff --git a/home/.panel2.sh b/home/.panel2.sh new file mode 100755 index 0000000..be609e1 --- /dev/null +++ b/home/.panel2.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Get CPU usage +cpu_usage=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print int(100 - $1)"%"}') + +# Get free space on root drive +free_space=$(df -h / | awk '/\// {print $4}') + +if command -v nvidia-smi &> /dev/null; then + gpu_usage=$(nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{print $1"%"}') + gpu_info="| GPU: $gpu_usage" +else + gpu_info="" +fi + +echo " CPU: $cpu_usage $gpu_info | ヂスク: $free_space |" + diff --git a/home/.projector_off b/home/.projector_off new file mode 100755 index 0000000..f1e72f7 --- /dev/null +++ b/home/.projector_off @@ -0,0 +1,7 @@ +#!/bin/sh + +killall spacefm +screen -d -m "$HOME/.config/openbox/spacefm" + +xrandr --output DP-2 --off + diff --git a/home/.projector_on b/home/.projector_on new file mode 100755 index 0000000..2f2cd12 --- /dev/null +++ b/home/.projector_on @@ -0,0 +1,29 @@ +#!/bin/sh + +~/.config/openbox/autorun/1_screenres +xrandr --output DP-2 --mode 1920x1080 --rate 60 --pos 3200x0 + +if [ ! -d "$HOME/Pictures/Wall" ]; then + exit 1 +fi + +while IFS= read -r file; do + if [ -n "$files_string" ]; then + files_string+=" " + fi + files_string+="$file" +done < <(find "$HOME/Pictures/Wall" -type f) + +IFS=' ' read -ra files <<< "$files_string" +sorted_files=($(printf "%s\n" "${files[@]}" | sort)) +sorted_file_list=$(printf "%s " "${sorted_files[@]}") + +echo $sorted_file_list + +killall spacefm +screen -d -m "$HOME/.config/openbox/spacefm" + + +sleep 1 +feh --bg-fill $sorted_file_list + diff --git a/home/.restart-panel b/home/.restart-panel new file mode 100755 index 0000000..578bd82 --- /dev/null +++ b/home/.restart-panel @@ -0,0 +1,3 @@ +#!/bin/sh +killall xfce4-panel +xfce4-panel & diff --git a/home/.signout.sh b/home/.signout.sh new file mode 100755 index 0000000..9ff7a52 --- /dev/null +++ b/home/.signout.sh @@ -0,0 +1,12 @@ +gmessage "Are you sure you want to shut down your computer?" -center -title "Take action" -font "Sans bold 10" -default "Cancel" -buttons "_Cancel":1,"_Log out":2,"_Reboot":3,"_Shut down":4 >/dev/null + +case $? in +1) +echo "Exit";; +2) +killall openbox;; +3) +sudo shutdown -r now;; +4) +sudo shutdown -h now;; +esac diff --git a/home/.xinitrc b/home/.xinitrc new file mode 100755 index 0000000..36d6469 --- /dev/null +++ b/home/.xinitrc @@ -0,0 +1,15 @@ +#!/bin/sh + +# /etc/X11/xinit/xinitrc +# +# global xinitrc file, used by all X sessions started by xinit (startx) + +# invoke global X session script +# +export GTK_IM_MODULE=ibus +export QT_IM_MODULE=ibus +export XMODIFIERS='@im=ibus' +xrandr --output DP-0 --mode 1920x1080 --rate 165 +xrandr --output DP-0 --mode 1280x1024 --rate 75 +[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap +. /etc/X11/Xsession |
