additions to arch install, modifi
modified trc to work with new nas changes to transadd to just send file to nas nowchromebook
parent
f801f0e6b4
commit
3102fc4379
|
@ -35,7 +35,7 @@ alias reboot='sudo reboot'
|
||||||
alias shutdown='sudo shutdown'
|
alias shutdown='sudo shutdown'
|
||||||
|
|
||||||
#programs
|
#programs
|
||||||
alias trc='tremc -c @nagato:9091'
|
alias trc='tremc -c @192.168.1.162:9091'
|
||||||
alias pm='pulsemixer'
|
alias pm='pulsemixer'
|
||||||
|
|
||||||
#Youtube
|
#Youtube
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
unset GDK_BACKEND
|
unset GDK_BACKEND
|
||||||
$HOME/.local/appimages/Jaxx\ Liberty-*
|
$HOME/.local/appimages/Jaxx.Liberty-*
|
||||||
|
#jaxx-liberty-appimage
|
||||||
|
|
|
@ -1,54 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
#copied from: https://github.com/void-linux/socklog-void/blob/master/svlogtail
|
|
||||||
|
|
||||||
usage () {
|
|
||||||
cat <<-'EOF'
|
|
||||||
svlogtail [-f] [LOG...] - show svlogd logs conveniently
|
|
||||||
Without arguments, show current logs of all services, uniquely.
|
|
||||||
With arguments, show all logs of mentioned services
|
|
||||||
|
|
||||||
With -f, follow log output.
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
globexist() {
|
|
||||||
[ -f "$1" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
IFS='
|
|
||||||
'
|
|
||||||
|
|
||||||
fflag=false
|
|
||||||
if [ "$1" = -f ]; then
|
|
||||||
shift
|
|
||||||
fflag=true
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $# = 0 ]; then
|
|
||||||
cat /var/log/socklog/*/current | sort -u
|
|
||||||
if $fflag; then
|
|
||||||
tail -Fq -n0 /var/log/socklog/*/current | uniq
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
old=
|
|
||||||
cur=
|
|
||||||
for log; do
|
|
||||||
case "$log" in
|
|
||||||
-*) usage; exit 1;;
|
|
||||||
esac
|
|
||||||
if [ -d /var/log/socklog/$log ]; then
|
|
||||||
if globexist /var/log/socklog/$log/*.[us]; then
|
|
||||||
old="$old$IFS/var/log/socklog/$log/*.[us]"
|
|
||||||
fi
|
|
||||||
cur="$cur$IFS/var/log/socklog/$log/current"
|
|
||||||
else
|
|
||||||
echo "no logs for $log" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
cat $old $cur | sort
|
|
||||||
if $fflag; then
|
|
||||||
tail -Fq -n0 $cur
|
|
||||||
fi
|
|
||||||
fi
|
|
|
@ -4,62 +4,66 @@
|
||||||
# modifications to allow the user to select the download directory using lf
|
# modifications to allow the user to select the download directory using lf
|
||||||
#modifications to interface with remote transmission server
|
#modifications to interface with remote transmission server
|
||||||
|
|
||||||
TRANSMISSION_REMOTE="nagato:9091"
|
ARGS="$@"
|
||||||
|
RSP="$(tremc -c@192.168.1.162:9091 "$ARGS" )"
|
||||||
|
notify-send "transadd" "adding: $RSP"
|
||||||
|
|
||||||
OPTS="default
|
#TRANSMISSION_REMOTE="nagato:9091"
|
||||||
lf_select
|
#
|
||||||
lf_last"
|
#OPTS="default
|
||||||
|
#lf_select
|
||||||
DEST="remote
|
#lf_last"
|
||||||
local"
|
#
|
||||||
|
#DEST="remote
|
||||||
DEST_OPT="local" #"$(echo "$DEST" | bemenu -p "select destination machine: ")"
|
#local"
|
||||||
|
#
|
||||||
if [ "$DEST_OPT" = "local" ]; then
|
#DEST_OPT="local" #"$(echo "$DEST" | bemenu -p "select destination machine: ")"
|
||||||
pgrep -x transmission-da > /dev/null || (trans-init && notify-send "Starting transmission daemon..." && sleep 3)
|
#
|
||||||
fi
|
#if [ "$DEST_OPT" = "local" ]; then
|
||||||
|
# pgrep -x transmission-da > /dev/null || (trans-init && notify-send "Starting transmission daemon..." && sleep 3)
|
||||||
|
|
||||||
OPT="$(echo "$OPTS" | bemenu -p "download to:")"
|
|
||||||
|
|
||||||
if [ "$OPT" = "lf_select" ]; then
|
|
||||||
if [ ! -f ~/.cache/lf/lastpath ]; then
|
|
||||||
mkdir -p ~/.cache/lf/
|
|
||||||
touch ~/.cache/lf/lastpath
|
|
||||||
echo "~" > ~/.cache/lf/lastpath
|
|
||||||
fi
|
|
||||||
$TERMINAL -e lf -last-dir-path ~/.cache/lf/lastpath "$(cat ~/.cache/lf/lastpath)"
|
|
||||||
SEL="$(cat ~/.cache/lf/lastpath)"
|
|
||||||
|
|
||||||
elif [ "$OPT" = "lf_last" ]; then
|
|
||||||
SEL="$(cat ~/.cache/lf/lastpath)"
|
|
||||||
|
|
||||||
elif [ "$OPT" = "default" ]; then
|
|
||||||
SEL=""
|
|
||||||
|
|
||||||
else
|
|
||||||
SEL=""
|
|
||||||
notify-send "ERROR"
|
|
||||||
exit
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
#if [ "$TRANSMISSION_REMOTE" ]; then
|
|
||||||
# SEL_REM="$(echo "$SEL" | sed 's/^\/media\/nagato/\/media\/storage/g')"
|
|
||||||
#fi
|
#fi
|
||||||
|
#
|
||||||
|
#
|
||||||
#if [ "$DEST_OPT" = "remote" ]; then
|
#OPT="$(echo "$OPTS" | bemenu -p "download to:")"
|
||||||
# if [ "$SEL_REM" ]; then
|
#
|
||||||
# transmission-remote $TRANSMISSION_REMOTE -a "$@" -w "$SEL_REM" && notify-send " Transmission-daemon" "Torrent added to $SEL"
|
#if [ "$OPT" = "lf_select" ]; then
|
||||||
# else
|
# if [ ! -f ~/.cache/lf/lastpath ]; then
|
||||||
# transmission-remote $TRANSMISSION_REMOTE -a "$@" && notify-send " Transmission-daemon" "Torrent added."
|
# mkdir -p ~/.cache/lf/
|
||||||
# fi
|
# touch ~/.cache/lf/lastpath
|
||||||
|
# echo "~" > ~/.cache/lf/lastpath
|
||||||
|
# fi
|
||||||
|
# $TERMINAL -e lf -last-dir-path ~/.cache/lf/lastpath "$(cat ~/.cache/lf/lastpath)"
|
||||||
|
# SEL="$(cat ~/.cache/lf/lastpath)"
|
||||||
|
#
|
||||||
|
#elif [ "$OPT" = "lf_last" ]; then
|
||||||
|
# SEL="$(cat ~/.cache/lf/lastpath)"
|
||||||
|
#
|
||||||
|
#elif [ "$OPT" = "default" ]; then
|
||||||
|
# SEL=""
|
||||||
|
#
|
||||||
#else
|
#else
|
||||||
if [ -d "$SEL" ]; then
|
# SEL=""
|
||||||
transmission-remote -a "$@" -w "$SEL" && notify-send " Transmission-daemon" "Torrent added to $SEL"
|
# notify-send "ERROR"
|
||||||
else
|
# exit
|
||||||
transmission-remote -a "$@" && notify-send " Transmission-daemon" "Torrent added."
|
#
|
||||||
fi
|
|
||||||
#fi
|
#fi
|
||||||
|
#
|
||||||
|
#
|
||||||
|
##if [ "$TRANSMISSION_REMOTE" ]; then
|
||||||
|
## SEL_REM="$(echo "$SEL" | sed 's/^\/media\/nagato/\/media\/storage/g')"
|
||||||
|
##fi
|
||||||
|
#
|
||||||
|
#
|
||||||
|
##if [ "$DEST_OPT" = "remote" ]; then
|
||||||
|
## if [ "$SEL_REM" ]; then
|
||||||
|
## transmission-remote $TRANSMISSION_REMOTE -a "$@" -w "$SEL_REM" && notify-send " Transmission-daemon" "Torrent added to $SEL"
|
||||||
|
## else
|
||||||
|
## transmission-remote $TRANSMISSION_REMOTE -a "$@" && notify-send " Transmission-daemon" "Torrent added."
|
||||||
|
## fi
|
||||||
|
##else
|
||||||
|
# if [ -d "$SEL" ]; then
|
||||||
|
# transmission-remote -a "$@" -w "$SEL" && notify-send " Transmission-daemon" "Torrent added to $SEL"
|
||||||
|
# else
|
||||||
|
# transmission-remote -a "$@" && notify-send " Transmission-daemon" "Torrent added."
|
||||||
|
# fi
|
||||||
|
##fi
|
||||||
|
|
|
@ -45,6 +45,8 @@ enable_repos() {
|
||||||
}
|
}
|
||||||
|
|
||||||
init_setup() {
|
init_setup() {
|
||||||
|
sudo timedatectl set-ntp true
|
||||||
|
|
||||||
#system services
|
#system services
|
||||||
sudo systemctl enable connman.service
|
sudo systemctl enable connman.service
|
||||||
sudo systemctl enable ufw.service
|
sudo systemctl enable ufw.service
|
||||||
|
|
|
@ -16,7 +16,6 @@ fuse
|
||||||
python-urwid
|
python-urwid
|
||||||
btrfs-progs
|
btrfs-progs
|
||||||
reiserfsprogs
|
reiserfsprogs
|
||||||
chrony
|
|
||||||
ufw
|
ufw
|
||||||
wget
|
wget
|
||||||
curl
|
curl
|
||||||
|
|
1
.profile
1
.profile
|
@ -75,6 +75,7 @@ export AWT_TOOLKIT=MToolkit
|
||||||
#mount samba share, needs entry in /etc/fstab for this line to work
|
#mount samba share, needs entry in /etc/fstab for this line to work
|
||||||
# //192.168.1.218/storage /media/nagato cifs username=alex,pass=PASSWORD,workgroup=WORKGROUP,user,noauto 0 0
|
# //192.168.1.218/storage /media/nagato cifs username=alex,pass=PASSWORD,workgroup=WORKGROUP,user,noauto 0 0
|
||||||
#mount /media/nagato/ &
|
#mount /media/nagato/ &
|
||||||
|
mount /media/bismarck &
|
||||||
|
|
||||||
|
|
||||||
if [ "$(tty)" = /dev/tty1 ]; then
|
if [ "$(tty)" = /dev/tty1 ]; then
|
||||||
|
|
Loading…
Reference in New Issue