diff --git a/.bashrc b/.bashrc index 810fdbd..64b931a 100644 --- a/.bashrc +++ b/.bashrc @@ -13,7 +13,6 @@ alias l=lfcd alias clip="xclip -selection clipboard" alias phone="simple-mtpfs" alias bell="paplay /usr/share/sounds/freedesktop/stereo/complete.oga" -alias docker-ip="sudo docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}'" alias useage="du -h -d 1 2> /dev/null | sort -h" export DENO_INSTALL="/home/oliver/.deno" @@ -27,21 +26,3 @@ export WINEPREFIX="$HOME/.wine/" export DXVK_HUD="fps" export EDITOR="nvim" -lfcd () { - tmp="$(mktemp)" - lfrun -last-dir-path="$tmp" "$@" - if [ -f "$tmp" ]; then - dir="$(cat "$tmp")" - rm -f "$tmp" - if [ -d "$dir" ]; then - if [ "$dir" != "$(pwd)" ]; then - cd "$dir" - fi - fi - fi -} - -cpr() { - rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 "$@" -} - diff --git a/.local/bin/bell b/.local/bin/bell new file mode 100755 index 0000000..a4be6f3 --- /dev/null +++ b/.local/bin/bell @@ -0,0 +1,3 @@ +#!/bin/bash + +paplay /usr/share/sounds/freedesktop/stereo/complete.oga diff --git a/.local/bin/docker-ip b/.local/bin/docker-ip new file mode 100755 index 0000000..ef113ba --- /dev/null +++ b/.local/bin/docker-ip @@ -0,0 +1,3 @@ +#!/bin/bash + +sudo docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' diff --git a/.local/bin/lfcd b/.local/bin/lfcd new file mode 100755 index 0000000..414efa6 --- /dev/null +++ b/.local/bin/lfcd @@ -0,0 +1,14 @@ +#!/bin/bash + +tmp="$(mktemp)" + +lfrun -last-dir-path="$tmp" "$@" +if [ -f "$tmp" ]; then + dir="$(cat "$tmp")" + rm -f "$tmp" + if [ -d "$dir" ]; then + if [ "$dir" != "$(pwd)" ]; then + cd "$dir" + fi + fi +fi diff --git a/.local/bin/rscp b/.local/bin/rscp new file mode 100755 index 0000000..7a419f4 --- /dev/null +++ b/.local/bin/rscp @@ -0,0 +1,3 @@ +#!/bin/bash + +rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 "$@" diff --git a/.local/bin/start-pipewire b/.local/bin/start-pipewire new file mode 100644 index 0000000..745bc2c --- /dev/null +++ b/.local/bin/start-pipewire @@ -0,0 +1,9 @@ +#!/bin/bash + +__start() { + pipewire & + pipewire-pulse & + wireplumber & +} + +__start & disown