integrate home-manager config

This commit is contained in:
jaina heartles 2024-07-21 22:36:29 -07:00
parent a470338c43
commit 826a0e5525
45 changed files with 5308 additions and 1 deletions

View file

@ -0,0 +1,22 @@
#!/bin/sh
cmd=$1
monitor=$2
current=$3
if [ "$cmd" = "down" ]; then
to_change=$(
hyprctl workspaces -j | jq --raw-output '
[ .[] | select(.monitor == "'$monitor'" and .id > 0) | .id ] |
([ .[] | select(. < '$current') ] | max) // max
')
elif [ "$cmd" = "up" ]; then
to_change=$(
hyprctl workspaces -j | jq --raw-output '
[ .[] | select(.monitor == "'$monitor'" and .id > 0) | .id ] |
([ .[] | select(. > '$current') ] | min) // min
')
fi
hyprctl dispatch workspace $to_change >/dev/null