dot

packages and services management
Log | Files | Refs | README

commit 452825ee3fee4d4eed53e74d3517f783d57c53bc
parent c85c0439082d252848e749664e87bfbef74403bc
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu, 25 Jan 2018 17:09:21 +0100

new st theme

Diffstat:
Mbin/daemon | 3++-
Mbin/etc | 46+++++++++++++++++++++++-----------------------
Mbin/xdg-open | 6+++---
Mdot/profile | 8+++++---
Mpack/sacc/git | 2+-
Mpack/st/build | 2+-
Apack/st/helios_dark.h | 27+++++++++++++++++++++++++++
Atinc/josuah.net/hosts/t470s | 10++++++++++
Atinc/josuah.net/tinc-up | 5+++++
Dwpa_supplicant | 37-------------------------------------
10 files changed, 77 insertions(+), 69 deletions(-)

diff --git a/bin/daemon b/bin/daemon @@ -8,7 +8,8 @@ cmd=$1 case $cmd in ('') ls -1 "$HOME/etc/daemon" | while IFS='' read -r svc - do printf '%-14s: %s\n' "$svc" "$(pgrep -x "$svc" | tr '\n' ' ')" + do + printf '%-14s: %s\n' "$svc" "$(pgrep -x "$svc" | tr '\n' ' ')" done ;; (start) diff --git a/bin/etc b/bin/etc @@ -1,36 +1,36 @@ #!/bin/sh -e -ETC=$(cd "${0%/*}/.." && pwd) +{ETC}=$(cd "${0%/*}/.." && pwd) -case $1 in +case ${1} in (link) - cd "$ETC" || exit 1 - find * -type d -exec mkdir -p "$HOME/.config/{}" ';' - find * ! -type d -exec ln -fs "$ETC/{}" "$HOME/.config/{}" ';' - cd "$ETC/dot" || exit 1 - find * -type d -exec mkdir -p "$HOME/.{}" ';' - find * ! -type d -exec ln -fs "$ETC/dot/{}" "$HOME/.{}" ';' - find -L "$HOME" -maxdepth 2 -type l -exec rm {} + - find -L "$HOME/.config" -type l -exec rm {} + + cd "${ETC}" || exit 1 + find * -type d -exec mkdir -p "${HOME}/.config/{}" \; + find * ! -type d -exec ln -fs "${ETC}/{}" "${HOME}/.config/{}" \; + cd "${ETC}/dot" || exit 1 + find * -type d -exec mkdir -p "${HOME}/.{}" \; + find * ! -type d -exec ln -fs "${ETC}/dot/{}" "${HOME}/.{}" \; + find -L "${HOME}" -maxdepth 2 -type l -exec rm {} + + find -L "${HOME}/.config" -type l -exec rm {} + ;; (mkdir) - mkdir -p "$HOME/git" - mkdir -p "$HOME/tmp" - mkdir -p "$HOME/.cache/irc" - mkdir -p "$HOME/.cache/log" - mkdir -p "$HOME/.cache/mail/INBOX/cur" - mkdir -p "$HOME/.cache/mail/INBOX/new" - mkdir -p "$HOME/.cache/mail/INBOX/tmp" - mkdir -p "$HOME/.cache/qemu" - mkdir -p "$HOME/.cache/run" - mkdir -p "$HOME/.cache/tox" + mkdir -p "${HOME}/git" + mkdir -p "${HOME}/tmp" + mkdir -p "${HOME}/.cache/irc" + mkdir -p "${HOME}/.cache/log" + mkdir -p "${HOME}/.cache/mail/INBOX/cur" + mkdir -p "${HOME}/.cache/mail/INBOX/new" + mkdir -p "${HOME}/.cache/mail/INBOX/tmp" + mkdir -p "${HOME}/.cache/qemu" + mkdir -p "${HOME}/.cache/run" + mkdir -p "${HOME}/.cache/tox" ;; (srv) - git clone josuah@josuah.net:srv/git/srv.git "$HOME/srv" - cd "$HOME/srv" && make + git clone josuah@josuah.net:srv/git/srv.git "${HOME}/srv" + cd "${HOME}/srv" && make ;; (tinc) tinc -n josuah.net init - ssh "$2" '. "$HOME/.profile" > /dev/null; tinc -n josuah.net export' | + ssh "$2" '. "${HOME}/.profile" > /dev/null; tinc -n josuah.net export' | tinc -n josuah.net import ;; (*) diff --git a/bin/xdg-open b/bin/xdg-open @@ -68,8 +68,8 @@ case $scheme in exec ftp "$1" ;; (git) - mkdir -p "$HOME/git" - cd "$HOME/git" || exit 1 + mkdir -p "$HOME/git/$host" + cd "$HOME/git/$host" || exit 1 exec git clone "$1" ;; (gopher) @@ -175,7 +175,7 @@ esac exec transmission-cli "$1" ;; (*.img|*.iso) - exec doas qemu-system-x86_64 -m 500M \ + exec qemu-system-x86_64 -m 500M \ -device e1000,netdev=net0 \ -netdev user,id=net0,hostfwd=tcp::5555-:22 \ "$1" diff --git a/dot/profile b/dot/profile @@ -7,8 +7,10 @@ export MAILTO="$EMAIL" export MAIL="$HOME/.cache/mail/mbox" export MAILDIR="$HOME/.cache/mail" -export EDITOR="edit" VISUAL="edit" -export PAGER="less" MANPAGER="less" +export EDITOR="edit" +export ISUAL="edit" +export PAGER="less" +export MANPAGER="less" export PLAN9="$HOME/.local/src/plan9" export PATH="$HOME/etc/bin:$HOME/.local/bin:$PATH:$PLAN9/bin" @@ -33,7 +35,7 @@ export PKG_PATH="https://ftp.fr.openbsd.org/pub/OpenBSD/" export ABDUCO_SOCKET_DIR="$HOME/.cache" export ABDUCO_CMD="dvtm-status" export MBLAZE="$HOME/.config/mblaze" -export LESS="-~R" +export LESS="-R~X" export LESSHISTFILE=- export SSH_AUTH_SOCK="$HOME/.cache/ssh-agent" export EXINIT='set ruler' diff --git a/pack/sacc/git b/pack/sacc/git @@ -1,2 +1,2 @@ +git://josuah.net:9000/sacc.git git://bitreich.org/sacc -josuah@git.josuah.net:srv/git/sacc.git diff --git a/pack/st/build b/pack/st/build @@ -1,6 +1,6 @@ #!/bin/sh -e -THEME=solarized_dark +THEME=helios_dark cp "$ETC/config.h" config.h cp "$ETC/config.mk" config.mk diff --git a/pack/st/helios_dark.h b/pack/st/helios_dark.h @@ -0,0 +1,27 @@ +/* Terminal colors (16 first used in escape sequence) */ +static const char *colorname[] = { + + /* 8 normal colors */ + [0] = "#260000", /* black */ + [1] = "#dc322f", /* red */ + [2] = "#859900", /* green */ + [3] = "#b58900", /* yellow */ + [4] = "#268bd2", /* blue */ + [5] = "#6c71c4", /* magenta */ + [6] = "#2aa198", /* cyan */ + [7] = "#fdf6e3", /* white */ + + /* 8 bright colors */ + [8] = "#837b65", /* black */ + [9] = "#dc322f", /* red */ + [10] = "#859900", /* green */ + [11] = "#b58900", /* yellow */ + [12] = "#268bd2", /* blue */ + [13] = "#6c71c4", /* magenta */ + [14] = "#2aa198", /* cyan */ + [15] = "#ffffff", /* white */ + + /* special colors */ + [256] = "#260000", /* background */ + [257] = "#eeeeee", /* foreground */ +}; diff --git a/tinc/josuah.net/hosts/t470s b/tinc/josuah.net/hosts/t470s @@ -0,0 +1,10 @@ +-----BEGIN RSA PUBLIC KEY----- +MIIBCgKCAQEAnQL5bmt355LZNJQZt/2qa7vbhMEgJyMtFY1+veDVZ3lv3Z33ma7o +vxzVXEXVOQdQ2wL2AGGLJJA2OL5a/KwL5XR6i/GhwsxuI2Wkp4st8ExtrzBfJmoV +puXTyk8spGKPEOjQQsER6Z0Hgz5gyGS8Atz6J/Ae6b2zdpywryF+EyLA0duoSl4p +CLnPxmLZtX6jt9mdL2NKfJ8Vip46r0Urod8AMCxNgu+QtC5tqaUr6u6z1o6aLBim +02B5nXEcbBe+ombV6KbIOJps3yissWOQY68CZT3mIhnZXOYCOTb43ek5LljTbrNc +frU3iI9vWJbTDQchKo1sJEoVZLwQYh/56wIDAQAB +-----END RSA PUBLIC KEY----- +Ed25519PublicKey = 77DTAfG3BdB/4wDZyCe0F3jvjEAWOWzMeAUjonwLuIG +Port = 20016 diff --git a/tinc/josuah.net/tinc-up b/tinc/josuah.net/tinc-up @@ -0,0 +1,5 @@ +#!/bin/sh + +echo 'Unconfigured tinc-up script, please edit '$0'!' + +#ifconfig $INTERFACE <your vpn IP address> netmask <netmask of whole VPN> diff --git a/wpa_supplicant b/wpa_supplicant @@ -1,37 +0,0 @@ -# If your authentication servers are broken with TLSv1.1/1.2, you may need: -# phase1="tls_disable_tlsv1_1=1 tls_disable_tlsv1_2=1" - -ctrl_interface=/var/run/wpa_supplicant -ctrl_interface_group=wheel - -# wired network: - -#network={ -# key_mgmt=IEEE8021X -# eap=MD5 -# identity="user" -# password="password" -# eapol_flags=0 -#} -# wireless network: - -#network={ -# ssid="humppa" -# key_mgmt=WPA-EAP -# eap=TTLS PEAP -# identity="user" -# password="password" -#} - -network={ - ssid="IONIS" - key_mgmt=WPA-EAP - eap=TTLS PEAP - identity="josuah.demangeon@epitech.eu" - password="XXX" -} - -network={ - ssid="SFR_2016" - #psk="XXX" -}