Update 12.03.2024

This commit is contained in:
2024-03-12 11:15:25 +02:00
parent 555a4f8a7c
commit 8afdbc8322
79 changed files with 289506 additions and 3165 deletions

View File

@@ -1,7 +1,10 @@
#!/bin/sh
for o in HDMI-A-2 DP-1 eDP-1; do
grim -o "$o" "/tmp/$o.png"
corrupter "/tmp/$o.png" "/tmp/$o.png" &
# check if the file exists
if [[ -f "/tmp/$o.png" ]]; then
corrupter "/tmp/$o.png" "/tmp/$o.png" &
fi
done
wait
exec gtklock "$@"

View File

@@ -15,3 +15,5 @@ killall xcape 2>/dev/null
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
# Turn on num lock
xset -q | grep "Num Lock:\s*off" && xdotool key Num_Lock
setxkbmap lv

View File

@@ -3,7 +3,7 @@
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(find ~/repos/Rust/ ~/repos/ ~/vimwiki/university/3rd-semester/ ~/Nextcloud/repos/ -mindepth 1 -maxdepth 1 -type d | fzf)
selected=$(fd --min-depth 1 --max-depth 1 --type d . ~/repos/Rust/ ~/repos/ ~/neorg/University/3rd-semester/ ~/Nextcloud/repos/ ~/Nextcloud/Documents/LaTeX/ ~/Nextcloud/Documents/Typst/ ~/Nextcloud/repos/university/** ~/Nextcloud/repos/university/**/**/ | sk --height 16)
fi
if [[ -z $selected ]]; then

View File

@@ -0,0 +1,30 @@
#!/bin/bash
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(fd --min-depth 1 --max-depth 1 --type d . ~/repos/Rust/ ~/repos/ ~/neorg/University/3rd-semester/ ~/Nextcloud/repos/ ~/Nextcloud/Documents/LaTeX/ ~/Nextcloud/Documents/Typst/ ~/Nextcloud/repos/university/** ~/Nextcloud/repos/university/**/**/ | sk --height 16)
fi
if [[ -z $selected ]]; then
exit 0
fi
selected_name=$(basename "$selected" | tr . _)
zellij_running=$(pgrep zellij)
if [[ -z $ZELLIJ ]] && [[ -z $zellij_running ]]; then
# tmux new-session -s "$selected_name" -c "$selected"
zellij action new-tab -n "$selected_name" -c "$selected"
exit 0
fi
if ! zellij list-sessions | rg "$selected_name"; then
zellij action
fi
if ! tmux has-session -t="$selected_name" 2>/dev/null; then
tmux new-session -ds "$selected_name" -c "$selected"
fi
tmux switch-client -t "$selected_name"