From 94e1957b55db0199b60bd78c6ecae92a012fff51 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 24 Jun 2024 02:33:08 -0500 Subject: [PATCH] remove old man pages and clean up utils --- builds/utils.nix | 4 +- builds/utils/TODO | 5 -- builds/utils/{sh => }/capture | 0 builds/utils/{sh => }/connect | 0 builds/utils/{sh => }/disp | 0 builds/utils/etc/southwest_tracker.py | 26 ------- builds/utils/{sh => }/gaming | 0 builds/utils/{sh => }/getphone | 0 builds/utils/{sh => }/is_school | 0 builds/utils/{sh => }/khalmacs | 0 builds/utils/{sh => }/lofi | 0 builds/utils/{sh => }/machine | 0 builds/utils/man/colors.1 | 32 --------- builds/utils/man/rndutils.1 | 11 --- builds/utils/man/timer.1 | 87 ------------------------ builds/utils/man/trss.1 | 30 -------- builds/utils/man/xgetnewwindow.1 | 10 --- builds/utils/{sh => }/mode | 0 builds/utils/{sh => }/mousehelper | 0 builds/utils/{sh => }/musexplore | 0 builds/utils/{sh => }/nws | 0 builds/utils/{sh => }/passmenu | 0 builds/utils/{sh => }/special_ins | 0 builds/utils/{sh => }/start-phone-bridge | 0 builds/utils/{sh => }/start-termux-xorg | 0 builds/utils/{sh => }/summarize | 0 builds/utils/{sh => }/sync | 0 builds/utils/{sh => }/tabletmenu | 0 builds/utils/{sh => }/tmenu | 0 builds/utils/{sh => }/tmenu-backend | 0 builds/utils/{sh => }/tmenu_run | 0 builds/utils/{sh => }/tmuxbird | 0 builds/utils/{sh => }/vpn | 0 33 files changed, 2 insertions(+), 203 deletions(-) delete mode 100644 builds/utils/TODO rename builds/utils/{sh => }/capture (100%) rename builds/utils/{sh => }/connect (100%) rename builds/utils/{sh => }/disp (100%) delete mode 100644 builds/utils/etc/southwest_tracker.py rename builds/utils/{sh => }/gaming (100%) rename builds/utils/{sh => }/getphone (100%) rename builds/utils/{sh => }/is_school (100%) rename builds/utils/{sh => }/khalmacs (100%) rename builds/utils/{sh => }/lofi (100%) rename builds/utils/{sh => }/machine (100%) delete mode 100644 builds/utils/man/colors.1 delete mode 100644 builds/utils/man/rndutils.1 delete mode 100644 builds/utils/man/timer.1 delete mode 100644 builds/utils/man/trss.1 delete mode 100644 builds/utils/man/xgetnewwindow.1 rename builds/utils/{sh => }/mode (100%) rename builds/utils/{sh => }/mousehelper (100%) rename builds/utils/{sh => }/musexplore (100%) rename builds/utils/{sh => }/nws (100%) rename builds/utils/{sh => }/passmenu (100%) rename builds/utils/{sh => }/special_ins (100%) rename builds/utils/{sh => }/start-phone-bridge (100%) rename builds/utils/{sh => }/start-termux-xorg (100%) rename builds/utils/{sh => }/summarize (100%) rename builds/utils/{sh => }/sync (100%) rename builds/utils/{sh => }/tabletmenu (100%) rename builds/utils/{sh => }/tmenu (100%) rename builds/utils/{sh => }/tmenu-backend (100%) rename builds/utils/{sh => }/tmenu_run (100%) rename builds/utils/{sh => }/tmuxbird (100%) rename builds/utils/{sh => }/vpn (100%) diff --git a/builds/utils.nix b/builds/utils.nix index da53dba..a6f766f 100644 --- a/builds/utils.nix +++ b/builds/utils.nix @@ -34,8 +34,8 @@ stdenv.mkDerivation rec { installPhase = '' mkdir -p $out/bin - for i in $(ls $src/sh); do - cp $src/sh/$i $out/bin + for i in $(ls $src/); do + cp $src/$i $out/bin ln -sf $out/bin/tmenu_run $out/bin/regenerate wrapProgram $out/bin/$i --prefix PATH : ${lib.makeBinPath [ sxhkd bash feh xrandr jq figlet curl fzy xkbset ytfzf sshuttle svkbd scrcpy xrectsel ffcast ]} done diff --git a/builds/utils/TODO b/builds/utils/TODO deleted file mode 100644 index 0d8b47b..0000000 --- a/builds/utils/TODO +++ /dev/null @@ -1,5 +0,0 @@ -TODO LIST ---------- - -- fix paste -- make the c programs less buggy and let them not suck as much diff --git a/builds/utils/sh/capture b/builds/utils/capture similarity index 100% rename from builds/utils/sh/capture rename to builds/utils/capture diff --git a/builds/utils/sh/connect b/builds/utils/connect similarity index 100% rename from builds/utils/sh/connect rename to builds/utils/connect diff --git a/builds/utils/sh/disp b/builds/utils/disp similarity index 100% rename from builds/utils/sh/disp rename to builds/utils/disp diff --git a/builds/utils/etc/southwest_tracker.py b/builds/utils/etc/southwest_tracker.py deleted file mode 100644 index 2cf2258..0000000 --- a/builds/utils/etc/southwest_tracker.py +++ /dev/null @@ -1,26 +0,0 @@ -import httplib2 -import json -import math -import time - -# fun fact: i got bored so made this on a southwest flight - -while True: - request = httplib2.Http() - # you have to look in the network tab in 'inspect element', and find the '_' parameter, and paste that in - # of course, you have to be connected to southwest's onboard wifi - _param = "fill this in" - data = request.request("https://getconnected.southwestwifi.com/fp3d_fcgi-php/portal/public/index.php?_url=/index/getFile&path=last&_=" + _param) - data = json.loads(data[1]) - print("-- Update --") - print("Nautical Miles: " + str(data["distanceToDestinationNauticalMiles"])) - print("Phase: " + data["presentPhase"]) - print("Speed: " + str(data["groundSpeedKnots"]) + "kts") - seconds = data['timeToDestination'] - minutes = math.floor(seconds / 60) - seconds = seconds % 60 - print("Minutes: " + str(minutes) + " Seconds: " + str(seconds)) - print("Flight Number: " + data["flightNumber"] + " Registration: " + data["tailNumber"]) - - time.sleep(3) - print('\033[H\033[2J') diff --git a/builds/utils/sh/gaming b/builds/utils/gaming similarity index 100% rename from builds/utils/sh/gaming rename to builds/utils/gaming diff --git a/builds/utils/sh/getphone b/builds/utils/getphone similarity index 100% rename from builds/utils/sh/getphone rename to builds/utils/getphone diff --git a/builds/utils/sh/is_school b/builds/utils/is_school similarity index 100% rename from builds/utils/sh/is_school rename to builds/utils/is_school diff --git a/builds/utils/sh/khalmacs b/builds/utils/khalmacs similarity index 100% rename from builds/utils/sh/khalmacs rename to builds/utils/khalmacs diff --git a/builds/utils/sh/lofi b/builds/utils/lofi similarity index 100% rename from builds/utils/sh/lofi rename to builds/utils/lofi diff --git a/builds/utils/sh/machine b/builds/utils/machine similarity index 100% rename from builds/utils/sh/machine rename to builds/utils/machine diff --git a/builds/utils/man/colors.1 b/builds/utils/man/colors.1 deleted file mode 100644 index e25818a..0000000 --- a/builds/utils/man/colors.1 +++ /dev/null @@ -1,32 +0,0 @@ -.TH COLORS 1 colors -.SH NAME -colors \- generate colorscheme and run hooks -.SH SYNOPSIS -.B colors [-hefc] [-w path] -.SH OPTIONS -.TP -.B -h -disable running hooks (implies -e) -.TP -.B -e -echo colors to stdout -.TP -.B -c -check colors using color checking algorithm -.TP -.B -f -print wallpaper filename to stdout -.TP -.B -w -provide wallpaper path -.SH HOOKS -When -h is not used, a program at ~/.config/cwal/handler is executed. The first sixteen arguments are the colors in the colorscheme, and the seventeenth argument is the filename. -.SH EXIT CODES -.TP -.B 0 -Normal exit code -.TP -.B 1 -check_colors(...) failed. -.SH AUTHOR -randomuser diff --git a/builds/utils/man/rndutils.1 b/builds/utils/man/rndutils.1 deleted file mode 100644 index 8b50645..0000000 --- a/builds/utils/man/rndutils.1 +++ /dev/null @@ -1,11 +0,0 @@ -.TH RNDUTILS 1 rndutils -.SH NAME -rndutils \- simple shell script utilities -.SH INSTALLATION -.B make install -.SH LICENSE -The author, randomuser (randomuser at tilde dot club) hereby -releases the software in this distribution and all -accompanying texts into the public domain, thereby relieving -him of any warranty of any kind. - diff --git a/builds/utils/man/timer.1 b/builds/utils/man/timer.1 deleted file mode 100644 index e06fcf4..0000000 --- a/builds/utils/man/timer.1 +++ /dev/null @@ -1,87 +0,0 @@ -.TH TIMER 1 timer -.SH NAME -timer \- simple command line timer program -.SH SYNOPSIS -.B timer [-evdbft] [-h int] [-m int] [-s int] -.SH OPTIONS -.TP -.B -e -enable usage of vt100 escape sequences for timer rendering (overrides -v) -.TP -.B -v -enable printing of timer status -.TP -.B -d -count down; when timer reaches 00:00, finish (use -h, -m, -s to set ending time) -.TP -.B -b -ASCII BEL when timer finish state reached -.TP -.B -f -timer display contains hour slot -.TP -.B -t -use a tomato timer (use -h, -m, -s to set work cycle time, rest cycle time is assumed to be half of the working time) -.TP -.B -p -disable pausing after finishing tomato timer cycle (required -t to work) -.TP -.B -z -enable build-specific runtime settings (default -ebf) -.TP -.B "-h int" -specify number of hours for timer parameters -.TP -.B "-m int" -specify number of minutes for timer parameters -.TP -.B "-s int" -specify number of seconds for timer parameters -.SH INTERACTIVE USAGE -.TP -.B pausing -a timer is paused when an astrisk prefixes the display (with -e) and/or when the timer ceases to update, e.g. count up or down. you can use the enter key to pause/unpause it (refer to the below example) -.nf -$ timer -e -* 05:45 -.fi -.TP -.B stopping a timer -should you wish to stop a timer prematurely, or a timer which has no specified end condition, you may press the key combination that sends a killing signal to the program (e.g. a la SIGTERM) in your shell, which is usually ^C. the timer has no major places to clean up. however, memory leaks might occur on some operating systems due to no free()ing of resources. -.SH EXIT CODES/TERMINATION SIGNALS -.TP -.B 0 -timer finished successfully -.TP -.B 1 / SIGABRT -error parsing arguments -.SH EXAMPLES -.B start a ten minute timer, counting up: -.nf -$ timer -m 10 -.fi -.B show the vt100 interface, too: -.nf -$ timer -em 10 -.fi -.B start a one hour sixty-two minute fourty-nine second timer counting down (with vt100 interface): -.nf -$ timer -edh 1 -m 62 -s 49 -.fi -.B start a tomato timer with a work interval of fourty minutes and a rest interval of twenty minutes: -.nf -$ timer -etm 40 -.fi -.SH REQUIRED HEADERS -.nf -#include -#include -#include -#include -#include -.fi -.SH BUGS -- when passing -p each tomato timer cycle is cut short one second -send email to random user at-sign tilde dot club -.SH AUTHOR -randomuser diff --git a/builds/utils/man/trss.1 b/builds/utils/man/trss.1 deleted file mode 100644 index 575a9e5..0000000 --- a/builds/utils/man/trss.1 +++ /dev/null @@ -1,30 +0,0 @@ -.TH TRSS 1 trss -.SH NAME -trss \- command oriented feed reader powered by sfeed -.SH SYNOPSIS -.B trss -.SH INTERFACE -.TP -.B ls -list all feed names in the 'feed home', or within a feed, list all items within -.TP -.B cd -focus another feed. in order to go back to the 'feed home', use 'cd' or 'cd ..' -.TP -.B sync -with no arguments and in the 'feed home', syncs all feeds. if in a specific feed, syncs that feed. a feed can be specified in an argument. -.TP -.B cat -open all feeds whose titles contain text as specified by an argument in 'lynx' - -.SH trss-yt-id -this script is designed to allow one to obtain an rss feed for the uploads of a youtube channel. this command takes the homepage of the youtube channel in question as an argument and then returns the rss feed for that channel. - -.SH BUGS -- when in a feed, you can't cd to another directly, you must go to to the 'feed home' and then cd - -.SH DEPENDS -sfeed - -.SH AUTHOR -randomuser diff --git a/builds/utils/man/xgetnewwindow.1 b/builds/utils/man/xgetnewwindow.1 deleted file mode 100644 index 8c5adab..0000000 --- a/builds/utils/man/xgetnewwindow.1 +++ /dev/null @@ -1,10 +0,0 @@ -.TH XGETNEWWINDOW 1 xgetnewwindow -.SH NAME -xgetnewwindow -.SH SYNOPSIS -xgetnewwindow blocks until it recieves a CreateNotify event; that is, until a new window is created within the current Xorg instance. Once a new window is created, xgetnewwindow prints the window id (in hexadecimal) to stdout and exits. -.SH EXIT CODES -1 for abnormal termination, 0 for success. -.SH AUTHOR -randomuser - diff --git a/builds/utils/sh/mode b/builds/utils/mode similarity index 100% rename from builds/utils/sh/mode rename to builds/utils/mode diff --git a/builds/utils/sh/mousehelper b/builds/utils/mousehelper similarity index 100% rename from builds/utils/sh/mousehelper rename to builds/utils/mousehelper diff --git a/builds/utils/sh/musexplore b/builds/utils/musexplore similarity index 100% rename from builds/utils/sh/musexplore rename to builds/utils/musexplore diff --git a/builds/utils/sh/nws b/builds/utils/nws similarity index 100% rename from builds/utils/sh/nws rename to builds/utils/nws diff --git a/builds/utils/sh/passmenu b/builds/utils/passmenu similarity index 100% rename from builds/utils/sh/passmenu rename to builds/utils/passmenu diff --git a/builds/utils/sh/special_ins b/builds/utils/special_ins similarity index 100% rename from builds/utils/sh/special_ins rename to builds/utils/special_ins diff --git a/builds/utils/sh/start-phone-bridge b/builds/utils/start-phone-bridge similarity index 100% rename from builds/utils/sh/start-phone-bridge rename to builds/utils/start-phone-bridge diff --git a/builds/utils/sh/start-termux-xorg b/builds/utils/start-termux-xorg similarity index 100% rename from builds/utils/sh/start-termux-xorg rename to builds/utils/start-termux-xorg diff --git a/builds/utils/sh/summarize b/builds/utils/summarize similarity index 100% rename from builds/utils/sh/summarize rename to builds/utils/summarize diff --git a/builds/utils/sh/sync b/builds/utils/sync similarity index 100% rename from builds/utils/sh/sync rename to builds/utils/sync diff --git a/builds/utils/sh/tabletmenu b/builds/utils/tabletmenu similarity index 100% rename from builds/utils/sh/tabletmenu rename to builds/utils/tabletmenu diff --git a/builds/utils/sh/tmenu b/builds/utils/tmenu similarity index 100% rename from builds/utils/sh/tmenu rename to builds/utils/tmenu diff --git a/builds/utils/sh/tmenu-backend b/builds/utils/tmenu-backend similarity index 100% rename from builds/utils/sh/tmenu-backend rename to builds/utils/tmenu-backend diff --git a/builds/utils/sh/tmenu_run b/builds/utils/tmenu_run similarity index 100% rename from builds/utils/sh/tmenu_run rename to builds/utils/tmenu_run diff --git a/builds/utils/sh/tmuxbird b/builds/utils/tmuxbird similarity index 100% rename from builds/utils/sh/tmuxbird rename to builds/utils/tmuxbird diff --git a/builds/utils/sh/vpn b/builds/utils/vpn similarity index 100% rename from builds/utils/sh/vpn rename to builds/utils/vpn