.fish 125 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280
  1. #Once again added stuff in haste at the start, several times. need to tidy up and move these to correct sections some time after meditating and medicating.
  2. ##########################################################################
  3. ##########################################################################
  4. # bedrocklinux stuff. bedrock stuff. the bedrock section ###############
  5. ###
  6. # reminder... move the rest of the bedrock stuff to within this section. #
  7. ############################################################
  8. ################ the bedrocklinux section ################
  9. ############################################################
  10. #
  11. # bedrockery
  12. # __ __ __
  13. # \ \_________\ \____________\ \___ ___ _ _ _ _
  14. # \ _ \ _\ _ \ _\ __ \ __\ / / -_) '_| || |
  15. # \___/\__/\__/ \_\ \___/\__/\_\_\\___|_| \_, |
  16. # Bedrock Linux |__/
  17. #
  18. # bedrockery
  19. # __ __ __
  20. # \ \_________\ \____________\ \______________
  21. # \ _ \ _\ _ \ _\ __ \ __\ / _\ _\ \ \
  22. # \___/\__/\__/ \_\ \___/\__/\_\_\__/\_\ \__ \
  23. # Bedrock Linux \_/ :)
  24. #
  25. # alt format for having a command issued on each strata
  26. # brl list | xargs -i strat -r {} foo
  27. #
  28. # e.g.
  29. #
  30. # brl list | xargs -i strat -r {} neofetch
  31. ############################################################
  32. # brl aliases ##############################################
  33. function brllistline
  34. brl list | tr '\n' ' '
  35. end
  36. function neofetches
  37. neofetch
  38. for i in (brl list | egrep -v bedrock); strat -r $i neofetch; end
  39. end
  40. function fastfetches
  41. fastfetch
  42. for i in (brl list | egrep -v bedrock); strat -r $i fastfetch; end
  43. end
  44. function brlwhiches
  45. for i in (brl list | egrep -v bedrock); strat -r $i brl which $argv; end
  46. end
  47. function brll
  48. brl list
  49. end
  50. function brlw
  51. brl which $argv
  52. end
  53. alias brlws brlwhiches
  54. function brlo
  55. brl which # for the phonetic lols
  56. end
  57. alias brlos brlwhiches # for the phonetic lols
  58. function whohas
  59. brlwhiches $argv ; pmms $argv
  60. end
  61. ##################################################
  62. #__ __ __
  63. #\\ \\_________\\ \\____________\\ \\___
  64. # \\ _ \\ _\\ _ \\ _\\ __ \\ __\\ /
  65. # \\___/\\__/\\__/ \\_\\ \\___/\\__/\\_\\_\\
  66. # Bedrock Linux 0.7 Poki"
  67. function bedrockascii
  68. echo "__ __ __
  69. \\ \\_________\\ \\____________\\ \\___
  70. \\ _ \\ _\\ _ \\ _\\ __ \\ __\\ /
  71. \\___/\\__/\\__/ \\_\\ \\___/\\__/\\_\\_\\"
  72. end
  73. alias brlascii bedrockascii
  74. alias brl-ascii bedrockascii
  75. alias bedrock-ascii bedrockascii
  76. #forthestonks (lol, i must stop saying that.)
  77. function bedrockascii-shadey
  78. set_color "#EEEEEE" ; echo "__ __ __ "
  79. set_color "#BBBBBB" ; echo "\\ \\_________\\ \\____________\\ \\___ "
  80. set_color "#999999" ; echo " \\ _ \\ _\\ _ \\ _\\ __ \\ __\\ / "
  81. set_color "#777777" ; echo " \\___/\\__/\\__/ \\_\\ \\___/\\__/\\_\\_\\" # stonks. #rrly must stop.
  82. set_color normal
  83. end
  84. alias brl-ascii-shadey bedrockascii-shadey
  85. alias bedrock-ascii-shadey bedrockascii-shadey
  86. #workingtitle themerock (based on bedrockascii-shadey, using theme)
  87. function themerock
  88. set_color "#FFFFFF" ; echo "__ __ __ "
  89. set_color brwhite ; echo "\\ \\_________\\ \\____________\\ \\___ "
  90. set_color white ; echo " \\ _ \\ _\\ _ \\ _\\ __ \\ __\\ / "
  91. set_color brblack ; echo " \\___/\\__/\\__/ \\_\\ \\___/\\__/\\_\\_\\" # stonks. #rrly must stop.
  92. set_color normal
  93. end
  94. alias bedrockascii-shadeytheme themerock
  95. function ambergris
  96. set_color black ; echo -n "█" ; set_color red ; echo -n "█" ; set_color green ; echo -n "█" ; set_color yellow ; echo -n "█" ; set_color blue ; echo -n "█" ; set_color magenta ; echo -n "█" ; set_color cyan ; echo -n "█" ; set_color white ; echo "█" ; set_color brblack ; echo -n "█" ; set_color brred ; echo -n "█" ; set_color brgreen ; echo -n "█" ; set_color bryellow ; echo -n "█" ; set_color brblue ; echo -n "█" ; set_color brmagenta ; echo -n "█" ; set_color brcyan ; echo -n "█" ; set_color brwhite ; echo "█"
  97. end
  98. function ambergrisquids
  99. set_color black ; echo -n "£" ; set_color red ; echo -n "£" ; set_color green ; echo -n "£" ; set_color yellow ; echo -n "£" ; set_color blue ; echo -n "£" ; set_color magenta ; echo -n "£" ; set_color cyan ; echo -n "£" ; set_color white ; echo "£" ; set_color brblack ; echo -n "£" ; set_color brred ; echo -n "£" ; set_color brgreen ; echo -n "£" ; set_color bryellow ; echo -n "£" ; set_color brblue ; echo -n "£" ; set_color brmagenta ; echo -n "£" ; set_color brcyan ; echo -n "£" ; set_color brwhite ; echo "£"
  100. end
  101. #for next fish_greeting. with mo data than ^squids. like ambergristle V.
  102. function ambergrisquidies
  103. set_color black ; echo -n "£" ; set_color red ; echo -n "£" ; set_color green ; echo -n "£" ; set_color yellow ; echo -n "£" ; set_color blue ; echo -n "£" ; set_color magenta ; echo -n "£" ; set_color cyan ; echo -n "£" ; set_color white ; echo -n "£ " ; echo (brl version)
  104. set_color brblack ; echo -n "£" ; set_color brred ; echo -n "£" ; set_color brgreen ; echo -n "£" ; set_color bryellow ; echo -n "£" ; set_color brblue ; echo -n "£" ; set_color brmagenta ; echo -n "£" ; set_color brcyan ; echo -n "£" ; set_color brwhite ; echo -n "£ " ; echo (uname -rs)
  105. end
  106. function ambergristle
  107. bedrockascii-shadey
  108. set_color black ; echo -n "█" ; set_color red ; echo -n "█" ; set_color green ; echo -n "█" ; set_color yellow ; echo -n "█" ; set_color blue ; echo -n "█" ; set_color magenta ; echo -n "█" ; set_color cyan ; echo -n "█" ; set_color white ; echo -n "█" ; set_color -b blue ; echo -n (brl version) ; set_color -b black ; set_color brblack ; echo "" ; set_color brblack ; echo -n "█" ; set_color brred ; echo -n "█" ; set_color brgreen ; echo -n "█" ; set_color bryellow ; echo -n "█" ; set_color brblue ; echo -n "█" ; set_color brmagenta ; echo -n "█" ; set_color brcyan ; echo -n "█" ; set_color brwhite ; echo -n "█" ; set_color -b blue ; set_color brcyan ; echo -n ""(set_color green)""(date +%Y%m%d)""(set_color cyan)" " ; uname -rs ; set_color -b black
  109. end
  110. #mortimer probably needs renamed. just added this today. hehe.
  111. function mortimer
  112. cd ;and clear ;and fish_greeting ;and sleep 2 ;and mortimer
  113. end
  114. #### idea
  115. # brl-robust
  116. # like brl-provides is the plural of brl which
  117. # brl-robust (initial working name) is plural
  118. # of rspmi. as in, it installs the package in every distro it can. :D
  119. # or, rspmi=pmmi or whatever pmm's install is.
  120. #######
  121. # proto package manager manager
  122. #
  123. # ... it's a bedrock thing. calm down.
  124. alias ppmm "protopackagemanagermanager"
  125. #alias protopackagemanagermanager "protopmm"
  126. alias protopackagemanagermanager "pmm"
  127. #function protopmm
  128. function pmmm
  129. echo "this is just pseudocode so far"
  130. echo "if update/up then"
  131. echo "
  132. strat -r genx emerge --sync --quiet ;and strat -r gentoo emerge --sync --quiet ;and strat -r ceres apt-get update ;and strat -r devgaktest apt-get update ;and strat -r devuan apt-get update ;and strat -r trentoo emerge --sync --quiet ;and strat -r void xbps-install -S
  133. "
  134. echo
  135. echo "if search/-s $thing then"
  136. echo "genx eix -c $thing ;and xbps-query -Rs $thing ;and apt-cache search $thing"
  137. echo
  138. echo "that kind of thing, but variablised."
  139. echo "that means you sleepy developer"
  140. sleep 1
  141. echo "(who only seems to touch this late at night)"
  142. sleep 1
  143. echo "so this is your reminder, Digit. code this up when awake. go on... run pmm one more time... i dare you. i double dare you. run pmm."
  144. echo
  145. sleep 3
  146. echo "and see burps and bu , so far. ;) proto proto proto pmm. ;)"
  147. end
  148. #dev notes. brl which. can haz brl which n have its output in place, n use its output to determine which package manager to use. could create a list with asignments of which package manager to use with it. and/or a list explaining which strata are which type of distro (and therefor which type (from the other list) of package manager to use with that type of distro. but lets just start see if i can do something useful with "(brl which)", in a command. ... i'll probably not get to this stuff before paradigm makes pmm. but it's good to think about. perchance i'll fullfill my own need, scratch my own itch, n get the joyous feels of empowerment, and the rich rewards of education. ... my fish-fu gonna be gud. gonna hafta be.
  149. #okleme just see if i can at least first make a rudimentary search
  150. function burps
  151. #idk, do i need this? :3 for line? :3
  152. #for i in $argv;
  153. #nohhh, it'd be more like:
  154. #for i in brl list
  155. #or something. will work that out later.
  156. echo " ======== void ======== "
  157. xbps-query -Rs "$argv"
  158. echo " ======== gentoo ======== "
  159. eix -c "$argv"
  160. echo " ======== devuan ======== "
  161. #can cut/awk/sed/grep my way to have "packagename packageversion", maybe from "apt-cache show" output easier than from "apt search"
  162. #apt-cache show bc | cut -d" " -f2 | head -n 2 | paste -d " " - -
  163. #apt-cache show teeworlds | egrep '^Version|^Package' | paste -d " " - - | sed 's/Package: //g' | sed 's/Version: //g'
  164. #both ^ get it right for 1 result, but doesnt search for packages with partial names. should sed/grep/awk/paste/cut/etc from "apt search" output or from "apt-cache search -f" output instead? :3
  165. #apt-cache search "$argv"
  166. apt-cache search -f "$argv" | egrep '^Version|^Package' | paste -d " " - - | sed 's/Package: //g' | sed 's/Version: //g'
  167. echo " ======== ceres ======== "
  168. strat ceres apt-cache search -f "$argv" | egrep '^Version|^Package' | paste -d "
  169. " - - | sed 's/Package: //g' | sed 's/Version: //g'
  170. echo " ======== ubuntu ======== "
  171. strat ubuntu apt-cache search -f "$argv" | egrep '^Version|^Package' | paste -d " " - - | sed 's/Package: //g' | sed 's/Version: //g'
  172. echo " ======== arch ======== "
  173. #gonna wanna clean up pacman's output too... since it's 2 line too
  174. pacman -Ss "$argv"
  175. echo " ======== AUR ======== " #depends on which aur wrapper
  176. # yay -Q "$argv" ### idk where i got that wrongness from
  177. yay -Ss -a "$argv"
  178. echo " ======== crux ======== "
  179. # pkginfo "$argv"
  180. prt-get search "$argv"
  181. end
  182. #
  183. function pmms
  184. # devuan style
  185. pmm search $argv
  186. # gentoo style
  187. #pmm --search $argv
  188. end
  189. function pmmsi
  190. pmm list --installed | grep $argv
  191. end
  192. function pmmu
  193. echo "heck, dont even do this, without sudo, or it just times out on everything after the first"
  194. echo "but okay, if you really want, run su, and fish, then paste:"
  195. echo "for i in (brl list) ; sudo strat -r \$i pmm update ; end"
  196. echo
  197. echo "but as for now, gonna run that as user and see if you get to the sudo prompt..."
  198. for i in (brl list) ; sudo strat -r $i pmm update ; end
  199. end
  200. function pmmug #dont do this
  201. echo "dont do this"
  202. echo "for i in (brl list) ; sudo strat -r $i pmm upgrade ; end"
  203. end
  204. #pasted this to /root/.fishrc, where it makes sense
  205. # bu
  206. function bu # rly is a sensible less static-coded way to do this, with pmm. XD
  207. if test (id -u) -eq 0
  208. echo " ======== void ======== "
  209. sudo xbps-install -S
  210. echo " ======== gentoo ======== "
  211. # emerge --quiet --sync
  212. sudo premerg #if you have it (see mergence).
  213. echo " ======== devuan ======== "
  214. sudo strat devuan apt-get update
  215. echo " ======== ceres ======== "
  216. sudo strat ceres apt-get update
  217. echo " ======== ubuntu ======== "
  218. sudo strat ubuntu apt-get update
  219. echo " ======== pacman ======== "
  220. sudo pacman -Sy --quiet
  221. echo " ======== AUR ======== "
  222. sudo yay -Sy --quiet
  223. echo " ======== crux ======== "
  224. sudo ports -u
  225. #add alpine
  226. #add ubuntu
  227. else
  228. echo "gotta be root user to update the available packages list"
  229. end
  230. end
  231. #i gotta make a version of this portable, not static, so it's savvy enough to know to upgrade whatever existing strata, and not be told explicitly
  232. ######### brl whichs
  233. ########### brl universal which
  234. ############# buw <- i like this. i did think of bruw first, but this is nice too. unlike halfnotions of which+bedrock=whibh or something).
  235. ### this needs work.
  236. ##### like
  237. ####### s|/usr/share/|PATH| or something, and s/openttd/$argv/ or something.
  238. function brother
  239. echo "this is not correct yet. beyond pseudocode, but a janky copypasta from a specific use case, yet to be editited and generalised."
  240. # for i in (brl list); strat -r $i ls /usr/share/ | grep openttd ;end
  241. for i in (brl list); strat -r $i whereis $argv ;end # nrly...? kinda works, but need to get it show which it's from.
  242. # for i in (brl list); strat -r $i {for e in echo $PATH; ls $e | grep $argv} ;end #how did that one when tested swappipng $argv for openttd end up in needing to exit 15 shells to get back to fish? n_n shud make this when not sleepy.
  243. end
  244. #dangit, i had the brlwhichs^ working before, in some piece of code somewhere, and even spoke of it in irc, or on the forum or redit or somewhere? *shrug*
  245. ###it's ok. paradigm made this brl-provides.sh:
  246. ###!/bedrock/libexec/busybox sh
  247. ##cmd="${1}"
  248. ##for s in $(/bedrock/bin/brl list); do
  249. ## if p="$(/bedrock/bin/strat -r "${s}" /bedrock/libexec/busybox which "${cmd}")"; then
  250. ## echo "${s}: ${p}"
  251. ## fi
  252. ##done
  253. ###i'm welcome to try remake it in fish if i like, but i just pasted it to that filename in path n chmod'd it. brl-provides provides what my brl whichs was sposa, and it's a better word for it.
  254. ######^^^ end of (now since edited n still not moved) copy pastas from old prior sdb4 bedrock.
  255. #terminal
  256. ## preferred terminal
  257. #st
  258. #alias terminal sts
  259. ## preferred st
  260. #alias sts ~/gitting/sts/st004/st/st
  261. #rrr, that didnt work... try it simply like:
  262. function terminal4
  263. ~/gittings/sts/st004/st/st
  264. end
  265. #lolmeh, i'll also just add it to
  266. ## ln -s /home/digit/gittings/sts/st004/st/st st
  267. #notes
  268. #some day i will
  269. # get
  270. # key locations variablised
  271. # like
  272. # digitsaudio
  273. # latest audio dev dir
  274. # images
  275. # cinema
  276. # specific cinema dirs
  277. #
  278. # so if/when they change,
  279. # i just need change location once
  280. # (in the variable definition)
  281. # n not change each n all instances
  282. #set -gx PATH $PATH /home/digit/xiki-master/bin /home/digit/bin /media/x3/software/sources/flite-2.0.0-release/bin /home/digit/.cabal/bin/ /home/digit/.guix-profile/bin /usr/games/bin
  283. #nope, this is not the way to do it either. every fresh fish re-adds this.
  284. #set -gx PATH $PATH /home/digit/bin /usr/games/bin /usr/games
  285. #######################another old static path setting################################
  286. #i'm just gonna set the whole thing straight, static, right here. no $PATH in PATH. ~! wtf man this is no right on devuan... why u confuse me with this bedrock in my path.
  287. ##set -gx PATH /bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /bedrock/cross/bin /home/digit/bin /usr/games/bin /usr/games
  288. ### why was that^ getting set idk. dont edit configs when sleepy with crazy ideas to test. brl when, not b4
  289. #set -gx PATH /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /home/digit/bin /usr/games/bin /usr/games
  290. #lets hope my meddling with dmenu-bind.sh up next doesnt mess things up. ... hrm, yup, dmenu_run,
  291. #######################################################################################
  292. #######################################################################################
  293. ################# static path mend attempt 20200815 ###################################
  294. #######################################################################################
  295. #i'm just gonna set the whole thing straight, static, right here.
  296. #set -gx PATH /bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /bedrock/cross/bin
  297. #set -gx PATH /bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /home/digit/bin /usr/games/bin /usr/games /bedrock/cross/bin
  298. #/usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /home/digit/bin /usr/games/bin /usr/games
  299. #lets hope my meddling with dmenu-bind.sh up next doesnt mess things up. ... hrm, yup, dmenu_run,
  300. #######################################################################################
  301. ################# static path mend attempt 20200815 ###################################
  302. #######################################################################################
  303. #######################################################################################
  304. ################# static path mend attempt 20201110 ###################################
  305. #######################################################################################
  306. # ok, so i installed nix, from a terminal in ubuntu(studio) hijack/init stratum...
  307. # using curl -L https://nixos.org/nix/install | sh -s -- --daemon
  308. # ^ as got from https://github.com/NixOS/nix 's readme. daring. but only shows up in
  309. # bash path:
  310. # /home/digit/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/home/digit/bin:/bedrock/cross/pin/bin:/bedrock/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/games:/usr/games:/opt/bin:/usr/lib/llvm/14/bin:/bedrock/cross/bin
  311. # where as the fish that starts from that, only had:
  312. # /home/digit/bin /bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin /bin /sbin /usr/local/games /usr/games /opt/bin /usr/lib/llvm/14/bin /bedrock/cross/bin
  313. # so addapting this...
  314. #set -gx PATH /bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /home/digit/bin /usr/games/bin /usr/games /bedrock/cross/bin
  315. #with these parts
  316. #set -gx PATH
  317. #/home/digit/.nix-profile/bin /nix/var/nix/profiles/default/bin
  318. #/home/digit/bin
  319. #/bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin /bin /sbin /usr/local/games /usr/games /opt/bin /usr/lib/llvm/14/bin:/bedrock/cross/bin
  320. #/bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /home/digit/bin /usr/games/bin /usr/games /bedrock/cross/bin
  321. # into
  322. #set -gx PATH /home/digit/.nix-profile/bin /nix/var/nix/profiles/default/bin /home/digit/bin /bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin /bin /sbin /usr/local/games /usr/games /opt/bin /usr/lib/llvm/14/bin:/bedrock/cross/bin /bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /home/digit/bin /usr/games/bin /usr/games /bedrock/cross/bin
  323. #^ which is just them all botched together. no. uhh...
  324. #ok, so, try this one...
  325. #set -gx PATH /home/digit/.nix-profile/bin /nix/var/nix/profiles/default/bin /home/digit/bin /bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /home/digit/bin /usr/games/bin /usr/games /usr/lib/llvm/14/bin:/bedrock/cross/bin /bedrock/cross/bin
  326. #/bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin /bin /sbin /usr/local/games /usr/games /opt/bin /usr/lib/llvm/14/bin:/bedrock/cross/bin
  327. #/bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /home/digit/bin /usr/games/bin /usr/games /bedrock/cross/bin
  328. #######################################################################################
  329. ################# static path mend attempt 20201110 ###################################
  330. #######################################################################################
  331. #another PATH attempt... lets see if this works the magic -- oops, no, yes, of course this wont work until fish is my login manager. reverting back to prior static version. ... until i get fish set as my login shell.
  332. #if status --is-login #https://github.com/fish-shell/fish-shell/issues/5117#issuecomment-408639996
  333. # set -gx PATH $PATH /home/digit/bin /usr/games/bin /usr/games
  334. # set -gx PATH (printf '%s\n' $PATH | sort -u) #https://github.com/fish-shell/fish-shell/issues/5117#issuecomment-408639996
  335. #end
  336. # path reference comparison from root sh
  337. #
  338. #/bedrock/cross/pin/bin:/bedrock/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/games:/usr/games:/bedrock/cross/bin
  339. #
  340. #
  341. # path reference comparison from digit's bash
  342. #/home/digit/bin:/bedrock/cross/pin/bin:/bedrock/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/games:/usr/games:/opt/bin:/usr/lib/llvm/14/bin:/bedrock/cross/bin
  343. #
  344. #
  345. #so, yet another static path fix attemp, upon seeing fish couldnt see pmm when ran from my alias, wat.
  346. #
  347. #set -gx PATH /home/digit/bin:/bedrock/cross/pin/bin:/bedrock/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/games:/usr/games:/opt/bin:/usr/lib/llvm/14/bin:/bedrock/cross/bin
  348. #20240601 attempt... using what running, + xscreensaver dir.
  349. #set -gx PATH /bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /home/digit/bin /usr/games/bin /usr/games /usr/libexec/xscreensaver /bedrock/cross/bin
  350. #ok, but making it use the specific stratum, apparently necessary, i'm guessing, since^ didnt seem to work, somehow.
  351. #set -gx PATH /bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /home/digit/bin /usr/games/bin /usr/games /usr/libexec/xscreensaver /bedrock/cross/bin
  352. #or was it just the space.... test that first... before
  353. # nope. try this then
  354. set -gx PATH /bedrock/cross/pin/bin /bedrock/bin /usr/local/bin /usr/local/sbin /opt/bin /opt/sbin /usr/bin /usr/sbin /bin /sbin /snap/bin /home/digit/bin /usr/games/bin /usr/games /bedrock/strata/devuan/usr/libexec/xscreensaver /bedrock/cross/bin
  355. #lol, yeah, make sure not typo it as stratum instead of strata. lol.
  356. #######################################################################################
  357. function realc
  358. string repeat -n (math "$LINES - 2") \n #bind to ctrl+shift+l
  359. end
  360. # binding bottom align
  361. #bind \c\sl string repeat -n (math "$LINES - 2") \n #bind to ctrl+shift+l
  362. # as one line as i made it
  363. # clear ; echo ; bedrock-ascii | lolcat -v 3 -h 0.8 -r ; echo " Bedrock Linux" ; echo
  364. #fix the grep bug, alegedly.
  365. #alias grep "/usr/bin/grep $GREP_OPTIONS"
  366. #unset GREP_OPTIONS
  367. # ... is okay yet again?
  368. #
  369. # you are now leaving
  370. # the bedrockery
  371. # __ __ __ __
  372. # \ \_________\ \____________\ \______________ ________\ \
  373. # \ _ \ _\ _ \ _\ __ \ __\ / _\ _\ \ \/ _\ \ _ \
  374. # \___/\__/\___/\_\ \___/\__/\_\_\__/\_\ \__ \__/\_\_\___/
  375. # Bedrock Linux \_/
  376. #
  377. ##############################################################
  378. ################ the bedrocklinux section #################
  379. ############################################################
  380. ### here endeth the
  381. # bedrocklinux stuff. bedrock stuff. the bedrock section ###############
  382. ##########################################################################
  383. ##########################################################################
  384. #current way in 2024 i get an old htop fork with the stratum collumn to show and not choke on a library fail nor chew up too much ram over time.
  385. function retopper ; sleep 2 ; timeout 42m strat decibel htop ; sleep 2 ; retopper ; end
  386. #to get that error to stfu...
  387. #export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
  388. #set LD_PRELOAD /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
  389. alias mcedit "mcedit --nosubshell"
  390. # ^ "--nosubshell" for fast start. other solutions available, if needing subshell
  391. #exherbo
  392. function exherbo
  393. strat -r exherbo
  394. end
  395. #pomodoro
  396. function pomodoro
  397. timeout 15
  398. end
  399. function pomodorofy
  400. flite -voice rms -t "$argv" -o pomo.wav
  401. # timeout 1m mpv --loop pomo.wav #testing
  402. timeout 15m mpv --loop pomo.wav
  403. end
  404. function extracturls
  405. grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | sort -u
  406. end
  407. function emacs2022althome #we'll work on the name later.
  408. ## [2022-07-17 17:05:50] <euouae> Digit: Here's a couple tips: If you run emacs with `HOME=~/foo/bar emacs` you can pretend your home is ~/foo/bar, so you can fully test a new 'emacs' in any way you'd like without breaking your day-to-day emacs
  409. #[2022-07-17 17:06:46] <euouae> Digit: and use `C-h v variable` and `C-h f function` to read the docs of these things, and importantly, delve into their implementation to see what they do. Reading others' source code is a good way to learn.
  410. #e.g.
  411. #HOME=/home/digit/.emacsdigit2022emacs emacs
  412. #HOME=/home/digit/sdc1/emacs2022newhome/ emacs
  413. HOME=/home/digit/sdc1/software/configs/emacs/2022/000/ emacs
  414. end
  415. #cleans
  416. #cleanall
  417. function cleanall
  418. cleanvoid
  419. cleanarch
  420. cleangentoo
  421. cleandevuan
  422. #i'll add the rest later
  423. end
  424. function cleanvoid
  425. sudo xbps-remove -O #removes... something
  426. sudo xbps-remove -o #removes... something
  427. echo "and there's more voidlinux cleanups to yet add to this cleanvoid function"
  428. end
  429. function cleanarch
  430. #make more
  431. pacman -Sc
  432. end
  433. #and adds cleanarch to cleanall
  434. function cleangentoo
  435. #
  436. echo "~~~~ this cleangentoo function does nothing yet~~~~"
  437. end
  438. function cleandevuan
  439. #
  440. echo "~~~~ this clean devuan function does nothing yet~~~~"
  441. end
  442. #################################
  443. #######################
  444. ##### clean ######
  445. ################
  446. ############
  447. #####
  448. ##
  449. #
  450. function whatnwhere
  451. echo -n (whatis $argv)
  452. echo -n ". "
  453. echo (whereis $argv)
  454. end
  455. function wherenwhat
  456. echo -n (whereis $argv)
  457. echo -n ". "
  458. echo (whatis $argv)
  459. end
  460. #
  461. function taskmaster
  462. mpv ~/cinema/_Comedy/taskmaster/*.* --shuffle
  463. end
  464. #digits example function
  465. function functionwithexampleoptions -a functweo -d "function with example options"
  466. echo "this function defined as functionwithexampleoptions in the config has been given the argument name (-a) functweo and the description (-d): function with example options"
  467. end
  468. #never mind then. go back to https://fishshell.com/docs/current/cmds/function.html and re-read.
  469. #function sayer
  470. function say
  471. #as first created:
  472. #20220430 void /home/digit/.config/herbstluftwm % man set | flite -voice aws $argv -o justsayin.wav ; mpv justsayin.wav --loop
  473. #use sayer like man something | sayer. and it should just work,.... i say with crossed fingers yet to try...
  474. #
  475. # okay, some meddling more, and... tricky to get flite to accept either file or string...
  476. # is $argv right? ... $1's not, surely.
  477. # -t or -f ? need separate versions in the function separated by an if? (or an inline if)?
  478. flite -voice aws -t $argv -o justsayin.wav ; mpv justsayin.wav --loop ; rm justsayin.wav
  479. end
  480. #alias say sayer #though sayer still in dev^. :3 ... would be good to get a simple pipey alias to say things.
  481. function sayall
  482. flite -voice aws -f $argv -o justsayin.wav ; mpv justsayin.wav --loop ; rm justsayin.wav
  483. end
  484. function digitemacs
  485. #emacs -q --load "/path/to/init.el"
  486. emacs -q --load "/home/digit/.emacsdigit2022emacs/init.el"
  487. end
  488. #movemeeeee
  489. function dancemonkey
  490. echo "not made yet"
  491. sleep 4
  492. fish_prompt
  493. sleep 2
  494. echo "okay, fine, have this crappy quick-n-dirty junk web version..."
  495. strat aurtix mpv --no-video "https://www.youtube.com/watch?v=bRTgTsHb4l0" "https://www.youtube.com/watch?v=4iQxG8ZjYO8" "https://www.youtube.com/watch?v=q0hyYWKXF0Q" "https://www.youtube.com/watch?v=s_eViPLUngU" "https://www.youtube.com/watch?v=pq9UElSw8nw" "https://www.youtube.com/watch?v=KyYYZuFgL9Q" "https://www.youtube.com/watch?v=EtCb452j3ZU" "https://www.youtube.com/watch?v=s60_MRfayVk" "https://www.youtube.com/watch?v=NkCOfh9fgrw" "https://www.youtube.com/watch?v=ez1iu-zx7eE" "https://www.youtube.com/watch?v=QloMdg2bapw" "https://www.youtube.com/watch?v=H6I82aGarGs" #dancemonkey tones and i tones& i Tones and I Tones & I Dance Monkey dance monkey and some.
  496. mpv ~/musicilove/dance/* --shuffle
  497. end
  498. function bucky
  499. echo "“We should do away with the absolutely specious notion that everybody has to earn a living. It is a fact today that one in ten thousand of us can make a technological breakthrough capable of supporting all the rest. The youth of today are absolutely right in recognizing this nonsense of earning a living. We keep inventing jobs because of this false idea that everybody has to be employed at some kind of drudgery because, according to Malthusian Darwinian theory he must justify his right to exist. So we have inspectors of inspectors and people making instruments for inspectors to inspect inspectors. The true business of people should be to go back to school and think about whatever it was they were thinking about before somebody came along and told them they had to earn a living.” ~ Buckminster Fuller" | lolcat
  500. #add
  501. # if bucky.wav ; mpv bucky.wav ; else ...
  502. flite -voice "“We should do away with the absolutely specious notion that everybody has to earn a living. It is a fact today that one in ten thousand of us can make a technological breakthrough capable of supporting all the rest. The youth of today are absolutely right in recognizing this nonsense of earning a living. We keep inventing jobs because of this false idea that everybody has to be employed at some kind of drudgery because, according to Malthusian Darwinian theory he must justify his right to exist. So we have inspectors of inspectors and people making instruments for inspectors to inspect inspectors. The true business of people should be to go back to school and think about whatever it was they were thinking about before somebody came along and told them they had to earn a living.” ~ Buckminster Fuller" -o bucky.wav ; mpv bucky.wav
  503. end
  504. function clownworld
  505. echo "“When you wake up in the morning, tell yourself: The people I deal with today will be meddling, ungrateful, arrogant, dishonest, jealous, and surly. They are like this because they can’t tell good from evil. But I have seen the beauty of good, and the ugliness of evil, and have recognized that the wrongdoer has a nature related to my own—not of the same blood or birth, but the same mind, and possessing a share of the divine. And so none of them can hurt me. No-one can implicate me in ugliness. Nor can I feel angry at my relative, or hate them. We were born to work together like feet, hands, and eyes, like the two rows of teeth, upper and lower. To obstruct each other is unnatural. To feel anger at someone, to turn your back on them: these are obstructions.” -- Marcus Aurelius, Meditations, 2.1"
  506. end
  507. #idea got from https://www.youtube.com/watch?v=KL29jcWu-1E
  508. #alias teee tee -a
  509. function teee
  510. tee -a
  511. end
  512. ### IDK IF DAT WORKS! ... :3 (no typos? no need $argv? $1? ...) it okay? fish okay at least?
  513. function breathe
  514. mpv ~/images/gifs/3secbreathcounterclock.gif --loop
  515. end
  516. # reminder suggestion
  517. #
  518. ## perhaps [[[EDIT: "perhaps" indeed. if wanting break up the config to multi-file mess!]]]
  519. ## move all the bedrock stuff
  520. ## out to separate shareable
  521. ## .bedrock.fish file <- already started doing.
  522. ## and reference it from here. <- yet to do.
  523. #
  524. #### (not important(yet):then later maybe even shimmy a clever clone link thingy for its own repo)
  525. #moveme
  526. function jobdone
  527. flite -voice awb -t "job done. this will do fine. okay enough. ken whit? job done." -o ken.wav ; mpv ken.wav ; rm ken.wav
  528. end
  529. #move me
  530. function clearweather
  531. clear ; weather
  532. end
  533. alias cw clearweather
  534. #move me
  535. function searx
  536. # links "https://searx.neocities.org"
  537. links "https://searx.neocities.org/nojs.html"
  538. end
  539. #move me
  540. function duck
  541. links "https://lite.duckduckgo.com"
  542. end
  543. function startpage
  544. links "https://startpage.com"
  545. end
  546. #move me
  547. # a CPT section! because where else would you have your package manager configured but in your ~/.profile or wherever in your shell config. :3 okay. :)
  548. #idk what i'm doing btw. i looked up the carbslinux cpt docs... reading through, up to 3.2, environment variables... so i should set these myself since they're not set? ... where do i set it? ima take wild guesses at where's sensible.
  549. #CPT_PATH:/bedrock/strata/carbs/var/db/cpt #??? i guess??? is that right?
  550. set CPT_PATH /bedrock/strata/carbs/var/db/cpt #??? i guess??? is that right?
  551. #set CPT_PATH /bedrock/strata/carbs/var/db/cpt /home/digit/gittings #? ? ?! right?
  552. #move me
  553. function retop #i made this because the bedrock fork of htop accumulates >1G swap.
  554. timeout 24h htop -d 80 ; sleep 8 ; retop
  555. end
  556. function killscreensaver
  557. xset s off ; xset -dpms
  558. end
  559. function mendcursor
  560. #just to help prevent xscreensaver taking it away again
  561. xset s off ; xset -dpms
  562. #have a go, just in case, may mend with just...
  563. xsetroot -cursor_name left_ptr
  564. #xsetroot -cursor_name right_ptr
  565. #and then maybe...
  566. sudo modprobe -r psmouse
  567. sudo modprobe psmouse
  568. end
  569. #and in case you forget you called that^ "mendcursor"
  570. alias cursormend mendcursor
  571. alias mendmouse mendcursor
  572. alias mousemend mendcursor
  573. # mend keyboard baclight led off on
  574. function keyboard-backlight-off
  575. dbus-send --system --type=method_call --dest="org.freedesktop.UPower" "/org/freedesktop/UPower/KbdBacklight" "org.freedesktop.UPower.KbdBacklight.SetBrightness" int32:0
  576. end
  577. function keyboard-backlight-on
  578. dbus-send --system --type=method_call --dest="org.freedesktop.UPower" "/org/freedesktop/UPower/KbdBacklight" "org.freedesktop.UPower.KbdBacklight.SetBrightness" int32:1
  579. end
  580. #do me.
  581. # s|https://www.youtube.com/watch?v=|https://invidio.us/watch?v=|
  582. #for all my yt scripts. or at least duplicate them.
  583. ## or just s|youtube|yewtube| ? or others?
  584. ##
  585. #
  586. ### or make a script that does the sedit in the command
  587. #
  588. ## mpv (in $argv ; sed s|youtube|yewtube| ; end) ... something like that? lol. :D not bad for a rash pseudocode poke.
  589. ##############v ok, i may have gone slightly mental, with these colours. v######################
  590. #fish colours
  591. #https://fishshell.com/docs/current/interactive.html#color
  592. ###
  593. # set fish_color_normal #default color
  594. ###
  595. #set fish_color_command blue #commands like echo
  596. #set fish_color_command 33EE00 -r #commands like echo
  597. #set fish_color_command yellow #commands like echo
  598. set fish_color_command brgreen -r #commands like echo
  599. # set fish_color_keyword # keywords like if - this falls back on the command color if unset
  600. set fish_color_keyword green # keywords like if - this falls back on the command color if unset
  601. ###
  602. # set fish_color_quote # quoted text like "abc"
  603. #set fish_color_quote yellow # quoted text like "abc"
  604. set fish_color_quote white # quoted text like "abc"
  605. # set fish_color_redirection # IO redirections like >/dev/null
  606. set fish_color_redirection blue # IO redirections like >/dev/null
  607. # set fish_color_end # process separators like ';' and '&'
  608. set fish_color_end brwhite # process separators like ';' and '&'
  609. # set fish_color_error # syntax errors
  610. set fish_color_error 00FF00 # syntax errors
  611. ###
  612. # set fish_color_param # ordinary command parameters
  613. #set fish_color_param BBEE33 -r # ordinary command parameters
  614. #set fish_color_param brblack -r # ordinary command parameters
  615. #set fish_color_param brcyan # ordinary command parameters
  616. set fish_color_param brcyan -r # ordinary command parameters
  617. #set fish_color_param cyan -r # ordinary command parameters
  618. # set fish_color_comment # comments like '# important'
  619. set fish_color_comment brred # comments like '# important'
  620. # set fish_color_selection # selected text in vi visual mode
  621. set fish_color_selection brgreen -r # selected text in vi visual mode
  622. # set fish_color_operator # parameter expansion operators like '*' and '~'
  623. set fish_color_operator bryellow # parameter expansion operators like '*' and '~'
  624. # set fish_color_escape # character escapes like 'n' and 'x70'
  625. set fish_color_escape brbrlue # character escapes like 'n' and 'x70'
  626. # set fish_color_autosuggestion # autosuggestions (the proposed rest of a command)
  627. set fish_color_autosuggestion brmagenta # autosuggestions (the proposed rest of a command)
  628. # set fish_color_cwd # the current working directory in the default prompt
  629. set fish_color_cwd brcyan # the current working directory in the default prompt
  630. # set fish_color_user # the username in the default prompt
  631. #test3commentoutwhite
  632. #set fish_color_user brwhite # the username in the default prompt
  633. # set fish_color_host # the hostname in the default prompt
  634. set fish_color_host yellow -r # the hostname in the default prompt
  635. # set fish_color_host_remote # the hostname in the default prompt for remote sessions (like ssh)
  636. set fish_color_host_remote bryellow -r # the hostname in the default prompt for remote sessions (like ssh)
  637. # set fish_color_cancel # the '^C' indicator on a canceled command
  638. set fish_color_cancel magenta -r # the '^C' indicator on a canceled command
  639. # set fish_color_search_match # history search matches and selected pager items (background only)
  640. set fish_color_search_match brblue -r # history search matches and selected pager items (background only)
  641. ##############^ ok, i may have gone slightly mental, with these colours. ^######################
  642. ##############^ now to clean up that hasty mess, and make it make sense. ^######################
  643. ### and how come on st-006-067 and st-006-068 have media files show up white?? ...
  644. # ... gonna comment out those three whites incrementally to see if any of them are causing it...
  645. # tests
  646. # 1
  647. # 2
  648. # 3
  649. function salve
  650. mpv ~/Music/* --shuffle
  651. end
  652. function salve1
  653. cd ~/Music
  654. mpv 417\ Hz\ ❯\ CLEANSE\ ALL\ THAT\ TRAPPED\ NEGATIVE\ ENERGY\ from\ the\ Past\ ❯\ Solfeggio\ Frequency\ Music-yQ4MnNIhqEI.opus 741\ Hz\ ❯\ Spiritual\ Detox\ ❯\ Remove\ Toxins\ \&\ Negative\ Thoughts\ ❯\ Mandala\ Meditation\ Music-yKj_OBus98A.opus Body\ Restoration\ _\ Healing\ \&\ Strengthening\ of\ Bones\ _\ Fast\ Recovery\ Binaural\ Beats-YTykFImbPMs.m4a Heal\ Damaged\ Brain\ Cells\ _\ Nerve\ Regeneration\ \&\ Brain\ Cells\ Regeneration\ _\ Healing\ Binaural\ Beats-zvA0NGl6_l4.opus Manifest\ Healing\ \(741\ Hz\)\ -\ Whole\ Body\ Regeneration\ -\ Accelerated\ Healing\ -\ Binaural\ Beats-Gy1AwhHv70M.opus Now\ Ends\ The\ Beginning-XR76_HJL6uQ.opus Boards\ of\ Canada\ -\ Tomorrow\'s\ Harvest\ \(2013\)\ -\ Full\ Album-mkYKF5hQQ6M.opus Now\ Ends\ The\ Beginning-XR76_HJL6uQ.opus
  655. end
  656. alias healing1 salve1
  657. function tones
  658. mpv /home/digit/musicilove/dance/Tones\ and\ I\ -\ Dance\ Monkey\ \(Memorylane\ Bootleg\ Mix\)-y_WRatOMumk.m4a
  659. end
  660. function escapekit
  661. stopnicotine
  662. stopsmoking
  663. startbreathing
  664. end
  665. #shrug
  666. function shrug
  667. echo "¯\_(ツ)_/¯"
  668. end
  669. function startbreathing
  670. # mpv "http://ks392457.kimsufi.com/stuff/allencarrseasyway/*"
  671. # mpv "http://ks392457.kimsufi.com/stuff/ac/*"
  672. mpv ~/Downloads/ac
  673. mpv ~/Downloads/Allen\ Carr\'s\ -\ The\ Easy\ Way\ To\ Stop\ Smoking\ AudioBook/
  674. end
  675. alias allencarr startbreathing
  676. alias easyway startbreathing
  677. alias ac startbreathing
  678. function stopnicotine
  679. #mpvm "https://youtu.be/84nKbQKd-b0"
  680. mpsm "allen carr stop smoking audiobook"
  681. stopnicotine
  682. end
  683. function stopsmoking
  684. mpvm "https://youtu.be/4AuBYCJnHfQ" "https://youtu.be/0TL2Vh7goJc" "https://youtu.be/AcySUtMkpbY"
  685. mpsm "allen carr stop smoking audiobook"
  686. end
  687. #idk if this should be near start, or end... muh alphabet aliases! n-n
  688. #source ~/bin/alphabet-aliases.fish
  689. #or if shud have it in separate file at all... methinks mibi slowing down fish startup
  690. function helpback
  691. hsetroot -solid "#381919" -center ~/Documents/digboxbinds.png
  692. end
  693. #omigosh more cruft added to the start of my fish config. where oh where is the "start"... and will i ever get this all tidy?
  694. #i didnt like having to choose not to use bedrock. glad to be back. trying to respect choice of friends/family to not hear about it loads. lol. :) "gosh i love bedrock" & "so glad to be back on bedrock" 30 times a day's such a bore.
  695. ## surf astro
  696. function surf-astro-000
  697. surf "https://alabe.com/freechart/default.asp"
  698. end
  699. function surf-astro-001
  700. surf "https://alabe.com/cgi-bin/chart/astrobot.cgi?INPUT1=Digit&INPUT2=&GENDER=Male&MONTH=01&DAY=22&YEAR=1982&HOUR=9&MINUTE=55&AMPM=PM&TOWN=Kirkwall&COUNTRY=UK&STATE=&INPUT9=&Submit=Submit"
  701. end
  702. ## surf weather
  703. function surf-weather
  704. surf "https://earth.nullschool.net/#current/wind/surface/level/orthographic=-7.02,58.87,3196"
  705. end
  706. function surf-weather0
  707. surf "https://darksky.net/forecast/58.9769,-2.9911/us12/en"
  708. end
  709. function surf-tides
  710. surf "https://tidetimes.org.uk/kirkwall-tide-times"
  711. end
  712. alias tides surf-tides
  713. alias tide-times surf-tides
  714. alias tide surf-tides
  715. alias tidetimes surf-tides
  716. ##
  717. function surf-search
  718. surf "https://lite.duckduckgo.com/lite/?q=$argv"
  719. end
  720. alias ss surf-search
  721. alias websearch surf-search
  722. alias search surf-search
  723. alias ws surf-search
  724. alias s surf-search
  725. function surf-search-qwant
  726. surf "https://www.qwant.com/?q=$argv"
  727. end
  728. function surf-search-ddg
  729. surf "https://lite.duckduckgo.com/lite/?q=$argv"
  730. end
  731. function surf-search-sp
  732. surf "https://www.startpage.com/do/search?q=$argv"
  733. end
  734. ###meditations
  735. function meditation-7breathmeditaiton
  736. flite -t "breathe in. breathe in to your root chakra, softly filling. And relaxing on exhale."
  737. flite -t "breathe in. breathe in to your sacral chakra, softly filling. And relaxing on exhale."
  738. flite -t "breathe in. breathe in to your solar chakra, softly filling. And relaxing on exhale."
  739. flite -t "breathe in. breathe in to your heart chakra, softly filling. And relaxing on exhale."
  740. flite -t "breathe in. breathe in to your throat chakra, softly filling. And relaxing on exhale."
  741. flite -t "breathe in. breathe in to your mind chakra, softly filling. And relaxing on exhale."
  742. flite -t "breathe in. breathe in to your spirit chakra, softly filling. And relaxing on exhale."
  743. flite -t "breathe in to your fingers and toes, softly filling your whole body. And relax on exhale."
  744. end
  745. ###thunderbrowser ... move me to a new webby section
  746. # " to me, death and rebirth go hand in hand with gratitude and generosity " --thunder (from #spiritscience)
  747. function thunderbrowser
  748. wget --save-headers --user-agent='Mozilla/5.0 (Windows NT 10.0; rv:70.0) Gecko/20100101 Firefox/70.0' -q -c -O - 'https://example.com/' | tee -a '/home/digit/.txt/20210115-015359.html' | sed '/^HTTP\/1\./, /^^M$/d' | lynx -stdin -dump -force_html -image_links | less
  749. end
  750. ### colourtest-16c
  751. function colourtest-16c
  752. # unbuffer colortest-16 | tail -n 17
  753. unbuffered colortest-16 | tail -n 17
  754. end
  755. #alias colortest-16c colourtest-16c
  756. ## sleeptv
  757. function sleeptv
  758. #idk why this wont play with a path, but ok... looks like i gotta cd in to the dir first. :/
  759. ### wat?^ noh, surely i was just typo'ing or something, no? nope, seems not. wtf. idk.
  760. # timeout 90m mpv --shuffle --playlist=~/cinema/sleeptvlist
  761. # cd ~/cinema
  762. # timeout 90m mpv --shuffle --playlist=sleeptvlist
  763. cd ~/cinema/_Comedy
  764. timeout 72m mpv --shuffle --playlist=bedtime.playlist
  765. end
  766. ## time to remake the grand sleepery... cept i'm too sleepy to chain all the sleep things together just now and so instead shall put this windbagging comment about it (to remind my spritely awake self here to do it) and will simply watch sleeptv this time. #20210107 the day my operating system drive died at the same time as one of those inexplicable hangs that need manual rebooting.
  767. # it'll include something like sleeptv ; sleepytime ; sleeper ; sleepkit ;
  768. # or something like sleeptv ; sleepwise ; sleepytime ; sleeper ; sleepkit ; sleep 3h ; radiodrone
  769. # sleepall
  770. function sleepall000
  771. sleeptv ; sleepwise ; sleepytime ; sleeper ; sleepkit ; sleep 3h ; radiodrone
  772. end
  773. function sleepall001
  774. sleeptv ; sleepwise ; sleepytime ; sleeper ; sleepkit
  775. end
  776. alias sleepall sleepall001
  777. #peem
  778. function peem
  779. #peem, the name and default search and install command of digit's new package manager alias/interface wrapper notion.
  780. #by default, search, but extended version will start to install it if it's the one obvious thing that's not installed, unless cancelled in a couple seconds.
  781. #so on this os at time of writing, the simple version is just
  782. apt-cache search $argv
  783. #if i did my fish correctly.
  784. #but peem would properly add a check to see if need of an update if the list was stale, and other package manager specific sprucings.
  785. #peem's a lazy easy one stop command. there's no intermediate "install", "search", "remove", "update" commands, as peem will interpret and toggle as needs. the user can cancel to say no if a toggle about to proceed is wrong. .^\
  786. #so yeah... i'll get coding that... in pseudocode or real fishshellscript{[(is that the correct terminology?)]`> soon...
  787. #that'll be interesting in a bedrocky sort of way.
  788. end
  789. # dunebongs
  790. function dunebong-dry
  791. #function dunebong
  792. dunebong-text ; toilet -w 80 -f small (dunebong-text) ; dunebong-text | lolcat ; dunebong-wise
  793. # dunebong-text ;and dunebong-say
  794. end
  795. #function dunebong-morelolcattest
  796. function dunebong
  797. dunebong-text ; toilet -w 80 -f small (dunebong-text) | lolcat ; dunebong-text | lolcat ; dunebong-wise
  798. # dunebong-text ;and dunebong-say
  799. end
  800. function dunebong-text
  801. echo " It is by will alone I set my mind in motion. It is by the smoke of cannabis that thoughts acquire depth, the eyes acquire blood, the blood becomes a warning. It is by will alone I set my mind in motion."
  802. end
  803. function dunebong-say
  804. flite -t " It is by will alone I set my mind in motion. It is by the smoke of cannabis that thoughts acquire depth, the eyes acquire blood, the blood becomes a warning. It is by will alone I set my mind in motion."
  805. end #gonna redo that, with toilet/figlet, and lolcat, and sleep, to stagger it. ... might even try slip in flite along with.
  806. #made this version of dunebong-say since am on a system that borks on flite if sound system's used by something else, which usually is, so usually wouldnt play.
  807. function dunebong-wise
  808. if test -f ~/sounds/dunebong-say.wav
  809. mpv ~/sounds/dunebong-say.wav
  810. else
  811. flite -t " It is by will alone I set my mind in motion. It is by the smoke of cannabis that thoughts acquire depth, the eyes acquire blood, the blood becomes a warning. It is by will alone I set my mind in motion." -o ~/sounds/dunebong-say.wav
  812. mpv ~/sounds/dunebong-say.wav
  813. end
  814. end
  815. #
  816. function digmenu
  817. dmenu_run -l 19 -b -i -nb "#000" -fn "merg" -nf "#fda" -sb "#EB3" -sf "#E3B"
  818. end
  819. #moveme too
  820. #do me.
  821. # s|https://www.youtube.com/watch?v=|https://invidio.us/watch?v=|
  822. #for all my yt scripts. or at least duplicate them.
  823. #and/or make youtube-dl and mpv aliased to sedit out the youtubery automagically. and/or at least make an alt command to do that first. there's a fun geeking project to settle into the present with. :)
  824. # and make a rofi that's similar
  825. #moveme
  826. function checkit
  827. flite -t "check it."
  828. end
  829. #ugh, gotta change all my mpv aliases since --this format is deprecated and dangerous (so they say) and needs be --this=format now.
  830. #attempts (move this section down somewhere sensible) ~ to make urls "Just Work" without "quotation" nor /escaping
  831. #this thnx from vifon in #fish on irc.freenode.net
  832. alias thisshudnbanaliasthoshudit "xsel | xargs -n1 -I'{}' do-stuff --some-arg='{}' --some-other-arg"
  833. #but added it (and called it thisshudnbanaliasthoshudit) like that in haste to take note just now anyway.
  834. ## oh shit, im gonna paste the whole bloody chat in here messin up my fish config. lol
  835. ##
  836. ##[2019-01-21 06:17:21] <Digit> is there a way to have urls be pasteable n interpreted without quotes nor warnings? is there somewhere i could add a simple "if starts http:// or https:// then autoquote it until the next space"?
  837. ##[2019-01-21 15:18:16] <krobelus> toothe: use `fg` (or `bg`)
  838. ##[2019-01-21 15:21:08] <krobelus> Digit: not really, but I don't think valid URLs have quotes.. the only character that is in the way is ?, though that is deprecated and will hopefully be removed at some point
  839. ##[2019-01-21 15:21:35] <krobelus> Digit: you can always do `your-command (read)` and then just paste the url
  840. ##[2019-01-21 17:42:15] <gregf> When I start to type out a command fish offers suggestions for completion. What's the key combo to accept the current suggestion?
  841. ##[2019-01-21 17:45:38] <vifon> gregf: Right arrow or Ctrl+f.
  842. ##[2019-01-21 23:52:22] <Digit> not sure my query was interpreted as intended. krobelus: valid urls dont have quotes in them, yes. but i'm talking about the need to quote urls. e.g. cant just middle-click paste a video url after mpv, hit enter, and go. needs " around the url. 4 extra keypresses that get irksome around where otherwise just a middle click & enter would do. the only thing i miss from bash. n_n
  843. ##[2019-01-21 23:54:53] <vifon> Digit: Well, you can use '' to cut these 4 keypresses in half. ;)
  844. ##[2019-01-21 23:55:19] <Digit> ... ? i dont get it
  845. ##[2019-01-21 23:55:34] <vifon> You need to press Shift for ".
  846. ##[2019-01-21 23:56:13] <vifon> Well, in Bash it would mysteriously stop working if for some reason you'd have the file named like the URL but with actual characters in place of ?.
  847. ##[2019-01-21 23:56:26] <vifon> Personally I don't like the ? and * handling in Bash.
  848. ##[2019-01-21 23:56:41] <vifon> Especially *. Working until it isn't.
  849. ##[2019-01-21 23:56:47] <Digit> oh, right, yes, of course. is ' dependable for urls? :3 well, that's better. halfed the infinitely more keypresses than i want in that area. n_n
  850. ##[2019-01-21 23:57:01] <vifon> I'd expect it to be, yes.
  851. ##[2019-01-21 23:57:30] <vifon> The hack with (read) looks nice actually.
  852. ##[2019-01-21 23:57:56] <Digit> i didnt quite grok what that was about, how to implement.
  853. ##[2019-01-21 23:58:31] <vifon> You enter "mpv (read)", press enter and then paste. Possible with Enter and C-d afterwards.
  854. ##[2019-01-21 23:58:40] <vifon> It essentially reads from stdin.
  855. ##[2019-01-21 23:58:58] <vifon> *Possibly
  856. ##[2019-01-21 23:59:04] <vifon> No, no C-d necessary.
  857. ##[2019-01-21 23:59:07] <Digit> yeah, so, once mpv's aliased such, it's replaceing the 4 (or 2) extra keypresses with 3.
  858. ##[2019-01-21 23:59:23] <Digit> no C-d, then just 2? :)
  859. ##[2019-01-21 23:59:30] <vifon> You just have one additional enter.
  860. ##[2019-01-21 23:59:34] <Digit> well, just an extra enter, yeah
  861. ##[2019-01-21 23:59:50] <vifon> That looks pretty reasonable.
  862. ##[2019-01-22 00:00:11] <vifon> Even better, you could use "mpv (xsel)
  863. ##[2019-01-22 00:00:14] <vifon> "
  864. ##[2019-01-22 00:00:26] <vifon> No pasting and no additional enter.
  865. ##[2019-01-22 00:00:57] <vifon> Basically the XY Problem. :)
  866. ##[2019-01-22 00:00:58] <Digit> ... then... ... that's even faster. if i understand correctly... that would initiate right upon middle click? :O
  867. ##[2019-01-22 00:01:10] <vifon> No middle click necessary.
  868. ##[2019-01-22 00:01:25] <Digit> not even! :O :D
  869. ##[2019-01-22 00:01:28] <vifon> You just need to select/copy the URL and run this command.
  870. ##[2019-01-22 00:01:31] <Digit> oh, but yeah, still needs 1 enter
  871. ##[2019-01-22 00:01:36] <Digit> nice
  872. ##[2019-01-22 00:01:39] <vifon> Well, you always need one.
  873. ##[2019-01-22 00:06:15] <Digit> n that'd work great for 1 url. but not if i had a chain of them. right?
  874. ##[2019-01-22 00:07:07] <Digit> yeah, i at first misinterpret the (xsel) as middle-click would paste and initiate.
  875. ##[2019-01-22 00:07:34] <vifon> Digit: If you want each one of them as a separate argument, it'll work if they are newline-separated in your clipboard.
  876. ##[2019-01-22 00:07:58] * Digit nods
  877. ##[2019-01-22 00:08:47] <vifon> If you want more control, you could use "xsel | xargs -n1 -I'{}' do-stuff --some-arg='{}' --some-other-arg"
  878. ##[2019-01-22 04:00:29] <Digit> i still think my dream of function in my .fishrc that allows urls to be invisably/auto quoted/escaped is my optimal target (as expressed^ "if starts http:// or https:// then autoquote it until the next space"). but that("xsel | xargs -n1 -I'{}' do-stuff --some-arg='{}' --some-other-arg")'s a really cool aproach in this area too. *enthused*
  879. ##[2019-01-22 04:10:25] <vifon> Digit: You may want to add sponge(1) from moreutils to the pipeline so that clipboard won't change during the processing. I've seen strange things happen when piping from xsel(1), though I expect it to be "atomic" once the reading begins.
  880. ##[2019-01-22 00:08:47] <vifon> If you want more control, you could use "xsel | xargs -n1 -I'{}' do-stuff --some-arg='{}' --some-other-arg"
  881. ## [2019-01-22 04:10:25] <vifon> Digit: You may want to add sponge(1) from moreutils to the pipeline so that clipboard won't change during the processing. I've seen strange things happen when piping from xsel(1), though I expect it to be "atomic" once the reading begins.
  882. #because you really want that bash feature parity of being able to just paste a url and go. no fangled quotation marks necessary! it's a must have feature. so it's worth mussing up the config with a big chat paste. that'll help remind and motivate and guide and inspire and clue. it's one of the larger inconveniences offputting a larger potential userbase of fish users. n more eyes, make bugs more shallow. ;D
  883. ###
  884. #making aliases(?) for locations like where's huj at now:
  885. #alias huj "~/hujscue/" #### might wanna recheck if wanna bother doing that... works fine so long as not mounting old huj on huj. ###########nohhhhh!####
  886. ## woah woah woah. is that how i ended up getting muddled crap in hujscue instead of huj3?
  887. alias huj "~/huj3/" #### might wanna recheck if wanna bother doing that... works fine so long as not mounting old huj on huj. !!!*ahem*!!!
  888. #huj4 next?
  889. #huj3 is huj5 now. huj4 is the new hujscue. so huj3's the active forward live drive. just backup to huj4.
  890. #i should write what command to do that here... a rsync or a cp,
  891. #cp -p? huj3/* huj4/
  892. #rsync -??? --ignore-existing huj3/* huj4/
  893. #
  894. #yeah, many months later, 20200708, and still havent done that. maybe have that be "the task" of the day. accomplish specifically that.
  895. #
  896. # what's the huj bkp command that preserves the dates n perms n everything...?
  897. #lolcat lc
  898. alias lc lolcat
  899. #changed this from mapscii to mapscii-telnet
  900. #because i did sudo npm install -g mapscii
  901. #to get mapscii installed locally. :)
  902. function mapscii-telnet
  903. telnet mapscii.me
  904. end
  905. #this was just a whim from #gentoo-chat for a laugh
  906. #alias chroot 'champagne-chute'
  907. # oh look... it's the "start" of my config. .... LOTS to tidy^
  908. ####################################
  909. # #
  910. # WELCOME! TO Digit'S FISH CONFIG #
  911. # #
  912. ####################################
  913. #moveme ~things added in haste here:
  914. ####################################
  915. # #
  916. # during an adventure, this config #
  917. # is created, from prior ~/.bashrc #
  918. # and will survive FOREVAAAAAAAAH! #
  919. # #
  920. ####################################
  921. # ################## #
  922. ####################################
  923. # #
  924. ###### expect broken shit ######## # especially now using fish 3.
  925. # #
  926. ####################################
  927. # ################## #
  928. ####################################
  929. # #
  930. # type help. /usr/share/doc/fish/ #
  931. # #
  932. # alias foo "fapfaps -bar '~/bar'" #
  933. # #
  934. # function foobar #
  935. # bar; and fapfaps; or foo #
  936. # end #
  937. # #
  938. ####################################
  939. #function fish_greeting
  940. # status --is-login
  941. # if [ $status != 0 ]
  942. # dynmotd
  943. # end
  944. #end
  945. # simplified... too simple?
  946. # see /usr/local/bin/dynmotd
  947. ### if status --is-login; dynmotd; end
  948. ### if status --is-login; cat /etc/motd; end
  949. #where did i ever get this from... there's no dynmotd in void.
  950. # if status --is-login; dynmotd; end
  951. #fish greeting
  952. #cat /etc/motd
  953. #idea... (besides making ~/digit.org.d/
  954. function marcusaurelius_greeting_original
  955. echo " “When you wake up in the morning, tell yourself: The people I deal with today will be meddling, ungrateful, arrogant, dishonest, jealous, and surly. They are like this because they can’t tell good from evil. But I have seen the beauty of good, and the ugliness of evil, and have recognized that the wrongdoer has a nature related to my own—not of the same blood or birth, but the same mind, and possessing a share of the divine. And so none of them can hurt me. No-one can implicate me in ugliness. Nor can I feel angry at my relative, or hate them. We were born to work together like feet, hands, and eyes, like the two rows of teeth, upper and lower. To obstruct each other is unnatural. To feel anger at someone, to turn your back on them: these are obstructions.”
  956. Marcus Aurelius, Meditations, 2.1"
  957. end
  958. function marcusaurelius_greeting0
  959. set_color -b black ; set_color "9500ff"
  960. echo " “When you wake up in the morning, tell yourself:
  961. The people I deal with today will be meddling, ungrateful,
  962. arrogant, dishonest, jealous, and surly. They are like this
  963. because they can’t tell good from evil. But I have seen the
  964. beauty of good, and the ugliness of evil, and have recognized
  965. that the wrongdoer has a nature related to my own—not of the
  966. same blood or birth, but the same mind, and possessing a share
  967. of the divine. And so none of them can hurt me. No-one can
  968. implicate me in ugliness. Nor can I feel angry at my relative,
  969. or hate them. We were born to work together like feet, hands,
  970. and eyes, like the two rows of teeth, upper and lower.
  971. To obstruct each other is unnatural. To feel anger at someone,
  972. to turn your back on them: these are obstructions.”
  973. Marcus Aurelius, Meditations, 2.1"
  974. end
  975. function marcusaurelius_greeting1
  976. #set_color -b black
  977. #set_color "9500ff"
  978. set_color "2b92be"
  979. echo " “When you wake up in the morning, tell yourself:
  980. The people I deal with today will be meddling, ungrateful,
  981. arrogant, dishonest, jealous, and surly. They are like this
  982. because they can’t tell good from evil. But I have seen the
  983. beauty of good, and the ugliness of evil, and have recognized
  984. that the wrongdoer has a nature related to my own—not of the
  985. same blood or birth, but the same mind, and possessing a share
  986. of the divine. And so none of them can hurt me. No-one can
  987. implicate me in ugliness. Nor can I feel angry at my relative,
  988. or hate them. We were born to work together like feet, hands,
  989. and eyes, like the two rows of teeth, upper and lower.
  990. To obstruct each other is unnatural. To feel anger at someone,
  991. to turn your back on them: these are obstructions.”
  992. -- Marcus Aurelius, Meditations, 2.1"
  993. end
  994. #1234567890123456789012345678901234567890123456789012345678901234567890123456789
  995. #reiki
  996. function reikireminder-original
  997. #function reikireminder
  998. echo "Just for today, I will not anger."
  999. echo "Just for today, I will not worry."
  1000. echo "Just for today, I will be grateful for all my blessings."
  1001. echo "Just for today, I will be kind to all beings."
  1002. echo "Just for today, I will be honest in all my dealings."
  1003. end
  1004. function reikireminder-remake #for 80 char width ~ left aligned.
  1005. #function reikireminder
  1006. # echo "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
  1007. echo "Just for today, I will not anger. "
  1008. echo "Just for today, I will not worry. "
  1009. echo "Just for today, I will be grateful for all my blessings. "
  1010. echo "Just for today, I will be kind to all beings. "
  1011. echo "Just for today, I will be honest in all my dealings. "
  1012. end
  1013. #function reikireminder-remake-centered #for 80 char width ~ center aligned
  1014. function reikireminder
  1015. # #1234567890123456789012345678901234567890
  1016. echo " Just for today, I will not anger. "
  1017. echo " Just for today, I will not worry. "
  1018. echo " Just for today, I will be grateful for all my blessings. "
  1019. echo " Just for today, I will be kind to all beings. "
  1020. echo " Just for today, I will be honest in all my dealings. "
  1021. end
  1022. #fish greeting fo rlz (test disabling reikireminder,
  1023. #function fish_greeting
  1024. #function morning_greeting
  1025. function hefty_greeting
  1026. sleep 1
  1027. marcusaurelius_greeting1
  1028. set_color -b ff8800 ; set_color "9500ff" ; reikireminder ; set_color -b black ; echo
  1029. #set_color -b ffdd00 ; reikireminder # :) it works. :) lol.
  1030. #reikireminder | lolcat -F 0.4 # presumably this was what was causing the lags and loads on starting new terminals so often.
  1031. #snarfsnarfnyukyuk, lets have our fish_greeting have hal9000 go "hello dave"
  1032. # ... no, yeah, ok, disabled, at least until i learn how to background it, and not have it hang while. ... and i'll make it an audio file for mpv or aplay or something to play, rather than flite, which currently fights for audio driver, and thus does not work if something else is already playing.
  1033. # hellodave
  1034. #and why not? :) mend! :) mend stonks. :)
  1035. #mend
  1036. #mend
  1037. #set_color -b "381957" ; mend #-~ nope... hrm, cos mend's setting it itself...
  1038. # set_color -b "955776" #nice
  1039. set_color -b black
  1040. mend
  1041. set_color -b "955776" #nice
  1042. #and beyond that mend, i've just made...
  1043. # set_color bryellow ; echo " _ _" ; set_color brgreen ; echo " _ __ ___ _ _ __| |_ __ ____ _ _ _ __| |___" ; set_color cyan ; echo "| ' \/ -_) ' \/ _` \ V V / _` | '_/ _` (_-<" ; set_color blue ; echo "|_|_|_\___|_||_\__,_|\_/\_/\__,_|_| \__,_/__/"
  1044. #alternatively
  1045. set_color bryellow ; echo " _ _" ; set_color brred ; echo " _ __ ___ _ _ __| |_ __ ____ _ _ _ __| |___" ; set_color magenta ; echo "| ' \/ -_) ' \/ _` \ V V / _` | '_/ _` (_-<" ; set_color blue ; echo "|_|_|_\___|_||_\__,_|\_/\_/\__,_|_| \__,_/__/"
  1046. #or the original two versions i had when originally "just made..."^before i snuck those two in^
  1047. # set_color ffdd00 ; echo " _ _" ; set_color ff8800 ; echo " _ __ ___ _ _ __| |_ __ ____ _ _ _ __| |___" ; set_color dd5588 ; echo "| ' \/ -_) ' \/ _` \ V V / _` | '_/ _` (_-<" ; set_color 997788 ; echo "|_|_|_\___|_||_\__,_|\_/\_/\__,_|_| \__,_/__/"
  1048. #the prior alternative version of it^ set_color fffeee ; echo " _ _" ; set_color ffdd33 ; echo " _ __ ___ _ _ __| |_ __ ____ _ _ _ __| |___" ; set_color ff8822 ; echo "| ' \/ -_) ' \/ _` \ V V / _` | '_/ _` (_-<" ; set_color ee3333 ; echo "|_|_|_\___|_||_\__,_|\_/\_/\__,_|_| \__,_/__/"
  1049. #clear #why (maybe fine with an "if login")
  1050. #cat /etc/motd #noh
  1051. #thanks krobelus
  1052. #yeah, but it's annoying when wanting to see scrollback and switching to fish. disabling. just make the keybind ok.
  1053. # string repeat -n (math "$LINES - 2") \n #bind to ctrl+shift+l
  1054. # and sorry not sorry, lets have this too! lol. :)
  1055. #tail -n 14 /home/digit/isthisnotareasonableplacetopark | lolcat
  1056. #tail -n 14 /home/digit/isthisnotareasonableplacetopark # | lolcat
  1057. #set_color -b 8800ff ; tail -n 14 /home/digit/isthisnotareasonableplacetopark | lolcat
  1058. # set_color -b "571995" ; tail -n 14 /home/digit/isthisnotareasonableplacetopark | lolcat #nice
  1059. set_color -b "571995" ; tail -n 14 /home/digit/isthisnotareasonableplacetopark # removed the lolcat, because it was just adding load and lag.
  1060. #set_color -b 9900ff ; tail -n 14 /home/digit/isthisnotareasonableplacetopark # | lolcat
  1061. set_color -b black
  1062. echo
  1063. #plain
  1064. # bedrock-ascii
  1065. #stonks
  1066. bedrock-ascii-shadey
  1067. #lolcat
  1068. # bedrock-ascii | lolcat -v 3 -h 0.8 -r
  1069. echo " Bedrock Linux"
  1070. echo
  1071. # neofetch
  1072. #neofetches
  1073. end
  1074. function day_greeting
  1075. bedrock-ascii-shadey
  1076. # bedrock_ascii
  1077. end
  1078. # adding all these sleeps to see if that reduces the load spikes.
  1079. function morning_greeting
  1080. # marcusaurelius_greeting
  1081. # echo morning
  1082. # fish_greeting
  1083. sleep 1
  1084. hefty_greeting
  1085. sleep 1
  1086. touch ~/(date +"%A")
  1087. sleep 1
  1088. # rmyesterdays
  1089. rmyesterday
  1090. sleep 1
  1091. end
  1092. function rmyesterday
  1093. sleep 1
  1094. if test -f ~/Monday
  1095. if test -f ~/Sunday
  1096. rm ~/Sunday
  1097. end
  1098. end
  1099. if test -f ~/Tuesday
  1100. if test -f ~/Monday
  1101. rm ~/Monday
  1102. end
  1103. end
  1104. if test -f ~/Wednesday
  1105. if test -f ~/Tuesday
  1106. rm ~/Tuesday
  1107. end
  1108. end
  1109. if test -f ~/Thursday
  1110. if test -f ~/Wednesday
  1111. rm ~/Wednesday
  1112. end
  1113. end
  1114. if test -f ~/Friday
  1115. if test -f ~/Thursday
  1116. rm ~/Thursday
  1117. end
  1118. end
  1119. if test -f ~/Saturday
  1120. if test -f ~/Friday
  1121. rm ~/Friday
  1122. end
  1123. end
  1124. if test -f ~/Sunday
  1125. if test -f ~/Saturday
  1126. rm ~/Saturday
  1127. end
  1128. end
  1129. sleep 1
  1130. end
  1131. function rmyesterdays
  1132. if test -f ~/Monday
  1133. rm ~/Sunday
  1134. rm ~/Saturday
  1135. rm ~/Friday
  1136. rm ~/Thursday
  1137. rm ~/Wednesday
  1138. rm ~/Tuesday
  1139. end
  1140. if test -f ~/Tuesday
  1141. rm ~/Monday
  1142. rm ~/Sunday
  1143. rm ~/Saturday
  1144. rm ~/Friday
  1145. rm ~/Thursday
  1146. rm ~/Wednesday
  1147. end
  1148. if test -f ~/Wednesday
  1149. rm ~/Tuesday
  1150. rm ~/Monday
  1151. rm ~/Sunday
  1152. rm ~/Saturday
  1153. rm ~/Friday
  1154. rm ~/Thursday
  1155. end
  1156. if test -f ~/Thursday
  1157. rm ~/Wednesday
  1158. rm ~/Tuesday
  1159. rm ~/Monday
  1160. rm ~/Sunday
  1161. rm ~/Saturday
  1162. rm ~/Friday
  1163. end
  1164. if test -f ~/Friday
  1165. rm ~/Thursday
  1166. rm ~/Wednesday
  1167. rm ~/Tuesday
  1168. rm ~/Monday
  1169. rm ~/Sunday
  1170. rm ~/Saturday
  1171. end
  1172. if test -f ~/Saturday
  1173. rm ~/Friday
  1174. rm ~/Thursday
  1175. rm ~/Wednesday
  1176. rm ~/Tuesday
  1177. rm ~/Monday
  1178. rm ~/Sunday
  1179. end
  1180. if test -f ~/Sunday
  1181. rm ~/Saturday
  1182. rm ~/Friday
  1183. rm ~/Thursday
  1184. rm ~/Wednesday
  1185. rm ~/Tuesday
  1186. rm ~/Monday
  1187. end
  1188. end
  1189. #an alternative fish_greeting for when that bloater's bloating still.
  1190. #function fish_greeting
  1191. function okaytogo
  1192. echo " okay to go"
  1193. end
  1194. function weather
  1195. curl wttr.in/"kirkwall"
  1196. end
  1197. function moreweather
  1198. date
  1199. curl wttr.in/"kirkwall"
  1200. date
  1201. sleep 8h
  1202. date
  1203. moreweather
  1204. end
  1205. #if terminal 125 characters wide, if terminal 48 lines tall; do weather #curl wttr.in/"kirkwall"
  1206. function weatherif
  1207. # if test (tput lines) -gt 46
  1208. if test (tput cols) -gt 124
  1209. weather
  1210. end
  1211. # end
  1212. end
  1213. # THE REAL ONE :D :D :D :D for the stonks. ;p
  1214. function fish_greeting
  1215. # weatherif
  1216. themerock ### is good n simple and in theme
  1217. #time bedrockascii-shadey ### is good n simple
  1218. #ambergris ### just the yummy colours, no fat.
  1219. #ambergrisquids ### just the yummy colours, no fat.
  1220. ambergrisquidies ### haz kernel and bedrock version
  1221. # kaytogo ### testing
  1222. # ambergristle ### yummy colours plus fat.
  1223. # brllistline ### a glimpse of strata
  1224. end
  1225. # :) a fish_greeting which differs after first run of day.
  1226. function not_fish_greeting # to toggle off this bloater until i figure out how to unbloat its load spikes.
  1227. #function fish_greeting #last chance before skipping this, if it still gets bloaty load (over 30 load!)
  1228. sleep 1
  1229. if test -f ~/(date +"%A")
  1230. sleep 1
  1231. day_greeting
  1232. else
  1233. sleep 1
  1234. morning_greeting
  1235. end
  1236. end
  1237. # have just thought there may be a better way to do this. ^
  1238. # could...
  1239. # use a variable
  1240. # rather than a file.
  1241. # so then it doesnt need check the [slow!] hd.
  1242. # and the witches hat i just added to greeting,
  1243. function witcheshatpark
  1244. tail -n 14 isthisnotareasonableplacetopark | lolcat
  1245. end
  1246. ## and here, it needs a couple extra \ to escape the penultimate two lines' penultimate "s (see the double quotes on the ends of the rim...
  1247. #function witcheshat
  1248. # echo "
  1249. # _;*(=lll>*^-
  1250. # ;{KRRRRQqkeyuoAG2X2>,
  1251. # *GRRRRR$!` ``
  1252. # `yRRNNRRQ,
  1253. # `XRRNMNRQH
  1254. # xRRNNBNRRQ\
  1255. # ,RRRNNBNNRQQl
  1256. # sRRRNNBNNRRQg*
  1257. # GgQRRNNNNRRQg2:_
  1258. # ,^\toGRNNNNB@@NNNNNRRRQP1r\".
  1259. #:\zoGQRRRRRRNNNNNBMROPS%yyF2oyuuuuv*\"`
  1260. # `,:^!*\\\\r*!;:.
  1261. #"
  1262. #end
  1263. ## nope, not even with the backslashes. too many others to comment out too.
  1264. ## ~/.config/fish/config.fish (line 508): $! is not a valid variable in fish.
  1265. # *GRRRRR$!` ``
  1266. # ^
  1267. #from sourcing file ~/.config/fish/config.fish
  1268. # called during startup
  1269. #source: Error while reading file “/home/digit/.config/fish/config.fish”
  1270. ## and now i remember why i parked that ascii in its own file. XD
  1271. ####################################### #######################################
  1272. ################################################################################
  1273. #######bedrock 2020 section... ######## ##
  1274. # move me to my own sensible location # #
  1275. # somewhere nice with ascii art ####### ##
  1276. #moveme mendme bedrock
  1277. #function srsly
  1278. # echo "mendme"
  1279. # sudo strat -r "$arg1" "$argv"
  1280. #end
  1281. alias srsly "sudo strat -r"
  1282. ####################################
  1283. ############ weathery ############
  1284. ####################################
  1285. alias weather curlwttr
  1286. function curlwttr
  1287. curl wttr.in/kirkwall
  1288. end
  1289. function lance
  1290. # cat /home/digit/huj3/DigitsStuff/digitswritings/ascii/lance
  1291. cat /home/digit/ascii/lance
  1292. end
  1293. ###########################################################
  1294. ################# the st cheating section #################
  1295. ###########################################################
  1296. #for cursor keys n del n things, like when mpv decided cursor keys were impossible key combinations. ~ even tho i "mended" this already in another couple places, i'm sure this wont hurt to include. ... kinda.
  1297. switch $TERM
  1298. case 'st-*' # suckless' simple terminal
  1299. # Enable keypad, do it once before fish_postexec ever fires
  1300. tput smkx
  1301. function st_smkx --on-event fish_postexec
  1302. tput smkx
  1303. end
  1304. function st_rmkx --on-event fish_preexec
  1305. tput rmkx
  1306. end
  1307. end #and yes, menddel2's got that already too bellow. maybe this is a better way to do it. should mend more than del, and cover more edge cases. leaving it in again though.
  1308. #totally cheating for st:
  1309. # https://git.suckless.org/st/file/FAQ.html
  1310. # restores del
  1311. printf '\033[?1h\033=' >/dev/tty
  1312. # or
  1313. #tput smkx
  1314. #wrapped these in a function to call.
  1315. function menddel
  1316. printf '\033[?1h\033=' >/dev/tty
  1317. end
  1318. function menddel2
  1319. tput smkx
  1320. end
  1321. ###########################################################
  1322. ################# end st cheating section #################
  1323. ###########################################################
  1324. ###########################################################
  1325. ################# the mushroom section ##################
  1326. ###########################################################
  1327. function ok
  1328. clear
  1329. lance
  1330. bedrockascii
  1331. echo
  1332. end
  1333. function asciisemilanceatapsilocybe0
  1334. echo "
  1335. n
  1336. / `\\
  1337. (___:)
  1338. """"
  1339. ||
  1340. ||
  1341. ))
  1342. //
  1343. ((
  1344. \\
  1345. ))
  1346. ||
  1347. "
  1348. end
  1349. function asciisemilanceatapsilocybe
  1350. echo "
  1351. n
  1352. / `\\
  1353. (___:)
  1354. """"
  1355. ||
  1356. ||
  1357. ||
  1358. "
  1359. end
  1360. function lance0
  1361. echo "
  1362. ,.
  1363. J;`.
  1364. iyi.`.
  1365. j?7;. :
  1366. fclu:.` :
  1367. dE2Xvi;. `.
  1368. JGL56bhx;.';
  1369. 4KPY^f:l"`-;
  1370. """l:;-""
  1371. `; \
  1372. itz .' ;
  1373. /'.'
  1374. f .'
  1375. `. \
  1376. `-'
  1377. "
  1378. end
  1379. ###########################################################
  1380. ################# end mushroom section ##################
  1381. ###########################################################
  1382. #######################################################
  1383. ################# the fish section ##################
  1384. #######################################################
  1385. # fish section ? lol
  1386. alias stalefish "source ~/.config/fish/config.fish"
  1387. #alias freshfish "source ~/.fishrc"
  1388. alias fishfarm "ln -s ~/.config/fish/config.fish ~/.fish"
  1389. alias freshfish "source ~/.fish"
  1390. #######################################################
  1391. ################# end fish section ##################
  1392. #######################################################
  1393. #is this right to put this here like this?
  1394. #export EDITOR="emacs -nw"
  1395. #NO. XD that messes up select-editor, /etc/environment, set -xU EDITOR yi, and other methods. good grief that was painful.
  1396. #set -xU EDITOR yi
  1397. #^ proper way, issue that on command line, not here in fish config. :)
  1398. #update:
  1399. # except ... idk why, but my crontab -e is back to using emacs -nw... wat... where... how!? not here.
  1400. #so i'm setting this here like a cheat again since the other methods are STILL not sticking. whyyyyy
  1401. set -e EDITOR #remove
  1402. set -xU EDITOR yi
  1403. #and if that doesnt work, try
  1404. #export EDITOR="yi"
  1405. function fish_prompt
  1406. #idea20220727: include (*hostname)
  1407. #idea20211014: include a (brl which)
  1408. #... that's funny, y'know, because,
  1409. #idea20240223: include a brl list
  1410. echo ""(set_color green)""(date +%Y%m%d)""(set_color brwhite)" "(hostname)""(set_color bryellow)" "(brl which)""(set_color cyan)" $PWD "(set_color FF0)"% "
  1411. #echo ""(set_color green)""(date +%Y%m%d)""(set_color brmagenta)" "(hostname)" "(set_color bryellow)" "(brl which)""(set_color cyan)" $PWD "(set_color FF0)"% "
  1412. #echo ""(set_color green)""(date +%Y%m%d)""(set_color cyan)" $PWD "(set_color FF0)"% "
  1413. end
  1414. ########################
  1415. ########################
  1416. ####### aliases ########
  1417. function matt
  1418. echo
  1419. echo "https://www.youtube.com/watch?v=uk3A41U0iO4"
  1420. echo
  1421. end
  1422. function adereth
  1423. mpv "https://www.youtube.com/watch?v=uk3A41U0iO4"
  1424. end
  1425. #see digitclock alias & tarklessclock
  1426. #function digitclock
  1427. #dclock -bg black -fg orange -led_off "#1f001f" -noutc -fn nztt -noblink -fade -fadeRate 200 -dateup -miltime -nobell
  1428. #end
  1429. function tarklessclock
  1430. dclock -bg "#332414" -fg "#FCAF3E" -led_off "#4D3319" -noutc -fn nztt -noblink -fade -fadeRate 200 -dateup -miltime -nobell -thickness "0.08"
  1431. end
  1432. alias digitclock tarklessclock
  1433. #see digitclockround alias & tarklessclockround
  1434. #function digitclockround
  1435. #oclock -bg black -fg goldenrod -bd "#421257"
  1436. #end
  1437. function tarklessclockround
  1438. oclock -bg "#332414" -fg "#FCAF3E" -bd "#4D3319"
  1439. end
  1440. alias digitclockround tarklessclockround
  1441. function digiteyes
  1442. xeyes -fg "#332414" -outline "#493319" -center "#6B5036"
  1443. end
  1444. alias tarkeyes digiteyes
  1445. function digitwmsun
  1446. wmsun -lat 58.81 -lon 2.81
  1447. end
  1448. ##################################
  1449. ####### mounts n locations #######
  1450. alias ovh "ssh digit@ovhtoo"
  1451. #alias ovhprox "ssh -C2qTnN -D 8080 digit@ovhtoo -M -S /tmp/digit@ovhtoo:22"
  1452. #alias ovhprox "ssh -C2qTnN -D 8080 digit@ks392457.kimsufi.com -M -S /tmp/digit@ovhtoo:22"
  1453. alias ovhprox "ssh -C2qTnN -D 8080 digit@ovhtoo -M -S /tmp/digit@ovhtoo:22"
  1454. alias ovhtorrents "sshfs ovhtoo:/home/digit/torrents/ /media/x3/torrents/otorrents/"
  1455. alias orprox "ssh -C2qTnN -D 8080 198.100.144.49 -M -S /tmp/digit@orsufi:22"
  1456. alias ortorrents "sshfs orsufi:/home/digit/rtorrent/ /home/digit/torrents/ortorrents/"
  1457. alias othertorrents "sshfs orsufi:/home/digit/rtorrent/ /home/digit/torrents/othertorrents/"
  1458. #commented out, because some day, i'm gonna want b for something bedrocky.
  1459. #alias b "bash"
  1460. #wat... this isnt how this works... just returns "usage: flite_time HH:MM"
  1461. #alias fime "flite_time `date +%H:%M`"
  1462. #did i mean...
  1463. #alias fime "flite_time (date +%H:%M)"
  1464. #or something?
  1465. #that would work if it were not trying to open the wrong/"default" audio device.
  1466. #so, instead, lets just make our own... manually, simpler:
  1467. function fime
  1468. # flite -t "the time is now"
  1469. flite -t (date +%H:%M)
  1470. end
  1471. function fliter
  1472. echo "processing ~/flitings to make ~/flitings.wav"
  1473. flite -voice slt -f ~/flitings -o ~/flitings.wav
  1474. echo "playing ~/flitings.wav in mpv"
  1475. mpv ~/flitings.wav
  1476. echo "done."
  1477. echo "please paste more text over the contents of ~/flitings and re-run this fliter function for next time you want an article read to you"
  1478. end
  1479. #fish dont want me have &&, but me will, one day.
  1480. #alias "&&" "; and"
  1481. ########################
  1482. #### extracts things ###
  1483. # easy extract
  1484. #function extract
  1485. # if [ -f $1 ] ; then
  1486. # case $1 in
  1487. # *.tar.bz2) tar xvjf $1 ;;
  1488. # *.tar.gz) tar xvzf $1 ;;
  1489. # *.bz) bunzip2 $1 ;;
  1490. # *.bz2) bunzip2 $1 ;;
  1491. # *.rar) rar x $1 ;;
  1492. # *.gz) gunzip $1 ;;
  1493. # *.tar) tar xvf $1 ;;
  1494. # *.tbz2) tar xvjf $1 ;;
  1495. # *.tgz) tar xvzf $1 ;;
  1496. # *.zip) unzip $1 ;;
  1497. # *.Z) uncompress $1 ;;
  1498. # *.7z) 7z x $1 ;;
  1499. # *.xz) tar xvf $1 ;;
  1500. # *) echo "don't know how to extract #'$1'..." ;;
  1501. # esac
  1502. # else
  1503. # echo "'$1' is not a valid file!"
  1504. # fi
  1505. #end
  1506. # type seering
  1507. function digit
  1508. echo "that's your name you ninnie."
  1509. end
  1510. #sorter. to do all those little tasks i keep having to do because i've not put them in startup files for one reason or another.
  1511. function sorter
  1512. echo "=== background ==="
  1513. #feh --bg-scale /home/digit/images/morse.png
  1514. #feh --bg-scale ~/images/dsktpbckgrnds/smplbak2i-2hue1a.png
  1515. feh --bg-scale ~/images/dsktpbckgrnds/smplbak2i-2hue1a-small.png
  1516. #feh --bg-scale ~/images/avatars/freedompoliticalcompass-dropfrominfinitysfe.png
  1517. echo "=== mountings ==="
  1518. echo "sudo mount /dev/sdc1 /home/digit/sdc1"
  1519. sudo mount /dev/sdc1 /home/digit/sdc1
  1520. echo "sshfs ks392457.kimsufi.com:/home/digit/ ~/o3"
  1521. sshfs ks392457.kimsufi.com:/home/digit/ ~/o3
  1522. ##### 2020 notes, in bedrock now again,
  1523. ##### sdb9=huj3 sde1=huj4 sdf1=bb3
  1524. ##### (and huj5 = symlink to huj3 (active) and huj4's hujscue (inactive))
  1525. ##### check sorter mountings code yet?
  1526. df -h
  1527. sleep 1
  1528. #echo "this went wrong, somehow the sda disapeared, and sdb became sda."
  1529. #echo "this is why to use uuid! :D"
  1530. #echo "#echo \"sudo mount /dev/sdb8 /media/sdb8\""
  1531. #echo "#sudo mount /dev/sdb8 /media/sdb8"
  1532. #echo "so instead, lets try that again (albeit still calling it sdb8 for legacy links)"
  1533. #echo "sudo mount -U 4720a175-d3fe-495c-bba1-c7254a8f7920 /media/sdb8"
  1534. #sudo mount -U 4720a175-d3fe-495c-bba1-c7254a8f7920 /media/sdb8
  1535. #echo
  1536. #sleep 1
  1537. #echo "REMINDER: change the rest to UUID-based mounting too if not already."
  1538. #sleep 1
  1539. #echo "REMINDER: ... & delete the crufty comments in sorter."
  1540. #echo
  1541. #sleep 1
  1542. #### i really should switch these to use uuid, ffs. or labels or names.
  1543. #huj now changed to hujscue, huj is dying.
  1544. #echo sudo mount /dev/sda1 ~/huj
  1545. #sudo mount /dev/sda1 ~/huj
  1546. #echo "sudo mount /dev/sdb15 ~/hujscue"
  1547. #sudo mount /dev/sdb15 ~/hujscue
  1548. #hujscue was crampt. need to find how to safely expand them into one., since they now occupy contiguous space by quirk of chance.
  1549. #echo "sudo mount /dev/sde1 ~/huj4"
  1550. #sudo mount /dev/sde1 ~/huj4
  1551. #cos huj4's the new hujscue, isnt it.
  1552. #but you do it with uuid later. :)
  1553. #meep. gotta get this all shifted to huj5 at some point. or better yet... TO HUJ!!! (huj, i was just shouting) to huj, so that it's rolling consistent and i dont hit upon these snags anymore when traversing to new hd ever again. :3
  1554. ###echo "sudo mount /dev/sdb9 ~/huj3"
  1555. #echo "sudo mount -U 14fd2cbb-2fad-46cb-b853-1b74394cb68d ~/huj3"
  1556. #echo "was gonna be sudo mount /dev/sdb9 ~/huj3"
  1557. #echo "sudo mount /dev/sdb9 ~/huj5"
  1558. ###sudo mount /dev/sdb9 ~/huj3
  1559. #sudo mount -U 14fd2cbb-2fad-46cb-b853-1b74394cb68d ~/huj3
  1560. #sudo mount /dev/sdb9 ~/huj5
  1561. #and you'll want your swap drive turned on, surely...
  1562. #sudo swapon /dev/sdb3
  1563. #and you'll want to change where that is some day.
  1564. #echo "sudo swapon -U 82eb4bed-1adc-42ec-9e53-5d87085988d7"
  1565. #sudo swapon -U 82eb4bed-1adc-42ec-9e53-5d87085988d7
  1566. #sleep 1
  1567. #bb3 sometimes sdd1, sometimes sde1, need to do by uuid.
  1568. #echo sudo mount /dev/sde1 ~/bb3
  1569. #sudo mount /dev/sde1 ~/bb3
  1570. #echo "sudo mount -U da62bed0-6d78-44ef-baea-6a29bc84e4b2 ~/bb3 #sde1 or sdd1"
  1571. #sudo mount -U da62bed0-6d78-44ef-baea-6a29bc84e4b2 ~/bb3 #sde1 or sdd1
  1572. #sleep 1
  1573. #echo "sudo mount -U 6aafce0b-0611-47cb-ad5b-4d15ffc0da36 ~/huj4"
  1574. #sudo mount -U 6aafce0b-0611-47cb-ad5b-4d15ffc0da36 ~/huj4 #sdh1 that first time with 2 pendrives in at same time... not that this matters much at all. using uuid. :3 just nice to know.
  1575. #sleep 4
  1576. echo "wait for it"
  1577. sleep 3
  1578. df -h
  1579. echo "=== mountings done ==="
  1580. echo "=== (actually doing) X windows settings ==="
  1581. echo "setxkbmap gb"
  1582. setxkbmap gb
  1583. echo "disabling touchpad with synclient TouchpadOff=1"
  1584. synclient TouchpadOff=1
  1585. #function killscreensaver
  1586. # xset s off ; xset -dpms
  1587. #end
  1588. echo "xset s off"
  1589. xset s off
  1590. echo "xset s noblank"
  1591. xset s noblank
  1592. echo "xset -dpms"
  1593. xset -dpms
  1594. #######
  1595. #sleep 1
  1596. #echo "and a biggie... should maybe be done nearer fist..."
  1597. #echo "xrandr --output DVI-I-1 --primary --mode 2560x1600 --pos 1200x0 --rotate left --output HDMI-1 --mode 1920x1200 --pos 0x0 --rotate left --output DP-1 --off"
  1598. #xrandr --output DVI-I-1 --primary --mode 2560x1600 --pos 1200x0 --rotate left --output HDMI-1 --mode 1920x1200 --pos 0x0 --rotate left --output DP-1 --off
  1599. #######
  1600. echo "and just give it a few seconds to settle..."
  1601. sleep 1
  1602. echo -n " . "
  1603. sleep 1
  1604. echo -n " . "
  1605. sleep 1
  1606. echo -n " . "
  1607. sleep 1
  1608. echo -n " . "
  1609. sleep 1
  1610. echo ""
  1611. #echo "=== (!!! SKIPPING) X windows settings ==="
  1612. #echo "skipping xrdb -load ~/.Xresources"
  1613. xrdb -load ~/.Xresources
  1614. #xrandr --dpi 120
  1615. #echo xrandr --dpi 96
  1616. #xrandr --dpi 96
  1617. #echo "skipping xrandr --dpi 100 # because it hangs"
  1618. #xrandr --dpi 100
  1619. #echo "skipping xset -dpms"
  1620. #xset -dpms
  1621. #echo "skipping xmobar"
  1622. #xmobar &
  1623. #idk about adding an xmonad recompile. esp /after/ xmobar, which i dont have it start... idk if wise.
  1624. #cd ~/.xmonad ;and xmonad --recompile
  1625. #
  1626. #echo "=== (!!!) X windows settings (SKIPPED (due to freezes needing debugged)) ==="
  1627. #echo
  1628. #feh --bg-scale /home/digit/huj3/DigitsStuff/images/dsktpbkgrnds/smplbak2ii-Digitsbelgianblueblondbullbackground-exp001-doublevert.jpg
  1629. #echo "feh --bg-scale /home/digit/huj3/DigitsStuff/images/dsktpbkgrnds/smplbak2ii-Digitsbelgianblueblondbullbackground-exp001-doublevert.jpg"
  1630. #echo "dev notes - still to add more to sorter."
  1631. #echo "dev notes - still much to retest n mend."
  1632. #echo "dev notes - check the skippings to restore^"
  1633. #echo "dev notes - still to add IF statements to prevent trying redo whats already done, and so on."
  1634. #echo "add a xrdb load and a separate xrdb merge for a colours-only config (so can pick between tark and other, without doing all the other things in there.)"
  1635. #still more to add
  1636. ###
  1637. # find a way to add digitclock and digitclockround and digitwmsun
  1638. end
  1639. function alien
  1640. echo "it greeted me with the most elaborate gesture, then another, and another, incrementally getting simpler and simpler, until it all but waved, and i was snapped out of my dumbfoundedness, all i could do was wave back."
  1641. end
  1642. #reminder remember fold for sent. ;)
  1643. ####################################
  1644. ############## medias ##############
  1645. ####################################
  1646. # #
  1647. ####################################
  1648. ####################################
  1649. # ##### ############ ##### #
  1650. ##### ######## #####
  1651. #### ###### ####
  1652. ### #### ###
  1653. ### #### ###
  1654. ## # # ## # # ##
  1655. ## ## ##
  1656. ## # # ## # # ##
  1657. ### #### ###
  1658. ### #### ###
  1659. #### ###### ####
  1660. ##### ######## #####
  1661. ####### ############ #######
  1662. ####################################
  1663. ####################################
  1664. #mediastuff media atuff
  1665. #gonna tidy these more... like have
  1666. # 1. a yt housekeeping section,
  1667. # 2. a specific-topics section of
  1668. # 2a. specific-topic sub-sections (like for wim hof)
  1669. # 2b. specific-topic sub-sections (like for ... etc)
  1670. # 3. ...
  1671. #youtubehousekeeping ythousekeeping yt housekeeping ytdl house-keeping
  1672. alias ytdllf "youtube-dl --list-formats"
  1673. alias lf ytdllf
  1674. alias ywat ytdllf
  1675. alias ytwat ytdllf
  1676. ## 2b. specific-topic sub-section for curing tooth decay, repairing teeth
  1677. #healingtones for teeth/dental
  1678. alias curetoothdecay "mpv /home/digit/cinema/_healing/teeth/Cure*"
  1679. #ramiel nagel's...
  1680. #...
  1681. function ramstraight
  1682. mpv /home/digit/cinema/_Comedy/ram/
  1683. end
  1684. function ramshuffle
  1685. mpv /home/digit/cinema/_Comedy/ram/ --shuffle
  1686. end
  1687. alias ram ramshuffle
  1688. #alias ram ramstraight
  1689. ######### wim hof method ###########
  1690. #put my best hof set function/script in a hof alias here
  1691. alias hof hofmoreneatly
  1692. function hofall
  1693. hofalong ; hofrealgood ; hofalong ; hollyhof ; hof ; hoffinator ; hofholly ; hofrandom ; hofseven ; hofalong ; hoffresh ; hoflevinrhan ; hofrealgood ; hoftriple ; hoffiddy ; hofgood ; hofmore_function
  1694. end
  1695. function hofrandom
  1696. mpv ~/cinema/_healing/wimhof/*.* --shuffle
  1697. end
  1698. alias hoffresh freshhof
  1699. function freshhof
  1700. # https://www.youtube.com/watch?v=K0c_-OSxquk
  1701. # extended 1:15, 1:30, 1:45 holds.
  1702. mp18 "https://www.youtube.com/watch?v=K0c_-OSxquk"
  1703. end
  1704. function hoflevinrhan
  1705. mpv "/home/digit/cinema/_healing/wimhof/Guided Wim Hof Method Breathing-tybOi4hjZFQ.mkv" "/home/digit/cinema/_healing/wimhof/4 rounds advanced Wim Hof guided breathing + OM MANTRA-g_jAjpZz-5Y.mp4"
  1706. end
  1707. alias hofholly hollyhof
  1708. function hollyhof-old
  1709. # mpv ~/Videos/hollyhof.mkv
  1710. mpv ~/Videos/hollyhof.mp4
  1711. mp18 "https://youtu.be/GoSMm2OHnsk"
  1712. mpv /home/digit/cinema/_healing/wimhof/Wellness_Guru_Wim_Hof_Leads_Phillip_Holly_in_Breathing_Masterclass_This_Morning-GoSMm2OHnsk.mp4
  1713. end
  1714. function hollyhof-loop
  1715. # mp18 "https://youtu.be/GoSMm2OHnsk&t=427s"
  1716. #mp18 "https://youtu.be/GoSMm2OHnsk" --ab-loop-a=<00:07:00>, --ab-loop-b=<00:11:19>
  1717. # mpv --start=07:00 --ab-loop-a=07:00 --ab-loop-b=11:19 ~/Videos/hollyhof.mp4
  1718. mpv --fullscreen --panscan=1.00 --start=07:00 --ab-loop-a=07:00 --ab-loop-b=11:19 ~/Videos/hollyhof.mp4
  1719. #mpv --start=07:00 --end=11:11 ~/Videos/hollyhof.mp4 ; holyhof
  1720. end
  1721. # mpv --fullscreen --panscan=1.00 --start=07:00 --ab-loop-a=07:00 --ab-loop-b=11:19 ~/Videos/hollyhof.mp4
  1722. ### hofdev
  1723. function hoffinator #good version, checks&dl, fullscreen/panscan, loopedalias hollyhof hoffinator
  1724. if test -f ~/Videos/hollyhof.mp4
  1725. mpv --fullscreen --panscan=1.00 --start=07:00 --ab-loop-a=07:00 --ab-loop-b=11:19 ~/Videos/hollyhof.mp4
  1726. else
  1727. youtube-dl --format=18 "https://youtu.be/GoSMm2OHnsk" -o ~/Videos/hollyhof.mp4
  1728. mpv --fullscreen --panscan=1.00 --start=07:00 --ab-loop-a=07:00 --ab-loop-b=11:19 ~/Videos/hollyhof.mp4
  1729. end
  1730. end
  1731. #set your best "hollyhof" version here:
  1732. #alias hollyhof hollyhof-loop
  1733. alias hollyhof hoffinator #good version, checks&dl, fullscreen/panscan, loopedalias hollyhof
  1734. alias hollyhopdrive hollyhop
  1735. alias hoftriple triplehof
  1736. function triplehof
  1737. #holly hof once
  1738. mpv --start=07:00 --end=11:11 /home/digit/cinema/_healing/wimhof/Wellness_Guru_Wim_Hof_Leads_Phillip_Holly_in_Breathing_Masterclass_This_Morning-GoSMm2OHnsk.mp4
  1739. #russel hof once
  1740. mpv --end=57:19 --start=52:05 /home/digit/cinema/_healing/wimhof/Heal\ Yourself\ with\ The\ Ice\ Shaman\ _\ Wim\ Hof\ \&\ Russell\ Brand-JPPlicAEFec.mp4
  1741. #russel hof again once
  1742. mpv --end=56:00 --start=51:11 /home/digit/cinema/_healing/wimhof/Corona\ Survival\ Guide\ with\ Wim\ Hof\ \&\ Russell\ Brand\ _\ Full\ Length\ Podcast-YfAgSusi6t0.mp4
  1743. end
  1744. function hofrealgood
  1745. # mpv https://www.youtube.com/watch?v=JPPlicAEFec
  1746. if test -f ~/cinema/_healing/hof/hofrealgood.mp4
  1747. mpv --fullscreen --panscan=1.00 --start=51:57 --ab-loop-a=52:01 --ab-loop-b=57:19 ~/cinema/_healing/hof/hofrealgood.mp4
  1748. else
  1749. youtube-dl --format=18 " https://www.youtube.com/watch?v=JPPlicAEFec" -o ~/cinema/_healing/hof/hofrealgood.mp4
  1750. mpv --fullscreen --panscan=1.00 --start=51:57 --ab-loop-a=52:01 --ab-loop-b=57:19 ~/cinema/_healing/hof/hofrealgood.mp4
  1751. end
  1752. end
  1753. function hofgood
  1754. # mpv https://www.youtube.com/watch?v=JPPlicAEFec
  1755. if test -f ~/Videos/hofgood.mp4
  1756. mpv --fullscreen --panscan=1.00 --start=51:57 --ab-loop-a=52:01 --ab-loop-b=57:19 ~/Videos/hofgood.mp4
  1757. else
  1758. youtube-dl --format=18 "https://www.youtube.com/watch?v=JPPlicAEFec" -o ~/Videos/hofgood.mp4
  1759. mpv --fullscreen --panscan=1.00 --start=51:57 --ab-loop-a=52:01 --ab-loop-b=57:19 ~/Videos/hofgood.mp4
  1760. end
  1761. end
  1762. alias hoffiddy fiddyhof
  1763. function fiddyhof
  1764. #50 breaths. 2:30 3:00 3:30 4:00
  1765. mp18 "https://www.youtube.com/watch?v=43cUc2iGiwM"
  1766. end
  1767. alias hofseven sevenhof
  1768. function sevenhof
  1769. triplehof
  1770. fiddyhof
  1771. end
  1772. function hofalong
  1773. mpv --start=06:00 --end=25:33 /home/digit/cinema/_healing/wimhof/Breathe\ Along\ with\ Wim\ Hof\ _\ Guided\ Breathing-fLIoSNKaruA.mp4
  1774. end
  1775. function megahof
  1776. # following this, 5 rounds hofalong, 3 round triplehof, 4 rounds fiddyhof = a dozen rounds!
  1777. # stop early if u want.
  1778. # just relax. follow the breath. no straining. listen to your body. present, now.
  1779. hofalong
  1780. triplehof
  1781. fiddyhof
  1782. end
  1783. # hofmore
  1784. #function hofmore
  1785. function hofmore_function
  1786. # # # #!/usr/bin/fish
  1787. mpv --ytdl-format=18 "https://www.youtube.com/watch?v=PBBxpxNANCg" "https://www.youtube.com/watch?v=xlwC5-3iMXw" "https://www.youtube.com/watch?v=0BNejY1e9ik" "https://youtu.be/aGU-p64UOzA" "https://www.youtube.com/watch?v=tybOi4hjZFQ" "https://www.youtube.com/watch?v=OIGj6BMs6nY" "https://www.youtube.com/watch?v=OBBvha4XSXQ" "https://www.youtube.com/watch?v=DVlGufZ8N7o"
  1788. # sort this one out to just the correct start and end time, and add to ^
  1789. mpv --ytdl-format=18 "https://www.youtube.com/watch?v=fLIoSNKaruA"
  1790. # https://youtu.be/aGU-p64UOzA is that cool new one with the layered nature music by that guy guiding it. nicely done. :)
  1791. # https://www.youtube.com/watch?v=OIGj6BMs6nY nice one. good sounds. 1:30 to 3
  1792. end
  1793. #/hofmore.
  1794. #^^^######### ^ the hof section ^ #########^^^#
  1795. ###############################################
  1796. ###############################################
  1797. #^^^######### ^ workout section ^ #########^^^#
  1798. function shoulders
  1799. # mpv --fullscreen --panscan=1.00 --start=07:00 --ab-loop-a=07:00 --ab-loop-b=11:19 ~/cinema/_healing/workout/shoulders.mp4
  1800. mpv --fullscreen --panscan=1.00 --start=0:50 --ab-loop-a=00:50 --ab-loop-b=16:10 ~/cinema/_healing/workout/shoulders.mp4
  1801. end
  1802. #^^^######### ^ workout section ^ #########^^^#
  1803. ###############################################
  1804. ############## asmr ##############
  1805. function asmr
  1806. mpv --shuffle "/home/digit/cinema/_asmr/"
  1807. end
  1808. function sleepytime
  1809. mpv --start=02:25 "/home/digit/cinema/_asmr/bedtime.mkv" "/home/digit/cinema/_asmr/deepsleep.mkv"
  1810. end
  1811. alias asmrsleepytime sleepytime
  1812. function sleeper
  1813. timeout 4h mpv --playlist=/home/digit/cinema/_healing/healingtones/sleeplist
  1814. end
  1815. alias sleepnow sleeper
  1816. #^############^ asmr ^############^#
  1817. #v##########v not asmr v##########v#
  1818. # but still sleepy #
  1819. function sleepkit
  1820. mp18 --no-video "https://www.youtube.com/watch?v=lVRdLK6UDx8" "https://www.youtube.com/watch?v=wgbyID-Plqo" ;and mpv ~/cinema/_healing/healingtones/Sleep\ Fast\ _\ Sleep\ Meditation-6RAkklWOyQg.opus ;and timeout 4h mpv --shuffle --playlist ~/cinema/_healing/healingtones/sleeplist --volume=57
  1821. end
  1822. ##############################################################
  1823. ### bedtime tv
  1824. ##############################################################
  1825. ##############################################################
  1826. ### bedtime tv ~ Comedy
  1827. ##############################################################
  1828. # #!/usr/bin/fish
  1829. function bedtime
  1830. cd ~/cinema/_Comedy/
  1831. timeout 90m mpv --playlist=bedtime.playlist
  1832. #timeout 90m mpv --playlist=bedtime.playlist --shuffle
  1833. end
  1834. #bedtime
  1835. ####################################
  1836. #for audiobooks
  1837. #as suggested here: https://joindiaspora.com/posts/d7a07570f6b60137843552540039b762
  1838. alias book "mpv --save-position-on-quit"
  1839. #gimmie all the vids from a chan
  1840. #youtube-dl -f best -citw -v <url-of-channel>
  1841. alias ytcdl "ytcdl-best" #preferred
  1842. function ytcdl-best
  1843. youtube-dl -f best -citw -v $argv
  1844. end
  1845. #now i need make the 43 version, and the user (best&43) version too, lazy digit.
  1846. #function ytcdl-43
  1847. #alias ytudl
  1848. #function ytudl-best
  1849. #function ytudl-43
  1850. #what formats are available
  1851. alias yf "youtube-dl -F $argv"
  1852. #andwatch and mwatch. idea of a playlist cache file sorta thing.
  1853. function andwatch
  1854. echo $argv >> ~/cinema/watch
  1855. end
  1856. alias addwatch "andwatch"
  1857. alias aw "andwatch"
  1858. function mwatch
  1859. mpv -playlist ~/cinema/watch
  1860. end
  1861. alias morewatch "mwatch"
  1862. alias mw "mwatch"
  1863. #seems to me like there should be a remove first line. for andwatch and mwatch to work
  1864. #also... could use actual command watch, to use as prompt to play next when new are added...
  1865. #same pitch at speed
  1866. alias mpv "mpv --af=scaletempo"
  1867. #just music
  1868. # (either these methods seem to work fine)
  1869. alias mpvm "mpv --no-video $1"
  1870. #alias mpvm "mpv --no-video"
  1871. ##function mpvm #while there's need to specify stratum
  1872. ## strat -r aurtix mpv --no-video "$argv" #plays only first item
  1873. ### strat -r aurtix mpv --no-video "$0" #failed attempt to get mpvm to play multiple files.
  1874. ### strat -r aurtix mpv --no-video #failed attempt to get mpvm to play multiple files.
  1875. ##end
  1876. alias mpf "mpv --ytdl-format=$argv"
  1877. #gonna wanna make more of these and/or improve this one.
  1878. alias choons "mp18 https://youtu.be/oseASjXi1hM" # Thunderdome "Whisper of dead" Album 2020 (Early Hardcore/Gabber 90s) #fuckbags, it went private, just as i was making it an alias as my go-to choons.
  1879. #youtubers
  1880. ##sights
  1881. alias mplease "mpv --ytdl-format=160"
  1882. alias mp160 "mpv --ytdl-format=160"
  1883. ##freedom sounds
  1884. alias mpleep "mpv --ytdl-format=171"
  1885. alias mp171 "mpv --ytdl-format=171"
  1886. ##freedom sights
  1887. alias mp242 "mpv --ytdl-format=242"
  1888. alias mp278 "mpv --ytdl-format=278"
  1889. ##freedom faves
  1890. alias mp43 "mpv --ytdl-format=43"
  1891. #bandwidthsalvs
  1892. alias mp5 "mpv --ytdl-format=5"
  1893. alias mp36 "mpv --ytdl-format=36"
  1894. alias mp17 "mpv --ytdl-format=17"
  1895. #more of em
  1896. #alias mp "mpv --ytdl-format="
  1897. #tazys format choice
  1898. alias mptazy "mpv --ytdl-format=18"
  1899. alias mp18 "mpv --ytdl-format=18"
  1900. alias mp92 "mpv --ytdl-format=92"
  1901. alias mp93 "mpv --ytdl-format=93"
  1902. #alias mp18 "strat -r aurtix mpv --ytdl-format=18 $1"
  1903. function mp18f #while needing specify which stratum
  1904. ## strat -r aurtix mpv --ytdl-format=18
  1905. # strat -r aurtix mpv --ytdl-format=18 "$argv" #if i need that...? ... nope... only played first.
  1906. strat -r aurtix mpv --ytdl-format=18
  1907. end
  1908. # rumble
  1909. #alias mprumble "mpv --ytdl-format=webm-480p"
  1910. alias mprumble "mpv --ytdl-format=mp4-360p"
  1911. alias mprumblelive "mpv --ytdl-format=hls-0"
  1912. alias mprumbleliveafter "mpv --ytdl-format=hls-1200"
  1913. alias mp480 "mpv --ytdl-format=webm-480p"
  1914. alias mpwebm-480p "mpv --ytdl-format=webm-480p"
  1915. alias mprumble240p "mpv --ytdl-format=mp4-240p"
  1916. alias mprumble360p "mpv --ytdl-format=mp4-360p"
  1917. alias mprumble480p "mpv --ytdl-format=mp4-480p"
  1918. alias mprumble480p "mpv --ytdl-format=mp4-480p"
  1919. #
  1920. #master builder
  1921. alias mp22 "mpv --ytdl-format=22"
  1922. #odysee
  1923. alias mpvo "mpv --ytdl-format=hls-655"
  1924. #youtube watch things about...
  1925. #tazy format
  1926. function mps18
  1927. mpv --ytdl-format=18 ytdl://ytsearch10:"$argv"
  1928. end
  1929. #blind music search
  1930. function mpvms
  1931. mpv --no-video ytdl://ytsearch10:"$argv"
  1932. end
  1933. alias mpsm mpvms
  1934. #digit format
  1935. function mps43
  1936. mpv --ytdl-format=43 ytdl://ytsearch10:"$argv"
  1937. end
  1938. #plain search play, no specified format
  1939. function mps
  1940. mpv ytdl://ytsearch10:"$argv"
  1941. end
  1942. #search by date
  1943. #https://www.youtube.com/results?q=things
  1944. #https://www.youtube.com/results?q=things&sp=CAJQFA%253D%253D
  1945. # attempt to expedite downloading n watching of torrents
  1946. function getsome
  1947. rsync -Prav --bwlimit=700 --ignore-existing ~/torrents/progress/$argv/$argv.mkv ./$argv.mkv ;and mpv $argv.mkv
  1948. end
  1949. # prep to make getsome work.
  1950. function getready
  1951. echo "umount ~/torrents"
  1952. umount ~/torrents
  1953. echo "sshfs ovhtoo:/home/digit/torrents ~/torrents"
  1954. sshfs ovhtoo:/home/digit/torrents ~/torrents
  1955. end
  1956. #}
  1957. #`
  1958. #`
  1959. #`
  1960. #`
  1961. #############################
  1962. #####I## ## # # #
  1963. ##TV#I## ### # # ########
  1964. #####I## # # # ## # # #
  1965. ## #I## # # # # ########
  1966. #####I## ## # # #
  1967. #############################
  1968. #reminder, write "seen-ator" script to help manage frequent common youtube searches. and/or just have some use sort by upload date. :P
  1969. ### "Local T.V."
  1970. function tv
  1971. tree -if ~/cinema/ | egrep 'mkv|avi|m4a|mp4' > ~/cinema/tvplaylist
  1972. mpv -shuffle -playlist ~/cinema/tvplaylist
  1973. end
  1974. function tv-ffs
  1975. mpv -playlist (find "~/linema" -type f | psub)
  1976. end
  1977. alias tvclassic "mpv -shuffle -playlist <(find /home/digit/c -type f)"
  1978. # populate with tvplaylistupdate script
  1979. alias tv_play_shuffled_cachedlist "mpv -shuffle -playlist ~/.tvplaylist"
  1980. function tvfunction
  1981. mpv -shuffle -playlist <(find $PWD -type f)
  1982. end
  1983. function comedy
  1984. tree -if ~/cinema/_Comedy | egrep 'mkv|avi|m4a|mp4' > ~/cinema/_Comedy/comedyplaylist
  1985. mpv -shuffle -playlist ~/cinema/_Comedy/comedyplaylist
  1986. end
  1987. function rd
  1988. tree -if ~/cinema/_Comedy/reddwarf | egrep 'mkv|avi|m4a|mp4' > ~/cinema/_Comedy/reddwarfplaylist
  1989. mpv -shuffle -playlist ~/cinema/_Comedy/reddwarfplaylist
  1990. end
  1991. function rd3
  1992. tree -if ~/cinema/_Comedy/reddwarf | egrep 'mkv|avi|m4a|mp4' > ~/cinema/_Comedy/reddwarfplaylist
  1993. mpv -shuffle -playlist ~/cinema/_Comedy/reddwarfplaylist
  1994. # tried to have this one do -playlist-count=3, but it kept complaining it didnt know wtf.
  1995. end
  1996. function scifi
  1997. tree -if ~/cinema/_scifiseries | egrep 'mkv|avi|m4a|mp4' > ~/cinema/_scifiseries/scifiplaylist
  1998. mpv -shuffle -playlist ~/cinema/_scifiseries/scifiplaylist
  1999. end
  2000. alias sciencefiction "scifi"
  2001. function trek
  2002. tree -if ~/cinema/_scifiseries/st | egrep 'mkv|avi|m4a|mp4' > ~/cinema/_scifiseries/trekplaylist
  2003. mpv -shuffle -playlist ~/cinema/_scifiseries/trekplaylist
  2004. end
  2005. function docu
  2006. tree -if ~/cinema/_docu | egrep 'mkv|avi|m4a|mp4' > ~/cinema/_docu/docuplaylist
  2007. mpv -shuffle -playlist ~/cinema/_docu/docuplaylist
  2008. end
  2009. function pbs
  2010. tree -if ~/cinema/_docu/pbs | egrep 'mkv|avi|m4a|mp4' > ~/cinema/_docu/pbs/pbsplaylist
  2011. mpv -shuffle -playlist ~/cinema/_docu/pbs/pbsplaylist
  2012. end
  2013. function cannabistv1 --description 'play latest yt cannabis vids (minus crap)'
  2014. mpv "https://www.youtube.com/results?sp=CAJIAOoDAA%253D%253D&search_query=cannabis+-marijuana+-trade+-shares+-company+-invest+-investing+-stock+-ip+-%22intelectual+property%22+-ventures" --load-unsafe-playlists
  2015. end
  2016. function cannabiswalk --description 'black the ripper from the dank of england taking his plants for a walk.'
  2017. mpv "https://www.youtube.com/watch?v=iD9VI2rnc4g"
  2018. end
  2019. alias walk cannabiswalk
  2020. function pron
  2021. tree -if ~/cinema/.prawn | egrep 'mkv|avi|m4a|mp4' > ~/cinema/.prawn/pronlist
  2022. mpv -shuffle -playlist ~/cinema/.prawn/pronlist
  2023. end
  2024. #function prawn
  2025. #mpv -shuffle ~/bb3/cinema/.prawn/*
  2026. #end
  2027. alias tvhere "mpv -shuffle -playlist <(find /home/digit/c -type f)"
  2028. alias scorpion "mpv ~/c/tv/scorpion/*"
  2029. alias scorpionshuffle "mpv -shuffle ~/c/tv/scorpion/*"
  2030. #alias tv "mpv -shuffle ~/c/tv/*/*"
  2031. #thnx Zanchey from #fish on irc.oftc.net
  2032. function ztv
  2033. mpv -playlist (find $PWD -type f | psub)
  2034. end
  2035. function ztv2
  2036. mpv -playlist (find "$PWD" -type f | psub)
  2037. end
  2038. function mpvsp
  2039. find ./ -type f > playlist ;and mpv -shuffle -playlist playlist
  2040. end
  2041. #-iregex ".*\.\(flac\|mp3\|ogg\|wav\|avi\|mkv\|mp4\|ogm\|webm\)$"
  2042. #do you have a fascbook?
  2043. #fascbook(){ mp43 "https://www.youtube.com/watch?v=JotAOgXFxSs" ; facebook ; }
  2044. #facebook(){ mp43 "https://www.youtube.com/watch?v=JotAOgXFxSs" ; fascbook ; }
  2045. #formats list
  2046. #140 m4a audio only DASH audio 131k , m4a_dash container, aac @128k (44100Hz), 52.45MiB
  2047. #171 webm audio only DASH audio 149k , audio@128k (44100Hz), 45.90MiB
  2048. #141 m4a audio only DASH audio 258k , m4a_dash container, aac @256k (44100Hz), 105.30MiB
  2049. #160 mp4 254x144 DASH video 122k , 15fps, video only, 45.56MiB
  2050. #242 webm 424x240 DASH video 217k , 1fps, video only, 78.30MiB
  2051. #133 mp4 424x240 DASH video 256k , 25fps, video only, 100.82MiB
  2052. #243 webm 636x360 DASH video 418k , 1fps, video only, 145.27MiB
  2053. #134 mp4 636x360 DASH video 615k , 25fps, video only, 221.03MiB
  2054. #244 webm 848x480 DASH video 844k , 1fps, video only, 290.09MiB
  2055. #135 mp4 848x480 DASH video 1119k , 25fps, video only, 424.25MiB
  2056. #247 webm 1270x720 DASH video 1429k , 1fps, video only, 500.26MiB
  2057. #136 mp4 1270x720 DASH video 2245k , 25fps, video only, 806.59MiB
  2058. #248 webm 1906x1080 DASH video 2849k , 1fps, video only, 1.01GiB
  2059. #137 mp4 1906x1080 DASH video 4257k , 25fps, video only, 1.37GiB
  2060. #17 3gp 176x144
  2061. #36 3gp 320x240
  2062. #5 flv 400x240
  2063. #43 webm 640x360
  2064. #18 mp4 640x360
  2065. #22 mp4 1280x720 (best)
  2066. # space n stuff
  2067. function nasalive1
  2068. mp43 "https://www.youtube.com/watch?v=RtU_mdL2vBM"
  2069. end
  2070. # add these, u lazy bum.
  2071. # rt live
  2072. #ok
  2073. function rt
  2074. mpv "https://www.rt.com/on-air/"
  2075. end
  2076. #something inteligent and interesting and potentially worthy to watch from youtube
  2077. function intrigueme
  2078. mpv -shuffle --playlist /home/digit/bb3/images/webpagesaves/IntelligentYouTubeChannelsPlaylist
  2079. end
  2080. #and add this u lazy...
  2081. # dave live
  2082. # more medias
  2083. #probably could do with moving somewhere more appropriate
  2084. function moderat
  2085. mpv ~/cinema/moderatanewerror.mkv
  2086. end
  2087. function spinningplates
  2088. mpv /home/digit/bb3/musicilove/other/Radiohead-LikeSpinningPlates.mkv
  2089. end
  2090. function cbd
  2091. mpv "https://www.youtube.com/watch?v=3bZb10ZxpBk" "https://www.youtube.com/watch?v=gJoFzLjxibU"
  2092. end
  2093. function ubi
  2094. mpv --ytdl-format=43 "https://www.youtube.com/results?sp=CAI%253D&search_query=basic+income"
  2095. end
  2096. ### ####### ####### #####
  2097. ### ### ### ### ### ### ###
  2098. ### ####### ####### ###
  2099. ### ### ### ### ### ### ###
  2100. ### ####### ####### #####
  2101. ### BBC
  2102. #template
  2103. #function bbc
  2104. #mpv --ytdl-format="" "$argv"
  2105. #end
  2106. function bbc13 #tryin t get a universal een
  2107. mpv --ytdl-format="stream-uk-iptv_streaming_concrete_combined_hd_mf_bidi_uk_hls-1013" "$argv"
  2108. end
  2109. function bbc13-0 #tryin t get a universal een
  2110. mpv --ytdl-format="stream-uk-iptv_streaming_concrete_combined_hd_mf_bidi_uk_hls-1013-0" "$argv"
  2111. end
  2112. function bbc13-2021-0
  2113. mpv --ytdl-format="mf_akamai-1013-0" "$argv"
  2114. end
  2115. function bbc13-2021-1
  2116. mpv --ytdl-format="mf_akamai-1013-1" "$argv"
  2117. end
  2118. #alias bbc bbc13-0
  2119. #alias bbc bbc13
  2120. alias bbc bbc13-2021-0
  2121. # and re-do these, so can chain em... ? for in do... make playlist?
  2122. function bbc13-1 #tryin t get a universal een
  2123. mpv --ytdl-format="stream-uk-iptv_streaming_concrete_combined_hd_mf_bidi_uk_hls-1013-1" "$argv"
  2124. end
  2125. function bbc1498c
  2126. mpv --ytdl-format="iptv_streaming_1500_akamai_hls_open-1498" "$argv"
  2127. end
  2128. function bbc1640
  2129. mpv --ytdl-format="iptv_streaming_1500_akamai_hls_open-1640" "$argv"
  2130. end
  2131. function bbc1680
  2132. mpv --ytdl-format="iptv_streaming_1500_akamai_hls_open-1680" "$argv"
  2133. end
  2134. function bbc1681
  2135. mpv --ytdl-format="iptv_streaming_1500_akamai_hls_open-1681" "$argv"
  2136. end
  2137. function bbc1677
  2138. mpv --ytdl-format="iptv_streaming_1500_akamai_hls_open-1677" "$argv"
  2139. end
  2140. function bbc1497
  2141. mpv --ytdl-format="iplayer_stb_streaming_hd_akamai_hls_open-1497" "$argv"
  2142. end
  2143. function bbc1497b
  2144. mpv --ytdl-format="iptv_streaming_1500_akamai_hls_open-1497" "$argv"
  2145. end
  2146. function bbc1497c
  2147. mpv --ytdl-format="iptv_streaming_1500_akamai_hls_open-1497" "$argv"
  2148. end
  2149. function beeb1496
  2150. mpv --ytdl-format="iplayer_stb_streaming_hd_akamai_hls_open_https-1496" "$argv"
  2151. end
  2152. function bbc1496b
  2153. mpv --ytdl-format="iplayer_stb_streaming_hd_akamai_hls_open-1496" "$argv"
  2154. end
  2155. function bbc1496c
  2156. mpv --ytdl-format="iptv_streaming_1500_akamai_hls_open-1496" "$argv"
  2157. end
  2158. function bbc143
  2159. mpv --ytdl-format="stream-uk-iptv_streaming_concrete_combined_hd_mf_akamai_uk_hls-143" "$argv"
  2160. end
  2161. function bbc1496
  2162. mpv --ytdl-format="iplayer_stb_streaming_hd_akamai_hls_open-1496" "$argv"
  2163. end
  2164. function bbc796
  2165. mpv --ytdl-format="iplayer_stb_streaming_sd_akamai_hls_open-796" "$argv"
  2166. end
  2167. function bbc797
  2168. mpv --ytdl-format="iplayer_stb_streaming_sd_akamai_hls_open-797" "$argv"
  2169. end
  2170. function bbc802
  2171. mpv --ytdl-format="stream-uk-iptv_streaming_concrete_combined_hd_mf_bidi_uk_hls-802" "$argv"
  2172. end
  2173. function bbc888
  2174. mpv --ytdl-format="iplayer_stb_streaming_sd_akamai_hls_open-888" "$argv"
  2175. end
  2176. function bbc891
  2177. mpv --ytdl-format="iplayer_stb_streaming_sd_akamai_hls_open-891" "$argv"
  2178. end
  2179. #################################
  2180. ### LEARNINGS
  2181. function learnportuguese
  2182. mpv "https://www.youtube.com/watch?v=Yjq5eJn530Y" "https://www.youtube.com/watch?v=6A-_ej2ag74" "https://www.youtube.com/watch?v=t5DjVN-bBh4" "https://www.youtube.com/watch?v=qr030IcoWJQ" "https://www.youtube.com/watch?v=VRtL2GsAtkA"
  2183. end
  2184. #################################
  2185. ## ###
  2186. # # ##
  2187. # # # #
  2188. # # # # #
  2189. # # # # # #
  2190. # # # # #
  2191. # # # #
  2192. # # ##
  2193. ## ###
  2194. #################################
  2195. ### RADIO GA GA ### RADIO GOO GOO
  2196. #radio gabberdisco
  2197. function radiogabberdisco
  2198. mpv --shuffle /home/digit/cinema/auditorium/dancefloor/Gabberdisco*
  2199. end
  2200. function radiogabberdisco-online
  2201. mpv --no-video --shuffle "https://www.youtube.com/c/GabberDisco/videos"
  2202. end
  2203. function gabberdisco
  2204. #kinda redundant test anyway. if it's not there, it'll move on to next. n_n
  2205. if test -d /home/digit/cinema/auditorium/dancefloor/
  2206. mpv --shuffle /home/digit/cinema/auditorium/dancefloor/Gabberdisco*
  2207. else
  2208. mpv --no-video --shuffle "https://www.youtube.com/c/GabberDisco/videos"
  2209. end
  2210. end
  2211. #ganymede
  2212. function ganymede
  2213. mp18 "https://www.youtube.com/watch?v=tLDl9wy53gs"
  2214. end
  2215. #reiki
  2216. function reiki-chakras-nice-000
  2217. mp18 "https://youtu.be/7rIetrofueo"
  2218. end
  2219. #alias reiki "mpv --shuffle ~/cinema/healingtones/reiki"
  2220. function madireiki-000
  2221. mp18 "https://www.youtube.com/watch?v=PBBxpxNANC"
  2222. end
  2223. alias reiki000 reiki-chakras-nice
  2224. #hard house
  2225. alias radiohardhouse "mpv ~/c/radio/hhuk.ogg.m3u"
  2226. #soundscape
  2227. alias radiodrone "mpv http://somafm.com/dronezone32.pls"
  2228. #trance
  2229. #alias radiotrance "mpv ~/c/radio/thetrip.pls"
  2230. alias radiotrance "mpv http://somafm.com/thetrip.pls"
  2231. #radioraznitzantrance
  2232. alias radioraznitzantranceuploads "mpv --no-video https://www.youtube.com/user/RazNitzanMusic/videos"
  2233. alias radioraznitzantrancechan "mpv --no-video https://www.youtube.com/user/RazNitzanMusic" #idk, it lagged b4 startn, so ^
  2234. #dizzie
  2235. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2236. #[2022-07-17 19:44:19] <Digit> "Digit, that PC had a dead harddrive :( (the old stream is gone)" ... is why we cant find that hardstyle anymore.
  2237. #alias radiodizzieold "mpv http://cowtapult.net:8000/stream.ogg"
  2238. #alias radiodizzie "mpv http://fredslev.net:8000/"
  2239. #alias radiodizzieserenity "mpv http://serenity.fredslev.dk:8000/stream"
  2240. #alias radiodizzietrance "mpv http://fredslev.net:8000/"
  2241. #alias radiodizziepsy "mpv http://radio.fredslev.net:9000/psytrance"
  2242. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2243. alias radiodizziepsy "mpv http://radio.fredslev.net:8000/psytrance"
  2244. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2245. #alias radiodizzietechno "mpv http://radio.fredslev.net:9000/techno"
  2246. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2247. alias radiodizzietechno "mpv http://radio.fredslev.net:8000/techno"
  2248. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2249. #alias radiodizziehardstyle "mpv http://radio.fredslev.net:9000/hardstyle"
  2250. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2251. alias radiodizziehardstyle "mpv http://radio.fredslev.net:8000/hardstyle"
  2252. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2253. alias radiodizzieindustrial "http://radio.fredslev.net:8000/industrial"
  2254. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2255. alias radiodizziereggae "mpv http://fredslev.net:9000/reggae"
  2256. #old radiodizzie
  2257. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2258. alias radiodizzie "mpv http://fredslev.net:9000/stream"
  2259. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2260. #alias radiodizzielive "mpv http://fredslev.net:8000/"
  2261. alias radiodizzielive "mpv http://fredslev.net:8000/stream"
  2262. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2263. alias radiodizzierock "mpv http://fredslev.net:7000/stream"
  2264. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2265. alias radiodizzieserenity "mpv http://serenity.fredslev.dk:8000/stream"
  2266. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2267. #alias radiodizzietrance "mpv http://fredslev.net:9000/stream"
  2268. #alias radiodizziednb "mpv http://radio.fredslev.net:/8000/dnb"
  2269. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2270. function radiodizziednb
  2271. mpv "http://radio.fredslev.net:8000/dnb"
  2272. end
  2273. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2274. alias radiodnb "mpv http://radio.fredslev.net:8000/dnb"
  2275. #"Just keep the links to yourself, I don't have bandwith to this to be shared with all kinda of fora irc channels :)"
  2276. alias radiodizzielivednb "mpv http://awesome.fredslev.net:8000" #"livemixing dnb"
  2277. #spacestation soma
  2278. alias radiosoma "mpv https://somafm.com/spacestation.pls"
  2279. alias radiocliq "mpv http://somafm.com/cliqhop/"
  2280. alias radiodubstepbeyond "mpv http://somafm.com/dubstep256.pls"
  2281. alias radiodubstepbeyond256 "mpv http://somafm.com/dubstep256.pls"
  2282. alias radiodubstepbeyond128 "mpv http://somafm.com/dubstep.pls"
  2283. alias radiodfm "mpv http://stereo.dfm.nu/"
  2284. #elite
  2285. #alias radioelite="mpv http://listen.radionomy.com/radio-sidewinder.m3u"
  2286. alias radioelite "mpv ~/c/radio/radio-sidewinder.m3u"
  2287. # cembi muhod ######################
  2288. function cembi
  2289. # mpv "/home/digit/huj3/digitsaudio/Released/soffmi muhod/soffmi muhod - semble/*"
  2290. # mpv "/home/digit/huj3/digitsaudio/All\ In\ Progress/soffmi\ muhod/________001postcounterpart/*embi*flac" "/home/digit/huj3/digitsaudio/All In Progress/cembi muhod/*flac"
  2291. mpv /home/digit/huj3/digitsaudio/All\ In\ Progress/soffmi\ muhod/________001postcounterpart/cembimuhod*flac /home/digit/huj3/digitsaudio/All\ In\ Progress/cembi\ muhod/cembimuhod*flac
  2292. end
  2293. # soffmi muhod ######################
  2294. function semble
  2295. # mpv "/home/digit/huj3/digitsaudio/Released/soffmi muhod/soffmi muhod - semble/*"
  2296. mpv "/home/digit/huj3/digitsaudio/Released/soffmi muhod/soffmi muhod - semble/"
  2297. end
  2298. function ripoonjadi
  2299. # mpv --no-audio-display "/home/digit/huj3/digitsaudio/Released/soffmi muhod/soffmi muhod - ripoonjadi/"
  2300. # mpv --no-audio-display "/home/digit/huj3/digitsaudio/Released/soffmi muhod/soffmi muhod - ripoonjadi/*flac"
  2301. mpv --no-audio-display "/home/digit/huj3/digitsaudio/Released/soffmi muhod/soffmi muhod - ripoonjadi/ripoonjadioutput.wav"
  2302. mpv --no-audio-display "/home/digit/huj3/digitsaudio/Released/soffmi muhod/soffmi muhod - ripoonjadi/reetroughdahghihnnoutput.wav"
  2303. mpv --no-audio-display "/home/digit/huj3/digitsaudio/Released/soffmi muhod/soffmi muhod - ripoonjadi/hadarizeoutput.wav"
  2304. end
  2305. alias ripoonjaddi ripoonjadi
  2306. function radiosoffmimuhod
  2307. # mpv -shuffle ~/huj3/digitsaudio/Released/soffmi\ muhod/*/*flac
  2308. #mpv --shuffle ~/Music/soffmimuhod-freemusictubeuploads/*
  2309. mpv --shuffle ~/cinema/auditorium/soffmimuhod/soffmimuhod-freemusictubeuploads/*
  2310. end
  2311. function radioautechre
  2312. # mpv -shuffle ~/huj3/digitsaudio/Released/soffmi\ muhod/*/*flac
  2313. #mpv --shuffle ~/Music/soffmimuhod-freemusictubeuploads/*
  2314. #mpv --shuffle ~/cinema/auditorium/soffmimuhod/soffmimuhod-freemusictubeuploads/*
  2315. mpf --shuffle ~/musicilove/autechre/
  2316. end
  2317. function sleepwise
  2318. mpv "/home/digit/huj3/digitsaudio/Released/soffmi muhod/soffmi muhod - lojg mucg/soffmi muhod - lojg mucg - 06 sleepwise.flac"
  2319. end
  2320. ##ominator
  2321. function ominator
  2322. #mpv ~/huj3/digitsaudio/Released/soffmi\ muhod/soffmi\ muhod\ -\ ominator-PREVIEW2.flac
  2323. mpv ~/Music/soffmi\ muhod\ -\ ominator-PREVIEW2.flac
  2324. end
  2325. #havabong
  2326. function havabong
  2327. mpv "https://soffmimuhod.bandcamp.com/track/havabong"
  2328. end
  2329. #alias havabong "mpv ~/Music/soffmimuhod-freemusictubeuploads/havabong-r3BMJSEqSA8.m4a"
  2330. #alias havabong "mpv ~/huj3/digitsaudio/Audio\ Samples\ Dump/havabong.flac"
  2331. #other artists
  2332. ##aimee mann
  2333. ###the moth (les deux love orchestra cover)
  2334. ##mpvm "https://www.youtube.com/watch?v=JG6x4MHdTWM"
  2335. #alias moth "mpv ~/bb3/cinema/library/auditorium/moth.opus"
  2336. ##alias moth "echo playing The Moth (Les Deux Love Orchestra Cover), aquired from https://www.youtube.com/watch?v=JG6x4MHdTWM" ; mpv ~/bb3/cinema/library/auditorium/moth.opus"
  2337. function moth
  2338. echo "playing The Moth (Les Deux Love Orchestra Cover) Aimee Mann"
  2339. echo "aquired from https://www.youtube.com/watch?v=JG6x4MHdTWM"
  2340. echo "tho a more direct original source would be https://www.youtube.com/watch?v=IG8l2ArHzDo"
  2341. mpv ~/bb3/cinema/library/auditorium/moth.opus
  2342. end
  2343. function orgone
  2344. #hawkwind - orgone accumulator
  2345. mpv "https://www.youtube.com/watch?v=MPISXvQwm_E"
  2346. end
  2347. function notimeforcaution
  2348. mpv ~/cinema/_healing/'Oscar Movie Interstellar (2014) Docking Full Scene [No Time for Caution] [HD]-TV1767i8X4Q.mkv' --volume=150
  2349. end
  2350. function makeitamiracle
  2351. mpv '/home/digit/bb3/musicilove/dance/Marc Korn & Jaycee Madoxx - Miracle (Steve Modana Remix)-ghTn1Ey2vbs.opus' '/home/digit/bb3/musicilove/dance/Marc Korn & Jaycee Madoxx – Miracle (Withard & Quickdrop Remix)-7jWcdq9Tq0g.opus'
  2352. end
  2353. #
  2354. function slowthisbirddown-web
  2355. mpvm "https://www.youtube.com/watch?v=wgbyID-Plqo"
  2356. end
  2357. function boc
  2358. mpv ~/bb3/musicilove/boc/* --shuffle
  2359. end
  2360. function maq
  2361. mpv ~/bb3/musicilove/boc/Boards\ of\ Canada\ -\ Macquarie\ Ridge\ \(Aurora\ Borealis,\ Northern\ Lights\)\ HD,\ Salten\ -\ Norway-ZKSM-jyQh3o.opus
  2362. end
  2363. alias mac maq
  2364. function slowthisbirddown
  2365. #if file exists, play
  2366. if test -f "/home/digit/bb3/musicilove/boc/Slow This Bird Down-wgbyID-Plqo.webm"
  2367. mpv "/home/digit/bb3/musicilove/boc/Slow This Bird Down-wgbyID-Plqo.webm"
  2368. else #use
  2369. mpvm "https://www.youtube.com/watch?v=wgbyID-Plqo"
  2370. end
  2371. end
  2372. #a moment of clarity 2021 local opus
  2373. #function amomentofclarity-flow
  2374. function amomentofclarity
  2375. mpv ~/Music/amomentofclarity.opus
  2376. end
  2377. # several moments of clarity 2021 local opus
  2378. #function severalmomentsofclarity-flow
  2379. function severalmomentsofclarity
  2380. #if file exists, play
  2381. if test -f ~/Music/amomentofclarity.opus
  2382. mpv --speed="0.12" ~/Music/amomentofclarity.opus
  2383. else #use
  2384. mpvm --speed="0.12" "https://www.youtube.com/watch?v=BmzMGjPU7tE"
  2385. end
  2386. end
  2387. #
  2388. function amomentofclarity-web
  2389. mpvm "https://www.youtube.com/watch?v=BmzMGjPU7tE"
  2390. end
  2391. #function amomentofclarity-levin
  2392. # #if file exists, play
  2393. # if test -f /home/digit/cinema/readingmusic/amomentofclarity-boc.m4a
  2394. # mpv /home/digit/cinema/readingmusic/amomentofclarity-boc.m4a
  2395. # else #use
  2396. # mpvm "https://www.youtube.com/watch?v=BmzMGjPU7tE"
  2397. # end
  2398. #end
  2399. #function severalmomentsofclarity-levin
  2400. # #if file exists, play
  2401. # if test -f /home/digit/cinema/readingmusic/amomentofclarity-boc.m4a
  2402. # mpv --speed="0.12" /home/digit/cinema/readingmusic/amomentofclarity-boc.m4a
  2403. # else #use
  2404. # mpvm --speed="0.12" "https://www.youtube.com/watch?v=BmzMGjPU7tE"
  2405. # end
  2406. #end
  2407. function ytdlmpv
  2408. #thanks arnica407@diasp.org for this tip. ~ i hope i refactored it for fish syntax correctly;
  2409. #original: alias ytdl='/usr/local/bin/youtube-dl --exec='\''mpv {} && rm {}'\'''
  2410. echo "this downloads the whole video first, then plays, and deletes after."
  2411. '/usr/local/bin/youtube-dl --exec='\''mpv {} && rm {}'\'''
  2412. # echo.... nope where's the rest... failed copy, or already copied and not shown in diff?
  2413. end
  2414. function chigung
  2415. mpv "https://www.youtube.com/watch?v=3Q8AHmMaTi0" "https://www.youtube.com/watch?v=INvUysWoZ64"
  2416. end
  2417. alias qigong "chigung"
  2418. function rttv
  2419. echo "this is probably still broken. rt moved the goal posts n made their streams utterly shit."
  2420. mpv "https://www.rt.com/on-air/"
  2421. end
  2422. function rtuk
  2423. mpv "https://www.youtube.com/watch?v=wxBlXXwmIyY"
  2424. end
  2425. function rtuk43
  2426. mp43 "https://www.youtube.com/watch?v=wxBlXXwmIyY"
  2427. end
  2428. function rtuk92
  2429. mpv --ytdl-format=92 "https://www.youtube.com/watch?v=wxBlXXwmIyY"
  2430. end
  2431. #mend manifesting
  2432. function mend-audio
  2433. flite "Already, mended, now. Mended, now. Mendwards. Mending. Mended. Already mended now."
  2434. end
  2435. function mend-text
  2436. echo "Already,
  2437. mended,
  2438. now.
  2439. Mended, now.
  2440. Mendwards.
  2441. Mending.
  2442. Mended.
  2443. AlreadyMendedNow"
  2444. end
  2445. function mend
  2446. # 20210321 seems i have the wrong lolcat. -v gives the version on the wrong one. not the vertical rate. ...
  2447. # mend-text | figlet -f small | lolcat -v 3 -h 7
  2448. # mend-text | toilet -f small | lolcat -v 0.81 -h 0 # iz gud
  2449. # mend-text | toilet -f small | lolcat -p 3 -F 0.02 # for that ruby version of lolcat
  2450. #
  2451. # this is lovely. ... but i'm gonna switch it off for a bit [20210718], n replace it with just...
  2452. #
  2453. # mend-text | toilet -f future | lolcat -p 3 -F 0.02 # for that ruby version of lolcat
  2454. #
  2455. # ... replace it with just:
  2456. mend-text
  2457. #mend-text | lolcat -p 3 -F 0.02 #disable if/while lolcat's being a high load weirdo every time after not run for a while.
  2458. end
  2459. function paulflynn
  2460. # mpv "https://www.youtube.com/watch?v=RJ0bwDe8o2M"
  2461. echo "playing Paul Flynn's call to take cannabis in westminster"
  2462. echo "aquired from https://www.youtube.com/watch?v=RJ0bwDe8o2M"
  2463. mpv ~/bb3/cinema/library/auditorium/speeches/paulflynn1.m4a
  2464. end
  2465. function kylie
  2466. # mp18 "https://www.youtube.com/watch?v=YPwtJ89jes4" "https://www.youtube.com/watch?v=t1DWBKk5xHQ" "https://www.youtube.com/watch?v=63vqob-MljQ"
  2467. mp18 "https://www.youtube.com/watch?v=YPwtJ89jes4" "https://www.youtube.com/watch?v=63vqob-MljQ"
  2468. end
  2469. ####################################################### games
  2470. # GGGGGGG aAa M M EEEEEEEEEEE SSSSSSSSS
  2471. #GGG aaa aaa MM MM EEE SSSS
  2472. #GGG GGGG aaa aaa MMM MMM MMM EEEEEEE SSSSS
  2473. #GGG GGG aaaaaaaaaaa MMM M MMM EEE SSSS
  2474. # GGGGGGGG AAA AAA MMM MMM EEEEEEEEEEE SSSSSSSSS
  2475. alias terminalphase "raco terminal-phase"
  2476. ###############################################################################PACKAGERY
  2477. #pppppp AAA Ccccc kkk kkk AAA ggggg EEEEEEEEE RRRRRRR YYY YYY
  2478. #pp ppp aaAaa Ccc ccc kkk kkk aaAaa ggg EEE RRR RRR YYY YYY
  2479. #pppppp aaa aaa Ccc kkkkkkk aaa aaa ggg GGGG EEEEEEEEE RRRRRRR YYYYYYY
  2480. #pp aaaaaaaaa Ccc ccc kkk kkk aaaaaaaaa ggg GGG EEE RRR RRR YYY
  2481. #pp AAA AAA Ccccc kkk kkk AAA AAA gggg/GG EEEEEEEEE RRR RRR YYY
  2482. # ( see bedrockery section for more packagery )
  2483. # Portage
  2484. #this makes eix searches not limit to 200 results
  2485. set -x EIX_LIMIT_COMPACT 0
  2486. # Apt
  2487. alias apt-search "apt-cache search"
  2488. ########
  2489. # omnipackagemanager
  2490. # jis. just-install-stuff.
  2491. # idk^ thought i'd try name it.
  2492. ######
  2493. # rspm
  2494. # yes, gona re-write some rspm in my fish config. -- Digit.
  2495. #flatset example, with voidlinux.
  2496. alias canhaz "sudo xbps-query -Rs"
  2497. alias whatsnew "sudo xbps-install -S"
  2498. alias sup "sudo xbps-install -Su"
  2499. alias gimmie "sudo xbps-install "
  2500. alias getrido "sudo xbps-remove"
  2501. #a simple implementation of rspm, fishfig style
  2502. ######################################
  2503. ##### rspm command name configuration:
  2504. # packagesearch
  2505. #set ps $packagesearch
  2506. #set $packagesearch canhaz
  2507. # package list update. refreshes the list of what can be installed.
  2508. #set plu $packagelistupdate
  2509. #set $packagelistupdate whatsnew
  2510. # all package upgrade. upgrades all installed software to newest.
  2511. #set apu $allpackageupgrade
  2512. #set $allpackageupgrade sup
  2513. # install these packages (and their dependencies)
  2514. #set itp $installthesepackages
  2515. #set $installthesepackages gimmie
  2516. # uninstall these packages (and their dependencies? ~ varies per distro)
  2517. #set utp $uninstallthesepackages
  2518. #set $uninstallthesepackages getrido
  2519. ######################################
  2520. #a simple implementation of rspm fishfig style
  2521. #if egrep 'devuan|debian|ubuntu' /etc/os-release
  2522. # alias $ps "apt-cache search $argv"
  2523. #else
  2524. # grep void /etc/os-release
  2525. # alias $ps "sudo xbps-query -Rs"
  2526. #else
  2527. # grep gentoo /etc/os-release
  2528. # if ls /usr/bin/eix
  2529. # alias $plu "eix"
  2530. # else
  2531. # alias $plu "emerge --search"
  2532. # end
  2533. #else
  2534. # grep witch /etc/os-release
  2535. # alias $ps "magic whatever"
  2536. #end
  2537. ##end
  2538. ### ^^^^^ commentted out that cos it borked fishfig loadin. wut i do? it no like nested if statements?
  2539. ##############################################
  2540. ####### nixos/ package manager aliases #######
  2541. # install package
  2542. #alias nei='nix-env -i'
  2543. # uninstall package
  2544. #alias nee='nix-env -e'
  2545. # search
  2546. #alias neqag='nix-env -qa \* | grep'
  2547. #alias neaqg='nix-env -qa \* | grep'
  2548. # list all available
  2549. #alias neqa='nix-env -qa \*'
  2550. #alias neaq='nix-env -qa \*'
  2551. # list installed
  2552. #alias neq='nix-env -q \*'
  2553. # search installed
  2554. #alias neq='nix-env -q \* | grep'
  2555. # update available packages list ( i think )
  2556. #alias ncu='nix-channel --update'
  2557. # upgrade --dry-run
  2558. #alias neup='nix-env -u --dry-run'
  2559. #alias neudr='nix-env -u --dry-run'
  2560. # upgrade (wait! only run as root at / ... or some warning like that iirc)
  2561. #alias neu='nix-env -u'
  2562. # undooooooo!
  2563. #alias nerb='nix-env --rollback'
  2564. # roll back to $n
  2565. #alias nesg='nix-env --switch-generation '
  2566. # list available rollbacks
  2567. #alias nelg='nix-env --list-generations'
  2568. #another search
  2569. #neps(){ nix-env -qa \* -P | fgrep -i "$1"; }
  2570. ##### digit's new alternate nixos package search model
  2571. ### update package list
  2572. #alias dpu='nix-env -qa > ~/packages'
  2573. ### list package
  2574. #alias dpl='cat ~/packages'
  2575. #alias dpl='less ~/packages'
  2576. ### search package
  2577. #dps(){ cat ~/packages | grep "$1"; }
  2578. ### install package
  2579. #dpi(){ nix-env -i "$1"; }
  2580. ############################
  2581. ####### fayels xfers #######
  2582. ####### da functions #######
  2583. ### this digsync, its idea is to make my fave rsync ops aliased
  2584. #function digsync
  2585. # echo "digsync appends. ssh. preserves. progress. "
  2586. # echo "you can choose what bw limit"
  2587. # BWL='$1'
  2588. # rsync -avP --append --bwlimit=$BWL -e ssh $2 $3
  2589. #end
  2590. # fed up of doing cd after mkdir? now there's mkcd
  2591. function mkcd --description 'mkdir and cd'
  2592. mkdir $argv[1]
  2593. and cd $argv[1]
  2594. # and ls $argv[1]
  2595. end
  2596. #for amusement, i added ls too...
  2597. #just becuase i have that weird reflex to ls in freshly created dirs.
  2598. #... wtf do i expect to find in there??? XD XD XD
  2599. ############################
  2600. ####### XBPS ALIASES #######
  2601. ####### & FUNCTIONS. #######
  2602. #alias xbps-list "xbps-list-packages-ypnosestyle"
  2603. alias xbps-list "xbps-list-packages-domstyle"
  2604. function xbps-flatlist
  2605. xbps-list-packages-ypnosestyle > xqlotmp
  2606. sed 's/$/ /g' xqlotmp | tr -d '\n' ; echo
  2607. rm xqlotmp
  2608. end
  2609. ######################################################################
  2610. # this one did not translate so easily to fish
  2611. #
  2612. # fish: The “$” character begins a variable name.
  2613. # The character “{”, which directly followed a “$”,
  2614. # is not allowed as a part of a variable name,
  2615. # and variable names may not be zero characters long.
  2616. # To learn more about variable expansion in fish,
  2617. # type “help expand-variable”.
  2618. #
  2619. #
  2620. #
  2621. #function xbps-list-packages-ypnosestyle
  2622. # xbps-query -m | while IFS=$'\n' read -r PKG; do echo "${PKG%-*}"; #done
  2623. #end
  2624. #
  2625. ######################################################################
  2626. function xbps-list-packages-domstyle
  2627. xbps-query -m | rev | cut -d"-" -f2- | rev
  2628. end
  2629. ###########################
  2630. ####################
  2631. ########################
  2632. ########################\
  2633. ####### ####### |
  2634. #### # #### |
  2635. ## # ## |
  2636. # # # |
  2637. # #### # |
  2638. # # |
  2639. ## ## |
  2640. #### #### |
  2641. ####### ####### |
  2642. ######################## | Time n stuff.
  2643. ######################## |
  2644. #_______________________\|
  2645. alias day today
  2646. function today
  2647. date +%A
  2648. end
  2649. #comment this one out if it irritates
  2650. #alias date nowthen
  2651. # noooo dinnae do dat, it complains.
  2652. #wanna get emacs calendar/diary to recognise this format. it looks good: 2018-06-21_18:21:50
  2653. function nowthen
  2654. date +%F_%T
  2655. end
  2656. ##########################
  2657. ##########################
  2658. ##########################
  2659. ##########################
  2660. ##########################
  2661. #### special one!
  2662. ### as seen on archwiki for skype.
  2663. #alias fyafox='xhost +local: && su fox -c firefox'
  2664. #second version, after wheel trick
  2665. #alias ffox='xhost +local: && sudo -u fox /nix/store/w53y2zxglxpswfnl8y3y93jm11cr4jfx-firefox-35.0/bin/firefox'
  2666. #easy clear
  2667. alias l "clear"
  2668. #shortcut
  2669. #LOADINGBAY='ovhtoo:/home/digit/stuff/ninudeskia/ryverdyak/loadingbay'
  2670. ## funky functions
  2671. #orbea's slackware package searchery
  2672. # slackpkgsearch(){
  2673. #( cd /var/log/packages/ ; grep -x 'U.*M' * ) | awk -F: '{print $3 "\t" $1}' | sort -n
  2674. #}
  2675. #despacer
  2676. #function despacerish
  2677. #for file in **/*\ * ; mv "$file" "${file// /_}" ; end
  2678. ####################################################################
  2679. # __ _ __ _ __ _ #
  2680. # / _|___ _ _| |_ ___ / _|___ _ _| |_ ___ / _|___ _ _| |_ ___ #
  2681. # | _/ _ \ ' \ _(_-< | _/ _ \ ' \ _(_-< | _/ _ \ ' \ _(_-< #
  2682. # |_| \___/_||_\__/__/ |_| \___/_||_\__/__/ |_| \___/_||_\__/__/ #
  2683. # #
  2684. # fonts fonts fonts
  2685. #wheremybitchesat=wheremyfontsat (see alias beneath)
  2686. function wheremybitchesat
  2687. #if fonts
  2688. echo "fonts:"
  2689. #default
  2690. #if ttf
  2691. echo " ls ~/.fonts | grep ttf | sed s/.ttf//"
  2692. ls ~/.fonts | grep ttf | sed s/.ttf//
  2693. #if otb
  2694. #
  2695. echo " ls ~/.fonts | grep otb | sed s/.otb//"
  2696. ls ~/.fonts | grep otb | sed s/.otb//
  2697. #if all
  2698. end
  2699. #until i augment wheremybitchesat with its multi option features, still just fonts, this digitsfonts alias just points to wheremybitchesat without options.
  2700. alias digitsfonts wheremybitchesat
  2701. #speaking of options... see ~/bin/fishyoptionstest* for latest progress i've made on figuring out how to get fish to take n parse --options/-o. at time of writing, stumped on "argparse" in fishyoptionstest2
  2702. #list monospace bitmap fonts
  2703. #as seen: http://www.pixelbeat.org/docs/fc_fixed.html
  2704. function fontslist-mono-bitmap
  2705. fc-list ":spacing=mono:scalable=false" family pixelsize
  2706. end
  2707. function fontslist-mono-scalable
  2708. fc-list ":spacing=mono:scalable=true" family pixelsize
  2709. end
  2710. function fontslist-nonmono-bitmap
  2711. fc-list ":spacing=proportional:scalable=false" family pixelsize
  2712. end
  2713. # __ __ _
  2714. # / / / _|___ _ _| |_ ___
  2715. # / / | _/ _ \ ' \ _(_-<
  2716. #/_/ |_| \___/_||_\__/__/ / fonts
  2717. ##############################################################
  2718. setxkbmap -option ctrl:nocaps