integrate home-manager config
This commit is contained in:
parent
a470338c43
commit
826a0e5525
45 changed files with 5308 additions and 1 deletions
22
home-manager/jwm/eww/hyprworkspace
Executable file
22
home-manager/jwm/eww/hyprworkspace
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue