summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-03-27 18:46:45 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2021-03-27 18:46:45 +0100
commit6021a9e22f99bb9b19134e2cb443bdeba852edc6 (patch)
tree398720cbb8a601553900866031ba3f093e051106 /accounts/gkleen@sif
parente203311de813949dec992b76b04410068768eaf5 (diff)
downloadnixos-6021a9e22f99bb9b19134e2cb443bdeba852edc6.tar
nixos-6021a9e22f99bb9b19134e2cb443bdeba852edc6.tar.gz
nixos-6021a9e22f99bb9b19134e2cb443bdeba852edc6.tar.bz2
nixos-6021a9e22f99bb9b19134e2cb443bdeba852edc6.tar.xz
nixos-6021a9e22f99bb9b19134e2cb443bdeba852edc6.zip
Diffstat (limited to 'accounts/gkleen@sif')
-rw-r--r--accounts/gkleen@sif/xmonad/xmonad.hs2
-rw-r--r--accounts/gkleen@sif/zshrc17
2 files changed, 15 insertions, 4 deletions
diff --git a/accounts/gkleen@sif/xmonad/xmonad.hs b/accounts/gkleen@sif/xmonad/xmonad.hs
index 425beaf4..8282ed3f 100644
--- a/accounts/gkleen@sif/xmonad/xmonad.hs
+++ b/accounts/gkleen@sif/xmonad/xmonad.hs
@@ -199,7 +199,7 @@ hostFromName h
199 , assign' ["work", "uni"] $ className =? "jetbrains-idea-ce" 199 , assign' ["work", "uni"] $ className =? "jetbrains-idea-ce"
200 , assign "read" $ className =? "llpp" 200 , assign "read" $ className =? "llpp"
201 , assign "read" $ className =? "Evince" 201 , assign "read" $ className =? "Evince"
202 , assign "read" $ fmap ("zathura" `isInfixOf`) title 202 , assign "read" $ className =? "Zathura"
203 , assign "read" $ className =? "MuPDF" 203 , assign "read" $ className =? "MuPDF"
204 , assign "read" $ className =? "Xournal" 204 , assign "read" $ className =? "Xournal"
205 , assign "read" $ appName =? "com-trollworks-gcs-app-GCS" 205 , assign "read" $ appName =? "com-trollworks-gcs-app-GCS"
diff --git a/accounts/gkleen@sif/zshrc b/accounts/gkleen@sif/zshrc
index c65e35f9..fd1f1002 100644
--- a/accounts/gkleen@sif/zshrc
+++ b/accounts/gkleen@sif/zshrc
@@ -1,9 +1,20 @@
1filebin() { 1filebin() {
2 basePath=/srv/www/files 2 basePath=/srv/www/files
3 ssh ymir find "${basePath}" -type f -print0 \ 3 ssh ymir find /srv/www/files -type f -printf "$'%T@ %TY-%Tm-%TdT%TH:%TM %P\\\\0'" | sort -zn | cut -z -d ' ' -f 2- \
4 | while IFS= read -r -d $'\0' p; do 4 | while IFS= read -r -d $'\0' l; do
5 printf "https://f.141.li/%s\n" "${p#${basePath}/}" 5 IFS=' ' read -r t p <<<"${l}"
6 printf "%s https://f.141.li/%s\n" "${t}" "${p}"
7 done
8}
9
10push2bin() {
11 if [[ ${#@} -eq 1 && ! -r ${1} ]]; then
12 uux -p 'ymir!push2bin' $(echo -n "${1:t}" | tr -c $'[:alnum:]+-=.' '_')
13 else
14 for f (${@}); do
15 uux -p 'ymir!push2bin' $(echo -n "${f:t}" | tr -c $'[:alnum:]+-=.' '_') <${f}
6 done 16 done
17 fi
7} 18}
8 19
9genmail() { 20genmail() {