.fish 123 KB

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