summaryrefslogtreecommitdiff
path: root/shell-scripts
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-07-10 10:53:07 +0200
committerMike Vink <mike1994vink@gmail.com>2023-07-10 10:53:07 +0200
commitaee8baaac3d3e39e90c08d9c7a3a6bf806071ae4 (patch)
tree5f0ebbc5cbf1173ee4910e037d4ccd7e28f2146b /shell-scripts
parent7d78321c0ed6b3ae9f56ddb5f502110212d8fb86 (diff)
stuff
Diffstat (limited to 'shell-scripts')
-rwxr-xr-xshell-scripts/kakup15
-rw-r--r--shell-scripts/sb-clock2
2 files changed, 9 insertions, 8 deletions
diff --git a/shell-scripts/kakup b/shell-scripts/kakup
index df9b17f..915a95a 100755
--- a/shell-scripts/kakup
+++ b/shell-scripts/kakup
@@ -6,18 +6,19 @@ session-or-client() {
return
fi
pushd $project
- export name=${PWD#$HOME/}
- export name=${name//\//-}
- export name=${name#-}
- export server=kaks@$name
- export client=kakc@$name
+ name=${PWD#$HOME/}
+ name=${name//\//-}
+ name=${name#-}
+ server=kaks@$name
+ client=kakc@$name
+ TMUX_ENV="-e KAK_SERVER=$server -e KAK_CLIENT=$client"
tmux has-session -t $server || {
- tmux new -d -s $server -n $server bash -c '[[ -f .envrc ]] && eval "$(direnv export bash)"; { kak -s '$name' -d & }; tmux wait -S '$name'; wait'
+ tmux new $TMUX_ENV -d -s $server -n $server bash -c '[[ -f .envrc ]] && eval "$(direnv export bash)"; { kak -s '$name' -d & }; tmux wait -S '$name'; wait'
tmux wait "$name"
}
if [[ -z $TMUX ]]; then
- tmux has-session -t $client || tmux new -d -s $client -n $client kak -c $name
+ tmux has-session -t $client || tmux new $TMUX_ENV -d -s $client -n $client kak -c $name
else
tmux new-window -n $client kak -c $name
fi
diff --git a/shell-scripts/sb-clock b/shell-scripts/sb-clock
index d32f787..ba9e43d 100644
--- a/shell-scripts/sb-clock
+++ b/shell-scripts/sb-clock
@@ -19,7 +19,7 @@ case "$clock" in
esac
case $BUTTON in
- 1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s|..27m|</span></b>|")" && notify-send "Appointments" "$(calcurse -d3)" ;;
+ 1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"cyan\">/;s|..0m|</span></b>|")" && notify-send "Appointments" "$(calcurse -d3)" ;;
2) setsid -f "$TERMINAL" -e calcurse ;;
3) notify-send "📅 Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\`
- Middle click opens calcurse if installed" ;;