diff --git a/.config/aliasrc b/.config/aliasrc index 5e5f968..8c5c6b5 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -35,7 +35,7 @@ alias reboot='sudo reboot' alias shutdown='sudo shutdown' #programs -alias trc='tremc -c @nagato:9091' +alias trc='tremc -c @192.168.1.162:9091' alias pm='pulsemixer' #Youtube diff --git a/.local/bin/jaxx b/.local/bin/jaxx index 8c4ff94..2835d43 100755 --- a/.local/bin/jaxx +++ b/.local/bin/jaxx @@ -1,3 +1,4 @@ #!/bin/sh unset GDK_BACKEND -$HOME/.local/appimages/Jaxx\ Liberty-* +$HOME/.local/appimages/Jaxx.Liberty-* +#jaxx-liberty-appimage diff --git a/.local/bin/svlogtail b/.local/bin/svlogtail deleted file mode 100755 index b6ebaeb..0000000 --- a/.local/bin/svlogtail +++ /dev/null @@ -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 diff --git a/.local/bin/transadd b/.local/bin/transadd index f3c74ef..b646bc3 100755 --- a/.local/bin/transadd +++ b/.local/bin/transadd @@ -4,62 +4,66 @@ # modifications to allow the user to select the download directory using lf #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 -lf_select -lf_last" - -DEST="remote -local" - -DEST_OPT="local" #"$(echo "$DEST" | bemenu -p "select destination machine: ")" - -if [ "$DEST_OPT" = "local" ]; then - pgrep -x transmission-da > /dev/null || (trans-init && notify-send "Starting transmission daemon..." && sleep 3) -fi - - -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')" +#TRANSMISSION_REMOTE="nagato:9091" +# +#OPTS="default +#lf_select +#lf_last" +# +#DEST="remote +#local" +# +#DEST_OPT="local" #"$(echo "$DEST" | bemenu -p "select destination machine: ")" +# +#if [ "$DEST_OPT" = "local" ]; then +# pgrep -x transmission-da > /dev/null || (trans-init && notify-send "Starting transmission daemon..." && sleep 3) #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 +# +# +#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 - 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 +# SEL="" +# notify-send "ERROR" +# exit +# #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 diff --git a/.local/installers/arch/arch-install.sh b/.local/installers/arch/arch-install.sh index ef30e80..cd15a81 100755 --- a/.local/installers/arch/arch-install.sh +++ b/.local/installers/arch/arch-install.sh @@ -45,6 +45,8 @@ enable_repos() { } init_setup() { + sudo timedatectl set-ntp true + #system services sudo systemctl enable connman.service sudo systemctl enable ufw.service diff --git a/.local/installers/arch/pkgs/base.list b/.local/installers/arch/pkgs/base.list index 2847172..8ae478f 100644 --- a/.local/installers/arch/pkgs/base.list +++ b/.local/installers/arch/pkgs/base.list @@ -16,7 +16,6 @@ fuse python-urwid btrfs-progs reiserfsprogs -chrony ufw wget curl diff --git a/.profile b/.profile index 29fe564..6acd310 100644 --- a/.profile +++ b/.profile @@ -75,6 +75,7 @@ export AWT_TOOLKIT=MToolkit #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 #mount /media/nagato/ & +mount /media/bismarck & if [ "$(tty)" = /dev/tty1 ]; then