config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 8ee8a57505ccafc1f23aeef496431d9a8ad8646d
parent a13a3d06012eac205a11071281cd855eeb15f08b
Author: jacobsGit <JacobDoesLinux@protonmail.com>
Date:   Tue, 31 Dec 2019 23:42:22 -0800

removing & renaming dotfiles

Diffstat:
Dalias/#.shell-alias# | 43-------------------------------------------
Dalias/.shell-alias | 48------------------------------------------------
Mncmpcpp/.ncmpcpp/config | 2+-
Ancmpcpp/.ncmpcpp/error.log | 0
Dxbindkeys/.xbindkeysrc | 6------
Dxinitrc/.xinitrc | 2--
Rxinitrc-laptop/.xinitrc -> xinitrc/.xinitrc | 0
Dxmobar-desktop/.xmobar/scripts/XMBconnections | 35-----------------------------------
Dxmobar-desktop/.xmobar/scripts/XMBlastBackup | 24------------------------
Dxmobar-desktop/.xmobar/scripts/XMBlow-battery | 4----
Dxmobar-desktop/.xmobar/scripts/XMBpackages | 2--
Dxmobar-desktop/.xmobar/scripts/XMBspotify | 33---------------------------------
Dxmobar-desktop/.xmobar/scripts/XMBsshalive | 23-----------------------
Dxmobar-desktop/.xmobar/scripts/XMBsshalive2 | 37-------------------------------------
Dxmobar-desktop/.xmobar/scripts/unconverted/partition-usage.sh | 37-------------------------------------
Dxmobar-desktop/.xmobar/scripts/unconverted/total-partition.sh | 8--------
Dxmobar-desktop/.xmobar/scripts/unconverted/uptime.sh | 26--------------------------
Dxmobar-desktop/.xmobar/scripts/unconverted/volume.sh | 10----------
Dxmobar-desktop/.xmobarrc | 41-----------------------------------------
19 files changed, 1 insertion(+), 380 deletions(-)

diff --git a/alias/#.shell-alias# b/alias/#.shell-alias# @@ -1,43 +0,0 @@ -#!/bin/sh -# system -alias startx='clear && startx && clear' -alias suspend='systemctl suspend' -alias hibernate='systemctl hibernate' - -alias restart='sudo systemctl restart' - -# auto sudo -alias pacman='pac-improved' -#alias pacman='pacman-nonet' -alias pkg='sudo pkg' - -# cURLS -alias ip-pub='curl ifconfig.io' -alias cweather='curl wttr.in/Los_Angels' -alias clocale='curl ifconfig.co/country && curl ifconfig.co/city' -alias cip='curl ifconfig.me' -function cdict() { curl "dict://dict.org/d:$1"; } - -alias htv='~/.spoof/htv' -function lcount() { cat -n $1 | tail -n 1 | awk '{print $1}' } - -# ls aliases -alias ls='ls --color=always --group-directories-first' -alias la='ls --color=always -A --group-directories-first' -alias ll='ls --color=always -l --group-directories-first' -alias lr='ls --color=always -R --group-directories-first' - - -# other -alias cmatrix='cmatrix -Ba -u 1' -alias reminder='~/./code/cpp/issue/reminders/reminder' -function icat() { kitty +kitten icat "$@";} -function dp() { xrandr --output DP-4 --brightness .$1;} -function tar-gz() { tar -xvzf $1;} -function tar-xz() { tar -xvJf $1;} -alias tmux='tmux -u' -alias help='man' -alias emacs='emacs -nw' - -alias meta-img='exiv2' -alias meta='exiftool' diff --git a/alias/.shell-alias b/alias/.shell-alias @@ -1,48 +0,0 @@ -#!/bin/sh -# system -alias startx='clear && startx && clear' -alias suspend='systemctl suspend' -alias hibernate='systemctl hibernate' - -alias restart='sudo systemctl restart' - -# auto sudo -alias diff='diff --color' -alias pacman='pacman-colors' -#alias pacman='pacman-nonet' -alias pkg='sudo pkg' - -# cURLS -alias ip-pub='curl ifconfig.io' -alias cweather='curl wttr.in/Los_Angels' -alias clocale='curl ifconfig.co/country && curl ifconfig.co/city' -alias cip='curl ifconfig.me' -function cdict() { curl "dict://dict.org/d:$1"; } - -alias htv='~/.spoof/htv' -function lcount() { cat -n $1 | tail -n 1 | awk '{print $1}' } - -# ls aliases -alias ls='ls --color=always --group-directories-first' -alias la='ls --color=always -A --group-directories-first' -alias ll='ls --color=always -l --group-directories-first' -alias lr='ls --color=always -R --group-directories-first' - - -# other -alias cmatrix='cmatrix -Ba -u 1' -alias reminder='~/./code/cpp/issue/reminders/reminder' -function icat() { kitty +kitten icat "$@";} -function dp() { xrandr --output DP-4 --brightness .$1;} -function tar-gz() { tar -xvzf $1;} -function tar-xz() { tar -xvJf $1;} -alias tmux='tmux -u' -alias help='man' -alias emacs='emacs -nw' - -alias webcam='mpv av://v4l2:/dev/video0' -alias meta-img='exiv2' -alias meta='exiftool' - -alias tetris='ssh netris.rocketnine.space' -function gamma() { xrandr --output "$(xrandr --listactivemonitors | tail -n 1 | cut -d '*' -f 2 | awk '{print $1}')" --gamma $1 } diff --git a/ncmpcpp/.ncmpcpp/config b/ncmpcpp/.ncmpcpp/config @@ -257,7 +257,7 @@ song_columns_list_format = (50)[168]{t|f:Title} (20)[9]{a} (7f)[white]{l} ## Note: Custom command that will be executed each time song changes. Useful for ## notifications etc. ## -execute_on_song_change = "notify-send 'next song played 'add stuff''" +#execute_on_song_change = "notify-send 'next song played 'add stuff''" # ## ## Note: Custom command that will be executed each time player state diff --git a/ncmpcpp/.ncmpcpp/error.log b/ncmpcpp/.ncmpcpp/error.log diff --git a/xbindkeys/.xbindkeysrc b/xbindkeys/.xbindkeysrc @@ -1,6 +0,0 @@ -"ponymix -N increase 5" - XF86AudioRaiseVolume -"ponymix -N decrease 5" - XF86AudioLowerVolume -"ponymix -N toggle" - XF86AudioMute diff --git a/xinitrc/.xinitrc b/xinitrc/.xinitrc @@ -1 +0,0 @@ -dotfiles/xinitrc-laptop/.xinitrc -\ No newline at end of file diff --git a/xinitrc-laptop/.xinitrc b/xinitrc/.xinitrc diff --git a/xmobar-desktop/.xmobar/scripts/XMBconnections b/xmobar-desktop/.xmobar/scripts/XMBconnections @@ -1,35 +0,0 @@ -#!/bin/sh -reading='true' -line='0' - -connections=$(ss | grep uucp-rlogin | grep 'ESTAB.0 0' | awk '{print $6}' | cut -d ':' -f 1) -#ss | grep semantix | # connection from -lines=$(cat /etc/ssh/ssh_config | wc -l) - -while [[ "$line" -le "$lines" ]]; do - line=$(calc $line + 1) - contents=$(cat /etc/ssh/ssh_config | head -n $line | tail -n 1) - - if [[ "$contents" == host\ * ]]; then - hosts="$hosts $(printf "$contents" | awk '{print $2}' | sed 's/\"//g' | awk '{print $1}')\n" - hostnames="$hostnames$(cat /etc/ssh/ssh_config | head -n $(calc $line + 1) | tail -n 1 | awk '{print $2}' | awk '{print $1}')\n" - - fi - done - - - - -itor=0 -printf "$connections" - -while [[ $(printf "$hostnames" | wc -l) -ge "$itor" ]]; do - itor=$(calc "$itor" + 1) - - host=$(printf "$hosts" | head -n "$itor" | tail -n 1) - hostname=$(printf "$hostnames" | head -n "$itor" | tail -n 1) - - parsed="$(printf "$connections" | sed "s/$hostname/$host/g")" -done - -printf "$parsed" diff --git a/xmobar-desktop/.xmobar/scripts/XMBlastBackup b/xmobar-desktop/.xmobar/scripts/XMBlastBackup @@ -1,24 +0,0 @@ -#!/bin/sh -MB=$(calc $(date +'%s') - $(cat ~/.dates/ssh-backup) / 60 | cut -d '.' -f 1) - - -if [[ "$MB" -ge "60" ]]; then - HB=$(expr "$MB" / 60) - MB=$(expr "$MB" % 60) - -if [[ "$MB" -lt "10" ]]; then - MB=0$MB - fi - - printf "$HB":"$MB" - -else -if [[ "$MB" -lt "10" ]]; then - MB=0$MB - fi - -printf 0:$MB -fi - - - diff --git a/xmobar-desktop/.xmobar/scripts/XMBlow-battery b/xmobar-desktop/.xmobar/scripts/XMBlow-battery @@ -1,4 +0,0 @@ -#!/bin/sh -notify-send -u critical 'hibernation imminent' -sleep 30 -systemctl hibernate diff --git a/xmobar-desktop/.xmobar/scripts/XMBpackages b/xmobar-desktop/.xmobar/scripts/XMBpackages @@ -1,2 +0,0 @@ -#!/bin/sh -printf "$(pacman -Q | wc -l)" diff --git a/xmobar-desktop/.xmobar/scripts/XMBspotify b/xmobar-desktop/.xmobar/scripts/XMBspotify @@ -1,33 +0,0 @@ -#!/bin/sh -string="$(playerctl metadata | grep title | tail -c +35)" - -if [[ "$string" == "" ]]; then - string=OFF - fi - -printf "$string" -exit # comment these lines to limit length of title - - -i=0 -bytes=$(printf "$string" | wc -c) - -while [[ $bytes -gt "26" ]]; do -bytes=$(printf "$string" | wc -c) -i=$(calc $i + 1) - -if [[ $i -eq "1" ]]; then -string=$(printf "$string" | awk '{print $1,$2,$3}') -fi - if [[ $i -eq "2" ]]; then - string=$(printf "$string" | awk '{print $1,$2}') - fi - if [[ $i -eq "3" ]]; then - string=$(printf "$string" | awk '{print $1}') - - else - string=$(printf "$string" | head -c 26) - fi -done - -printf "$string" diff --git a/xmobar-desktop/.xmobar/scripts/XMBsshalive b/xmobar-desktop/.xmobar/scripts/XMBsshalive @@ -1,23 +0,0 @@ -#!/bin/sh -offline='<fc=#6A241C>' -online='<fc=#1DB954>' -reset='</fc>' - - -nc -z -w 1 "$1" "$2" -if [[ "$?" == '0' ]]; then - - if [[ -z $3 ]]; then - printf "$online$1$reset" - else - printf "$online$3$reset" - fi -else - if [[ -z $3 ]]; then - printf "$offline$1$reset" - - else - printf "$offline$3$reset" - fi -fi - diff --git a/xmobar-desktop/.xmobar/scripts/XMBsshalive2 b/xmobar-desktop/.xmobar/scripts/XMBsshalive2 @@ -1,37 +0,0 @@ -#!/bin/sh -name1=$(cat /etc/ssh/ssh_config | grep ost | grep -v \# | grep -v ostname | tail -n +1 | head -n +1 | awk '{print $2}') -name2=$(cat /etc/ssh/ssh_config | grep ost | grep -v \# | grep -v ostname | tail -n +2 | head -n +1 | awk '{print $2}') - -port1=$(cat /etc/ssh/ssh_config | grep ort | grep -v \# | tail -n +1 | head -n +1 | awk '{print $2}') -port2=$(cat /etc/ssh/ssh_config | grep ort | grep -v \# | tail -n +2 | head -n +1 | awk '{print $2}') - -host1=$(cat /etc/ssh/ssh_config | grep ostname | tail -n +1 | head -n +1 | awk '{print $2}') -host2=$(cat /etc/ssh/ssh_config | grep ostname | tail -n +2 | head -n +1 | awk '{print $2}') - -green="#1DB954" -red="#6A241C" - - -name1=$(printf $name1 | sed 's/"//g') -name2=$(printf $name2 | sed 's/"//g') - -# same computer diffrent user so for eases sake -name1="$name1 cloud" - -nc -z -w 1 "$host1" "$port1" -if [[ "$?" -eq "0" ]]; then - output="$output <fc=#1DB954>$name1</fc>" - - else - output="$output <fc=#6A241C>$name1</fc>" - fi - -nc -z -w 1 "$host2" "$port2" -if [[ "$?" -eq "0" ]]; then - output="$output <fc=#1DB954>$name2</fc>" - - else - output="$output <fc=#6A241C>$name2</fc>" - fi - - printf "$output" diff --git a/xmobar-desktop/.xmobar/scripts/unconverted/partition-usage.sh b/xmobar-desktop/.xmobar/scripts/unconverted/partition-usage.sh @@ -1,37 +0,0 @@ -#!/bin/sh - -float=$2 -if [[ "$1" == "--help" ]] || [[ "$1" == "-h" ]]; then - printf "\nusage: partition-size [-d | -f] [detail int] [directory if -d is specified]\n\n" - printf " -h, --help prints help message\n" - printf " -d, prints usage of partiton\n" - printf " mounted to that directory\n\n" - - printf " -t, total (mounted) disk usage\n" - - - exit - fi - -if [[ "$1" == "-t" ]]; then - size=$(df -BK --total | grep total | awk '{print $2 $3}' | head -c -2 | sed 's/K/ /g') - total=$(calc $(printf "$size" | awk '{print $1}') / 1000000 | cut -d '.' -f 1) - totalFloat=.$(calc $(printf "$size" | awk '{print $1}') / 1000000 | cut -d '.' -f 2 | head -c $float) - used=$(calc $(printf "$size" | awk '{print $2}') / 1000000 | cut -d '.' -f 1) - usedFloat=.$(calc $(printf "$size" | awk '{print $2}') / 1000000 | cut -d '.' -f 2 | head -c $float) - - - printf "$used$usedFloat/$total$totalFloat" - exit - fi - -if [[ "$1" == "-d" ]]; then - size=$(df -BK "$3" | grep /dev/ | awk '{print $2 $3}' | head -c -2 | sed 's/K/ /g') - total=$(calc $(printf "$size" | awk '{print $1}') / 1000000 | cut -d '.' -f 1) - totalFloat=.$(calc $(printf "$size" | awk '{print $1}') / 1000000 | cut -d '.' -f 2 | head -c $float) - used=$(calc $(printf "$size" | awk '{print $2}') / 1000000 | cut -d '.' -f 1) - usedFloat=.$(calc $(printf "$size" | awk '{print $2}') / 1000000 | cut -d '.' -f 2 | head -c $float) - - printf "$used$usedFloat/$total$totalFloat" - exit - fi diff --git a/xmobar-desktop/.xmobar/scripts/unconverted/total-partition.sh b/xmobar-desktop/.xmobar/scripts/unconverted/total-partition.sh @@ -1,8 +0,0 @@ -#!/bin/sh - - -bytesTotal=$(df -B1024 --total | grep total | awk '{print $2}') -bytesUsed=$(df -B1024 --total | grep total | awk '{print $3}') -bytesPercent=$(df -B1024 --total | grep total | awk '{print $5}' | head -c -2) - -printf "$bytesUsed - $bytesPex rcent" diff --git a/xmobar-desktop/.xmobar/scripts/unconverted/uptime.sh b/xmobar-desktop/.xmobar/scripts/unconverted/uptime.sh @@ -1,26 +0,0 @@ -#!/bin/sh -epoStart="$(date --date="$(last --time-format iso | head -n 15 | grep still\ logged\ in | awk '{print $3}')" +"%s")" - -#taken from ssh-backup -MB=$(calc $(date +'%s') - $epoStart / 60 | cut -d '.' -f 1) - - -if [[ "$MB" -ge "60" ]]; then - HB=$(expr "$MB" / 60) - MB=$(expr "$MB" % 60) - -if [[ "$MB" -lt "10" ]]; then - MB=0$MB - fi - - printf "$HB":"$MB" - -else -if [[ "$MB" -lt "10" ]]; then - MB=0$MB - fi - -printf 0:$MB -fi - - diff --git a/xmobar-desktop/.xmobar/scripts/unconverted/volume.sh b/xmobar-desktop/.xmobar/scripts/unconverted/volume.sh @@ -1,10 +0,0 @@ -#!/bin/sh - -volume=$(ponymix get-volume) -if [[ $(ponymix | grep Avg.* | grep $volume | awk '{print $4}') == "" ]]; then - echo "$volume%" - - else - printf "muted" -fi - diff --git a/xmobar-desktop/.xmobarrc b/xmobar-desktop/.xmobarrc @@ -1,41 +0,0 @@ -Config { - --apearence - font = "xft:Bitstream Vera Sans Mono:size=10:bold:antialias=true" - , bgColor = "#000000" - , fgColor = "#ffffff" - , alpha = 255 - - --border - , border = NoBorder - , borderWidth = 0 - , borderColor = "00ff00" - - - --positioning - , position = Top - , persistent = False - , lowerOnStart = True - , hideOnStart = False - - --options - , textOffset = -1 - , wmClass = "xmonad" - , wmName = "xmobar" - , pickBroadest = False - , iconRoot = "." - , allDesktops = True - , overrideRedirect = True - - --launch - , commands = [ - Run StdinReader - , Run Date "%R <fc=#545454>%A %b/%e</fc>" "date" 100 - , Run ComX "XMBmusic" [""] "N/A" "music" 10 - , Run ComX "XMBlastBackup" [""] "N/A" "backup" 300 - , Run ComX "XMBpackages" [""] "N/A" "packages" 100 - ] - , sepChar = "%" - , alignSep = "||" - , template = "%date% %StdinReader% | <fc=#1DB954>%music%</fc> | <fc=#787878>ssh</fc><fc=#454545> %backup%</fc> <fc=#787878>Packages</fc><fc=#454545> %packages%</fc> " - } -