From 0221492f62bcc1b766c2a4d5dbe26f6ff2ed8bc2 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Sun, 14 Apr 2024 06:38:49 +0200 Subject: squashed init --- home/.selfconfigs/zsh/additional.d/desktop | 1 + home/.selfconfigs/zsh/functions/cdl | 8 ++++++++ home/.selfconfigs/zsh/functions/timer | 9 ++++++++ home/.selfconfigs/zsh/functions/yt | 8 ++++++++ home/.selfconfigs/zsh/functions/yta | 8 ++++++++ home/.selfconfigs/zsh/motd | 33 ++++++++++++++++++++++++++++++ 6 files changed, 67 insertions(+) create mode 100644 home/.selfconfigs/zsh/additional.d/desktop create mode 100644 home/.selfconfigs/zsh/functions/cdl create mode 100644 home/.selfconfigs/zsh/functions/timer create mode 100644 home/.selfconfigs/zsh/functions/yt create mode 100644 home/.selfconfigs/zsh/functions/yta create mode 100644 home/.selfconfigs/zsh/motd (limited to 'home/.selfconfigs/zsh') diff --git a/home/.selfconfigs/zsh/additional.d/desktop b/home/.selfconfigs/zsh/additional.d/desktop new file mode 100644 index 0000000..f5b14de --- /dev/null +++ b/home/.selfconfigs/zsh/additional.d/desktop @@ -0,0 +1 @@ +alias ls='ls --color=auto -1' diff --git a/home/.selfconfigs/zsh/functions/cdl b/home/.selfconfigs/zsh/functions/cdl new file mode 100644 index 0000000..d11c086 --- /dev/null +++ b/home/.selfconfigs/zsh/functions/cdl @@ -0,0 +1,8 @@ +function cdl() +{ + if [ $# == 0 ] || [ ! -L $1 ]; then + echo usage: cdl \[LINK\] + else + cd $1(:A:h) + fi +} diff --git a/home/.selfconfigs/zsh/functions/timer b/home/.selfconfigs/zsh/functions/timer new file mode 100644 index 0000000..4978d4f --- /dev/null +++ b/home/.selfconfigs/zsh/functions/timer @@ -0,0 +1,9 @@ +function timer() +{ + if [ $# -lt 2 ]; then + echo usage: timer [SLEEP_TIME] [MESSAGE] + else + echo Timer set for $1: $2 + $(sleep $1; notify-send "$2") > /dev/null & disown + fi +} diff --git a/home/.selfconfigs/zsh/functions/yt b/home/.selfconfigs/zsh/functions/yt new file mode 100644 index 0000000..8d0ad2a --- /dev/null +++ b/home/.selfconfigs/zsh/functions/yt @@ -0,0 +1,8 @@ +function yt() +{ + if [ $# == 0 ]; then + echo usage: yt \[SEARCH TERM\] + else + mpv ytdl://ytsearch:"$*" + fi +} diff --git a/home/.selfconfigs/zsh/functions/yta b/home/.selfconfigs/zsh/functions/yta new file mode 100644 index 0000000..42cef33 --- /dev/null +++ b/home/.selfconfigs/zsh/functions/yta @@ -0,0 +1,8 @@ +function yta() +{ + if [ $# == 0 ]; then + echo usage: yta \[SEARCH TERM\] + else + mpv --ytdl-format=bestaudio ytdl://ytsearch:"$*" + fi +} diff --git a/home/.selfconfigs/zsh/motd b/home/.selfconfigs/zsh/motd new file mode 100644 index 0000000..7c61895 --- /dev/null +++ b/home/.selfconfigs/zsh/motd @@ -0,0 +1,33 @@ + _,..wWWw--./+'. _ ,. + ..wwWWWWWWWWW;ooo;++++. .ll' ,.++; + `'"">wW;oOOOOOO;:++\++. .lll .l"+++' ,.. + ,wwOOOOOOOO,,,++++\+++. lll',ll'++; ,++;' + ,oOOOOOOOO,,,,+++++`'++ll. ;lll ll:+++' ;+++' + ;OOOOOOOOO,,,'++++++++++lll ;lll ll:++:'.+++' + OOOO;OOO",,"/;++++,+,++++ll`:llllll++++'+++ + OOOO;OO",,'++'+++;###;"-++llX llll`;+++++++' ,. ., _ + ;O;'oOOO ,'+++\,-: ###++++llX :l.;;;,--++."-+++++ w":---wWWWWWww-._ +;' /O'"'"++++++' :;";#'+++lllXX,llll;++.+++++++++W,"WWWWWWWWww;""""'` + ." `"+++++'.'"''`;'ll;xXXwllll++;--.++++;wWW;xXXXXXXXXXx"Ww. + .+++++++++++';xXXXXX;Wll"+-"++,'---"-.x""`"lllllllxXXxWWw. + "---'++++++-;XXXXXXwWWl"++++,"---++++",,,,,,,,,,;lllXXXxWW, + `'""""',+xXXXXX;wWW'+++++++++;;;";;;;;;;;oOo,,,,,llXXX;WW` + ,+xXXXXXwWW"++.++++-.;;+++<' `"WWWww;Oo,,,llXXX"Ww + +xXXX"wwW"+++++'"--'"' )+++ `WWW"WwOO,,lllXXXww + ,x++++;"+++++++++++`., ) )+++ )W; ,WOO,,lllX:"Ww + :++++++++++++++++++++W'"-:++++ .W' WWOO,,lllX; `w + .++++++++++++++++.+++"ww :+++' ," ,WWOO,,lllX; ; + ;ll--.-"`.;++++++++++++++.+++;+.;++( :WWOO,,lllXx + ,'lllllllll,++++;+++++++++;"++++++++++++-. :WWOO,,lllXx + ;llll;;;"';'++++;'"""'''`` `lll;;:+++++++++. WWOOO,,lllX' + ,lllll, ;+++++; `"lllll.++++++++ WWwO,,,llX; + lllllll, ,++++++; llllll+++++++.:WWw',,llx + ,llllllll, ;++++++; :llllll+++++++."WW;,,llx + ;lllllllllV+++++++; :lllllll+++++++.`w' `.lx. + `lllllllll'+++++++; :lllllll++++++++ `\ `,X\ + "llllll;++++++++; ;llllll'+++++++++ `- \X; + "llll'+++++++++; ;lllllll"+++++++++ `) + `-'`+++++++++;' ,llllllll++++++++++ + +++++++++++; ,llllllll'++++++++++ + '++++++++++" `""""""""'+++++++++" + -- cgit v1.2.3-70-g09d2