diff options
Diffstat (limited to '')
9 files changed, 0 insertions, 406 deletions
diff --git a/home-manager/packages/scripts/wrappers/deprecated/clippy b/home-manager/packages/scripts/wrappers/deprecated/clippy deleted file mode 100755 index ec21ba07..00000000 --- a/home-manager/packages/scripts/wrappers/deprecated/clippy +++ /dev/null @@ -1,56 +0,0 @@ -#! /usr/bin/env dash -# shellcheck disable=SC2086 -# shellcheck source=/dev/null -. %SHELL_LIBRARY_PATH - -tmp=$(mktemp); -cat << EOF > $tmp; --W clippy::allow_attributes_without_reason --W clippy::clone_on_ref_ptr --W clippy::create_dir --W clippy::decimal_literal_representation --W clippy::filetype_is_file --W clippy::get_unwrap --W clippy::if_then_some_else_none --W clippy::large_include_file --W clippy::let_underscore_must_use --W clippy::missing_enforced_import_renames --W clippy::mixed_read_write_in_expression --W clippy::mod_module_files --W clippy::multiple_inherent_impl --W clippy::rc_mutex --W clippy::rc_buffer --W clippy::rest_pat_in_fully_bound_structs --W clippy::same_name_method --W clippy::single_char_lifetime_names --W clippy::str_to_string --W clippy::string_to_string --W clippy::unneeded_field_pattern --W clippy::unseparated_literal_suffix --W clippy::verbose_file_reads --W clippy::wildcard_enum_match_arm - -# debugging remnants --W clippy::unwrap_used -#-W clippy::use_debug -#-W clippy::unreachable -#-W clippy::unimplemented -#-W clippy::todo -#-W clippy::panic -#-W clippy::panic_in_result_fn -#-W clippy::expect_used -#-W clippy::dbg_macro - -# Docs --W clippy::missing_docs_in_private_items --W clippy::undocumented_unsafe_blocks - - -EOF - - -cargo clippy -- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used -W clippy::cargo $(clean "$tmp") - - - -if [ -d /tmp/LIB_FILE_TEMP_DIR/ ];then rm -r /tmp/LIB_FILE_TEMP_DIR/; fi diff --git a/home-manager/packages/scripts/wrappers/deprecated/ll.old b/home-manager/packages/scripts/wrappers/deprecated/ll.old deleted file mode 100755 index d177b341..00000000 --- a/home-manager/packages/scripts/wrappers/deprecated/ll.old +++ /dev/null @@ -1,13 +0,0 @@ -#! /bin/bash -export LLP=0 -tmp="$(mktemp)" -lf -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/home-manager/packages/scripts/wrappers/deprecated/pacman/pacComp b/home-manager/packages/scripts/wrappers/deprecated/pacman/pacComp deleted file mode 100755 index 5c451ad8..00000000 --- a/home-manager/packages/scripts/wrappers/deprecated/pacman/pacComp +++ /dev/null @@ -1,28 +0,0 @@ -#! /usr/bin/env dash -# shellcheck disable=SC2086 -# shellcheck source=/dev/null -. %SHELL_LIBRARY_PATH - - - -for i in $(cat ~/pacsaves);do - - a=$(echo $i | sed 's|.pacsave||') - - printf "%s AND %s\n" "$a" "$i" - sudo diff -y "$a" "$i" - a= - readp "Delete .pacsave? [N/y]" ans - if [ "$ans" = y ];then - sudo rm $i - sed -i "s|$i||" ~/pacsaves - fi - - -done - - - - - -if [ -d /tmp/LIB_FILE_TEMP_DIR/ ];then rm -r /tmp/LIB_FILE_TEMP_DIR/; fi diff --git a/home-manager/packages/scripts/wrappers/deprecated/pacman/pacF b/home-manager/packages/scripts/wrappers/deprecated/pacman/pacF deleted file mode 100755 index 09ea8ae5..00000000 --- a/home-manager/packages/scripts/wrappers/deprecated/pacman/pacF +++ /dev/null @@ -1,19 +0,0 @@ -#! /usr/bin/env dash -# shellcheck disable=SC2086 -# shellcheck source=/dev/null -. %SHELL_LIBRARY_PATH - - -while true -do - tmp=$(mktmp) - readp "Input: " pac - pacman -F --color=always $pac > $tmp - cat "$tmp" - cat $tmp | awk -F "/" 'NR==1 {print $2}' - rm $tmp -done - - - -if [ -d /tmp/LIB_FILE_TEMP_DIR/ ];then rm -r /tmp/LIB_FILE_TEMP_DIR/; fi diff --git a/home-manager/packages/scripts/wrappers/deprecated/pacman/pacS b/home-manager/packages/scripts/wrappers/deprecated/pacman/pacS deleted file mode 100755 index 99b0e9a5..00000000 --- a/home-manager/packages/scripts/wrappers/deprecated/pacman/pacS +++ /dev/null @@ -1,14 +0,0 @@ -#! /usr/bin/env dash -# shellcheck disable=SC2086 -# shellcheck source=/dev/null -. %SHELL_LIBRARY_PATH - -while true -do - readp "Package Name: " pac - pacman -Si --color=always "$pac" -done - - - -if [ -d /tmp/LIB_FILE_TEMP_DIR/ ];then rm -r /tmp/LIB_FILE_TEMP_DIR/; fi diff --git a/home-manager/packages/scripts/wrappers/deprecated/pacman/packages_scan b/home-manager/packages/scripts/wrappers/deprecated/pacman/packages_scan deleted file mode 100755 index 8beef249..00000000 --- a/home-manager/packages/scripts/wrappers/deprecated/pacman/packages_scan +++ /dev/null @@ -1,20 +0,0 @@ -#! /usr/bin/env dash -# shellcheck disable=SC2086 -# shellcheck source=/dev/null -. %SHELL_LIBRARY_PATH - -tmp=$(tmp 'pacman -Qq'); -output=$(mktmp); - - -while read -r line; do - msg2 reading $line; - pacman_out=$(tmp "pacman -Qi $line"); - description=$(awk -F ":" '/Description/ {print $2}' $pacman_out); - printf "%s # " $line >> $output; - echo $description >> $output; -done < $tmp - -cat $output; - -if [ -d /tmp/LIB_FILE_TEMP_DIR/ ];then rm -r /tmp/LIB_FILE_TEMP_DIR/; fi diff --git a/home-manager/packages/scripts/wrappers/deprecated/tidal-dl b/home-manager/packages/scripts/wrappers/deprecated/tidal-dl deleted file mode 100755 index c709a63d..00000000 --- a/home-manager/packages/scripts/wrappers/deprecated/tidal-dl +++ /dev/null @@ -1,11 +0,0 @@ -#! /bin/bash -tmp=$(mktemp) - -scrap > $tmp - -for ((i=0; i < $( cat $tmp | wc -l); i++)) -do - out=$(awk -v n=$i 'NR == n {print $0}' $tmp) - spotdl --output /home/dt/media/playlist/down --output-format mp3 --lyrics-provider genius --dt 16 --st 16 "${out}" -done - diff --git a/home-manager/packages/scripts/wrappers/deprecated/xi b/home-manager/packages/scripts/wrappers/deprecated/xi deleted file mode 100755 index 7d8e2639..00000000 --- a/home-manager/packages/scripts/wrappers/deprecated/xi +++ /dev/null @@ -1,12 +0,0 @@ -#! /usr/bin/env dash -# shellcheck disable=SC2086 -# shellcheck source=/dev/null -. %SHELL_LIBRARY_PATH - -export XKB_DEFAULT_LAYOUT="mykeys" -exec river - - - - -# if [ -d /tmp/LIB_FILE_TEMP_DIR/ ];then rm -r /tmp/LIB_FILE_TEMP_DIR/; fi diff --git a/home-manager/packages/scripts/wrappers/deprecated/xs b/home-manager/packages/scripts/wrappers/deprecated/xs deleted file mode 100755 index 954cbca9..00000000 --- a/home-manager/packages/scripts/wrappers/deprecated/xs +++ /dev/null @@ -1,233 +0,0 @@ -#! /usr/bin/env dash - -# -# This is just a sample implementation of a slightly less primitive -# interface than xinit. It looks for user .xinitrc and .xserverrc -# files, then system xinitrc and xserverrc files, else lets xinit choose -# its default. The system xinitrc should probably do things like check -# for .Xresources files and merge them in, start up a window manager, -# and pop a clock and several xterms. -# -# Site administrators are STRONGLY urged to write nicer versions. -# - -unset SESSION_MANAGER -userclientrc=$XDG_CONFIG_HOME/X11/xinitrc -sysclientrc=/etc/X11/xinit/xinitrc - -userserverrc=$HOME/.xserverrc -sysserverrc=/etc/X11/xinit/xserverrc -defaultclient=xterm -defaultserver=/usr/bin/X -defaultclientargs="" -defaultserverargs="" -defaultdisplay="" -clientargs="" -serverargs="" -vtarg="" -enable_xauth=1 - - -# Automatically determine an unused $DISPLAY -d=0 -while true ; do - [ -e "/tmp/.X$d-lock" -o -S "/tmp/.X11-unix/X$d" ] || break - d=$(($d + 1)) -done -defaultdisplay=":$d" -unset d - -whoseargs="client" -while [ x"$1" != x ]; do - case "$1" in - # '' required to prevent cpp from treating "/*" as a C comment. - /''*|\./''*) - if [ "$whoseargs" = "client" ]; then - if [ x"$client" = x ] && [ x"$clientargs" = x ]; then - client="$1" - else - clientargs="$clientargs $1" - fi - else - if [ x"$server" = x ] && [ x"$serverargs" = x ]; then - server="$1" - else - serverargs="$serverargs $1" - fi - fi - ;; - --) - whoseargs="server" - ;; - *) - if [ "$whoseargs" = "client" ]; then - clientargs="$clientargs $1" - else - # display must be the FIRST server argument - if [ x"$serverargs" = x ] && \ - expr "$1" : ':[0-9][0-9]*$' > /dev/null 2>&1; then - display="$1" - else - serverargs="$serverargs $1" - fi - fi - ;; - esac - shift -done - -# process client arguments -if [ x"$client" = x ]; then - client=$defaultclient - - # For compatibility reasons, only use startxrc if there were no client command line arguments - if [ x"$clientargs" = x ]; then - if [ -f "$userclientrc" ]; then - client=$userclientrc - elif [ -f "$sysclientrc" ]; then - client=$sysclientrc - fi - fi -fi - -# if no client arguments, use defaults -if [ x"$clientargs" = x ]; then - clientargs=$defaultclientargs -fi - -# process server arguments -if [ x"$server" = x ]; then - server=$defaultserver - - - # When starting the defaultserver start X on the current tty to avoid - # the startx session being seen as inactive: - # "https://bugzilla.redhat.com/show_bug.cgi?id=806491" - tty=$(tty) - if expr "$tty" : '/dev/tty[0-9][0-9]*$' > /dev/null; then - tty_num=$(echo "$tty" | grep -oE '[0-9]+$') - vtarg="vt$tty_num -keeptty" - fi - - - # For compatibility reasons, only use xserverrc if there were no server command line arguments - if [ x"$serverargs" = x -a x"$display" = x ]; then - if [ -f "$userserverrc" ]; then - server=$userserverrc - elif [ -f "$sysserverrc" ]; then - server=$sysserverrc - fi - fi -fi - -# if no server arguments, use defaults -if [ x"$serverargs" = x ]; then - serverargs=$defaultserverargs -fi - -# if no vt is specified add vtarg (which may be empty) -have_vtarg="no" -for i in $serverargs; do - if expr "$i" : 'vt[0-9][0-9]*$' > /dev/null; then - have_vtarg="yes" - fi -done -if [ "$have_vtarg" = "no" ]; then - serverargs="$serverargs $vtarg" -fi - -# if no display, use default -if [ x"$display" = x ]; then - display=$defaultdisplay -fi - -if [ x"$enable_xauth" = x1 ] ; then - if [ x"$XAUTHORITY" = x ]; then - XAUTHORITY=$HOME/.Xauthority - export XAUTHORITY - fi - - removelist= - - # set up default Xauth info for this machine - hostname=`uname -n` - - authdisplay=${display:-:0} - - mcookie=`/usr/bin/mcookie` - - - - - - - - if test x"$mcookie" = x; then - echo "Couldn't create cookie" - exit 1 - fi - dummy=0 - - # create a file with auth information for the server. ':0' is a dummy. - xserverauthfile=`mktemp -p /tmp serverauth.XXXXXXXXXX` - trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM - xauth -q -f "$xserverauthfile" << EOF -add :$dummy . $mcookie -EOF - - - - - serverargs=${serverargs}" -auth "${xserverauthfile} - - - # now add the same credentials to the client authority file - # if '$displayname' already exists do not overwrite it as another - # server may need it. Add them to the '$xserverauthfile' instead. - for displayname in $authdisplay $hostname/unix$authdisplay; do - authcookie=`xauth list "$displayname" \ - | sed -n "s/.*$hostname\/unix$authdisplay[[:space:]*].*[[:space:]*]//p"` 2>/dev/null; - if [ "z${authcookie}" = "z" ] ; then - xauth -q << EOF -add $displayname . $mcookie -EOF - removelist="$displayname $removelist" - else - dummy=$(($dummy+1)); - xauth -q -f "$xserverauthfile" << EOF -add :$dummy . $authcookie -EOF - fi - done -fi - - - - -xinit "$client" $clientargs -- "$server" $display $serverargs - -retval=$? - -if [ x"$enable_xauth" = x1 ] ; then - if [ x"$removelist" != x ]; then - xauth remove $removelist - fi - if [ x"$xserverauthfile" != x ]; then - rm -f "$xserverauthfile" - fi -fi - - - - - -if command -v deallocvt > /dev/null 2>&1; then - deallocvt -fi - - - - - - -exit $retval |