Browse Source

Test server pages function

Highest Watson projects alias.
red-hat-laptop
Kevin Mok 5 years ago
parent
commit
82018d00a3
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 10
      aliases/key_aliases.tmpl
  2. 1
      aliases/key_files.tmpl
  3. 1
      dot_config/fish/config.fish.tmpl
  4. 17
      dot_config/fish/functions/server-pages.fish
  5. 4
      dot_config/fish/functions/task/task-notes.fish
  6. 14
      dot_taskrc
  7. 4
      private_dot_calcurse/conf

10
aliases/key_aliases.tmpl

@ -8,8 +8,8 @@
c "printf '\033c'" c "printf '\033c'"
d "cd ~/Downloads && printf '\033c'" d "cd ~/Downloads && printf '\033c'"
hst "history" hst "history"
nft "printf '\033c' && neofetch | lolcat"
# nft "printf '\033c' && neofetch"
# nft "printf '\033c' && neofetch | lolcat"
nft "printf '\033c' && neofetch"
fi "fish" fi "fish"
# reload urxvt # reload urxvt
ru "xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null" ru "xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null"
@ -21,7 +21,7 @@ dua "sudo du -h --apparent-size | sort -h"
duh "du -d 1 -h --apparent-size | sort -h" duh "du -d 1 -h --apparent-size | sort -h"
dum "du -d 1 -m --apparent-size | sort -h" dum "du -d 1 -m --apparent-size | sort -h"
# m "man" # m "man"
tld "tldr"
td "tldr"
# ]]] basic # # ]]] basic #
@ -279,12 +279,15 @@ am "antimicro"
a "task" a "task"
aa "task add" aa "task add"
aal "task add proj:lnx"
ac "task context" ac "task context"
acn "task context none && task" acn "task context none && task"
ach "task context home && task" ach "task context home && task"
aco "task context out && task" aco "task context out && task"
acs "task context sch && task" acs "task context sch && task"
acpl "task completed" acpl "task completed"
al "task limit:10"
ans "task +next"
ao "taskopen" ao "taskopen"
asm "task summary" asm "task summary"
awt "task waiting" awt "task waiting"
@ -428,6 +431,7 @@ wlat "watson log -Gca -T"
ww "watson log -Gc" ww "watson log -Gc"
wr "watson report -Gcd" wr "watson report -Gcd"
wra "watson report -Gca -p" wra "watson report -Gca -p"
wram "watson report -Gca | rg -S '^\w.*-\s\d*h' | sort -t' ' -hk3"
wrat "watson report -Gca -T" wrat "watson report -Gca -T"
wrw "watson report -Gc" wrw "watson report -Gc"

1
aliases/key_files.tmpl

@ -32,6 +32,7 @@ ng /etc/nginx/nginx.conf
ap ~/.task/pending.data ap ~/.task/pending.data
bid ~/Documents/journal/todo/blog.md bid ~/Documents/journal/todo/blog.md
cc ~/linux-config/private_dot_calcurse/conf
ci ~/linux-config/txt/ideas.md ci ~/linux-config/txt/ideas.md
cm ./commit-msg.txt cm ./commit-msg.txt
cmt /tmp/commit-msg.txt cmt /tmp/commit-msg.txt

1
dot_config/fish/config.fish.tmpl

@ -100,6 +100,7 @@ abbr ae "task-edit"
abbr adl "task-delete" abbr adl "task-delete"
abbr adn "task-done" abbr adn "task-done"
abbr an "task-next" abbr an "task-next"
abbr ant "task-notes"
abbr apr "task-mod-pri" abbr apr "task-mod-pri"
abbr apj "task-mod-proj" abbr apj "task-mod-proj"
abbr at "task-mod-tag" abbr at "task-mod-tag"

17
dot_config/fish/functions/server-pages.fish

@ -0,0 +1,17 @@
function server-pages
set sites git.ataraxy.tk khkm.tk cal.khkm.tk mnpd.gq/k-bg pste.gq smol.gq twem.tk
set titles "Kevin Mok's Gitea" "Kevin Mok" "Baïkal server" "k-bg" "hastebin" "Kevin's URL Shortener" "Index of /"
# set sites mnpd.gq/k-bg
# set titles "k-bg"
for i in (seq (count $sites))
set title (wget -qO- "$sites[$i]" | perl -l -0777 -ne 'print $1 if /<title.*?>\s*(.*?)\s*<\/title/si' | recode html)
if test $title = $titles[$i]
set symbol "✓"
else
set symbol "✗"
end
printf "[$symbol] $sites[$i]\n"
end
end

4
dot_config/fish/functions/task/task-notes.fish

@ -0,0 +1,4 @@
function task-notes
task $argv[1] annotate Notes
and taskopen $argv[1]
end

14
dot_taskrc

@ -19,8 +19,8 @@ data.location=~/.task
# Color theme (uncomment one to use){{{ # Color theme (uncomment one to use){{{
#include /usr/share/doc/task/rc/light-16.theme #include /usr/share/doc/task/rc/light-16.theme
#include /usr/share/doc/task/rc/light-256.theme #include /usr/share/doc/task/rc/light-256.theme
#include /usr/share/doc/task/rc/dark-16.theme
include /usr/share/doc/task/rc/dark-256.theme
include /usr/share/doc/task/rc/dark-16.theme
# include /usr/share/doc/task/rc/dark-256.theme
#include /usr/share/doc/task/rc/dark-red-256.theme #include /usr/share/doc/task/rc/dark-red-256.theme
#include /usr/share/doc/task/rc/dark-green-256.theme #include /usr/share/doc/task/rc/dark-green-256.theme
#include /usr/share/doc/task/rc/dark-blue-256.theme #include /usr/share/doc/task/rc/dark-blue-256.theme
@ -31,6 +31,9 @@ include /usr/share/doc/task/rc/dark-256.theme
#include /usr/share/doc/task/rc/solarized-dark-256.theme #include /usr/share/doc/task/rc/solarized-dark-256.theme
#include /usr/share/doc/task/rc/solarized-light-256.theme #include /usr/share/doc/task/rc/solarized-light-256.theme
#include /usr/share/doc/task/rc/no-color.theme #include /usr/share/doc/task/rc/no-color.theme
# color.blocking=color1 on color15
# }}} # }}}
# server {{{ # # server {{{ #
@ -54,12 +57,13 @@ urgency.uda.priority..coefficient=1
# context {{{ # # context {{{ #
# context.home=project.not:ideas project.not:out project.not:sch tag.not:amn
context.home=project.not:ideas project.not:out tag.not:amn
# context.home=project.not:ieas project.not:out project.not:sch tag.not:amn
context.home=project.not:ieas project.not:out tag.not:amn
context.out=project:out context.out=project:out
# context.sch=project:sch
context.sch=project:sch
context=home context=home
# context=out
# context=sch # context=sch
# }}} context # # }}} context #

4
private_dot_calcurse/conf

@ -1,7 +1,7 @@
appearance.calendarview=weekly appearance.calendarview=weekly
appearance.compactpanels=yes appearance.compactpanels=yes
appearance.defaultpanel=todo
appearance.layout=7
appearance.defaultpanel=calendar
appearance.layout=3
appearance.headerline=yes appearance.headerline=yes
appearance.eventseparator=no appearance.eventseparator=no
appearance.dayseparator=no appearance.dayseparator=no

Loading…
Cancel
Save