Switch to eww for status bar
This commit is contained in:
parent
f4c7c3e1e2
commit
106a9f4b38
15 changed files with 704 additions and 10 deletions
29
home-manager/wayland/eww/scripts/change-active-workspace
Executable file
29
home-manager/wayland/eww/scripts/change-active-workspace
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
direction=$1
|
||||
current=$2
|
||||
|
||||
min=1
|
||||
max=10
|
||||
|
||||
function clamp {
|
||||
if test $1 -lt $min; then
|
||||
echo $min
|
||||
elif test $1 -gt $max; then
|
||||
echo $max
|
||||
else
|
||||
echo $1
|
||||
fi
|
||||
}
|
||||
|
||||
if test "$direction" = "down"
|
||||
then
|
||||
target=$(clamp $(($current+1)))
|
||||
echo "jumping to $target"
|
||||
hyprctl dispatch workspace $target
|
||||
elif test "$direction" = "up"
|
||||
then
|
||||
target=$(clamp $(($current-1)))
|
||||
echo "jumping to $target"
|
||||
hyprctl dispatch workspace $target
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue