.slowfish.fish 116 KB

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