mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-20 12:34:18 +02:00
Release 2.1.2
- Adjust release procedure - Fix Issue 60 in Bugs.md (Thanks to Tom Greig) - Fix Issue 61 in Bugs.md
This commit is contained in:
parent
bea18c7a6f
commit
9a4c07d815
29 changed files with 74 additions and 56 deletions
|
|
@ -1,23 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright 2023, project-repo and the cagebreak contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# This script uses the cagebreak socket to modify the compositor's behaviour in
|
||||
# such a way that the currently focussed tile follows the cursor, i.e. that the
|
||||
# currently focussed tile is always the one within which the cursor is located.
|
||||
|
||||
# Start up the ipc link
|
||||
source "$(dirname "${BASH_SOURCE[0]}")/cb_script_header.sh"
|
||||
|
||||
while IFS= read -r -d $'\0' event
|
||||
do
|
||||
# Remove the cg-ipc header
|
||||
event="${event:6}"
|
||||
if [[ "$(echo "${event}" | jq ".event_name")" = "\"cursor_switch_tile\"" ]]
|
||||
then
|
||||
new_tile="$(echo "${event}"|jq -r ".new_tile")"
|
||||
new_output_id="$(echo "${event}"|jq -r ".new_output_id")"
|
||||
# Send the new tile to focus to cagebreak
|
||||
echo -e "screen ${new_output_id}\nfocus_tile ${new_tile}" >&3
|
||||
fi
|
||||
done <&4
|
||||
Loading…
Add table
Add a link
Reference in a new issue