diff options
| -rw-r--r-- | .bashrc | 6 | ||||
| -rw-r--r-- | .config/i3/config | 3 | ||||
| -rwxr-xr-x | bin/backup | 2 | ||||
| -rwxr-xr-x | bin/backup-clean | 6 | ||||
| -rwxr-xr-x | bin/hdmi | 1 | ||||
| -rwxr-xr-x | bin/stbip | 7 |
6 files changed, 17 insertions, 8 deletions
@@ -71,16 +71,16 @@ alias wpa='sudo wpa_gui -i wlan0' alias ifre='echo "ip link set wlo1 down; ip link set wlo1 up"|sudo sh' alias by='go build ./cmd/yaegi' -alias cy='cd ~/go/src/github.com/containous/yaegi' +alias cy='cd ~/go/src/github.com/traefik/yaegi' #alias ty='go test -v -short ./interp' alias ya='rlwrap -pblue ./yaegi' alias dya='YAEGI_AST_DOT=1 YAEGI_CFG_DOT=1 ./yaegi' -alias wai='~/go/src/github.co/containous/whoami/whoami' +alias wai='~/go/src/github.co/traefik/whoami/whoami' # yaegi debug export YAEGI_DOT_CMD='dotty -' -tfk() { ~/go/src/github.com/containous/traefik/traefik "$@"; } +tfk() { ~/go/src/github.com/traefik/traefik/traefik "$@"; } export -f tfk ty() { go test -v -short ./interp; } diff --git a/.config/i3/config b/.config/i3/config index 677dc90..bf8a196 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -50,7 +50,8 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU for_window [class="Arandr"] floating enable for_window [class="Brave-browser"] floating enable for_window [class="Chromium"] floating enable -for_window [instance="Task Manager - Chromium"] floating enable +for_window [title="Task Manager - Chromium"] floating enable +for_window [title="Gestionnaire de tâches – Chromium"] floating enable for_window [instance="DOTTY"] floating enable for_window [class="discord"] floating enable for_window [class="Display"] floating enable @@ -31,6 +31,6 @@ shift $((OPTIND - 1)) [ "$1" ] && cmd=$1 && shift || cmd="" case $cmd in (""|save) backup ;; -(clean) exec backup-clean ${optv+-$optv} "$@" "$dest";; +(clean) exec backup-clean ${optv+-$optv} "$dest";; (diff) exec diffdir "$@";; esac diff --git a/bin/backup-clean b/bin/backup-clean index d12159d..0c6e38a 100755 --- a/bin/backup-clean +++ b/bin/backup-clean @@ -54,15 +54,15 @@ retention_delay() { } dest=/.history -while getopts :nd:v opt; do +while getopts :nv opt; do case $opt in - (d) dest=$OPTARG ;; (n) optn=1 ;; (v) optv=1 ;; - (*) echo "Usage: $0 [-nv] [-d dir]"; exit 1; + (*) echo "Usage: $0 [-nv] [dir]"; exit 1; esac done shift $((OPTIND - 1)) +[ "$1" ] && dest=$1 # Sorted list of backups, most recent first. lbu=$(ls -rv "$dest") @@ -2,6 +2,7 @@ # Toggle auxiliary HDMI screen on/off when connected/disconnected. opt="--auto --right-of eDP-1" +#opt="--auto --above eDP-1" # Also add the following rule to /etc/udev/rules.d/hdmi.rules # KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/marc/.Xauthority", RUN+="/home/marc/bin/hdmi" diff --git a/bin/stbip b/bin/stbip new file mode 100755 index 0000000..e4a51a0 --- /dev/null +++ b/bin/stbip @@ -0,0 +1,7 @@ +#!/bin/sh + +# Check or establish a ssh tunnel for remote acess to syncthing GUI on bip. +netstat -t4ln | grep 9090 || + ssh -N -L 9090:127.0.0.1:8384 bip.im </dev/null >/dev/null 2>&1 & + +xdg-open http://127.0.0.1:9090 |
