diff --git a/.local/bin/misc/pkgsort b/.local/bin/misc/pkgsort deleted file mode 100755 index 2e8d30d..0000000 --- a/.local/bin/misc/pkgsort +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -packages=$(pacman -Qqe) - -echo "Time Sort" -for pkg in $packages; do - install_date=$(pacman -Qi $pkg | awk -F': ' '/Install Date/ {print $2}') - install_timestamp=$(date -d "$install_date" "+%Y-%m-%d") - echo "$install_timestamp $pkg" -done | sort -n - -echo "" -echo "Size Sort" -for pkg in $packages; do - size=$(pacman -Qi $pkg | grep "Installed Size" | awk -F':' '{print $2}') - unit=$(echo $size | awk '{print $2}') - size=$(echo $size | awk '{print $1}') - if [ "$unit" == "KiB" ]; then - kib+=("$size $unit $pkg") - else - mib+=("$size $unit $pkg") - fi -done - -printf "%s\n" "${kib[@]}" | sort -k1,1n -r -printf "%s\n" "${mib[@]}" | sort -k1,1n -r diff --git a/.local/bin/misc/wlsyshot b/.local/bin/misc/ss similarity index 100% rename from .local/bin/misc/wlsyshot rename to .local/bin/misc/ss diff --git a/.local/bin/share/define b/.local/bin/share/define deleted file mode 100755 index 06eadad..0000000 --- a/.local/bin/share/define +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -set -e -HELP='Define by swindlesmccoop\n\nusage: define [word, -h]' -NUMBER_OF_DEFS=2 - -define_word() { - curl -so "$1.html" "https://www.merriam-webster.com/dictionary/$1" - #handle 404 words - [ "$(cat "$1.html")" = "" ] && echo "Sorry, the word you're looking for can't be found in the dictionary." && exit - printf "Word: $1\n$(grep -o ' : .*' "$1.html" | sed 's| : ||' | sed "s|||g" | sed "s|||g" | sed 's///g' | sed 's/<\/strong>//g' | sed 's/<.*//g' | head -n $NUMBER_OF_DEFS)\n" - rm "$1.html" -} - -[ "$1" = "" ] && printf "$HELP\n" && exit -case "$1" in - -h) printf "$HELP\n" ;; - --help) printf "$HELP\n" ;; - *) define_word "$@" ;; -esac diff --git a/.local/bin/system/passmenu b/.local/bin/system/passmenu new file mode 100755 index 0000000..0e30370 --- /dev/null +++ b/.local/bin/system/passmenu @@ -0,0 +1,3 @@ +#!/bin/sh + +argon -Q $(argon -L | wmenu) | tr -d '\n' | wl-copy diff --git a/.rc b/.rc index 0262552..228e6c1 100644 --- a/.rc +++ b/.rc @@ -39,7 +39,6 @@ alias ipv4="echo \$(curl -s ipinfo.io/ip)" alias fnf="fnf -l 50" alias wmenu="wmenu -i -f 'MonaspiceKr Nerd Font 13' -N 1e1e2e -n cdd6f4 -M 1e1e2e -m f38ba8 -S 1e1e2e -s f9e2af -p 'Menu'" alias hp="bluetoothctl power on && bluetoothctl connect '50:DE:06:D7:C7:30' && pactl set-default-sink 'bluez_output.50_DE_06_D7_C7_30.1'" -alias passmenu="argon -Q \$(argon -L | wmenu) | tr -d '\n' | wl-copy" # Change directory aliases alias .='cd ~'