Merge branch 'master' of https://git.frogeye.fr:8443/geoffrey/dotfiles
This commit is contained in:
commit
2ae37e902e
|
@ -38,7 +38,7 @@ appendpath() {
|
|||
}
|
||||
|
||||
appendpath '/usr/lib/ccache/bin'
|
||||
appendpath "$GOPATH"
|
||||
appendpath "${GOPATH}/bin"
|
||||
appendpath "$HOME/.local/bin"
|
||||
appendpath "$HOME/.scripts"
|
||||
|
||||
|
|
14
scripts/dummy
Executable file
14
scripts/dummy
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
# Remplace le contenu d'un dossier par un fichier texte
|
||||
# relatant son arborescense
|
||||
|
||||
dir="$(echo "$1" | sed 's|/\+||')"
|
||||
if [ -d "$dir" ]; then
|
||||
TEMP=$(mktemp)
|
||||
tree -a -p -D -n "$dir" > "$TEMP"
|
||||
mv "$dir" "$dir.bkp"
|
||||
mv "$TEMP" "$dir"
|
||||
else
|
||||
echo "$dir n'est pas un dossier"
|
||||
fi
|
3
termux/scripts/yt
Executable file
3
termux/scripts/yt
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/data/data/com.termux/files/usr/bin/env bash
|
||||
cd ~/storage/shared/Movies/NewPipe/
|
||||
youtube-dl --all-subs "${@: -1}"
|
59
termux/services/syncthing.user
Executable file
59
termux/services/syncthing.user
Executable file
|
@ -0,0 +1,59 @@
|
|||
#!/data/data/com.termux/files/usr/bin/bash
|
||||
#
|
||||
# Start Syncthing synchronization service
|
||||
#
|
||||
|
||||
PIDFILE="$HOME/.local/run/syncthing.pid"
|
||||
LOGFILE="$HOME/.local/log/syncthing.log"
|
||||
|
||||
start() {
|
||||
printf "Starting Syncthing: "
|
||||
start-stop-daemon -p "$PIDFILE" -x syncthing -S -b -N 5 -m -- -logfile="$LOGFILE" -home ~/.config/syncthing
|
||||
echo "OK"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf "Stopping Syncthing: "
|
||||
start-stop-daemon -p "$PIDFILE" -x syncthing -K
|
||||
echo "OK"
|
||||
}
|
||||
|
||||
status() {
|
||||
printf "Syncthing: "
|
||||
PID="$(cat "$PIDFILE" 2> /dev/null)"
|
||||
if [[ -n "$PID" && -d "/proc/$PID" ]]
|
||||
then
|
||||
echo "running"
|
||||
else
|
||||
echo "stopped"
|
||||
fi
|
||||
}
|
||||
|
||||
log() {
|
||||
tail "$@" "$LOGFILE"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
stop
|
||||
start
|
||||
;;
|
||||
status)
|
||||
status
|
||||
;;
|
||||
log)
|
||||
shift
|
||||
log "$@"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|status|log}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
11
tmux.conf
11
tmux.conf
|
@ -1,3 +1,14 @@
|
|||
# switch windows alt+number
|
||||
bind-key -n M-1 select-window -t 1
|
||||
bind-key -n M-2 select-window -t 2
|
||||
bind-key -n M-3 select-window -t 3
|
||||
bind-key -n M-4 select-window -t 4
|
||||
bind-key -n M-5 select-window -t 5
|
||||
bind-key -n M-6 select-window -t 6
|
||||
bind-key -n M-7 select-window -t 7
|
||||
bind-key -n M-8 select-window -t 8
|
||||
bind-key -n M-9 select-window -t 9
|
||||
|
||||
# List of plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
|
|
Loading…
Reference in a new issue