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

@@ -0,0 +1,21 @@
#!/bin/bash
function clamp {
min=$1
max=$2
val=$3
python -c "print(max($min, min($val, $max)))"
}
direction=$1
current=$2
if test "$direction" = "down"
then
target=$(clamp 1 10 $(($current+1)))
echo "jumping to $target"
hyprctl dispatch workspace $target
elif test "$direction" = "up"
then
target=$(clamp 1 10 $(($current-1)))
echo "jumping to $target"
hyprctl dispatch workspace $target
fi