mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-03-18 08:09:40 +00:00
Update 12.03.2024
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
30
.local/bin/zellij-sessionizer
Normal file
30
.local/bin/zellij-sessionizer
Normal 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"
|
||||
Reference in New Issue
Block a user