From 55c063d9b3e78f01663547adb615e4a9d9a35fd1 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 23 Jul 2021 01:56:03 +0200 Subject: [PATCH 1/2] Add cron-notify script --- root/usr/local/bin/cron-notify | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 root/usr/local/bin/cron-notify diff --git a/root/usr/local/bin/cron-notify b/root/usr/local/bin/cron-notify new file mode 100755 index 0000000..3983937 --- /dev/null +++ b/root/usr/local/bin/cron-notify @@ -0,0 +1,12 @@ +#!/bin/sh +# Crontab requires DISPLAY and XDG_RUNTIME_HOME +# to be set when running notify-send, this script +# makes defines those to make it eaiser to send +# notifications from crontab without cluttering it +# It sets "Cron Notification" title, rest of the +# arguments are passed to notfiy-send + +XDG_RUNTIME_DIR="/run/user/$(id -u)" \ +DISPLAY=:0 \ +notify-send "Cron Notification" $@ + From 0efe33b80d55f55709d980743b4b27f54ce4a154 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 23 Jul 2021 02:00:56 +0200 Subject: [PATCH 2/2] Move z.lua to systemwide dir --- .gitmodules | 4 ++-- home/.config/zsh/.zshrc | 2 +- {home/.local => root/usr/local}/src/z.lua | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename {home/.local => root/usr/local}/src/z.lua (100%) diff --git a/.gitmodules b/.gitmodules index 39c5717..81ce725 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,6 +7,6 @@ [submodule "root/usr/share/zsh/site-functions/zsh-syntax-highlighting"] path = "root/usr/share/zsh/site-functions/zsh-syntax-highlighting" url = "https://github.com/zsh-users/zsh-syntax-highlighting" -[submodule "home/.local/src/z.lua"] - path = "home/.local/src/z.lua" +[submodule "root/usr/local/src/z.lua"] + path = "root/usr/local/src/z.lua" url = "https://github.com/skywind3000/z.lua" diff --git a/home/.config/zsh/.zshrc b/home/.config/zsh/.zshrc index 167783e..9b490f8 100755 --- a/home/.config/zsh/.zshrc +++ b/home/.config/zsh/.zshrc @@ -61,5 +61,5 @@ zstyle ':completion:::::' completer _expand _complete _ignored _approximate #ena # Load extensions (should be last) . /usr/share/zsh/site-functions/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null . /usr/share/zsh/site-functions/zsh-autosuggestions/zsh-autosuggestions.zsh 2>/dev/null -eval "$(lua ~/.local/src/z.lua/z.lua --init zsh enhanced)" +eval "$(lua /usr/local/src/z.lua/z.lua --init zsh enhanced)" diff --git a/home/.local/src/z.lua b/root/usr/local/src/z.lua similarity index 100% rename from home/.local/src/z.lua rename to root/usr/local/src/z.lua