mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 21:29:12 +02:00
feat: switch to niri+noctalia
This commit is contained in:
parent
a343de7a90
commit
b45746e127
34 changed files with 2726 additions and 1315 deletions
11
files/scripts/niri-resize.sh
Normal file
11
files/scripts/niri-resize.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
WORKSPACE=$(niri msg -j workspaces | jq -r '.[] | select(.is_active == true) | .id')
|
||||
|
||||
COUNT=$(niri msg -j windows | jq --argjson ws "$WORKSPACE" -r '.[] | select(.workspace_id == $ws) | .app_id ' | wc -l)
|
||||
|
||||
while [[ $COUNT == "0" || $COUNT == "2" ]]; do
|
||||
COUNT=$(niri msg -j windows | jq --argjson ws "$WORKSPACE" -r '.[] | select(.workspace_id == $ws) | .app_id ' | wc -l)
|
||||
done
|
||||
|
||||
if [[ $COUNT == "1" ]]; then
|
||||
niri msg action maximize-column
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue