diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-01-09 16:51:59 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-01-09 16:51:59 +0100 |
commit | cc216ca760a6b22c8b8041f525859f4201a52d1f (patch) | |
tree | 7c1ef18d28e226c40d8d0afa97e3a83d3a2c9645 | |
parent | 112449dd19eaae6769ef95a70b3e52234256400c (diff) |
checkpoint
-rwxr-xr-x | bin/common/gt | 9 | ||||
-rwxr-xr-x | bin/extra/notify-send | 5 | ||||
-rwxr-xr-x | bin/guiscripts/clipp | 4 | ||||
-rw-r--r-- | config/essentials/starship.toml | 7 | ||||
-rw-r--r-- | config/home/.zshenv | 5 |
5 files changed, 25 insertions, 5 deletions
diff --git a/bin/common/gt b/bin/common/gt index 78cc913..5adfe71 100755 --- a/bin/common/gt +++ b/bin/common/gt @@ -8,7 +8,12 @@ # - parallel: optional, if installed will run the commands on all repos with parallel # - gt-cmd, gt-st -export REPOS=$HOME/sync/share/git-track.txt +if [ "$GIT_TRACK_REPOS" ]; then + export REPOS="$GIT_TRACK_REPOS" +else + export REPOS="$HOME/sync/share/git-track.txt" +fi + # prevent file not found errors touch "$REPOS" || exit 1 @@ -56,7 +61,7 @@ while getopts ":a:c:f:lsheu" opt; do repo="$(git rev-parse --show-toplevel)" remote_url="$(git remote show -n origin | awk '/^ Fetch/ {print $NF}')" - # TODO: check if remote_url is not empty + # TODO: check if remote_url is not empty if grep "^$repo " "$REPOS" >/dev/null 2>&1; then printf >&2 'added already.\n' diff --git a/bin/extra/notify-send b/bin/extra/notify-send index 3a3872b..b0cf04a 100755 --- a/bin/extra/notify-send +++ b/bin/extra/notify-send @@ -36,6 +36,11 @@ parse() { OPTARG=$2 _=$OPTARG shift ;; + -a | --app-name) + [ $# -le 1 ] && set -- "$1" required && break + OPTARG=$2 + _=$OPTARG + shift ;; -i | --icon) [ $# -le 1 ] && set -- "$1" required && break OPTARG=$2 diff --git a/bin/guiscripts/clipp b/bin/guiscripts/clipp index c3ee8f2..f55d4d3 100755 --- a/bin/guiscripts/clipp +++ b/bin/guiscripts/clipp @@ -1,6 +1,6 @@ #!/bin/sh -[ "$1" = "-p" ] && i='primary' j='-p' +[ "$1" = "-p" ] && i='primary' if [ "$WAYLAND_DISPLAY" ] then wl-copy -n $i -else xsel ${j:--b} +else xclip -selection ${i:-clipboard} fi diff --git a/config/essentials/starship.toml b/config/essentials/starship.toml index 3154b88..abda192 100644 --- a/config/essentials/starship.toml +++ b/config/essentials/starship.toml @@ -18,7 +18,7 @@ disabled = false format = '\$ ' [cmd_duration] -format = '( [$duration]($style))' +format = ' [$duration]($style) ' min_time = 500 style = 'yellow' @@ -31,6 +31,11 @@ ahead = '↑' behind = '↓' diverged = '↕' +[jobs] +symbol = '*' + +[battery] +disabled = true [c] disabled = true [python] diff --git a/config/home/.zshenv b/config/home/.zshenv index 4bb166c..9a295d2 100644 --- a/config/home/.zshenv +++ b/config/home/.zshenv @@ -108,3 +108,8 @@ export MAKEFLAGS="-j$(nproc)" export VAKKEN="$HOME/docs/school/2024-2025" PATH="$PATH:$HOME/proj/chatty/" + + +if [ "$(hostname)" = "spring" ]; then + export GIT_TRACK_REPOS="$HOME/git-track.txt" +fi |