Compare commits

..

No commits in common. "main" and "v2.4.0" have entirely different histories.
main ... v2.4.0

104 changed files with 2371 additions and 5213 deletions

View File

@ -1,311 +0,0 @@
name: Create Release
on:
push:
branches:
- main
paths:
- 'VERSION'
jobs:
check-version-change:
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
version: ${{ steps.get-version.outputs.version }}
should-release: ${{ steps.check-tag.outputs.should-release }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get version from VERSION file
id: get-version
run: |
VERSION=$(cat VERSION)
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
echo "Version: ${VERSION}"
- name: Check if tag exists
id: check-tag
run: |
VERSION="${{ steps.get-version.outputs.version }}"
git fetch --tags
if git rev-parse "v${VERSION}" >/dev/null 2>&1; then
echo "Tag v${VERSION} already exists, skipping release"
echo "should-release=false" >> "$GITHUB_OUTPUT"
else
echo "Tag v${VERSION} does not exist, proceeding with release"
echo "should-release=true" >> "$GITHUB_OUTPUT"
fi
build-libs:
needs: check-version-change
if: needs.check-version-change.outputs.should-release == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build library packages
run: |
bin/package_libs
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts-libs
path: out/*.tar.gz
build-gnome-x86_64:
needs: check-version-change
if: needs.check-version-change.outputs.should-release == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Install build dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y \
gnome-shell-extension-prefs \
meson \
ninja-build \
librsvg2-bin \
libglib2.0-dev \
gettext \
wget \
desktop-file-utils \
appstream
- name: Build Breezy GNOME (x86_64)
run: |
ARCH=x86_64 bin/package_gnome
env:
UA_API_SECRET: ${{ secrets.UA_API_SECRET }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts-gnome-x86_64
path: out/*.tar.gz
build-gnome-aarch64:
needs: check-version-change
if: needs.check-version-change.outputs.should-release == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Install build dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y \
gnome-shell-extension-prefs \
meson \
ninja-build \
librsvg2-bin \
libglib2.0-dev \
gettext \
wget \
desktop-file-utils \
appstream
- name: Build Breezy GNOME (aarch64)
run: |
ARCH=aarch64 bin/package_gnome
env:
UA_API_SECRET: ${{ secrets.UA_API_SECRET }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts-gnome-aarch64
path: out/*.tar.gz
build-kwin-steamos-3_7:
needs: check-version-change
if: needs.check-version-change.outputs.should-release == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Breezy KWin (steamos-3.7)
run: |
STEAMOS=3.7 bin/package_kwin
env:
UA_API_SECRET: ${{ secrets.UA_API_SECRET }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts-kwin-steamos-3.7
path: out/*.tar.gz
build-kwin-steamos-3_8:
needs: check-version-change
if: needs.check-version-change.outputs.should-release == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Breezy KWin (steamos-3.8)
run: |
STEAMOS=3.8 bin/package_kwin
env:
UA_API_SECRET: ${{ secrets.UA_API_SECRET }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts-kwin-steamos-3.8
path: out/*.tar.gz
build-kwin-steamos-3_9:
needs: check-version-change
if: needs.check-version-change.outputs.should-release == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Breezy KWin (steamos-3.9)
run: |
STEAMOS=3.9 bin/package_kwin
env:
UA_API_SECRET: ${{ secrets.UA_API_SECRET }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts-kwin-steamos-3.9
path: out/*.tar.gz
build-vulkan-x86_64:
needs: check-version-change
if: needs.check-version-change.outputs.should-release == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Breezy Vulkan (x86_64)
run: |
ARCH=x86_64 bin/package_vulkan
env:
UA_API_SECRET: ${{ secrets.UA_API_SECRET }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts-vulkan-x86_64
path: out/*.tar.gz
create-release:
needs:
- check-version-change
- build-libs
- build-gnome-x86_64
- build-gnome-aarch64
- build-kwin-steamos-3_7
- build-kwin-steamos-3_8
- build-kwin-steamos-3_9
- build-vulkan-x86_64
if: needs.check-version-change.outputs.should-release == 'true'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: release-artifacts-*
path: artifacts
merge-multiple: true
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION="${{ needs.check-version-change.outputs.version }}"
# Verify setup scripts exist
for script in bin/breezy_gnome_setup bin/breezy_kwin_setup bin/breezy_vulkan_setup; do
if [ ! -f "$script" ]; then
echo "Error: $script not found"
exit 1
fi
done
# Create a tag
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "v${VERSION}" -m "Release v${VERSION}"
git push origin "v${VERSION}"
# Create release with artifacts
gh release create "v${VERSION}" \
--title "Release v${VERSION}" \
--generate-notes \
artifacts/* \
bin/breezy_gnome_setup \
bin/breezy_kwin_setup \
bin/breezy_vulkan_setup

8
.gitmodules vendored
View File

@ -11,3 +11,11 @@
[submodule "ui/modules/PyXRLinuxDriverIPC"]
path = ui/modules/PyXRLinuxDriverIPC
url = https://github.com/wheaney/PyXRLinuxDriverIPC.git
[submodule "gnome/backports/gnome-44-max"]
path = gnome/backports/gnome-44-max
url = https://github.com/wheaney/breezy-desktop
branch = gnome-44-max
[submodule "gnome/backports/gnome-45"]
path = gnome/backports/gnome-45
url = https://github.com/wheaney/breezy-desktop
branch = gnome-45

127
README.md
View File

@ -4,13 +4,8 @@
[![Chat](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://discord.gg/azSBTXNXMt)
![Breezy KDE screenshot](assets/breezy-kde.png)
## What is this?
> [!TIP]
> Interested in an XR desktop for **Windows**, **MacOS**, or **Android**? Star the work-in-progress [Breezy Box](https://github.com/wheaney/breezy-box) project ([watch the demo](https://youtu.be/AwEQXnabRxE)).
This repo contains a collection of tools to enable virtual desktop environments for gaming and productivity on Linux using [supported XR glasses](https://github.com/wheaney/XRLinuxDriver#supported-devices).
There are two installations available. **Note: Don't manually install either of these if you're running the Decky plugin on the same machine, as they invalidate each other's installations. This is only temporary.**
@ -19,124 +14,90 @@ There are two installations available. **Note: Don't manually install either of
## Breezy Desktop
Breezy Desktop is a virtual workspace solution for Linux desktops that use the KDE Plasma 6 or GNOME desktop environments (versions 45 through 50). It supports launching multiple virtual monitors alongside multiple physical monitors.
Breezy Desktop is a virtual workspace solution for Linux desktops that use the KDE Plasma 6 or GNOME desktop environments (versions 42 through 49). It supports launching multiple virtual monitors alongside multiple physical monitors. For Linux users not running GNOME or KDE, you can play around with a [nested GNOME setup](#nested-gnome-setup).
For the best performance, ensure you have the latest graphics drivers installed for your distro.
### KDE Plasma Setup
### KDE Plasma Setup (Beta)
Breezy Desktop is only compatible with KDE Plasma 6.
**IMPORTANT** - Please read carefully through this list before you get started
* **Make sure your glasses are in the [supported devices list](https://github.com/wheaney/XRLinuxDriver#supported-devices)** and are on the latest firmware.
* **If you're on SteamOS**, use the [bash setup instructions](#kde-plasma-bash-setup).
* **If you're installing on an immutable distro BESIDES SteamOS**, you'll need to follow the [Distrobox setup](https://github.com/wheaney/breezy-desktop/wiki/Breezy-KDE-Distrobox-setup).
* **If this is the first time you're using your glasses with KDE**, you'll be presented with some options around how to extend your desktop that aren't very clear. Choose the "No action" option to leave the glasses' display independent.
* **If you're running KDE on `X11`**, you won't be able to launch virtual displays. If you're not on SteamOS, look for Wayland options on the login screen.
* **Steam Deck users** note the extra step in the setup instructions for switching to `Wayland` if you want virtual display features.
* **If you're using XREAL Ones** or other glasses that provide built-in 3DoF/stabilization/anchoring features (e.g. VITURE Beast), you must disable ALL such features first, using the menu on the glasses.
* **For the best experience**
* To prevent a broken taskbar: in `Panel Settings`, set `Visibility` to `always-visible`.
* To prevent a magnified cursor from showing in the wrong place: in `System Settings` / `Accessibility`, disable the `Shake Cursor` effect.
#### KDE Plasma Bash Setup
**Note: an [AUR installation](#kde-plasma-arch-linux-setup) is also available for non-SteamOS Arch users**
To setup Breezy on KDE Plasma using `bash`, with your glasses unplugged:
When you connect your glasses for the first time, you'll be presented with some options around how to extend your desktop that aren't very clear. Choose the "No action" option to leave the glasses' display independent. If you're running KDE on `X11`, you won't be able to launch virtual displays; Steam Deck users note the extra step in the setup instructions for switching to `Wayland`, other users may be offered the option at the login screen.
To setup Breezy on KDE, with your glasses unplugged:
1. Download the [Breezy KWin setup script](https://github.com/wheaney/breezy-desktop/releases/latest/download/breezy_kwin_setup)
2. Set the execute flag: `chmod +x ~/Downloads/breezy_kwin_setup`
3. Run the setup script: `~/Downloads/breezy_kwin_setup`
4. If you're on SteamOS and want to use virtual displays, use the `Enable Breezy Wayland` desktop script
* **IMPORTANT** - this will prevent you from accessing Game Mode again, until you undo it by running the `Disable Breezy Wayland` desktop script
5. Log out and back in.
#### KDE Plasma Arch Linux setup
Breezy KWin is in AUR. To install, run these commands from a terminal with your glasses unplugged:
1. If you've previously installed Breezy KWin using the setup script, you must uninstall it first with `breezy_kwin_uninstall`
2. `yay -S breezy-desktop-kwin-git`
3. `systemctl --user enable --now xr-driver.service`
4. Log out and back in, then proceed to [usage](#breezy-kwin-usage).
#### Breezy KWin Usage
4. If you're on SteamOS and want to use virtual displays, run this: `steamos-session-select plasma-wayland-persistent`
* **Important note** - this will prevent you from accessing Game Mode again, until you undo it by running just `steamos-session-select`
5. For the best experience:
* To prevent a broken taskbar: in `Panel Settings`, set `Visibility` to `always-visible`.
* To prevent a magnified cursor from showing in the wrong place: in `System Settings` / `Accessibility`, disable the `Shake Cursor` effect.
6. Log out and back in.
After setup, you'll have an application called `Breezy Desktop` installed. Launch that and follow any instructions. You can also configure keyboard shortcuts for the most common toggle actions. The Breezy Desktop app doesn't have to be running to use the virtual desktop or the keyboard shortcuts once you've configured everything to your liking.
### GNOME Setup
Breezy Desktop has best compatibility with GNOME versions 45 through 50.
Make sure your glasses are extending your workspace and not just mirroring your primary monitor by opening up the `Displays` settings dialog and choosing the `Join` option for multiple displays. If you're running `GNOME on Xorg`, you won't be able to launch virtual displays; switch to `Wayland` or follow the [GNOME Legacy setup](#gnome-widescreen-legacy-setup) instructions if you want access to widescreen mode.
**IMPORTANT** - Please read carefully through this list before you get started
* **Make sure your glasses are in the [supported devices list](https://github.com/wheaney/XRLinuxDriver#supported-devices)** and are on the latest firmware.
* **If this is the first time you're using your glasses with GNOME**, make sure your glasses are extending your workspace and not just mirroring your primary monitor by opening up the `Displays` settings dialog and choosing the `Join` option for multiple displays.
* **If you're running `GNOME on Xorg`**, you won't be able to launch virtual displays unless you switch to `Wayland`.
* **If you're using XREAL Ones** or other glasses that provide built-in 3DoF/stabilization/anchoring features (e.g. VITURE Beast), you must disable ALL such features first, using the menu on the glasses.
#### GNOME Bash Setup
#### GNOME Multi-display
**Note: an [AUR installation](#gnome-arch-linux-setup) is also available for Arch users**
To setup Breezy on GNOME using `bash`, with your glasses unplugged:
1. Download the Breezy GNOME [setup script](https://github.com/wheaney/breezy-desktop/releases/latest/download/breezy_gnome_setup) and set the execute flag (e.g. from the terminal: `chmod +x ~/Downloads/breezy_gnome_setup`)
2. Run the setup script: `~/Downloads/breezy_gnome_setup`
3. Log out and back in, then proceed to [usage](#breezy-gnome-usage).
#### GNOME Arch Linux setup
Breezy GNOME is in AUR. To install, run these commands from a terminal with your glasses unplugged:
Breezy GNOME is in AUR (but not pacman, yet). To install, run these commands from a terminal:
1. If you've previously installed Breezy GNOME using the setup script, you must uninstall it first with `breezy_gnome_uninstall`
2. `yay -S breezy-desktop-gnome-git`
3. `systemctl --user enable --now xr-driver.service`
4. Log out and back in, then proceed to [usage](#breezy-gnome-usage).
#### GNOME Widescreen (Legacy) Setup
1. Download the Breezy GNOME [setup script](https://github.com/wheaney/breezy-desktop/releases/latest/download/breezy_gnome_setup) and set the execute flag (e.g. from the terminal: `chmod +x ~/Downloads/breezy_gnome_setup`)
2. Run the setup script: `~/Downloads/breezy_gnome_setup --tag legacy`
3. Log out and back in, then proceed to [usage](#breezy-gnome-usage).
#### Nested-GNOME Setup
A workable demo -- but not a great long-term solutions -- is to use your preferred desktop environment with a GNOME window open in nested mode. To do this:
1. Install `gnome-shell` using your distros package manager (e.g. apt-get, pacman, dnf, etc...). This will currently only work with GNOME Shell versions 42-49, so check that using `gnome-shell --version`
2. On GNOME 49 and above, you'll also need to install the mutter devkit package
3. Run the [GNOME setup](#gnome-setup) steps. You shouldn't need to log out and back in since GNOME will be running nested.
4. Launch the nested GNOME Shell using:
* GNOME 49 and newer: `MUTTER_DEBUG_DUMMY_MODE_SPECS="1920x1080@60" dbus-run-session -- gnome-shell --devkit`
* Older GNOME versions: `MUTTER_DEBUG_DUMMY_MODE_SPECS="1920x1080@60" dbus-run-session -- gnome-shell --nested`
5. You may have to set developer mode: `gsettings set com.xronlinux.BreezyDesktop developer-mode true`
#### Breezy GNOME Usage
After setup, you'll have an application called `Breezy Desktop` installed. Launch that and follow any instructions. You will need to log out and back in at least once to get the GNOME extension working. You can also configure keyboard shortcuts for the most common toggle actions. The Breezy Desktop app doesn't have to be running to use the virtual desktop or the keyboard shortcuts once you've configured everything to your liking.
For a double-wide screen, enable "widescreen mode" using the toggle in the Breezy Desktop application. **Note: this can be significantly more resource intensive than non-widescreen, you may notice performance dips on older hardware.**
### Breezy Desktop Pricing
### Upcoming Features
* Port to KWin Effect (KDE Plasma support)
Breezy Desktop for GNOME and KDE comes with 2 free trial months. Trial access is granted automatically after setup (no token entry required), and you only need to be online once after setup so your device can activate/refresh access.
### Breezy Desktop Pricing (Productivity Tier)
After the trial period ends, you must have an active Productivity license (Basic or Pro) to keep Productivity features enabled.
Productivity licenses apply to **Breezy Desktop (GNOME/KDE)**. **Breezy Vulkan** uses a separate Supporter Tier (see below).
Paid plans are currently only available via [Ko-fi](https://ko-fi.com/wheaney).
#### Productivity Basic
The Basic plan includes everything needed for multi-screen productivity using only device orientation (3DoF). For device position (6DoF) — e.g. for the VITURE Luma Ultra glasses or supplementing with OpenTrack+NeuralNet — see the Productivity Pro plan.
Breezy Desktop for GNOME and KDE comes with 2 free trial months. After that, it requires an active Productivity Tier license. Payments are currently only accepted via [Ko-fi](https://ko-fi.com/wheaney). Here's the pricing structure:
| Payment period | Price | Upgrade window \* |
| -------------- | ------------------ | ------------------------------------- |
| Yearly | $10 USD, recurring | Within 90 days to upgrade to lifetime |
| Lifetime | $25 USD, one-time | — |
| Monthly | $5 USD, recurring | Within 7 days to upgrade to yearly |
| Yearly | $50 USD, recurring | Within 90 days to upgrade to lifetime |
| Lifetime | $125 USD, one-time | — |
\* If you pay for a plan and decide to upgrade to a longer-term plan, you may pay the difference within this window.
#### Productivity Pro
If you have enough funds, your license will renew automatically within 7 days of expiration so you never experience an unexpected outage. Your device is never required to be online to continue using Productivity Tier features when enabled, but if your access expires while offline (even if you have enough funds), the features will be disabled until the next time your device goes online and the license can be refreshed. Be sure to check for expiration warnings prior to travel.
The Pro plan provides all the same multi-screen productivity features as Basic, plus device position (6DoF) allowing you to lean in and move more naturally about the displays.
#### Free Productivity Tier
| Payment period | Price | Upgrade window \* |
| -------------- | ------------------ | ------------------------------------- |
| Monthly | $2 USD, recurring | Within 7 days to upgrade to yearly |
| Yearly | $20 USD, recurring | Within 90 days to upgrade to lifetime |
| Lifetime | $50 USD, one-time | — |
\* If you pay for a plan and decide to upgrade to a longer-term plan, you may pay the difference within this window.
For recurring plans (monthly/yearly), renewals are processed automatically during the renewal window (7 days prior to expiration). Your device does not need to stay online during normal use, but it must go online at least once to refresh your license. If you remain offline past your expiration time, features will pause until the next time you go online and refresh.
#### Free Productivity Basic
To make Breezy widely accessible, Productivity Basic is currently free of charge for qualified individuals using it for non-commercial purposes. Eligible groups include:
To make Breezy widely accessible, Productivity Tier is currently free of charge for qualified individuals using it for non-commercial purposes. Eligible groups include:
* Students
* Public school educators
@ -146,9 +107,9 @@ To make Breezy widely accessible, Productivity Basic is currently free of charge
If you believe you qualify, please email wayne@xronlinux.com. You may be asked to provide documentation to verify your eligibility.
#### Unlocking a Productivity License
#### Unlocking Productivity Tier
After your trial ends, purchase (or being granted free eligibility) will result in an email with a verification token. Once you receive that, enter it in the `License Details` view of the `Breezy Desktop` application, available from the menu in the top window bar.
After your first payment, you should immediately receive an email (to your Ko-fi email address) with a verification token. Once you receive that, enter it in the `License Details` view of the `Breezy Desktop` application, available from the menu in the top window bar.
If you don't receive a token, you can request one in the `License Details` view by entering your email address.
@ -186,7 +147,7 @@ I've implemented an experimental multi-tap detection feature for screen **re-cen
### Supporter Tier
Breezy Vulkan's Supporter Tier features are enhancements to core functionality, offered as a way to reward those who have [supported the project](https://ko-fi.com/wheaney). Core features — like Virtual Display mode, VR-Lite mouse/joystick modes, and Follow mode's display positioning/resizing settings — will always remain available to everyone regardless of supporter status. Here's the pricing structure:
Breezy Vulkan's Supporter Tier features are enhancments to core functionality, offered as a way to reward those who have [supported the project](https://ko-fi.com/wheaney). Core features -- like Virtual Display mode, VR-Lite mouse/joystick modes, and Follow mode's display positioning/resizing settings -- will always remain available to everyone regardless of supporter status. Here's the pricing structure:
| Payment period | Price | Upgrade window \* |
| -------------- | ------------------ | ------------------------------------- |
@ -195,7 +156,7 @@ Breezy Vulkan's Supporter Tier features are enhancements to core functionality,
\* If you pay for a plan and decide to upgrade to a longer-term plan, you may pay the difference within this window.
For recurring plans, access renews automatically during the renewal window (7 days prior to expiration). Your device does not need to stay online during normal use, but it must go online at least once to refresh your license. If you remain offline past your expiration time, features will pause until the next time you go online and refresh.
If you have enough funds, your access will renew automatically within 7 days of expiration so you never experience an unexpected outage. Your device is never required to be online to continue using Supporter Tier features when enabled, but if your access expires while offline (even if you have enough funds), the features will be disabled until the next time your device goes online and the license can be refreshed. Be sure to check for expiration warnings prior to travel.
Features currently offered:
* Smooth Follow (in Follow mode)
@ -242,7 +203,7 @@ In order to provide you with Supporter Tier features, this application and its b
* Your email address is sent to this application's backend server from either the payment vendor (Ko-fi) or from your device (at your request). Your email address may be used immediately upon receipt in its unaltered form to send you a transactional email, but it is then hashed prior to storage. The unaltered form of your email address is never stored and can no longer be referenced. The hashed value is stored for later reference.
* Other personal data may be sent from the payment vendor, but is never utilized nor stored.
* Your device's MAC address is hashed on your device. It never leaves your device in its original, unaltered form. The hashed value is sent to this application's backend server and stored for later reference.
* Your device's MAC address is hashed on your device. It never leaves your device in its original, unaltered form. The hashed value is sent to this application's backend server and stored for later reference, and -- up to version 0.8.7 -- to Google Analytics.
Hashing functions are a one-way process that serve to anonymize your personal data by irreversibly changing them. Once hashed, they can never be unhashed or traced back to their original values.

View File

@ -1 +1 @@
2.9.13
2.4.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 938 KiB

View File

@ -20,11 +20,9 @@ check_command() {
check_command "curl"
check_command "gnome-shell"
check_command "jq"
ARCH=$(uname -m)
FILE_NAME="breezyGNOME-$ARCH.tar.gz"
LIBS_FILE_NAME="breezyGNOME-libs-$ARCH.tar.gz"
GNOME_VERSION=$(gnome-shell --version | cut -d' ' -f3 | cut -d'.' -f1)
VERSION_SPECIFIC_FILENAME="breezyGNOME-$GNOME_VERSION-$ARCH.tar.gz"
LATEST_RELEASE=$(curl -s "https://api.github.com/repos/wheaney/breezy-desktop/releases/latest")
@ -46,68 +44,35 @@ pushd $tmp_dir > /dev/null
echo "Created temp directory: ${tmp_dir}"
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/latest/download/$FILE_NAME"
libs_download_url="https://github.com/wheaney/breezy-desktop/releases/latest/download/$LIBS_FILE_NAME"
if [ "$1" = "-v" ]
then
metrics_version="$2"
local_dir_arg="$3"
binary_path_arg="$3"
elif [ "$1" = "--tag" ] && [ -n "$2" ]
then
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/download/$2/$FILE_NAME"
libs_download_url="https://github.com/wheaney/breezy-desktop/releases/download/$2/$LIBS_FILE_NAME"
else
local_dir_arg="$1"
fi
if [ -n "$local_dir_arg" ]
then
if [[ "$local_dir_arg" = /* ]]; then
local_dir="$local_dir_arg"
else
local_dir=$(realpath "$start_dir/$local_dir_arg")
fi
binary_path_arg="$local_dir/$FILE_NAME"
if [ ! -f "$binary_path_arg" ]; then
echo "Error: Breezy GNOME archive not found at $binary_path_arg" 1>&2
exit 1
fi
lib_path_arg="$local_dir/$LIBS_FILE_NAME"
if [ ! -f "$lib_path_arg" ]; then
echo "Error: Breezy GNOME libs archive not found at $lib_path_arg" 1>&2
exit 1
fi
binary_path_arg="$1"
fi
if [ -z "$binary_path_arg" ]
then
# download and unzip the binary
binary_path_arg="$FILE_NAME"
echo "Downloading to: ${tmp_dir}/$binary_path_arg"
curl -L "$binary_download_url" > "$binary_path_arg"
echo "Downloading to: ${tmp_dir}/$FILE_NAME"
curl -L "$binary_download_url" > "$FILE_NAME"
else
cp "$binary_path_arg" "$tmp_dir"
FILE_NAME=$(basename $binary_path_arg)
if [[ "$binary_path_arg" = /* ]]; then
abs_path="$binary_path_arg"
else
# Convert relative path to absolute path
abs_path=$(realpath "$start_dir/$binary_path_arg")
fi
cp $abs_path $tmp_dir
fi
echo "Extracting to: ${tmp_dir}/breezy_gnome"
tar -xf $(basename $binary_path_arg)
if [ -z "$lib_path_arg" ]
then
lib_path_arg="$LIBS_FILE_NAME"
echo "Downloading to: ${tmp_dir}/$lib_path_arg"
curl -L "$libs_download_url" > "$lib_path_arg"
else
cp "$lib_path_arg" "$tmp_dir"
fi
echo "Extracting lib to: ${tmp_dir}/breezy_gnome"
# Extract libs into the extracted directory
tar -xf $(basename $lib_path_arg)
mv breezy_desktop_lib/* breezy_gnome/
tar -xf $FILE_NAME
pushd breezy_gnome > /dev/null

View File

@ -23,38 +23,25 @@ check_command "curl"
print_missing_dependencies() {
echo ""
printf "\n\033[1;31mMissing required components\033[0m\n"
if [ -n "${BREEZY_DISTROBOX:-}" ]; then
echo ""
printf "\033[1;33mFirst, enter your Distrobox container:\033[0m\n"
printf "\tdistrobox enter $BREEZY_DISTROBOX\n"
fi
echo ""
printf "\033[1;33mInstall the missing packages\033[0m with your package manager, then rerun this setup:\n"
printf "\tDebian/Ubuntu:\tsudo apt-get update && sudo apt-get install -y extra-cmake-modules kwin-dev libkf6config-dev libkf6configwidgets-dev libkf6coreaddons-dev libkf6kcmutils-dev libkf6globalaccel-dev libkf6i18n-dev libkf6windowsystem-dev libkf6xmlgui-dev qt6-base-dev qt6-declarative-dev libdrm-dev && (sudo apt-get install -y qml6-module-qtquick3d-helpers || true)\n"
printf "\tFedora/RHEL:\tsudo dnf install -y cmake gcc gcc-c++ extra-cmake-modules kwin-devel kf6-kconfig-devel kf6-kconfigwidgets-devel kf6-kcoreaddons-devel kf6-kcmutils-devel kf6-kglobalaccel-devel kf6-ki18n-devel kf6-kwindowsystem-devel kf6-kxmlgui-devel qt6-qtbase-devel qt6-qttools-devel qt6-qtquick3d wayland-devel libepoxy-devel libdrm-devel\n"
printf "\tArch:\t\tsudo pacman -S --needed extra-cmake-modules qt6-base qt6-declarative qt6-tools qt6-quick3d kconfig kconfigwidgets kcoreaddons kglobalaccel ki18n kcmutils kxmlgui kwindowsystem kwin\n"
echo "Install the corresponding packages with your package manager, then rerun this setup:"
echo " Debian/Ubuntu: sudo apt-get update && sudo apt-get install -y extra-cmake-modules kwin-dev libkf6config-dev libkf6configwidgets-dev libkf6coreaddons-dev libkf6kcmutils-dev libkf6globalaccel-dev libkf6i18n-dev libkf6windowsystem-dev libkf6xmlgui-dev qt6-base-dev qt6-declarative-dev libdrm-dev && (sudo apt-get install -y qml6-module-qtquick3d-helpers || true)"
echo " Fedora/RHEL: sudo dnf install -y extra-cmake-modules kwin-devel kf6-kconfig-devel kf6-kconfigwidgets-devel kf6-kcoreaddons-devel kf6-kcmutils-devel kf6-kglobalaccel-devel kf6-ki18n-devel kf6-kwindowsystem-devel kf6-kxmlgui-devel qt6-qtbase-devel qt6-qttools-devel wayland-devel libepoxy-devel libdrm-devel"
echo " Arch: sudo pacman -S --needed extra-cmake-modules qt6-base qt6-declarative qt6-tools qt6-quick3d kconfig kconfigwidgets kcoreaddons kglobalaccel ki18n kcmutils kxmlgui kwindowsystem kwin"
echo ""
if [ -z "${BREEZY_DISTROBOX:-}" ]; then
printf "\033[1;33mOn immutable distributions\033[0m (e.g. Fedora Silverblue) you can run the build inside a container.\n"
printf "\tBREEZY_DISTROBOX=your-container-name %s\n" "$0 $*"
echo ""
fi
printf "\n\033[1;33mIf you continue to see this issue\033[0m rerun as follows and attach the full output to a bug report:\n"
printf "\n\tPRINT_FULL_STDERR=1 %s\n" "$0 $*"
exit 1
}
ARCH=$(uname -m)
LIBS_ARCH="$ARCH"
if [ -f /etc/os-release ]; then
. /etc/os-release
if [ "$ID" == "steamos" ]; then
IFS=. read -r steamos_major steamos_minor _ <<< "$VERSION_ID"
ARCH="steamos-${steamos_major}.${steamos_minor}"
ARCH="steamos"
fi
fi
FILE_NAME="breezyKWin-$ARCH.tar.gz"
LIBS_FILE_NAME="breezyKWin-libs-$LIBS_ARCH.tar.gz"
LATEST_RELEASE=$(curl -s "https://api.github.com/repos/wheaney/breezy-desktop/releases/latest")
echo "Performing setup for KWin ($ARCH)"
@ -66,38 +53,15 @@ pushd $tmp_dir > /dev/null
echo "Created temp directory: ${tmp_dir}"
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/latest/download/$FILE_NAME"
libs_download_url="https://github.com/wheaney/breezy-desktop/releases/latest/download/$LIBS_FILE_NAME"
if [ "$1" = "-v" ]
then
metrics_version="$2"
local_dir_arg="$3"
binary_path_arg="$3"
elif [ "$1" = "--tag" ] && [ -n "$2" ]
then
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/download/$2/$FILE_NAME"
libs_download_url="https://github.com/wheaney/breezy-desktop/releases/download/$2/$LIBS_FILE_NAME"
else
local_dir_arg="$1"
fi
if [ -n "$local_dir_arg" ]
then
if [[ "$local_dir_arg" = /* ]]; then
local_dir="$local_dir_arg"
else
local_dir=$(realpath "$start_dir/$local_dir_arg")
fi
binary_path_arg="$local_dir/$FILE_NAME"
if [ ! -f "$binary_path_arg" ]; then
echo "Error: Breezy KWin archive not found at $binary_path_arg" 1>&2
exit 1
fi
lib_path_arg="$local_dir/$LIBS_FILE_NAME"
if [ ! -f "$lib_path_arg" ]; then
echo "Error: Breezy KWin libs archive not found at $lib_path_arg" 1>&2
exit 1
fi
binary_path_arg="$1"
fi
if [ -z "$binary_path_arg" ]
@ -107,7 +71,6 @@ then
if [[ "$http_code" =~ ^(2|3) ]]; then
echo "Downloading to: ${tmp_dir}/$FILE_NAME"
curl -L "$binary_download_url" -o "$FILE_NAME"
binary_path_arg="$FILE_NAME"
else
check_command "git"
check_command "cmake"
@ -151,23 +114,13 @@ then
pushd $start_dir > /dev/null
fi
echo "Building Breezy Desktop from source, this may take a while..."
set +e
distrobox_name="${BREEZY_DISTROBOX:-}"
if [ -n "$distrobox_name" ]; then
check_command "distrobox"
echo "Building Breezy Desktop from source inside Distrobox container: $distrobox_name"
build_dir=$(pwd)
distrobox_shell_cmd="cd \"$build_dir\" && LOCAL_BUILD_SYSTEM=1 bin/package_kwin --download-driver"
pkgkwin_stderr=$(distrobox enter --name "$distrobox_name" -- /bin/sh --noprofile --norc -lc "$distrobox_shell_cmd" 2>&1)
pkgkwin_rc=$?
else
echo "Building Breezy Desktop from source, this may take a while..."
pkgkwin_stderr=$(LOCAL_BUILD_SYSTEM=1 bin/package_kwin --download-driver 2>&1)
pkgkwin_rc=$?
fi
pkgkwin_stderr=$(LOCAL_BUILD_SYSTEM=1 bin/package_kwin --download-driver 2>&1)
pkgkwin_rc=$?
set -e
if [ "$pkgkwin_rc" -ne 0 ]; then
if echo "$pkgkwin_stderr" | grep -qiE 'could not find|Please install "cmake"' && [ -z "${PRINT_FULL_STDERR+x}" ]; then
if echo "$pkgkwin_stderr" | grep -qi "could not find" && [ -z "${PRINT_FULL_STDERR+x}" ]; then
print_missing_dependencies "$*"
else
echo "$pkgkwin_stderr"
@ -176,35 +129,27 @@ then
exit $pkgkwin_rc
fi
FILE_NAME="breezyKWin-$ARCH.tar.gz"
binary_path_arg="$FILE_NAME"
cp "out/$binary_path_arg" "$tmp_dir"
cp "out/$FILE_NAME" "$tmp_dir"
popd > /dev/null
fi
else
cp "$binary_path_arg" "$tmp_dir"
fi
if [ -z "$lib_path_arg" ]
then
lib_path_arg="$LIBS_FILE_NAME"
echo "Downloading to: ${tmp_dir}/$lib_path_arg"
curl -L "$libs_download_url" -o "$lib_path_arg"
else
cp "$lib_path_arg" "$tmp_dir"
FILE_NAME=$(basename $binary_path_arg)
if [[ "$binary_path_arg" = /* ]]; then
abs_path="$binary_path_arg"
else
# Convert relative path to absolute path
abs_path=$(realpath "$start_dir/$binary_path_arg")
fi
cp $abs_path $tmp_dir
fi
echo "Extracting to: ${tmp_dir}/breezy_kwin"
tar -xf $(basename "$binary_path_arg")
echo "Extracting lib to: ${tmp_dir}/breezy_kwin"
tar -xf $(basename "$lib_path_arg")
mv breezy_desktop_lib/* breezy_kwin/
tar -xf $FILE_NAME
pushd breezy_kwin > /dev/null
# run the setup script that comes with this release
ARCH="$ARCH" bin/setup $metrics_version
bin/setup $metrics_version
echo "Deleting temp directory: ${tmp_dir}"
rm -rf $tmp_dir

View File

@ -26,67 +26,36 @@ pushd $tmp_dir > /dev/null
echo "Created temp directory: ${tmp_dir}"
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/latest/download/breezyVulkan-$ARCH.tar.gz"
libs_download_url="https://github.com/wheaney/breezy-desktop/releases/latest/download/breezyVulkan-libs-$ARCH.tar.gz"
LIBS_FILE_NAME="breezyVulkan-libs-$ARCH.tar.gz"
FILE_NAME="breezyVulkan-$ARCH.tar.gz"
if [ "$1" = "-v" ]
then
metrics_version="$2"
local_dir_arg="$3"
binary_path_arg="$3"
elif [ "$1" = "--tag" ] && [ -n "$2" ]
then
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/download/$2/breezyVulkan-$ARCH.tar.gz"
libs_download_url="https://github.com/wheaney/breezy-desktop/releases/download/$2/breezyVulkan-libs-$ARCH.tar.gz"
else
local_dir_arg="$1"
fi
if [ -n "$local_dir_arg" ]
then
if [[ "$local_dir_arg" = /* ]]; then
local_dir="$local_dir_arg"
else
local_dir=$(realpath "$start_dir/$local_dir_arg")
fi
binary_path_arg="$local_dir/$FILE_NAME"
if [ ! -f "$binary_path_arg" ]; then
echo "Error: Breezy Vulkan archive not found at $binary_path_arg" 1>&2
exit 1
fi
lib_path_arg="$local_dir/$LIBS_FILE_NAME"
if [ ! -f "$lib_path_arg" ]; then
echo "Error: Breezy Vulkan libs archive not found at $lib_path_arg" 1>&2
exit 1
fi
binary_path_arg="$1"
fi
if [ -z "$binary_path_arg" ]
then
# download and unzip the binary
binary_path_arg="$FILE_NAME"
binary_path_arg="breezyVulkan-$ARCH.tar.gz"
echo "Downloading to: ${tmp_dir}/$binary_path_arg"
curl -L "$binary_download_url" > "$binary_path_arg"
else
cp "$binary_path_arg" "$tmp_dir"
if [[ "$binary_path_arg" = /* ]]; then
abs_path="$binary_path_arg"
else
# Convert relative path to absolute path
abs_path=$(realpath "$start_dir/$binary_path_arg")
fi
cp $abs_path $tmp_dir
fi
echo "Extracting to: ${tmp_dir}/breezy_vulkan"
tar -xf $(basename "$binary_path_arg")
if [ -z "$lib_path_arg" ]
then
lib_path_arg="$LIBS_FILE_NAME"
echo "Downloading to: ${tmp_dir}/$lib_path_arg"
curl -L "$libs_download_url" > "$lib_path_arg"
else
cp "$lib_path_arg" "$tmp_dir"
fi
echo "Extracting lib to: ${tmp_dir}/breezy_vulkan"
tar -xf $(basename "$lib_path_arg")
mv breezy_desktop_lib/* breezy_vulkan/
tar -xf $(basename $binary_path_arg)
pushd breezy_vulkan > /dev/null

View File

@ -1,9 +0,0 @@
#!/usr/bin/env bash
# exit when any command fails
set -e
ARCH=x86_64 bin/package_gnome "$@"
ARCH=aarch64 bin/package_gnome "$@"
STEAMOS=1 bin/package_kwin "$@"
bin/package_vulkan "$@"

View File

@ -53,10 +53,9 @@ fi
# copy vulkan setup scripts and configs
mkdir -p $PACKAGE_DIR/bin
copy_and_inject_ua "$XR_DRIVER_DIR/bin/ua.sh" "$PACKAGE_DIR/bin" "$GNOME_DIR/bin/setup" "$GNOME_DIR/bin/breezy_gnome_verify" "$GNOME_DIR/bin/breezy_gnome_uninstall" "$GNOME_DIR/bin/breezy_gnome_logs"
copy_and_inject_ua "$XR_DRIVER_DIR/bin/ua.sh" "$PACKAGE_DIR/bin" "$GNOME_DIR/bin/setup" "$GNOME_DIR/bin/breezy_gnome_verify" "$GNOME_DIR/bin/breezy_gnome_uninstall"
XR_DRIVER_BINARY_NAME=xrDriver-$ARCH.tar.gz
XR_DRIVER_BINARY="$XR_DRIVER_DIR/out/$XR_DRIVER_BINARY_NAME"
XR_DRIVER_BINARY=$XR_DRIVER_DIR/out/xrDriver-$ARCH.tar.gz
if [ ! -e "$XR_DRIVER_BINARY" ] || [ "$1" == "--rebuild-driver" ] || [ "$1" == "--rebuild-all" ]; then
# if a file exists at custom_banner_config.yml, copy it to the xrealAirLinuxDriver directory
@ -76,14 +75,14 @@ fi
TMP_DIR=$(mktemp -d -t breezy-gnome-XXXXXXXXXX)
pushd $TMP_DIR
cp "$XR_DRIVER_BINARY" "$TMP_DIR/$XR_DRIVER_BINARY_NAME"
tar -xf "$TMP_DIR/$XR_DRIVER_BINARY_NAME"
cp $XR_DRIVER_BINARY $TMP_DIR/xrDriver.tar.gz
tar -xf $TMP_DIR/xrDriver.tar.gz
XR_DRIVER_MANIFEST_LINE=$(sha256sum xr_driver/manifest)
popd
rm -rf $TMP_DIR
cp $XR_DRIVER_BINARY $PACKAGE_DIR/$XR_DRIVER_BINARY_NAME
cp $XR_DRIVER_BINARY $PACKAGE_DIR/xrDriver.tar.gz
cp $XR_DRIVER_DIR/bin/xr_driver_setup $PACKAGE_DIR/bin
$GNOME_DIR/bin/package_extension

View File

@ -7,7 +7,7 @@ ARCH=${ARCH:-$(uname -m)}
BUILD_ARCH=$ARCH
if [ -n "${STEAMOS+x}" ]; then
ARCH="x86_64"
BUILD_ARCH="steamos-$STEAMOS"
BUILD_ARCH="steamos"
fi
# https://stackoverflow.com/a/246128
@ -27,22 +27,19 @@ source $XR_DRIVER_DIR/bin/inject_ua
# copy vulkan setup scripts and configs
mkdir -p $PACKAGE_DIR/bin
copy_and_inject_ua "$XR_DRIVER_DIR/bin/ua.sh" "$PACKAGE_DIR/bin" "$KWIN_DIR/bin/setup" "$KWIN_DIR/bin/breezy_kwin_uninstall" "$KWIN_DIR/bin/breezy_kwin_logs"
copy_and_inject_ua "$XR_DRIVER_DIR/bin/ua.sh" "$PACKAGE_DIR/bin" "$KWIN_DIR/bin/setup" "$KWIN_DIR/bin/breezy_kwin_uninstall"
XR_DRIVER_BINARY_NAME=xrDriver-$ARCH.tar.gz
XR_DRIVER_BINARY="$XR_DRIVER_DIR/out/$XR_DRIVER_BINARY_NAME"
XR_DRIVER_VERSION=$(sed -nE 's/^project\([^)]*VERSION[[:space:]]+([0-9]+\.[0-9]+\.[0-9]+).*$/\1/p' "$XR_DRIVER_DIR/CMakeLists.txt" | head -n 1)
XR_DRIVER_BINARY=$XR_DRIVER_DIR/out/xrDriver-$ARCH.tar.gz
if [ "$1" == "--download-driver" ]; then
driver_download_url="https://github.com/wheaney/XRLinuxDriver/releases/download/v$XR_DRIVER_VERSION/xrDriver-$ARCH.tar.gz"
setup_download_url="https://github.com/wheaney/XRLinuxDriver/releases/download/v$XR_DRIVER_VERSION/xr_driver_setup"
driver_download_url="https://github.com/wheaney/XRLinuxDriver/releases/latest/download/xrDriver-$ARCH.tar.gz"
setup_download_url="https://github.com/wheaney/XRLinuxDriver/releases/latest/download/xr_driver_setup"
curl -L "$driver_download_url" > "$PACKAGE_DIR/$XR_DRIVER_BINARY_NAME"
curl -L "$driver_download_url" > "$PACKAGE_DIR/xrDriver.tar.gz"
curl -L "$setup_download_url" > "$PACKAGE_DIR/bin/xr_driver_setup"
chmod +x "$PACKAGE_DIR/bin/xr_driver_setup"
echo "Downloaded XRLinuxDriver binary and setup script, with hashes:"
printf '\txrDriver-%s.tar.gz: %s\n' "$ARCH" "$(sha256sum "$PACKAGE_DIR/$XR_DRIVER_BINARY_NAME" | sort | sha256sum | sed 's/ .*//')"
printf '\txrDriver-%s.tar.gz: %s\n' "$ARCH" "$(sha256sum "$PACKAGE_DIR/xrDriver.tar.gz" | sort | sha256sum | sed 's/ .*//')"
printf '\txr_driver_setup: %s\n' "$(sha256sum "$PACKAGE_DIR/bin/xr_driver_setup" | sort | sha256sum | sed 's/ .*//')"
else
if [ ! -e "$XR_DRIVER_BINARY" ] || [ "$1" == "--rebuild-driver" ] || [ "$1" == "--rebuild-all" ]; then
@ -63,14 +60,14 @@ else
XR_DRIVER_TMP_DIR=$(mktemp -d -t xr-driver-XXXXXXXXXX)
pushd $XR_DRIVER_TMP_DIR > /dev/null
cp "$XR_DRIVER_BINARY" "$XR_DRIVER_TMP_DIR/$XR_DRIVER_BINARY_NAME"
tar -xf "$XR_DRIVER_TMP_DIR/$XR_DRIVER_BINARY_NAME"
cp $XR_DRIVER_BINARY $XR_DRIVER_TMP_DIR/xrDriver.tar.gz
tar -xf $XR_DRIVER_TMP_DIR/xrDriver.tar.gz
XR_DRIVER_MANIFEST_LINE=$(sha256sum xr_driver/manifest)
popd > /dev/null
rm -rf $XR_DRIVER_TMP_DIR
cp "$XR_DRIVER_BINARY" "$PACKAGE_DIR/$XR_DRIVER_BINARY_NAME"
cp $XR_DRIVER_BINARY $PACKAGE_DIR/xrDriver.tar.gz
cp $XR_DRIVER_DIR/bin/xr_driver_setup $PACKAGE_DIR/bin/xr_driver_setup
fi

View File

@ -1,78 +0,0 @@
#!/usr/bin/env bash
# exit when any command fails
set -e
# Package shared/rarely-changing library artifacts.
#
# Produces 5 total artifacts:
# - breezyVulkan-libs-x86_64.tar.gz
# - breezyGNOME-libs-$ARCH.tar.gz (x86_64 + aarch64)
# - breezyKWin-libs-$ARCH.tar.gz (x86_64 + aarch64)
ARCHITECTURES=("x86_64" "aarch64")
VULKAN_ARCHITECTURES=("x86_64")
APPS=("breezyVulkan" "breezyGNOME" "breezyKWin")
# https://stackoverflow.com/a/246128
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
ROOT_DIR=$(realpath "$SCRIPT_DIR/..")
XR_DRIVER_DIR="$ROOT_DIR/modules/XRLinuxDriver"
VULKAN_DIR="$ROOT_DIR/vulkan"
VKBASALT_MODULE_DIR="$VULKAN_DIR/modules/vkBasalt"
VKBASALT_BUILD_DIR="$VKBASALT_MODULE_DIR/out"
echo "Building XR Driver libs packages"
pushd "$XR_DRIVER_DIR" > /dev/null
./bin/package_libs
popd > /dev/null
echo "Building vkBasalt build artifacts"
if [ ! -d "$VKBASALT_BUILD_DIR" ] || [ "${1:-}" == "--rebuild-vkbasalt" ]; then
pushd "$VKBASALT_MODULE_DIR" > /dev/null
./docker-build
popd > /dev/null
fi
echo "Building Breezy libs packages for all architectures"
BUILD_PATH="$ROOT_DIR/build"
mkdir -p "$BUILD_PATH"
pushd "$BUILD_PATH" > /dev/null
for APP in "${APPS[@]}"; do
ARCHES=("${ARCHITECTURES[@]}")
if [ "$APP" == "breezyVulkan" ]; then
ARCHES=("${VULKAN_ARCHITECTURES[@]}")
fi
for ARCH in "${ARCHES[@]}"; do
XR_LIB_ARCHIVE="$XR_DRIVER_DIR/out/xrDriver-libs-$ARCH.tar.gz"
PACKAGE_LIB_DIR=breezy_desktop_lib
rm -rf "$PACKAGE_LIB_DIR"
mkdir -p "$PACKAGE_LIB_DIR"
cp "$XR_LIB_ARCHIVE" "$PACKAGE_LIB_DIR/"
if [ "$APP" == "breezyVulkan" ]; then
mkdir -p "$PACKAGE_LIB_DIR"/{vkBasalt.64,vkBasalt.32}
cp "$VKBASALT_BUILD_DIR/builddir/src/libvkbasalt.so" "$PACKAGE_LIB_DIR/vkBasalt.64/"
cp "$VKBASALT_BUILD_DIR/builddir/config/vkBasalt.json" "$PACKAGE_LIB_DIR/vkBasalt.64/"
cp "$VKBASALT_BUILD_DIR/builddir.32/src/libvkbasalt.so" "$PACKAGE_LIB_DIR/vkBasalt.32/"
fi
LIB_ARTIFACT_NAME="$APP-libs-$ARCH.tar.gz"
tar -zcvf "$LIB_ARTIFACT_NAME" "$PACKAGE_LIB_DIR" > /dev/null
# Clean up for next iteration
rm -rf "$PACKAGE_LIB_DIR"
done
done
popd > /dev/null
mkdir -p "$ROOT_DIR/out"
cp "$BUILD_PATH"/breezy*-libs-*.tar.gz "$ROOT_DIR/out/"
rm -f "$BUILD_PATH"/breezy*-libs-*.tar.gz

View File

@ -26,6 +26,21 @@ else
fi
BUILD_FILE_NAME=breezyVulkan-$ARCH.tar.gz
# build vkBasalt
VKBASALT_MODULE_DIR=$VULKAN_MODULES/vkBasalt
VKBASALT_BUILD_DIR=$VKBASALT_MODULE_DIR/out
if [ ! -d "$VKBASALT_BUILD_DIR" ] || [ "$1" == "--rebuild-vkbasalt" ]; then
pushd $VKBASALT_MODULE_DIR
./docker-build
popd
fi
# copy vkBasalt binaries and configs
mkdir -p $PACKAGE_DIR/{vkBasalt.64,vkBasalt.32}
cp $VKBASALT_BUILD_DIR/builddir/src/libvkbasalt.so $PACKAGE_DIR/vkBasalt.64/
cp $VKBASALT_BUILD_DIR/builddir/config/vkBasalt.json $PACKAGE_DIR/vkBasalt.64/
cp $VKBASALT_BUILD_DIR/builddir.32/src/libvkbasalt.so $PACKAGE_DIR/vkBasalt.32/
# copy Sombrero shader, get ReShade headers
cp modules/sombrero/*.frag $PACKAGE_DIR
cp modules/sombrero/*.png $PACKAGE_DIR
@ -39,12 +54,11 @@ fi
# copy vulkan setup scripts and configs
mkdir -p $PACKAGE_DIR/bin
copy_and_inject_ua "$XR_DRIVER_DIR/bin/ua.sh" "$PACKAGE_DIR/bin" "$VULKAN_DIR/bin/setup" "$VULKAN_DIR/bin/breezy_vulkan_verify" "$VULKAN_DIR/bin/breezy_vulkan_uninstall" "$VULKAN_DIR/bin/breezy_vulkan_logs"
copy_and_inject_ua "$XR_DRIVER_DIR/bin/ua.sh" "$PACKAGE_DIR/bin" "$VULKAN_DIR/bin/setup" "$VULKAN_DIR/bin/breezy_vulkan_verify" "$VULKAN_DIR/bin/breezy_vulkan_uninstall"
cp -r $VULKAN_DIR/config $PACKAGE_DIR
# build XR driver
XR_DRIVER_BINARY_NAME=xrDriver-$ARCH.tar.gz
XR_DRIVER_BINARY="$XR_DRIVER_DIR/out/$XR_DRIVER_BINARY_NAME"
XR_DRIVER_BINARY=$XR_DRIVER_DIR/out/xrDriver-$ARCH.tar.gz
if [ ! -e "$XR_DRIVER_BINARY" ] || [ "$1" == "--rebuild-driver" ]; then
# if a file exists at custom_banner_config.yml, copy it to the xrealAirLinuxDriver directory
@ -56,30 +70,30 @@ if [ ! -e "$XR_DRIVER_BINARY" ] || [ "$1" == "--rebuild-driver" ]; then
# strange issue where the base library produces a .so file if the build is not cleaned
rm -rf build/
docker-build/init.sh
docker-build/run-build.sh $ARCH
popd
fi
TMP_DIR=$(mktemp -d -t breezy-vulkan-XXXXXXXXXX)
cp "$XR_DRIVER_BINARY" "$TMP_DIR/$XR_DRIVER_BINARY_NAME"
cp $XR_DRIVER_BINARY $TMP_DIR/xrDriver.tar.gz
pushd $TMP_DIR
tar -xf "$TMP_DIR/$XR_DRIVER_BINARY_NAME"
tar -xf $TMP_DIR/xrDriver.tar.gz
XR_DRIVER_MANIFEST_LINE=$(sha256sum xr_driver/manifest)
popd
rm -rf $TMP_DIR
# copy XR driver binary and setup script
cp "$XR_DRIVER_BINARY" "$PACKAGE_DIR/$XR_DRIVER_BINARY_NAME"
cp $XR_DRIVER_BINARY $PACKAGE_DIR/xrDriver.tar.gz
cp $XR_DRIVER_DIR/bin/xr_driver_setup $PACKAGE_DIR/bin
# create manifest file for verifying installed file checksums against the originally packaged versions
# include any file that doesn't get modified during setup (e.g. vkBasalt.json files)
pushd $PACKAGE_DIR
echo $XR_DRIVER_MANIFEST_LINE > manifest
sha256sum bin/breezy_vulkan_uninstall bin/breezy_vulkan_logs *.frag *.fx* *.png >> manifest
sha256sum bin/breezy_vulkan_uninstall vkBasalt.64/libvkbasalt.so vkBasalt.32/libvkbasalt.so *.frag *.fx* *.png >> manifest
popd
# bundle everything up

@ -0,0 +1 @@
Subproject commit 12c0688e207561efab380914465306f0d9cbefec

@ -0,0 +1 @@
Subproject commit 719a65aad341d23b40b25b82fe548146bbe374c0

View File

@ -1,50 +0,0 @@
#!/usr/bin/env bash
# exit when any command fails
set -e
if [ "$(id -u)" == "0" ]; then
echo "This script must not be run as root" 1>&2
exit 1
fi
XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
copy_latest_file() {
local src_dir="$1"
local dest_dir="$2"
local description="$3"
if [ ! -d "$src_dir" ]; then
echo "Warning: ${description} not found at $src_dir"
return 0
fi
local latest_file
latest_file=$(find "$src_dir" -type f -printf '%T@ %p\n' 2>/dev/null | sort -nr | head -n 1 | cut -d' ' -f2-)
if [ -z "$latest_file" ]; then
echo "Warning: No files found under $src_dir"
return 0
fi
mkdir -p "$dest_dir"
cp "$latest_file" "$dest_dir/"
echo "Copied latest ${description}: $latest_file"
}
# Create a temp directory to gather logs
tmp_dir=$(mktemp -d -t breezy-gnome-logs-XXXXXXXXXX)
echo "Gathering logs into temp directory: ${tmp_dir}"
mkdir -p "$tmp_dir/breezy_gnome_logs"
# Copy the most recent GNOME log file
copy_latest_file "$XDG_STATE_HOME/breezy_gnome/logs/ui" "$tmp_dir/breezy_gnome_logs/breezy_gnome" "Breezy GNOME UI logs"
copy_latest_file "$XDG_STATE_HOME/breezy_gnome/logs/gjs" "$tmp_dir/breezy_gnome_logs/breezy_gnome" "Breezy GNOME GJS logs"
# Create archive
archive_name="breezy_gnome_logs_$(date +%Y%m%d_%H%M%S).tar.gz"
tar -czf "$archive_name" -C "$tmp_dir" breezy_gnome_logs
echo "Created log archive: $(pwd)/$archive_name"
rm -rf "$tmp_dir"

View File

@ -44,9 +44,6 @@ rm -f $XDG_DATA_HOME/locale/*/LC_MESSAGES/breezydesktop.mo
rm -f $XDG_BIN_HOME/breezydesktop
rm -f $XDG_BIN_HOME/virtualdisplay
[ "$for_install" -eq 0 ] && echo "Clearing Breezy Desktop icons from the GTK icon cache"
gtk-update-icon-cache -f -t "$XDG_DATA_HOME/icons/hicolor" >/dev/null 2>&1 || true
if [ -e "$XDG_BIN_HOME/xr_driver_uninstall" ]; then
[ "$for_install" -eq 0 ] && echo "Uninstalling XRLinuxDriver"
if [ "$for_install" -eq 1 ]; then
@ -59,7 +56,6 @@ fi
[ "$for_install" -eq 0 ] && echo "Removing the breezy_gnome scripts from ${XDG_BIN_HOME}"
rm -f $XDG_BIN_HOME/breezy_gnome_verify
rm -f $XDG_BIN_HOME/breezy_gnome_logs
# this script is self-deleting, leave this as the last command
rm -f $XDG_BIN_HOME/breezy_gnome_uninstall

View File

@ -69,18 +69,9 @@ if [ "$XDG_SESSION_TYPE" != "wayland" ]; then
printf "\033[1;33mWARNING:\033[0m Virtual display functionality requires GNOME on Wayland\n"
fi
# Check the actual dependencies used by the UI for virtual displays.
if command -v gdbus &>/dev/null; then
if ! gdbus call --session \
--dest org.gnome.Mutter.ScreenCast \
--object-path /org/gnome/Mutter/ScreenCast \
--method org.freedesktop.DBus.Introspectable.Introspect &>/dev/null; then
printf "\033[1;33mWARNING:\033[0m org.gnome.Mutter.ScreenCast D-Bus API not available on the session bus\n"
printf "\033[1;33mWARNING:\033[0m Virtual display requires GNOME/Mutter with ScreenCast support\n"
fi
else
printf "\033[1;33mWARNING:\033[0m Cannot check Mutter ScreenCast API (missing gdbus)\n"
printf "\033[1;33mWARNING:\033[0m Install GLib tools (gdbus) to enable this check\n"
if ! systemctl --user is-active gnome-remote-desktop &>/dev/null; then
printf "\033[1;33mWARNING:\033[0m gnome-remote-desktop service is not running\n"
printf "\033[1;33mWARNING:\033[0m Virtual display functionality requires the gnome-remote-desktop service running\n"
fi
# This script gets packaged with the release and should do the bulk of the setup work. This allows this setup to be tied
@ -137,7 +128,6 @@ ESCAPED_GNOME_SHELL_DATA_DIR=$(printf '%s\n' "$GNOME_SHELL_DATA_DIR" | sed -e 's
echo "Copying the breezy_gnome scripts to ${XDG_BIN_HOME}"
mkdir -p $XDG_BIN_HOME
cp bin/breezy_gnome_uninstall $XDG_BIN_HOME
cp bin/breezy_gnome_logs $XDG_BIN_HOME
sed -i -e "s/{bin_dir}/$ESCAPED_XDG_BIN_HOME/g" \
-e "s/{data_dir}/$ESCAPED_BREEZY_GNOME_DATA_DIR/g" \
-e "s/{xr_driver_data_dir}/$ESCAPED_XR_DRIVER_DATA_DIR/g" \
@ -146,8 +136,8 @@ sed -i -e "s/{bin_dir}/$ESCAPED_XDG_BIN_HOME/g" \
cp bin/breezy_gnome_verify $XDG_BIN_HOME
echo "Copying the manifest file to ${BREEZY_GNOME_DATA_DIR}"
mkdir -p "$BREEZY_GNOME_DATA_DIR"
cp manifest "$BREEZY_GNOME_DATA_DIR/manifest"
mkdir -p $BREEZY_GNOME_DATA_DIR
cp manifest $BREEZY_GNOME_DATA_DIR
echo "Installing the breezydesktop@xronlinux.com GNOME extension"
gnome-extensions install --force breezydesktop@xronlinux.com.shell-extension.zip
@ -173,12 +163,9 @@ echo "Installing xrDriver"
echo "BEGIN - xr_driver_setup"
if [ -z "$1" ]
then
sudo --preserve-env=SKIP_SYSTEMD bin/xr_driver_setup $(pwd)
sudo bin/xr_driver_setup $(pwd)/xrDriver.tar.gz
else
sudo --preserve-env=SKIP_SYSTEMD bin/xr_driver_setup -v $1 $(pwd)
sudo bin/xr_driver_setup -v $1 $(pwd)/xrDriver.tar.gz
fi
echo "END - xr_driver_setup"
echo "Setting up productivity features"
printf "request_features=productivity,productivity_pro\n" >> /dev/shm/xr_driver_control 2>/dev/null || true
echo "END - xr_driver_setup"

View File

@ -21,7 +21,7 @@ const IPC_FILE_PATH = "/dev/shm/breezy_desktop_imu";
const KEEPALIVE_REFRESH_INTERVAL_SEC = 1;
// the driver should be using the same data layout version
const DATA_LAYOUT_VERSION = 5;
const DATA_LAYOUT_VERSION = 4;
// DataView info: [offset, size, count]
const VERSION = [0, UINT8_SIZE, 1];
@ -34,17 +34,16 @@ const SBS_ENABLED = [dataViewEnd(LENS_DISTANCE_RATIO), BOOL_SIZE, 1];
const CUSTOM_BANNER_ENABLED = [dataViewEnd(SBS_ENABLED), BOOL_SIZE, 1];
const SMOOTH_FOLLOW_ENABLED = [dataViewEnd(CUSTOM_BANNER_ENABLED), BOOL_SIZE, 1];
const SMOOTH_FOLLOW_ORIGIN_DATA = [dataViewEnd(SMOOTH_FOLLOW_ENABLED), FLOAT_SIZE, 16];
const POSE_POSITION = [dataViewEnd(SMOOTH_FOLLOW_ORIGIN_DATA), FLOAT_SIZE, 3];
const EPOCH_MS = [dataViewEnd(POSE_POSITION), UINT_SIZE, 2];
const POSE_ORIENTATION = [dataViewEnd(EPOCH_MS), FLOAT_SIZE, 16];
const IMU_PARITY_BYTE = [dataViewEnd(POSE_ORIENTATION), UINT8_SIZE, 1];
const EPOCH_MS = [dataViewEnd(SMOOTH_FOLLOW_ORIGIN_DATA), UINT_SIZE, 2];
const IMU_QUAT_DATA = [dataViewEnd(EPOCH_MS), FLOAT_SIZE, 16];
const IMU_PARITY_BYTE = [dataViewEnd(IMU_QUAT_DATA), UINT8_SIZE, 1];
const DATA_VIEW_LENGTH = dataViewEnd(IMU_PARITY_BYTE);
function checkParityByte(dataView) {
const parityByte = dataViewUint8(dataView, IMU_PARITY_BYTE);
let parity = 0;
const epochUint8 = dataViewUint8Array(dataView, EPOCH_MS);
const imuDataUint8 = dataViewUint8Array(dataView, POSE_ORIENTATION);
const imuDataUint8 = dataViewUint8Array(dataView, IMU_QUAT_DATA);
for (let i = 0; i < epochUint8.length; i++) {
parity ^= epochUint8[i];
}
@ -211,11 +210,10 @@ export const DeviceDataStream = GObject.registerClass({
const validData = validKeepAlive && displayFov !== 0.0;
const version = dataViewUint8(dataView, VERSION);
const enabled = dataViewUint8(dataView, ENABLED) !== 0 && version === DATA_LAYOUT_VERSION && validData;
let poseOrientation = dataViewFloatArray(dataView, POSE_ORIENTATION);
let posePosition = dataViewFloatArray(dataView, POSE_POSITION);
let imuData = dataViewFloatArray(dataView, IMU_QUAT_DATA);
let smoothFollowEnabled = !this.legacy_follow_mode && dataViewUint8(dataView, SMOOTH_FOLLOW_ENABLED) !== 0;
let smoothFollowOrigin = dataViewFloatArray(dataView, SMOOTH_FOLLOW_ORIGIN_DATA);
const imuResetState = enabled && validData && poseOrientation[0] === 0.0 && poseOrientation[1] === 0.0 && poseOrientation[2] === 0.0 && poseOrientation[3] === 1.0;
const imuResetState = enabled && validData && imuData[0] === 0.0 && imuData[1] === 0.0 && imuData[2] === 0.0 && imuData[3] === 1.0;
const customBannerEnabled = dataViewUint8(dataView, CUSTOM_BANNER_ENABLED) !== 0;
const sbsEnabled = dataViewUint8(dataView, SBS_ENABLED) !== 0;
@ -263,8 +261,7 @@ export const DeviceDataStream = GObject.registerClass({
if (checkParityByte(dataView)) {
this.imu_snapshots = {
pose_orientation: poseOrientation,
pose_position: posePosition,
imu_data: imuData,
timestamp_ms: imuDateMs,
smooth_follow_origin: smoothFollowOrigin
};
@ -280,8 +277,7 @@ export const DeviceDataStream = GObject.registerClass({
buffer = new Uint8Array(data[1]).buffer;
dataView = new DataView(buffer);
imuDateMs = dataViewBigUint(dataView, EPOCH_MS);
poseOrientation = dataViewFloatArray(dataView, POSE_ORIENTATION);
posePosition = dataViewFloatArray(dataView, POSE_POSITION);
imuData = dataViewFloatArray(dataView, IMU_QUAT_DATA);
}
}
}
@ -315,17 +311,15 @@ export const DeviceDataStream = GObject.registerClass({
if (!keepalive_only) {
this._counter = ((this._counter ?? -1)+1)%COUNTER_MAX;
const poseOrientationFirst = nextDebugIMUQuaternion(this._counter);
const poseOrientation = [
...poseOrientationFirst,
...poseOrientationFirst,
...poseOrientationFirst,
const imuDataFirst = nextDebugIMUQuaternion(this._counter);
const imuData = [
...imuDataFirst,
...imuDataFirst,
...imuDataFirst,
2.0, 1.0, 0.0, 0.0
]
const posePosition = [0.0, 0.0, 0.0];
this.imu_snapshots = {
pose_orientation: poseOrientation,
pose_position: posePosition,
imu_data: imuData,
timestamp_ms: Date.now(),
smooth_follow_origin: [0.0, 0.0, 0.0, 1.0]
};

View File

@ -35,14 +35,10 @@ export default class BreezyDesktopExtension extends Extension {
this._data_stream_bindings = [];
this._show_banner_connection = null;
this._distance_connection = null;
this._display_size_connection = null;
this._focused_monitor_distance_connection = null;
this._follow_threshold_connection = null;
this._breezy_desktop_running_connection = null;
this._state_poll_timeout = null;
this._pose_has_position = null;
// "fresh" means the effect hasn't been enabled since breezy-desktop-running became true
this._fresh_session = true;
@ -67,9 +63,6 @@ export default class BreezyDesktopExtension extends Extension {
try {
Globals.extension_dir = this.path;
// safe to request on each load, acts as a no-op if already present
this._write_control('request_features', 'productivity,productivity_pro');
Globals.data_stream.start();
this._monitor_manager = new MonitorManager({
@ -235,14 +228,6 @@ export default class BreezyDesktopExtension extends Extension {
this._virtual_displays_overlay.set_position(targetMonitor.x, targetMonitor.y);
this._virtual_displays_overlay.set_size(targetMonitor.width, targetMonitor.height);
const state = this._read_state();
const pose_has_position = state['connected_device_pose_has_position'] === 'true';
this._pose_has_position = pose_has_position;
Globals.logger.log_debug(
`connected_device_pose_has_position=${pose_has_position}`
);
Globals.data_stream.refresh_data();
this._virtual_displays_actor = new VirtualDisplaysActor({
width: targetMonitor.width,
@ -256,14 +241,12 @@ export default class BreezyDesktopExtension extends Extension {
viewport_offset_x: this.settings.get_double('viewport-offset-x'),
viewport_offset_y: this.settings.get_double('viewport-offset-y'),
display_distance: this.settings.get_double('display-distance'),
display_size: this.settings.get_double('display-size'),
toggle_display_distance_start: this.settings.get_double('toggle-display-distance-start'),
toggle_display_distance_end: this.settings.get_double('toggle-display-distance-end'),
framerate_cap: this.settings.get_double('framerate-cap'),
imu_snapshots: Globals.data_stream.imu_snapshots,
show_banner: Globals.data_stream.show_banner,
custom_banner_enabled: Globals.data_stream.custom_banner_enabled,
pose_has_position
custom_banner_enabled: Globals.data_stream.custom_banner_enabled
});
this._virtual_displays_overlay.set_child(this._virtual_displays_actor);
@ -316,9 +299,6 @@ export default class BreezyDesktopExtension extends Extension {
);
this._distance_connection = this.settings.connect('changed::display-distance', this._update_display_distance.bind(this));
this._toggle_distance_start_connection = this.settings.connect('changed::toggle-display-distance-start', this._update_display_distance.bind(this));
this._toggle_distance_end_connection = this.settings.connect('changed::toggle-display-distance-end', this._update_display_distance.bind(this));
this._display_size_connection = this.settings.connect('changed::display-size', this._update_display_distance.bind(this));
this._focused_monitor_distance_connection =
this._virtual_displays_actor.connect('notify::focused-monitor-details', this._update_display_distance.bind(this));
this._follow_threshold_connection = this.settings.connect('changed::follow-threshold', this._update_follow_threshold.bind(this));
@ -334,8 +314,6 @@ export default class BreezyDesktopExtension extends Extension {
this._add_settings_keybinding('toggle-follow-shortcut', this._toggle_follow_mode.bind(this));
this._add_settings_keybinding('cursor-to-focused-display-shortcut', this._cursor_to_focused_display.bind(this));
this._start_state_poller();
this._fresh_session = false;
} catch (e) {
Globals.logger.log(`[ERROR] BreezyDesktopExtension _effect_enable ${e.message}\n${e.stack}`);
@ -345,44 +323,6 @@ export default class BreezyDesktopExtension extends Extension {
}
}
_start_state_poller() {
if (this._state_poll_timeout) return;
this._state_poll_timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 3000, () => {
if (!this._is_effect_running) {
this._state_poll_timeout = null;
return GLib.SOURCE_REMOVE;
}
try {
const state = this._read_state();
const pose_has_position = state['connected_device_pose_has_position'] === 'true';
if (pose_has_position !== this._pose_has_position) {
this._pose_has_position = pose_has_position;
Globals.logger.log_debug(
`BreezyDesktopExtension state poll - connected_device_pose_has_position=${pose_has_position}`
);
if (this._virtual_displays_actor) {
this._virtual_displays_actor.set_property('pose-has-position', pose_has_position);
}
}
} catch (e) {
Globals.logger.log(`[ERROR] BreezyDesktopExtension _start_state_poller ${e.message}\n${e.stack}`);
}
return GLib.SOURCE_CONTINUE;
});
}
_stop_state_poller() {
if (!this._state_poll_timeout) return;
GLib.source_remove(this._state_poll_timeout);
this._state_poll_timeout = null;
}
_add_settings_keybinding(settings_key, bind_to_function) {
try {
Main.wm.addKeybinding(
@ -458,23 +398,17 @@ export default class BreezyDesktopExtension extends Extension {
}
_update_display_distance(object, event) {
const distance = this.settings.get_double('display-distance');
const size = this.settings.get_double('display-size');
Globals.logger.log_debug(`BreezyDesktopExtension _update_display_distance ${distance} ${size}`);
if (distance !== undefined && size !== undefined) {
const defaultDistance = Math.max(
distance,
this.settings.get_double('toggle-display-distance-start'),
this.settings.get_double('toggle-display-distance-end')
);
let focusedMonitorSizeAdjustment = size * defaultDistance;
const value = this.settings.get_double('display-distance');
Globals.logger.log_debug(`BreezyDesktopExtension _update_display_distance ${value}`);
if (value !== undefined) {
let focusedMonitorSizeAdjustment = 1.0;
if (this._virtual_displays_actor?.focused_monitor_details && this._target_monitor) {
const fovMonitor = this._target_monitor.monitor;
const focusedMonitor = this._virtual_displays_actor.focused_monitor_details;
focusedMonitorSizeAdjustment *=
focusedMonitorSizeAdjustment =
Math.max(focusedMonitor.width / fovMonitor.width, focusedMonitor.height / fovMonitor.height);
}
this._write_control('breezy_desktop_display_distance', distance / focusedMonitorSizeAdjustment);
this._write_control('breezy_desktop_display_distance', value / focusedMonitorSizeAdjustment);
}
}
@ -583,13 +517,12 @@ export default class BreezyDesktopExtension extends Extension {
}
Globals.logger.log_debug(`BreezyDesktopExtension _toggle_xr_effect external_mode: ${stdout}`);
const was_enabled = stdout.trim() === 'breezy_desktop';
const should_enable = !was_enabled;
const enabled = stdout.trim() === 'breezy_desktop';
// use the CLI to change the external mode, avoid using disable/enable, otherwise the driver will
// shut down and recalibrate each time
proc = Gio.Subprocess.new(
['bash', '-c', `${this._cli_file.get_path()} ${should_enable ? '--enable --breezy-desktop' : '--disable-external'}`],
['bash', '-c', `${this._cli_file.get_path()} --${enabled ? 'disable-external' : 'breezy-desktop'}`],
Gio.SubprocessFlags.STDOUT_PIPE | Gio.SubprocessFlags.STDERR_PIPE
);
[success, stdout, stderr] = proc.communicate_utf8(null, null);
@ -625,8 +558,6 @@ export default class BreezyDesktopExtension extends Extension {
Globals.logger.log_debug('BreezyDesktopExtension _effect_disable');
this._is_effect_running = false;
this._stop_state_poller();
if (Globals.data_stream.smooth_follow_enabled) this._toggle_follow_mode();
Main.wm.removeKeybinding('recenter-display-shortcut');
@ -655,18 +586,6 @@ export default class BreezyDesktopExtension extends Extension {
this.settings.disconnect(this._distance_connection);
this._distance_connection = null;
}
if (this._toggle_distance_start_connection) {
this.settings.disconnect(this._toggle_distance_start_connection);
this._toggle_distance_start_connection = null;
}
if (this._toggle_distance_end_connection) {
this.settings.disconnect(this._toggle_distance_end_connection);
this._toggle_distance_end_connection = null;
}
if (this._display_size_connection) {
this.settings.disconnect(this._display_size_connection);
this._display_size_connection = null;
}
if (this._focused_monitor_distance_connection) {
this._virtual_displays_actor.disconnect(this._focused_monitor_distance_connection);
this._focused_monitor_distance_connection = null;

View File

@ -4,23 +4,18 @@ export function degreeToRadian(degree) {
// FOV in radians is spherical, so doesn't follow Pythagoras' theorem
export function diagonalToCrossFOVs(diagonalFOVRadians, aspectRatio) {
// first convert from a spherical FOV to a diagonal FOV on a flat plane at a unit distance of 1.0
const diagonalLengthUnitDistance = 2 * Math.tan(diagonalFOVRadians / 2);
// first convert from a spherical FOV to a diagonal FOV on a flat plane at a generic distance of 1.0
const flatDiagonalFOV = 2 * Math.tan(diagonalFOVRadians / 2);
// then convert to flat plane horizontal and vertical FOVs
const heightUnitDistance = diagonalLengthUnitDistance / Math.sqrt(1 + aspectRatio * aspectRatio);
const widthUnitDistance = heightUnitDistance * aspectRatio;
const flatVerticalFOV = flatDiagonalFOV / Math.sqrt(1 + aspectRatio * aspectRatio);
const flatHorizontalFOV = flatVerticalFOV * aspectRatio;
// then convert back to spherical FOV
return {
// then convert back to spherical FOV
diagonalRadians: diagonalFOVRadians,
horizontalRadians: 2 * Math.atan(widthUnitDistance / 2),
verticalRadians: 2 * Math.atan(heightUnitDistance / 2),
// flat values are relative to a unit distance of 1.0
diagonalLengthUnitDistance,
widthUnitDistance,
heightUnitDistance
diagonal: diagonalFOVRadians,
horizontal: 2 * Math.atan(flatHorizontalFOV / 2),
vertical: 2 * Math.atan(flatVerticalFOV / 2)
}
}
@ -36,10 +31,7 @@ export const fovConversionFns = {
fovEdgeToScreenCenterDistance: (edgeDistance, screenLength) => Math.sqrt(Math.pow(edgeDistance, 2) - Math.pow(screenLength / 2, 2)),
lengthToRadians: (fovRadians, fovLength, screenEdgeDistance, toLength) => Math.asin(toLength / 2 / screenEdgeDistance) * 2,
angleToLength: (fovRadians, fovLength, screenDistance, toAngleOpposite, toAngleAdjacent) => {
return toAngleOpposite / toAngleAdjacent * screenDistance;
},
fovRadiansAtDistance: (fovRadians, unitLength, newScreenDistance) => {
return 2 * Math.atan(unitLength / 2 / newScreenDistance);
return toAngleOpposite / toAngleAdjacent * screenDistance
},
radiansToSegments: (screenRadians) => 1
},
@ -50,7 +42,6 @@ export const fovConversionFns = {
fovEdgeToScreenCenterDistance: (edgeDistance, screenLength) => edgeDistance,
lengthToRadians: (fovRadians, fovLength, screenEdgeDistance, toLength) => fovRadians / fovLength * toLength,
angleToLength: (fovRadians, fovLength, screenDistance, toAngleOpposite, toAngleAdjacent) => fovLength / fovRadians * Math.atan2(toAngleOpposite, toAngleAdjacent),
fovRadiansAtDistance: (fovRadians, unitLength, newScreenDistance) => fovRadians / newScreenDistance,
radiansToSegments: (screenRadians) => Math.ceil(screenRadians * segmentsPerRadian)
}
}
@ -68,11 +59,7 @@ export const applyQuaternionToVector = (vector, quaternion) => {
];
}
export const vectorMagnitude = (vector) => {
return Math.sqrt(vector[0] * vector[0] + vector[1] * vector[1] + vector[2] * vector[2]);
}
export const normalizeVector = (vector) => {
const length = vectorMagnitude(vector);
const length = Math.sqrt(vector[0] * vector[0] + vector[1] * vector[1] + vector[2] * vector[2]);
return [vector[0] / length, vector[1] / length, vector[2] / length];
}

View File

@ -5,7 +5,7 @@
"settings-schema": "com.xronlinux.BreezyDesktop",
"session-modes": ["user"],
"shell-version": [
"46", "47", "48", "49", "50"
"46", "47", "48", "49"
],
"url": "https://github.com/wheaney/breezy-desktop"
}

View File

@ -34,9 +34,6 @@ export const SUPPORTED_MONITOR_PRODUCTS = [
'Air 2 Ultra',
'One',
'One Pro',
'XREAL One',
'XREAL One Pro',
'XREAL 1S',
'SmartGlasses', // TCL/RayNeo
'Rokid Max',
'Rokid Max 2',

View File

@ -28,34 +28,33 @@ function lookAheadMS(imuDateMs, lookAheadCfg, override) {
// Create a mesh of vertices in a pattern suitable for TRIANGLE_STRIP
function createVertexMesh(fovDetails, monitorDetails, positionVectorNWU) {
let horizontalWrap = fovDetails.monitorWrappingScheme === 'horizontal';
const horizontalConversions = fovDetails.curvedDisplay && horizontalWrap ? fovConversionFns.curved : fovConversionFns.flat;
const sideEdgeDistancePixels = horizontalConversions.centerToFovEdgeDistance(
let fovConversions = fovDetails.curvedDisplay ? fovConversionFns.curved : fovConversionFns.flat;
const sideEdgeDistancePixels = fovConversions.centerToFovEdgeDistance(
fovDetails.completeScreenDistancePixels,
fovDetails.sizeAdjustedWidthPixels
fovDetails.widthPixels
);
const horizontalRadians = horizontalConversions.lengthToRadians(
fovDetails.defaultDistanceHorizontalRadians,
const horizontalRadians = fovConversions.lengthToRadians(
fovDetails.defaultDistanceHorizontalRadians,
fovDetails.widthPixels,
sideEdgeDistancePixels,
monitorDetails.width
);
let verticalWrap = fovDetails.monitorWrappingScheme === 'vertical';
const verticalConversions = fovDetails.curvedDisplay && verticalWrap ? fovConversionFns.curved : fovConversionFns.flat;
const topEdgeDistancePixels = verticalConversions.centerToFovEdgeDistance(
const topEdgeDistancePixels = fovConversions.centerToFovEdgeDistance(
fovDetails.completeScreenDistancePixels,
fovDetails.sizeAdjustedHeightPixels
fovDetails.heightPixels
);
const verticalRadians = verticalConversions.lengthToRadians(
const verticalRadians = fovConversions.lengthToRadians(
fovDetails.defaultDistanceVerticalRadians,
fovDetails.heightPixels,
topEdgeDistancePixels,
monitorDetails.height
);
const xSegments = horizontalConversions.radiansToSegments(horizontalRadians);
const ySegments = verticalConversions.radiansToSegments(verticalRadians);
let horizontalWrap = fovDetails.monitorWrappingScheme === 'horizontal';
let verticalWrap = fovDetails.monitorWrappingScheme === 'vertical';
const xSegments = horizontalWrap ? fovConversions.radiansToSegments(horizontalRadians) : 1;
const ySegments = verticalWrap ? fovConversions.radiansToSegments(verticalRadians) : 1;
const texXLeft = 0;
const texYTop = 0;
@ -149,13 +148,6 @@ export const VirtualDisplayEffect = GObject.registerClass({
'Latest IMU quaternion snapshots and epoch timestamp for when it was collected',
GObject.ParamFlags.READWRITE
),
'pose-has-position': GObject.ParamSpec.boolean(
'pose-has-position',
'Pose Has Position',
'Whether the IMU snapshots contain pose data',
GObject.ParamFlags.READWRITE,
false
),
'smooth-follow-enabled': GObject.ParamSpec.boolean(
'smooth-follow-enabled',
'Smooth follow enabled',
@ -184,21 +176,12 @@ export const VirtualDisplayEffect = GObject.registerClass({
GObject.ParamFlags.READWRITE,
true
),
'display-size': GObject.ParamSpec.double(
'display-size',
'Display size',
'Size of the display',
GObject.ParamFlags.READWRITE,
0.1,
2.5,
1.0
),
'display-distance': GObject.ParamSpec.double(
'display-distance',
'Display Distance',
'Distance of the display from the camera',
GObject.ParamFlags.READWRITE,
0.1,
0.0,
2.5,
1.0
),
@ -207,7 +190,7 @@ export const VirtualDisplayEffect = GObject.registerClass({
'Display distance default',
'Distance to use when not explicitly set, or when reset',
GObject.ParamFlags.READWRITE,
0.1,
0.2,
2.5,
1.0
),
@ -270,8 +253,6 @@ export const VirtualDisplayEffect = GObject.registerClass({
this._use_smooth_follow_origin = false;
this.connect('notify::display-distance', this._update_display_distance.bind(this));
this.connect('notify::display-distance-default', this._update_display_distance.bind(this));
this.connect('notify::display-size', this._update_display_position.bind(this));
this.connect('notify::focused-monitor-index', this._update_display_distance.bind(this));
this.connect('notify::monitor-placements', this._update_display_position.bind(this));
this.connect('notify::show-banner', this._handle_banner_update.bind(this));
@ -408,11 +389,7 @@ export const VirtualDisplayEffect = GObject.registerClass({
finalPositionVector = noRotationVector.map(coord => coord * inverse_follow_ease);
finalPositionVector[0] = noRotationVector[0];
}
const resizedMonitorDetails = {
width: this.monitor_details.width * this.fov_details.distanceAdjustedSize,
height: this.monitor_details.height * this.fov_details.distanceAdjustedSize
};
this._vertices = createVertexMesh(this.fov_details, resizedMonitorDetails, finalPositionVector);
this._vertices = createVertexMesh(this.fov_details, this.monitor_details, finalPositionVector);
const rotation_radians = this.monitor_placements[this.monitor_index].rotationAngleRadians;
if (this._initialized) {
@ -425,8 +402,8 @@ export const VirtualDisplayEffect = GObject.registerClass({
this.set_uniform_float(this.get_uniform_location("u_show_banner"), 1, [this.show_banner ? 1.0 : 0.0]);
}
perspective(widthUnitDistance, aspect, near, far) {
const f = 2.0 / widthUnitDistance;
perspective(fovHorizontalRadians, aspect, near, far) {
const f = 1.0 / Math.tan(fovHorizontalRadians / 2.0);
const range = far - near;
return [
@ -440,8 +417,7 @@ export const VirtualDisplayEffect = GObject.registerClass({
vfunc_build_pipeline() {
const declarations = `
uniform bool u_show_banner;
uniform mat4 u_pose_orientation;
uniform vec3 u_pose_position;
uniform mat4 u_imu_data;
uniform float u_look_ahead_ms;
uniform vec4 u_look_ahead_cfg;
uniform mat4 u_projection_matrix;
@ -481,14 +457,10 @@ export const VirtualDisplayEffect = GObject.registerClass({
return vec3(v.x * c + v.z * s, v.y, v.z * c - v.x * s);
}
vec4 nwuToEUS(vec4 v) {
vec4 nwuToESU(vec4 v) {
return vec4(-v.y, v.z, -v.x, v.w);
}
vec3 nwuToEUS(vec3 v) {
return vec3(-v.y, v.z, -v.x);
}
// returns the rate of change between the two vectors, in same time units as delta_time
// e.g. if delta_time is in ms, then the rate of change is "per ms"
vec3 rateOfChange(vec3 v1, vec3 v2, float delta_time) {
@ -515,23 +487,14 @@ export const VirtualDisplayEffect = GObject.registerClass({
if (!u_show_banner) {
float aspect_ratio = u_display_resolution.x / u_display_resolution.y;
vec4 quat_t0 = nwuToEUS(quatConjugate(u_pose_orientation[0]));
vec3 position_vector = applyQuaternionToVector(nwuToEUS(u_pose_position), quat_t0);
vec3 final_lens_position = nwuToEUS(u_lens_vector) + position_vector;
vec3 complete_vector = applyXRotationToVector(world_pos.xyz, u_rotation_x_radians);
complete_vector = applyYRotationToVector(complete_vector, u_rotation_y_radians);
vec4 quat_t0 = nwuToESU(quatConjugate(u_imu_data[0]));
vec3 rotated_vector_t0 = applyQuaternionToVector(complete_vector, quat_t0);
vec3 rotated_vector_t1 = applyQuaternionToVector(complete_vector, nwuToEUS(quatConjugate(u_pose_orientation[1])));
float delta_time_t0 = u_pose_orientation[3][0] - u_pose_orientation[3][1];
// how quickly the vertex is moving relative to the camera
vec3 velocity_t0 = rateOfChange(
rotated_vector_t0 - final_lens_position,
rotated_vector_t1 - final_lens_position,
delta_time_t0
);
vec3 rotated_vector_t1 = applyQuaternionToVector(complete_vector, nwuToESU(quatConjugate(u_imu_data[1])));
float delta_time_t0 = u_imu_data[3][0] - u_imu_data[3][1];
vec3 velocity_t0 = rateOfChange(rotated_vector_t0, rotated_vector_t1, delta_time_t0);
// compute the capped look ahead with scanline adjustments
float look_ahead_scanline_ms = u_look_ahead_ms == 0.0 ? 0.0 : vectorToScanline(u_fov_vertical_radians, rotated_vector_t0) * u_look_ahead_cfg[2];
@ -539,7 +502,7 @@ export const VirtualDisplayEffect = GObject.registerClass({
vec3 look_ahead_vector = applyLookAhead(rotated_vector_t0, velocity_t0, effective_look_ahead_ms);
world_pos = vec4(look_ahead_vector - final_lens_position, world_pos.w);
world_pos = vec4(look_ahead_vector - u_lens_vector, world_pos.w);
world_pos.z /= aspect_ratio / u_actor_to_display_ratios.y;
@ -568,23 +531,23 @@ export const VirtualDisplayEffect = GObject.registerClass({
this._initialized = true;
const aspect = this.target_monitor.width / this.target_monitor.height;
const fovLengths = diagonalToCrossFOVs(degreeToRadian(Globals.data_stream.device_data.displayFov), aspect);
const fovRadians = diagonalToCrossFOVs(degreeToRadian(Globals.data_stream.device_data.displayFov), aspect);
const projection_matrix = this.perspective(
fovLengths.widthUnitDistance,
fovRadians.horizontal,
aspect,
1.0,
10000.0
);
this.set_uniform_matrix(this.get_uniform_location("u_projection_matrix"), false, 4, projection_matrix);
this.set_uniform_float(this.get_uniform_location("u_fov_vertical_radians"), 1, [fovLengths.verticalRadians]);
this.set_uniform_float(this.get_uniform_location("u_fov_vertical_radians"), 1, [fovRadians.vertical]);
this.set_uniform_float(this.get_uniform_location("u_display_resolution"), 2, [this.target_monitor.width, this.target_monitor.height]);
this.set_uniform_float(this.get_uniform_location("u_look_ahead_cfg"), 4, Globals.data_stream.device_data.lookAheadCfg);
this.set_uniform_float(this.get_uniform_location("u_actor_to_display_ratios"), 2, this.actor_to_display_ratios);
this.set_uniform_float(this.get_uniform_location("u_actor_to_display_offsets"), 2, this.actor_to_display_offsets);
this.set_uniform_float(this.get_uniform_location("u_lens_vector"), 3, this.lens_vector);
this._update_display_position();
this._handle_banner_update();
}
this.set_uniform_float(this.get_uniform_location("u_lens_vector"), 3, this.pose_has_position ? [0.0, 0.0, 0.0] : this.lens_vector);
if (this.imu_snapshots && !this.show_banner) {
let lookAheadSet = false;
@ -594,17 +557,10 @@ export const VirtualDisplayEffect = GObject.registerClass({
this.set_uniform_float(this.get_uniform_location('u_look_ahead_ms'), 1, [0.0]);
lookAheadSet = true;
}
this.set_uniform_matrix(this.get_uniform_location("u_pose_orientation"), false, 4, this.imu_snapshots.pose_orientation);
this.set_uniform_matrix(this.get_uniform_location("u_imu_data"), false, 4, this.imu_snapshots.imu_data);
} else {
this.set_uniform_matrix(this.get_uniform_location("u_pose_orientation"), false, 4, this.imu_snapshots.smooth_follow_origin);
this.set_uniform_matrix(this.get_uniform_location("u_imu_data"), false, 4, this.imu_snapshots.smooth_follow_origin);
}
let posePositionPixels = [0.0, 0.0, 0.0];
if (this.pose_has_position) {
posePositionPixels = this.imu_snapshots.pose_position.map((coord, index) => {
return coord * this.fov_details.fullScreenDistancePixels + this.lens_vector[index];
});
}
this.set_uniform_float(this.get_uniform_location("u_pose_position"), 3, posePositionPixels);
if (!lookAheadSet) {
this.set_uniform_float(this.get_uniform_location('u_look_ahead_ms'), 1, [lookAheadMS(this.imu_snapshots.timestamp_ms, Globals.data_stream.device_data.lookAheadCfg, this.look_ahead_override)]);
}

View File

@ -7,7 +7,7 @@ import Shell from 'gi://Shell';
import St from 'gi://St';
import { VirtualDisplayEffect, SMOOTH_FOLLOW_SLERP_TIMELINE_MS } from './virtualdisplayeffect.js';
import { applyQuaternionToVector, degreeToRadian, diagonalToCrossFOVs, fovConversionFns, vectorMagnitude } from './math.js';
import { applyQuaternionToVector, degreeToRadian, diagonalToCrossFOVs, fovConversionFns, normalizeVector } from './math.js';
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
@ -19,40 +19,38 @@ const FOCUS_THRESHOLD = 0.95 / 2.0;
// if we leave the monitor with some margin, unfocus even if no other monitor is in focus
const UNFOCUS_THRESHOLD = 1.1 / 2.0;
// returns how far the look vector is from the center of the monitor, as a percentage of the monitor's dimensions
// returns how far the look vector is from the center of the monitor, as a percentage of the monitor's width
function getMonitorDistance(fovDetails, lookUpPixels, lookWestPixels, monitorVector, monitorDetails, upAngleToLength, westAngleToLength) {
// since the monitor vector has been modified to be relative to the lens position, we need to calculate its distance from the lens
// we need to adjust all angle-based lengths based on new vector distance
const monitorDistance = vectorMagnitude(monitorVector);
const distanceAdjustment = monitorDistance / fovDetails.completeScreenDistancePixels;
const monitorAspectRatio = monitorDetails.width / monitorDetails.height;
// weight the up distance by the aspect ratio
const vectorUpPixels = upAngleToLength(
fovDetails.defaultDistanceVerticalRadians,
fovDetails.heightPixels,
monitorDistance,
fovDetails.completeScreenDistancePixels,
monitorVector[2],
monitorVector[0]
) * distanceAdjustment;
const upPercentage = Math.abs(lookUpPixels * distanceAdjustment - vectorUpPixels) / monitorDetails.height;
);
const upDeltaPixels = (lookUpPixels - vectorUpPixels) * monitorAspectRatio;
const vectorWestPixels = westAngleToLength(
fovDetails.defaultDistanceHorizontalRadians,
fovDetails.widthPixels,
monitorDistance,
fovDetails.completeScreenDistancePixels,
monitorVector[1],
monitorVector[0]
) * distanceAdjustment;
const westPercentage = Math.abs(lookWestPixels * distanceAdjustment - vectorWestPixels) / monitorDetails.width;
);
const westDeltaPixels = lookWestPixels - vectorWestPixels;
const totalDeltaPixels = Math.sqrt(upDeltaPixels * upDeltaPixels + westDeltaPixels * westDeltaPixels);
// how close we are to any edge is the largest of the two percentages
return Math.max(upPercentage, westPercentage);
// threshold is a percentage of width, and height was already properly weighted
return totalDeltaPixels / monitorDetails.width;
}
/**
* Find the vector in the array that's closest to the quaternion rotation
*
* @param {number[]} quaternion - Reference quaternion [x, y, z, w]
* @param {number[]} position - Reference position [x, y, z] in NWU space
* @param {number[][]} monitorVectors - Array of monitor vectors [x, y, z] to search from
* @param {number} currentFocusedIndex - Index of the currently focused monitor
* @param {number} focusedMonitorDistance - Distance to the focused monitor, < 1.0 if zoomed in
@ -61,9 +59,7 @@ function getMonitorDistance(fovDetails, lookUpPixels, lookWestPixels, monitorVec
* @param {Object[]} monitorsDetails - Contains x, y, width, height (coordinates from top-left) for each monitor
* @returns {number} Index of the closest vector, if it surpasses the previous closest index by a certain margin, otherwise the previous index
*/
function findFocusedMonitor(quaternion, position, monitorVectors, currentFocusedIndex, focusedMonitorDistance, smoothFollowEnabled, fovDetails, monitorsDetails) {
if (currentFocusedIndex !== -1 && smoothFollowEnabled) return currentFocusedIndex;
function findFocusedMonitor(quaternion, monitorVectors, currentFocusedIndex, focusedMonitorDistance, smoothFollowEnabled, fovDetails, monitorsDetails) {
const lookVector = [1.0, 0.0, 0.0]; // NWU vector pointing to the center of the screen
const rotatedLookVector = applyQuaternionToVector(lookVector, quaternion);
@ -86,13 +82,8 @@ function findFocusedMonitor(quaternion, position, monitorVectors, currentFocused
rotatedLookVector[0]
);
function vectorRelativeToLensPosition(vector) {
return [
vector[0] - position[0],
vector[1] - position[1],
vector[2] - position[2]
]
}
let closestIndex = -1;
let closestDistance = Infinity;
// the currently focused monitor is the most likely to be the closest, check it first and exit early if it is
if (currentFocusedIndex !== -1) {
@ -100,18 +91,15 @@ function findFocusedMonitor(quaternion, position, monitorVectors, currentFocused
fovDetails,
lookUpPixels,
lookWestPixels,
vectorRelativeToLensPosition(monitorVectors[currentFocusedIndex]),
monitorVectors[currentFocusedIndex],
monitorsDetails[currentFocusedIndex],
upConversionFns.angleToLength,
westConversionFns.angleToLength
) * focusedMonitorDistance;
if (focusedDistance < UNFOCUS_THRESHOLD) return currentFocusedIndex;
if (smoothFollowEnabled || focusedDistance < UNFOCUS_THRESHOLD) return currentFocusedIndex;
}
let closestIndex = -1;
let closestDistance = Infinity;
// find the vector closest to the rotated look vector
monitorVectors.forEach((monitorVector, index) => {
if (index === currentFocusedIndex) return;
@ -120,7 +108,7 @@ function findFocusedMonitor(quaternion, position, monitorVectors, currentFocused
fovDetails,
lookUpPixels,
lookWestPixels,
vectorRelativeToLensPosition(monitorVector),
monitorVector,
monitorsDetails[index],
upConversionFns.angleToLength,
westConversionFns.angleToLength
@ -142,14 +130,8 @@ function findFocusedMonitor(quaternion, position, monitorVectors, currentFocused
* @returns {Object} - containing `begin`, `center`, and `end` radians for rotating the given monitor
*/
function monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorBeginPixel, monitorLengthPixels, lengthToRadianFn) {
// Monitor coordinates can become fractional due to size adjustment.
// If a monitor edge lands extremely close to a cached pixel key, snap to it;
// otherwise tiny negative gaps can cause us to subtract a full spacing interval.
let beginPixel = monitorBeginPixel;
const pixelEpsilon = Math.max(1e-6, Math.abs(monitorLengthPixels) * 1e-6);
let closestWrapPixel = beginPixel;
let closestWrap = cachedMonitorRadians[beginPixel];
let closestWrapPixel = monitorBeginPixel;
let closestWrap = cachedMonitorRadians[monitorBeginPixel];
if (closestWrap === undefined) {
closestWrapPixel = Object.keys(cachedMonitorRadians).reduce((previousPixel, currentPixel) => {
if (previousPixel === undefined) return currentPixel;
@ -173,16 +155,10 @@ function monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorBeginPix
closestWrap = cachedMonitorRadians[closestWrapPixel];
}
const closestWrapPixelNumber = Number(closestWrapPixel);
if (Number.isFinite(closestWrapPixelNumber) && Math.abs(closestWrapPixelNumber - beginPixel) < pixelEpsilon) {
beginPixel = closestWrapPixelNumber;
closestWrapPixel = closestWrapPixelNumber;
}
const spacingRadians = lengthToRadianFn(monitorSpacingPixels);
if (closestWrapPixel !== beginPixel) {
if (closestWrapPixel !== monitorBeginPixel) {
// there's a gap between the cached wrap value and this one
const gapPixels = beginPixel - closestWrapPixel;
const gapPixels = monitorBeginPixel - closestWrapPixel;
const gapRadians = lengthToRadianFn(gapPixels);
// use Math.floor so if it's negative (this monitor is to the left of or above the closest) it will always
@ -191,7 +167,7 @@ function monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorBeginPix
// update the closestWrap value and cache it
closestWrap = closestWrap + gapRadians + appliedSpacingRadians;
closestWrapPixel = beginPixel;
closestWrapPixel = monitorBeginPixel;
cachedMonitorRadians[closestWrapPixel] = closestWrap;
}
@ -200,7 +176,7 @@ function monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorBeginPix
const endRadians = closestWrap + monitorRadians;
// since we're computing the end values for this monitor, cache them too in case they line up with a future monitor
const nextMonitorPixel = beginPixel + monitorLengthPixels;
const nextMonitorPixel = monitorBeginPixel + monitorLengthPixels;
if (cachedMonitorRadians[nextMonitorPixel] === undefined)
cachedMonitorRadians[nextMonitorPixel] = endRadians + spacingRadians;
@ -232,10 +208,8 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
if (fovDetails.monitorWrappingScheme === 'horizontal') {
// monitors wrap around us horizontally
const sideEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.sizeAdjustedWidthPixels);
const monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedWidthPixels;
// targetWidth is assumed to aleady be size adjusted
const sideEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.widthPixels);
const monitorSpacingPixels = monitorSpacing * fovDetails.widthPixels;
const lengthToRadianFn = (targetWidth) => conversionFns.lengthToRadians(
fovDetails.defaultDistanceHorizontalRadians,
fovDetails.widthPixels,
@ -243,14 +217,14 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
targetWidth
);
cachedMonitorRadians[0] = -lengthToRadianFn(fovDetails.sizeAdjustedWidthPixels) / 2;
cachedMonitorRadians[0] = -fovDetails.defaultDistanceHorizontalRadians / 2;
horizontalMonitorSort(monitorDetailsList).forEach(({monitorDetails, originalIndex}) => {
const monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.x, monitorDetails.width, lengthToRadianFn);
const monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(sideEdgeRadius, monitorDetails.width);
const upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.sizeAdjustedHeightPixels) * monitorSpacingPixels;
const upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.heightPixels) * monitorSpacingPixels;
// offset for aligning this monitor's center with the fov-sized viewport's center
const upCenterOffsetPixels = (monitorDetails.height - fovDetails.sizeAdjustedHeightPixels) / 2;
const upCenterOffsetPixels = (monitorDetails.height - fovDetails.heightPixels) / 2;
// this is where our monitor's center is in relation to an fov-sized viewport centered about (0, 0)
const upCenterPixels = upTopPixels - upCenterOffsetPixels;
@ -266,7 +240,7 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
// up is flat when wrapping horizontally
upCenterPixels
],
centerLook: [
centerLook: normalizeVector([
// north is adjacent where radius is the hypotenuse, using monitorWrapDetails.center as the radians
monitorCenterRadius * Math.cos(monitorWrapDetails.center),
@ -275,7 +249,7 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
// up is flat when wrapping horizontally
upCenterPixels
],
]),
rotationAngleRadians: {
x: 0,
y: -monitorWrapDetails.center
@ -285,10 +259,8 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
} else if (fovDetails.monitorWrappingScheme === 'vertical') {
// monitors wrap around us vertically
const topEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.sizeAdjustedHeightPixels);
const monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedHeightPixels;
// targetHeight is assumed to aleady be size adjusted
const topEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.heightPixels);
const monitorSpacingPixels = monitorSpacing * fovDetails.heightPixels;
const lengthToRadianFn = (targetHeight) => conversionFns.lengthToRadians(
fovDetails.defaultDistanceVerticalRadians,
fovDetails.heightPixels,
@ -296,14 +268,14 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
targetHeight
);
cachedMonitorRadians[0] = -lengthToRadianFn(fovDetails.sizeAdjustedHeightPixels) / 2;
cachedMonitorRadians[0] = -fovDetails.defaultDistanceVerticalRadians / 2;
verticalMonitorSort(monitorDetailsList).forEach(({monitorDetails, originalIndex}) => {
const monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.y, monitorDetails.height, lengthToRadianFn);
const monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(topEdgeRadius, monitorDetails.height);
const westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.sizeAdjustedWidthPixels) * monitorSpacingPixels;
const westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.widthPixels) * monitorSpacingPixels;
// offset for aligning this monitor's center with the fov-sized viewport's center
const westCenterOffsetPixels = (monitorDetails.width - fovDetails.sizeAdjustedWidthPixels) / 2;
const westCenterOffsetPixels = (monitorDetails.width - fovDetails.widthPixels) / 2;
// this is where our monitor's center is in relation to an fov-sized viewport centered about (0, 0)
const westCenterPixels = westLeftPixels - westCenterOffsetPixels;
@ -313,13 +285,13 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
centerNoRotate: [
monitorCenterRadius,
// west is flat when wrapping vertically
// west is flat when wrapping horizontally
westCenterPixels,
// up is centered about the FOV center
0
],
centerLook: [
centerLook: normalizeVector([
// north is adjacent where radius is the hypotenuse, using monitorWrapDetails.center as the radians
monitorCenterRadius * Math.cos(monitorWrapDetails.center),
@ -328,7 +300,7 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
// up is opposite where radius is the hypotenuse, using monitorWrapDetails.center as the radians
-monitorCenterRadius * Math.sin(monitorWrapDetails.center)
],
]),
rotationAngleRadians: {
x: -monitorWrapDetails.center,
y: 0
@ -336,16 +308,17 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
});
});
} else {
const monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedWidthPixels;
const monitorSpacingPixels = monitorSpacing * fovDetails.widthPixels;
// monitors make a flat wall in front of us, no wrapping
monitorDetailsList.forEach((monitorDetails, index) => {
const upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.sizeAdjustedHeightPixels) * monitorSpacingPixels;
const westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.sizeAdjustedWidthPixels) * monitorSpacingPixels;
const upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.heightPixels) * monitorSpacingPixels;
const westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.widthPixels) * monitorSpacingPixels;
// offsets for aligning this monitor's center with the fov-sized viewport's center
const westCenterOffsetPixels = (monitorDetails.width - fovDetails.sizeAdjustedWidthPixels) / 2;
const upCenterOffsetPixels = (monitorDetails.height - fovDetails.sizeAdjustedHeightPixels) / 2;
const westCenterOffsetPixels = (monitorDetails.width - fovDetails.widthPixels) / 2;
const upCenterOffsetPixels = (monitorDetails.height - fovDetails.heightPixels) / 2;
const westCenterPixels = westLeftPixels - westCenterOffsetPixels;
const upCenterPixels = upTopPixels - upCenterOffsetPixels;
@ -356,11 +329,11 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
westCenterPixels,
upCenterPixels
],
centerLook: [
centerLook: normalizeVector([
fovDetails.completeScreenDistancePixels,
westCenterPixels,
upCenterPixels
],
]),
rotationAngleRadians: {
x: 0,
y: 0
@ -473,13 +446,6 @@ export const VirtualDisplaysActor = GObject.registerClass({
'Latest IMU quaternion snapshots and epoch timestamp for when it was collected',
GObject.ParamFlags.READWRITE
),
'pose-has-position': GObject.ParamSpec.boolean(
'pose-has-position',
'Pose Has Position',
'Whether the IMU snapshots contain pose data',
GObject.ParamFlags.READWRITE,
false
),
'curved-display': GObject.ParamSpec.boolean(
'curved-display',
'Curved Display',
@ -533,7 +499,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
'Display size',
'Size of the display',
GObject.ParamFlags.READWRITE,
0.1,
0.2,
2.5,
1.0
),
@ -549,7 +515,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
'Display Distance',
'Distance of the display from the camera',
GObject.ParamFlags.READWRITE,
0.1,
0.2,
2.5,
1.05
),
@ -571,7 +537,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
'Display distance start',
'Start distance when using the "change distance" shortcut.',
GObject.ParamFlags.READWRITE,
0.1,
0.2,
2.5,
1.05
),
@ -580,7 +546,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
'Display distance end',
'End distance when using the "change distance" shortcut.',
GObject.ParamFlags.READWRITE,
0.1,
0.2,
2.5,
1.05
),
@ -612,7 +578,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
constructor(params = {}) {
super(params);
this._all_monitors_unmodified = [
this._all_monitors = [
this.target_monitor,
...this.virtual_monitors
];
@ -683,10 +649,10 @@ export const VirtualDisplaysActor = GObject.registerClass({
this._property_connections.push(this.connect(`notify::${property}`, fn.bind(this)));
}).bind(this);
notifyToFunction('toggle-display-distance-start', this._handle_display_size_distance_change);
notifyToFunction('toggle-display-distance-end', this._handle_display_size_distance_change);
notifyToFunction('display-distance', this._handle_display_size_distance_change);
notifyToFunction('display-size', this._handle_display_size_distance_change);
this._distance_ease_timeline = null;
notifyToFunction('toggle-display-distance-start', this._handle_display_distance_properties_change);
notifyToFunction('toggle-display-distance-end', this._handle_display_distance_properties_change);
notifyToFunction('display-distance', this._handle_display_distance_properties_change);
notifyToFunction('monitor-wrapping-scheme', this._update_monitor_placements);
notifyToFunction('monitor-spacing', this._update_monitor_placements);
notifyToFunction('headset-display-as-viewport-center', this._update_monitor_placements);
@ -697,7 +663,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
notifyToFunction('custom-banner-enabled', this._handle_banner_update);
notifyToFunction('framerate-cap', this._handle_frame_rate_cap_change);
notifyToFunction('smooth-follow-enabled', this._handle_smooth_follow_enabled_change);
this._handle_display_size_distance_change();
this._handle_display_distance_properties_change();
this._handle_frame_rate_cap_change();
const actorToDisplayRatios = [
@ -714,8 +680,8 @@ export const VirtualDisplaysActor = GObject.registerClass({
];
Globals.logger.log_debug(`\t\t\tActor to display ratios: ${actorToDisplayRatios}, offsets: ${actorToDisplayOffsets}`);
this._all_monitors_unmodified.forEach(((monitor, index) => {
this._all_monitors.forEach(((monitor, index) => {
Globals.logger.log_debug(`\t\t\tMonitor ${index}: ${monitor.x}, ${monitor.y}, ${monitor.width}, ${monitor.height}`);
const containerActor = new Clutter.Actor({
@ -740,13 +706,11 @@ export const VirtualDisplaysActor = GObject.registerClass({
const effect = new VirtualDisplayEffect({
focused_monitor_index: this.focused_monitor_index,
imu_snapshots: this.imu_snapshots,
pose_has_position: this.pose_has_position,
monitor_index: index,
monitor_details: monitor,
monitor_placements: this.monitor_placements,
fov_details: this.fov_details,
target_monitor: this.target_monitor,
display_size: this.display_size,
display_distance: this.display_distance,
display_distance_default: this._display_distance_default(),
actor_to_display_ratios: actorToDisplayRatios,
@ -771,10 +735,8 @@ export const VirtualDisplaysActor = GObject.registerClass({
[
'monitor-placements',
'display-size',
'fov-details',
'imu-snapshots',
'pose-has-position',
'smooth-follow-enabled',
'smooth-follow-toggle-epoch-ms',
'focused-monitor-index',
@ -823,17 +785,12 @@ export const VirtualDisplaysActor = GObject.registerClass({
(!this._smooth_follow_slerping || this.focused_monitor_index === -1)) {
// if smooth follow is enabled, use the origin IMU data to inform the initial focused monitor
// since it reflects where the user is looking in relation to the original monitor positions
const currentOrientationQuat = this.smooth_follow_enabled ?
const currentPoseQuat = this.smooth_follow_enabled ?
this.imu_snapshots.smooth_follow_origin.splice(0, 4) :
this.imu_snapshots.pose_orientation.splice(0, 4);
const currentPosition = this.pose_has_position ?
this.imu_snapshots.pose_position.map(coord => coord * this.fov_details.fullScreenDistancePixels) :
[0.0, 0.0, 0.0];
this.imu_snapshots.imu_data.splice(0, 4);
const focusedMonitorIndex = findFocusedMonitor(
currentOrientationQuat,
currentPosition,
currentPoseQuat,
this.monitor_placements.map(monitorVectors => monitorVectors.centerLook),
this.focused_monitor_index,
this.display_distance / this._display_distance_default(),
@ -870,61 +827,34 @@ export const VirtualDisplaysActor = GObject.registerClass({
this._redraw_timeline.start();
}
_size_adjusted_target_monitor() {
return this._all_monitors[0];
}
_display_distance_default() {
return Math.max(this.display_distance, this.toggle_display_distance_start, this.toggle_display_distance_end);
}
_fov_details() {
const aspect = this.target_monitor.width / this.target_monitor.height;
const fovLengths = diagonalToCrossFOVs(degreeToRadian(Globals.data_stream.device_data.displayFov), aspect);
const monitorWrappingScheme = this._actual_wrap_scheme();
const defaultDistance = this._display_distance_default();
const lensDistanceComplement = 1.0 - Globals.data_stream.device_data.lensDistanceRatio;
const lensDistanceFactor = (1.0 / lensDistanceComplement) - 1.0;
const horizontalConversions = this.curved_display && monitorWrappingScheme === 'horizontal' ? fovConversionFns.curved : fovConversionFns.flat;
const verticalConversions = this.curved_display && monitorWrappingScheme === 'vertical' ? fovConversionFns.curved : fovConversionFns.flat;
// adjust FOV to a new focal point distance while keeping screens the same size
// i.e. focus from pivot point to new screen distance, adjusted from lens at unit distance
const defaultDistanceVerticalRadians = verticalConversions.fovRadiansAtDistance(
fovLengths.verticalRadians,
fovLengths.heightUnitDistance,
defaultDistance
);
const defaultDistanceHorizontalRadians = horizontalConversions.fovRadiansAtDistance(
fovLengths.horizontalRadians,
fovLengths.widthUnitDistance,
defaultDistance
);
const fovRadians = diagonalToCrossFOVs(degreeToRadian(Globals.data_stream.device_data.displayFov), aspect);
// distance needed for the FOV-sized monitor to fill up the screen, as measured from the lenses
const lensToUnitDistancePixels = this.target_monitor.width / fovLengths.widthUnitDistance;
// adjusted angles based on how far away the screens are e.g. a closer screen takes up a larger slice of our FOV
const defaultDistanceVerticalRadians = 2 * Math.atan(Math.tan(fovRadians.vertical / 2) / this._display_distance_default());
const defaultDistanceHorizontalRadians = 2 * Math.atan(Math.tan(fovRadians.horizontal / 2) / this._display_distance_default());
// distance from pivot point to lens
const lensDistancePixels = lensToUnitDistancePixels * lensDistanceFactor;
// distance needed for the FOV-sized monitor to fill up the screen
const fullScreenDistance = this.target_monitor.height / 2 / Math.tan(fovRadians.vertical / 2);
const lensDistancePixels = fullScreenDistance / (1.0 - Globals.data_stream.device_data.lensDistanceRatio) - fullScreenDistance;
// distance from pivot point to full screen (monitor at unit distance from lens)
const fullScreenDistancePixels = lensToUnitDistancePixels + lensDistancePixels;
// distance of a display at the default (most zoomed out) distance from the pivot point
const completeScreenDistancePixels = fullScreenDistancePixels * defaultDistance;
// distance of a display at the default (most zoomed out) distance, plus the lens distance constant
const lensToScreenDistance = this.target_monitor.height / 2 / Math.tan(defaultDistanceVerticalRadians / 2);
const completeScreenDistancePixels = lensToScreenDistance + lensDistancePixels;
return {
widthPixels: this.target_monitor.width,
distanceAdjustedSize: this._distance_adjusted_size,
sizeAdjustedWidthPixels: this.target_monitor.width * this._distance_adjusted_size,
heightPixels: this.target_monitor.height,
sizeAdjustedHeightPixels: this.target_monitor.height * this._distance_adjusted_size,
defaultDistanceVerticalRadians,
defaultDistanceHorizontalRadians,
lensDistancePixels,
fullScreenDistancePixels,
completeScreenDistancePixels,
monitorWrappingScheme,
monitorWrappingScheme: this._actual_wrap_scheme(),
curvedDisplay: this.curved_display
};
}
@ -939,8 +869,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
const minY = Math.min(...this._all_monitors.map(monitor => monitor.y));
const maxY = Math.max(...this._all_monitors.map(monitor => monitor.y + monitor.height));
const targetMonitor = this._size_adjusted_target_monitor();
if ((maxX - minX) / targetMonitor.width >= (maxY - minY) / targetMonitor.height) {
if ((maxX - minX) / this.target_monitor.width >= (maxY - minY) / this.target_monitor.height) {
return 'horizontal';
} else {
return 'vertical';
@ -949,29 +878,27 @@ export const VirtualDisplaysActor = GObject.registerClass({
_update_monitor_placements() {
try {
const targetMonitor = this._size_adjusted_target_monitor();
const minX = Math.min(...this._all_monitors.map(monitor => monitor.x));
const maxX = Math.max(...this._all_monitors.map(monitor => monitor.x + monitor.width));
const minY = Math.min(...this._all_monitors.map(monitor => monitor.y));
const maxY = Math.max(...this._all_monitors.map(monitor => monitor.y + monitor.height));
// the beginning edges of the viewport if it's centered on all displays
const allDisplaysCenterXBegin = (minX + maxX) / 2 - targetMonitor.width / 2;
const allDisplaysCenterYBegin = (minY + maxY) / 2 - targetMonitor.height / 2;
const allDisplaysCenterXBegin = (minX + maxX) / 2 - this.target_monitor.width / 2;
const allDisplaysCenterYBegin = (minY + maxY) / 2 - this.target_monitor.height / 2;
const viewportXBegin = this.headset_display_as_viewport_center ? targetMonitor.x : allDisplaysCenterXBegin;
const viewportYBegin = this.headset_display_as_viewport_center ? targetMonitor.y : allDisplaysCenterYBegin;
const viewportXBegin = this.headset_display_as_viewport_center ? this.target_monitor.x : allDisplaysCenterXBegin;
const viewportYBegin = this.headset_display_as_viewport_center ? this.target_monitor.y : allDisplaysCenterYBegin;
this.fov_details = this._fov_details();
this.lens_vector = [this.fov_details.lensDistancePixels, 0.0, 0.0];
this.lens_vector = [0.0, 0.0, -this.fov_details.lensDistancePixels];
this.monitor_placements = monitorsToPlacements(
this.fov_details,
// shift all monitors so they center around the viewport center, then adjusted by the offsets
this._all_monitors.map(monitor => ({
x: monitor.x - viewportXBegin - this.viewport_offset_x * targetMonitor.width,
y: monitor.y - viewportYBegin + this.viewport_offset_y * targetMonitor.height,
x: monitor.x - viewportXBegin - this.viewport_offset_x * this.target_monitor.width,
y: monitor.y - viewportYBegin + this.viewport_offset_y * this.target_monitor.height,
width: monitor.width,
height: monitor.height
})),
@ -982,22 +909,10 @@ export const VirtualDisplaysActor = GObject.registerClass({
}
}
_handle_display_size_distance_change() {
this._distance_adjusted_size = (this._display_distance_default() - Globals.data_stream.device_data.lensDistanceRatio) * this.display_size;
_handle_display_distance_properties_change() {
const distance_from_end = Math.abs(this.display_distance - this.toggle_display_distance_end);
const distance_from_start = Math.abs(this.display_distance - this.toggle_display_distance_start);
this._is_display_distance_at_end = distance_from_end < distance_from_start;
const sizeComplement = (1.0 - this._distance_adjusted_size) / 2.0;
const sizeViewportOffsetX = sizeComplement * this.target_monitor.width;
const sizeViewportOffsetY = sizeComplement * this.target_monitor.height;
this._all_monitors = this._all_monitors_unmodified.map(monitor => ({
x: monitor.x * this._distance_adjusted_size + sizeViewportOffsetX,
y: monitor.y * this._distance_adjusted_size + sizeViewportOffsetY,
width: monitor.width * this._distance_adjusted_size,
height: monitor.height * this._distance_adjusted_size
}));
this._update_monitor_placements();
}

View File

@ -35,7 +35,7 @@ include(cmake/info.cmake)
find_package(epoxy REQUIRED)
find_package(XCB REQUIRED COMPONENTS XCB)
find_package(KWinDBusInterface CONFIG REQUIRED)
find_package(Qt6 REQUIRED COMPONENTS Core Network)
find_package(Qt6 REQUIRED COMPONENTS Core)
# Qt6 sets QT6_INSTALL_QML which is distro-aware
get_target_property(QT6_QMAKE_EXECUTABLE Qt6::qmake IMPORTED_LOCATION)

View File

@ -1,32 +0,0 @@
#!/usr/bin/env bash
# exit when any command fails
set -e
if [ "$(id -u)" == "0" ]; then
echo "This script must not be run as root" 1>&2
exit 1
fi
# Create a temp directory to gather logs
tmp_dir=$(mktemp -d -t breezy-kwin-logs-XXXXXXXXXX)
echo "Gathering logs into temp directory: ${tmp_dir}"
mkdir -p "$tmp_dir/breezy_kwin_logs"
# Collect journalctl logs
if command -v journalctl &>/dev/null; then
journalctl -p warning --since "24 hours ago" > "$tmp_dir/breezy_kwin_logs/journalctl_warnings.log" 2>/dev/null || \
echo "Warning: Failed to collect journalctl warning logs"
journalctl --grep breezy --since "24 hours ago" > "$tmp_dir/breezy_kwin_logs/journalctl_breezy.log" 2>/dev/null || \
echo "Warning: Failed to collect journalctl breezy logs"
else
echo "Warning: journalctl not found, skipping journal logs"
fi
# Create archive
archive_name="breezy_kwin_logs_$(date +%Y%m%d_%H%M%S).tar.gz"
tar -czf "$archive_name" -C "$tmp_dir" breezy_kwin_logs
echo "Created log archive: $(pwd)/$archive_name"
rm -rf "$tmp_dir"

View File

@ -46,69 +46,35 @@ DESKTOP_FILE_PATH="$XDG_DATA_HOME/applications/breezy_desktop.desktop"
PLUGIN_SO="$LIB_HOME/qt6/plugins/kwin/effects/plugins/${EFFECT_ID}.so"
CONFIG_SO="$LIB_HOME/qt6/plugins/plasma/kcms/${EFFECT_ID}_config.so"
BREEZY_LIBRARY_DIR="$LIB_HOME/breezy_kwin"
ENABLE_SCRIPT="$XDG_BIN_HOME/breezy_enable_wayland"
DISABLE_SCRIPT="$XDG_BIN_HOME/breezy_disable_wayland"
STEAMOS_ENABLE_DESKTOP="$XDG_DATA_HOME/applications/Enable Breezy Wayland.desktop"
STEAMOS_DISABLE_DESKTOP="$XDG_DATA_HOME/applications/Disable Breezy Wayland.desktop"
DESKTOP_DIR="$USER_HOME/Desktop"
DESKTOP_ENABLE="$DESKTOP_DIR/Enable Breezy Wayland.desktop"
DESKTOP_DISABLE="$DESKTOP_DIR/Disable Breezy Wayland.desktop"
if [[ -d "$EFFECT_DIR" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $EFFECT_DIR and its contents"
rm -rf "$EFFECT_DIR"
$SUDO rm -rf "$EFFECT_DIR"
fi
if [[ -f "$ICON_PATH" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $ICON_PATH"
rm -f "$ICON_PATH"
$SUDO rm -f "$ICON_PATH"
fi
if [[ -f "$DESKTOP_FILE_PATH" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $DESKTOP_FILE_PATH"
rm -f "$DESKTOP_FILE_PATH"
$SUDO rm -f "$DESKTOP_FILE_PATH"
fi
if [[ -f "$PLUGIN_SO" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $PLUGIN_SO"
rm -f "$PLUGIN_SO"
$SUDO rm -f "$PLUGIN_SO"
fi
if [[ -f "$CONFIG_SO" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $CONFIG_SO"
rm -f "$CONFIG_SO"
$SUDO rm -f "$CONFIG_SO"
fi
if [[ -d "$BREEZY_LIBRARY_DIR" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $BREEZY_LIBRARY_DIR and its contents"
rm -rf "$BREEZY_LIBRARY_DIR"
fi
if [[ -f "$ENABLE_SCRIPT" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing SteamOS desktop scripts"
rm -f "$ENABLE_SCRIPT"
fi
removed_wayland_disable_script=0
if [[ -f "$DISABLE_SCRIPT" ]]; then
rm -f "$DISABLE_SCRIPT"
removed_wayland_disable_script=1
fi
if [[ -f "$STEAMOS_ENABLE_DESKTOP" ]]; then
rm -f "$STEAMOS_ENABLE_DESKTOP"
fi
if [[ -f "$STEAMOS_DISABLE_DESKTOP" ]]; then
rm -f "$STEAMOS_DISABLE_DESKTOP"
fi
if [[ -f "$DESKTOP_ENABLE" ]]; then
rm -f "$DESKTOP_ENABLE"
fi
if [[ -f "$DESKTOP_DISABLE" ]]; then
rm -f "$DESKTOP_DISABLE"
$SUDO rm -rf "$BREEZY_LIBRARY_DIR"
fi
if [[ -e "$XDG_BIN_HOME/xr_driver_uninstall" && "$for_install" -eq 0 ]]; then
@ -116,11 +82,5 @@ if [[ -e "$XDG_BIN_HOME/xr_driver_uninstall" && "$for_install" -eq 0 ]]; then
sudo "$XDG_BIN_HOME/xr_driver_uninstall"
fi
rm -f $XDG_BIN_HOME/breezy_kwin_logs
if [ "$removed_wayland_disable_script" -eq 1 ] && [ "$for_install" -eq 0 ]; then
printf "\n\033[1;33m!!! IMPORTANT !!!\033[0m If you enabled Breezy Wayland, you MUST run \033[1;33msteamos-session-select\033[0m from a terminal in order to return to Game Mode.\n"
fi
# this script is self-deleting, leave this as the last command
rm -f $XDG_BIN_HOME/breezy_kwin_uninstall

View File

@ -14,7 +14,7 @@ check_command "make"
ARCH=${ARCH:-$(uname -m)}
if [ -n "${STEAMOS+x}" ]; then
ARCH="steamos-$STEAMOS"
ARCH="steamos"
fi
echo "Building Breezy KWin plugin for $ARCH"

View File

@ -7,166 +7,8 @@ if [ "$XDG_SESSION_TYPE" != "wayland" ]; then
printf "\033[1;33mWARNING:\033[0m Virtual display functionality requires Wayland\n"
fi
install_steamos_shortcuts() {
if [[ "${ARCH:-}" != "steamos-3.7" ]]; then
return
fi
local os_release="/etc/os-release"
if [[ ! -r "$os_release" ]]; then
return
fi
local ID=""
local ID_LIKE=""
# shellcheck disable=SC1090
source "$os_release"
if [[ "$ID" != "steamos" && "$ID_LIKE" != *"steamos"* && "$ID_LIKE" != *"steamdeck"* ]]; then
return
fi
if ! command -v steamos-session-select >/dev/null 2>&1; then
echo "Skipping SteamOS shortcuts: steamos-session-select not found"
return
fi
local applications_dir="$HOME/.local/share/applications"
local desktop_dir="$HOME/Desktop"
local enable_script="$XDG_BIN_HOME/breezy_enable_wayland"
local disable_script="$XDG_BIN_HOME/breezy_disable_wayland"
local enable_desktop="$applications_dir/Enable Breezy Wayland.desktop"
local disable_desktop="$applications_dir/Disable Breezy Wayland.desktop"
local desktop_enable="$desktop_dir/Enable Breezy Wayland.desktop"
local desktop_disable="$desktop_dir/Disable Breezy Wayland.desktop"
mkdir -p "$applications_dir" "$desktop_dir"
cat > "$enable_script" <<'EOF'
#!/usr/bin/env bash
set -e
MESSAGE="IMPORTANT - You will be unable to return to Game Mode until you use the Disable Breezy Wayland script."
if command -v kdialog >/dev/null 2>&1; then
if ! kdialog --warningyesno "$MESSAGE" --title "Enable Breezy Wayland" --yes-label "Enable" --no-label "Cancel"; then
exit 0
fi
elif command -v zenity >/dev/null 2>&1; then
if ! zenity --question --title="Enable Breezy Wayland" --text="$MESSAGE" --ok-label="Enable" --cancel-label="Cancel" --no-wrap; then
exit 0
fi
else
echo "$MESSAGE"
read -r -p "Type 'enable' to continue: " confirmation
if [[ "$confirmation" != "enable" ]]; then
exit 0
fi
fi
exec steamos-session-select plasma-wayland-persistent
EOF
cat > "$disable_script" <<'EOF'
#!/usr/bin/env bash
set -e
exec steamos-session-select
EOF
chmod +x "$enable_script" "$disable_script"
cat > "$enable_desktop" <<EOF
[Desktop Entry]
Type=Application
Name=Enable Breezy Wayland
Comment=Enable Wayland for Breezy Desktop virtual displays
Exec=$enable_script
Icon=com.xronlinux.BreezyDesktop
Categories=Utility;
Terminal=false
StartupNotify=false
EOF
cat > "$disable_desktop" <<EOF
[Desktop Entry]
Type=Application
Name=Disable Breezy Wayland
Comment=Disable Wayland, allow return to Game Mode
Exec=$disable_script
Icon=com.xronlinux.BreezyDesktop
Categories=Utility;
Terminal=false
StartupNotify=false
EOF
chmod 644 "$enable_desktop" "$disable_desktop"
command cp "$enable_desktop" "$desktop_enable"
command cp "$disable_desktop" "$desktop_disable"
chmod 755 "$desktop_enable" "$desktop_disable"
echo "Installed SteamOS desktop shortcuts in $applications_dir and on $desktop_dir"
}
USER_HOME=$(realpath ~)
if [ -z "$XDG_DATA_HOME" ]; then
XDG_DATA_HOME="$USER_HOME/.local/share"
fi
fix_xr_gaming_plugin() {
# Allows the plugin and Breezy Desktop to coexist without fighting over the driver version
local breezy_manifest="$XDG_DATA_HOME/breezy_vulkan/manifest"
if [[ ! -f "$breezy_manifest" ]]; then
return 0
fi
local decky_xr_gaming_settings="$USER_HOME/homebrew/settings/decky-XRGaming/settings.json"
if [[ ! -f "$decky_xr_gaming_settings" ]]; then
return 0
fi
local xr_driver_manifest="$XDG_DATA_HOME/xr_driver/manifest"
if [[ ! -f "$xr_driver_manifest" ]]; then
return 0
fi
local XR_DRIVER_MANIFEST_LINE
XR_DRIVER_MANIFEST_LINE=$(sha256sum "$xr_driver_manifest")
local xr_driver_manifest_hash
xr_driver_manifest_hash="${XR_DRIVER_MANIFEST_LINE%% *}"
if [[ -z "$xr_driver_manifest_hash" ]]; then
return 0
fi
echo "Fixing XR Gaming plugin installation"
local tmp_manifest
tmp_manifest=$(mktemp)
sed '/xr_driver\/manifest$/d' "$breezy_manifest" > "$tmp_manifest"
printf '%s xr_driver/manifest\n' "$xr_driver_manifest_hash" >> "$tmp_manifest"
chmod --reference="$breezy_manifest" "$tmp_manifest" 2>/dev/null || true
mv "$tmp_manifest" "$breezy_manifest"
local breezy_manifest_hash
breezy_manifest_hash="$(sha256sum "$breezy_manifest" | awk '{print $1}')"
if [[ -z "$breezy_manifest_hash" ]]; then
return 0
fi
local settings_dir
settings_dir="$(dirname "$decky_xr_gaming_settings")"
local tmp_settings
tmp_settings="$(mktemp -p "$settings_dir" settings.XXXXXX)"
sed -E 's/("manifest_checksum"[[:space:]]*:[[:space:]]*")[^"]*(")/\1'"$breezy_manifest_hash"'\2/' "$decky_xr_gaming_settings" > "$tmp_settings"
chmod --reference="$decky_xr_gaming_settings" "$tmp_settings" 2>/dev/null || true
mv "$tmp_settings" "$decky_xr_gaming_settings"
}
if [ -z "$XDG_BIN_HOME" ]; then
XDG_BIN_HOME="$USER_HOME/.local/bin"
fi
@ -219,9 +61,6 @@ popd > /dev/null
mkdir -p $XDG_BIN_HOME
cp bin/breezy_kwin_uninstall $XDG_BIN_HOME
cp bin/breezy_kwin_logs $XDG_BIN_HOME
install_steamos_shortcuts
# Install QT_PLUGIN_PATH snippet into ~/.bash_profile if not present
BASH_PROFILE="$HOME/.bash_profile"
@ -253,16 +92,11 @@ echo "Installing xrDriver (requires sudo)"
echo "BEGIN - xr_driver_setup"
if [ -z "$1" ]
then
sudo --preserve-env=SKIP_SYSTEMD bin/xr_driver_setup $(pwd)
sudo bin/xr_driver_setup $(pwd)/xrDriver.tar.gz
else
sudo --preserve-env=SKIP_SYSTEMD bin/xr_driver_setup -v $1 $(pwd)
sudo bin/xr_driver_setup -v $1 $(pwd)/xrDriver.tar.gz
fi
echo "END - xr_driver_setup"
fix_xr_gaming_plugin
echo "Setting up productivity features"
printf "request_features=productivity,productivity_pro\n" >> /dev/shm/xr_driver_control 2>/dev/null || true
printf "\n\033[1;33m!!! IMPORTANT !!!\033[0m You must log out and back in, then enable Breezy Desktop from the Desktop Effects in System Settings\n\n"

View File

@ -1,12 +1,12 @@
# To run the build from the package root:
# docker buildx build --platform linux/amd64,linux/arm64 -f ./docker-build/Dockerfile.steamos-3.9 -t "breezy-kwin-steamos" .
# docker run --rm -t -v ./:/source -v --platform linux/amd64 "breezy-kwin-steamos-3.9:amd64"
# docker buildx build --platform linux/amd64,linux/arm64 -f ./docker-build/Dockerfile -t "breezy-kwin" .
# docker run --rm -t -v ./:/source -v --platform linux/amd64 "breezy-kwin:amd64"
# docker run --rm -t -v ./:/source -v --platform linux/arm64 "breezy-kwin:arm64"
FROM --platform=$TARGETPLATFORM ghcr.io/wheaney/holo-base:main-3.9@sha256:a9e2c59fb1274cf31d544229134e6bc653f050661dd9b64b05795b964468fcbf
FROM --platform=$TARGETPLATFORM archlinux:base-20250817.0.405639@sha256:31f0749bdb81517dc8f379feac0a3860b097f1da1f53c8315c1bae0817d6c0a1
ARG TARGETPLATFORM
ENV STEAMOS=3.9
RUN echo "SteamOS 3.9 build - target platform: $TARGETPLATFORM"
RUN echo "Target platform: $TARGETPLATFORM"
RUN pacman -Sy --noconfirm --needed \
ca-certificates \

View File

@ -1,12 +1,13 @@
# To run the build from the package root:
# docker buildx build --platform linux/amd64,linux/arm64 -f ./docker-build/Dockerfile.steamos-3.7 -t "breezy-kwin-steamos-3.7" .
# docker run --rm -t -v ./:/source -v --platform linux/amd64 "breezy-kwin-steamos-3.7:amd64"
# docker buildx build --platform linux/amd64,linux/arm64 -f ./docker-build/Dockerfile.steamos -t "breezy-kwin-steamos" .
# docker run --rm -t -v ./:/source -v --platform linux/amd64 "breezy-kwin-steamos:amd64"
# docker run --rm -t -v ./:/source -v --platform linux/arm64 "breezy-kwin-steamos:arm64"
FROM --platform=$TARGETPLATFORM ghcr.io/wheaney/holo-base:3.7.20@sha256:1478200c51b8b287e294de6e98a1ab0fb79333503a5cc5681b58dfd209f17851
FROM --platform=$TARGETPLATFORM ghcr.io/steamdeckhomebrew/holo-base:3.7@sha256:8da120a3e89c750abd0090c0aab86d543a55d667c3002c8d64960f7fd82ccdd6
ARG TARGETPLATFORM
ENV STEAMOS=3.7
RUN echo "SteamOS 3.7 build - target platform: $TARGETPLATFORM"
ENV STEAMOS=1
RUN echo "SteamOS build - target platform: $TARGETPLATFORM"
RUN pacman -Sy --noconfirm --needed \
ca-certificates \
@ -19,7 +20,6 @@ RUN pacman -Sy --noconfirm --needed \
extra-cmake-modules \
qt6-base \
qt6-declarative \
qt6-quick3d \
qt6-tools \
kconfig \
kconfigwidgets \

View File

@ -1,37 +0,0 @@
# To run the build from the package root:
# docker buildx build --platform linux/amd64,linux/arm64 -f ./docker-build/Dockerfile.steamos-3.8 -t "breezy-kwin-steamos" .
# docker run --rm -t -v ./:/source -v --platform linux/amd64 "breezy-kwin-steamos-3.8:amd64"
FROM --platform=$TARGETPLATFORM ghcr.io/wheaney/holo-base:preview-3.8@sha256:a38cdf4ac0e9022ab55c2078381761b444362cfde63e61d988830b0aafb84850
ARG TARGETPLATFORM
ENV STEAMOS=3.8
RUN echo "SteamOS 3.8 build - target platform: $TARGETPLATFORM"
RUN pacman -Sy --noconfirm --needed \
ca-certificates \
base-devel \
cmake \
pkgconf \
git \
curl \
wget \
extra-cmake-modules \
qt6-base \
qt6-declarative \
qt6-quick3d \
qt6-tools \
kconfig \
kconfigwidgets \
kcoreaddons \
kglobalaccel \
ki18n \
kcmutils \
kxmlgui \
kwindowsystem \
kwin \
&& pacman -Scc --noconfirm
WORKDIR /source
CMD bin/package_kwin_plugin

View File

@ -18,6 +18,6 @@ else
fi
echo "Building docker image"
docker buildx build --platform linux/amd64 -f ./docker-build/Dockerfile.steamos-3.7 -t "breezy-kwin-steamos-3.7:amd64" --load .
docker buildx build --platform linux/amd64 -f ./docker-build/Dockerfile.steamos-3.8 -t "breezy-kwin-steamos-3.8:amd64" --load .
docker buildx build --platform linux/amd64 -f ./docker-build/Dockerfile.steamos-3.9 -t "breezy-kwin-steamos-3.9:amd64" --load .
# docker buildx build --platform linux/amd64 -f ./docker-build/Dockerfile -t "breezy-kwin:amd64" --load .
# docker buildx build --platform linux/arm64 -f ./docker-build/Dockerfile -t "breezy-kwin:arm64" --load .
docker buildx build --platform linux/amd64 -f ./docker-build/Dockerfile.steamos -t "breezy-kwin-steamos:amd64" --load .

View File

@ -5,10 +5,22 @@ set -e
USER=${SUDO_USER:-$USER}
GROUP=$(id -gn $USER)
# only SteamOS is pre-built
if [[ "$1" == steamos-* || -z "$1" ]]; then
# Run containers for each architecture
if [[ "$1" == "x86_64" || -z "$1" ]]; then
sudo rm -rf build/
docker run --rm -t -v ./:/source --platform linux/amd64 "breezy-kwin-$1:amd64"
docker run --rm -t -v ./:/source --platform linux/amd64 "breezy-kwin:amd64"
sudo chown -R $USER:$GROUP out/
fi
if [[ "$1" == "aarch64" || -z "$1" ]]; then
sudo rm -rf build/
docker run --rm -t -v ./:/source --platform linux/arm64 "breezy-kwin:arm64"
sudo chown -R $USER:$GROUP out/
fi
if [[ "$1" == "steamos" || -z "$1" ]]; then
sudo rm -rf build/
docker run --rm -t -v ./:/source --platform linux/amd64 "breezy-kwin-steamos:amd64"
sudo chown -R $USER:$GROUP out/
fi

View File

@ -6,22 +6,17 @@
<kcfgfile name="kwinrc"/>
<group name="Effect-breezy_desktop">
<entry name="FocusedDisplayDistance" type="Int">
<default>22</default>
<min>10</min>
<max>250</max>
<default>85</default>
<min>20</min>
<max>230</max>
<label>Focused Display Distance</label>
</entry>
<entry name="AllDisplaysDistance" type="Int">
<default>25</default>
<min>10</min>
<max>250</max>
<default>105</default>
<min>20</min>
<max>230</max>
<label>All Displays Distance</label>
</entry>
<entry name="measurement_units" type="String">
<default>cm</default>
<label>Measurement units</label>
<description>Units for displaying distances in the KCM UI. Valid values: "cm" or "in".</description>
</entry>
<entry name="ZoomOnFocusEnabled" type="Bool">
<default>false</default>
<label>Zoom on Focus Enabled</label>
@ -34,13 +29,6 @@
<label>Display Spacing</label>
<description>How far apart the displays are visually (not logically)</description>
</entry>
<entry name="DisplaySize" type="Int">
<default>97</default>
<min>10</min>
<max>250</max>
<label>Display Size</label>
<description>Scale the displays in XR (percentage)</description>
</entry>
<entry name="DisplayHorizontalOffset" type="Int">
<default>0</default>
<min>-250</min>
@ -103,9 +91,5 @@
<label>Curved display</label>
<description>Curve the displays around you</description>
</entry>
<entry name="DeveloperMode" type="Bool">
<default>false</default>
</entry>
</group>
</kcfg>

View File

@ -2,7 +2,6 @@
#include "core/rendertarget.h"
#include "core/renderviewport.h"
#include "cursor.h"
#include "input.h"
#include "pointer_input.h"
#include "kcm/shortcuts.h"
#include "breezydesktopeffect.h"
@ -20,8 +19,6 @@
#include <QBuffer>
#include <QFile>
#include <QFileSystemWatcher>
#include <QJsonArray>
#include <QJsonObject>
#include <QLoggingCategory>
#include <QQuickItem>
#include <QTimer>
@ -101,12 +98,11 @@ namespace DataView
constexpr int CUSTOM_BANNER_ENABLED[3] = {dataViewEnd(SBS_ENABLED), BOOL_SIZE, 1};
constexpr int SMOOTH_FOLLOW_ENABLED[3] = {dataViewEnd(CUSTOM_BANNER_ENABLED), BOOL_SIZE, 1};
constexpr int SMOOTH_FOLLOW_ORIGIN_DATA[3] = {dataViewEnd(SMOOTH_FOLLOW_ENABLED), FLOAT_SIZE, 16};
constexpr int POSE_POSITION_DATA[3] = {dataViewEnd(SMOOTH_FOLLOW_ORIGIN_DATA), FLOAT_SIZE, 3};
constexpr int POSE_DATE_MS[3] = {dataViewEnd(POSE_POSITION_DATA), UINT_SIZE, 2};
constexpr int POSE_ORIENTATION_ENTRIES = 4;
constexpr int POSE_ORIENTATION_DATA[3] = {dataViewEnd(POSE_DATE_MS), FLOAT_SIZE, 4 * POSE_ORIENTATION_ENTRIES};
constexpr int POSE_PARITY_BYTE[3] = {dataViewEnd(POSE_ORIENTATION_DATA), UINT8_SIZE, 1};
constexpr int LENGTH = dataViewEnd(POSE_PARITY_BYTE);
constexpr int IMU_DATE_MS[3] = {dataViewEnd(SMOOTH_FOLLOW_ORIGIN_DATA), UINT_SIZE, 2};
constexpr int IMU_QUAT_ENTRIES = 4;
constexpr int IMU_QUAT_DATA[3] = {dataViewEnd(IMU_DATE_MS), FLOAT_SIZE, 4 * IMU_QUAT_ENTRIES};
constexpr int IMU_PARITY_BYTE[3] = {dataViewEnd(IMU_QUAT_DATA), UINT8_SIZE, 1};
constexpr int LENGTH = dataViewEnd(IMU_PARITY_BYTE);
}
namespace KWin
@ -114,25 +110,7 @@ namespace KWin
BreezyDesktopEffect::BreezyDesktopEffect()
{
const QByteArray sessionClass = qgetenv("XDG_SESSION_CLASS").toLower();
if (sessionClass != "user") {
m_sessionClassBlocked = true;
qCWarning(KWIN_XR) << "Breezy - effect disabled; expected XDG_SESSION_CLASS=user, got:" << sessionClass;
return;
}
qCCritical(KWIN_XR) << "\t\t\tBreezy - constructor";
// safe to request on each load, acts as a no-op if already present
{
QJsonObject flags;
QJsonArray requested;
requested.append(QStringLiteral("productivity"));
requested.append(QStringLiteral("productivity_pro"));
flags.insert(QStringLiteral("request_features"), requested);
XRDriverIPC::instance().writeControlFlags(flags);
}
qmlRegisterUncreatableType<BreezyDesktopEffect>("org.kde.kwin.effect.breezy_desktop", 1, 0, "BreezyDesktopEffect", QStringLiteral("BreezyDesktop cannot be created in QML"));
setupGlobalShortcut(
@ -164,7 +142,7 @@ BreezyDesktopEffect::BreezyDesktopEffect()
setSource(QUrl::fromLocalFile(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kwin/effects/breezy_desktop/qml/main.qml"))));
// Monitor the IPC file for changes, even if it doesn't exist at startup
// Monitor the IMU file for changes, even if it doesn't exist at startup
m_shmDirectoryWatcher = new QFileSystemWatcher(this);
m_shmDirectoryWatcher->addPath(DataView::SHM_DIR);
@ -173,14 +151,14 @@ BreezyDesktopEffect::BreezyDesktopEffect()
// Setup file watcher with recreation detection
auto setupFileWatcher = [this]() {
if (QFile::exists(DataView::SHM_PATH) && (
m_poseTimestamp == 0 ||
QDateTime::currentMSecsSinceEpoch() - m_poseTimestamp > 50 || // file may have been deleted and recreated
m_imuTimestamp == 0 ||
QDateTime::currentMSecsSinceEpoch() - m_imuTimestamp > 50 || // file may have been deleted and recreated
!m_shmFileWatcher->files().contains(DataView::SHM_PATH)
)) {
m_shmFileWatcher->removePath(DataView::SHM_PATH);
disconnect(m_shmFileWatcher, &QFileSystemWatcher::fileChanged, this, &BreezyDesktopEffect::updatePose);
disconnect(m_shmFileWatcher, &QFileSystemWatcher::fileChanged, this, &BreezyDesktopEffect::updateImuRotation);
m_shmFileWatcher->addPath(DataView::SHM_PATH);
connect(m_shmFileWatcher, &QFileSystemWatcher::fileChanged, this, &BreezyDesktopEffect::updatePose);
connect(m_shmFileWatcher, &QFileSystemWatcher::fileChanged, this, &BreezyDesktopEffect::updateImuRotation);
}
};
@ -190,13 +168,13 @@ BreezyDesktopEffect::BreezyDesktopEffect()
// Initial setup
setupFileWatcher();
m_watchdogTimer = new QTimer(this);
m_watchdogTimer->setInterval(1000);
connect(m_watchdogTimer, &QTimer::timeout, this, [this]() {
m_imuWatchdogTimer = new QTimer(this);
m_imuWatchdogTimer->setInterval(1000);
connect(m_imuWatchdogTimer, &QTimer::timeout, this, [this]() {
if (!m_enabled) return;
this->updatePose();
this->updateImuRotation();
});
m_watchdogTimer->start();
m_imuWatchdogTimer->start();
m_cursorUpdateTimer = new QTimer(this);
connect(m_cursorUpdateTimer, &QTimer::timeout, this, &BreezyDesktopEffect::updateCursorPos);
@ -228,10 +206,10 @@ BreezyDesktopEffect::~BreezyDesktopEffect()
m_shmDirectoryWatcher->deleteLater();
m_shmDirectoryWatcher = nullptr;
}
if (m_watchdogTimer) {
m_watchdogTimer->stop();
m_watchdogTimer->deleteLater();
m_watchdogTimer = nullptr;
if (m_imuWatchdogTimer) {
m_imuWatchdogTimer->stop();
m_imuWatchdogTimer->deleteLater();
m_imuWatchdogTimer = nullptr;
}
deactivate();
}
@ -264,7 +242,6 @@ void BreezyDesktopEffect::reconfigure(ReconfigureFlags)
setFocusedDisplayDistance(BreezyDesktopConfig::focusedDisplayDistance() / 100.0f);
setAllDisplaysDistance(BreezyDesktopConfig::allDisplaysDistance() / 100.0f);
setDisplaySpacing(BreezyDesktopConfig::displaySpacing() / 1000.0f);
setDisplaySize(BreezyDesktopConfig::displaySize() / 100.0f);
setZoomOnFocusEnabled(BreezyDesktopConfig::zoomOnFocusEnabled());
setSmoothFollowThreshold(BreezyDesktopConfig::smoothFollowThreshold());
@ -284,9 +261,6 @@ void BreezyDesktopEffect::reconfigure(ReconfigureFlags)
if (m_removeVirtualDisplaysOnDisable != removeVD) { m_removeVirtualDisplaysOnDisable = removeVD; Q_EMIT removeVirtualDisplaysOnDisableChanged(); }
if (m_mirrorPhysicalDisplays != mirrorPhysicalDisplays) { m_mirrorPhysicalDisplays = mirrorPhysicalDisplays; Q_EMIT mirrorPhysicalDisplaysChanged(); }
const bool developerMode = BreezyDesktopConfig::developerMode();
if (m_developerMode != developerMode) { m_developerMode = developerMode; Q_EMIT developerModeChanged(); }
bool curved = BreezyDesktopConfig::curvedDisplay() && m_curvedDisplaySupported;
if (m_curvedDisplay != curved) { m_curvedDisplay = curved; Q_EMIT curvedDisplayChanged(); }
@ -294,12 +268,7 @@ void BreezyDesktopEffect::reconfigure(ReconfigureFlags)
m_allDisplaysFollowMode = BreezyDesktopConfig::allDisplaysFollowMode();
}
bool BreezyDesktopEffect::developerMode() const
{
return m_developerMode;
}
QVariantMap BreezyDesktopEffect::initialProperties(ScreenOutput *screen)
QVariantMap BreezyDesktopEffect::initialProperties(Output *screen)
{
return QVariantMap{
{QStringLiteral("effect"), QVariant::fromValue(this)},
@ -325,17 +294,12 @@ void BreezyDesktopEffect::toggle()
void BreezyDesktopEffect::activate()
{
if (m_sessionClassBlocked) {
return;
}
qCCritical(KWIN_XR) << "\t\t\tBreezy - activate";
if (!isRunning()) setRunning(true);
connect(effects, &EffectsHandler::cursorShapeChanged, this, &BreezyDesktopEffect::updateCursorImage);
if (m_cursorUpdateTimer) {
m_cursorUpdateTimer->start();
}
m_cursorUpdateTimer->start();
// QuickSceneEffect grabs the keyboard and mouse input, which pulls focus away from the active window
// and doesn't allow for interaction with anything on the desktop. These two calls fix that.
@ -345,21 +309,13 @@ void BreezyDesktopEffect::activate()
void BreezyDesktopEffect::deactivate()
{
if (m_sessionClassBlocked) {
if (isRunning()) {
setRunning(false);
}
return;
}
qCCritical(KWIN_XR) << "\t\t\tBreezy - deactivate";
m_effectTargetScreenIndex = -1;
invalidateEffectOnScreenGeometryCache();
disconnect(effects, &EffectsHandler::cursorShapeChanged, this, &BreezyDesktopEffect::updateCursorImage);
if (m_cursorUpdateTimer) {
m_cursorUpdateTimer->stop();
}
m_cursorUpdateTimer->stop();
showCursor();
if (m_removeVirtualDisplaysOnDisable) {
@ -438,7 +394,7 @@ QVariantList BreezyDesktopEffect::listVirtualDisplays() const {
bool BreezyDesktopEffect::removeVirtualDisplay(const QString &id) {
auto it = m_virtualDisplays.find(id);
if (it != m_virtualDisplays.end()) {
VirtualOutputHandle *output = it->output;
Output *output = it->output;
if (output) {
KWin::kwinApp()->outputBackend()->removeVirtualOutput(output);
}
@ -483,28 +439,20 @@ void BreezyDesktopEffect::toggleSmoothFollow() {
XRDriverIPC::instance().writeControlFlags(flags);
}
bool BreezyDesktopEffect::poseResetState() const {
return m_poseResetState;
bool BreezyDesktopEffect::imuResetState() const {
return m_imuResetState;
}
QList<QQuaternion> BreezyDesktopEffect::poseOrientations() const {
return m_poseOrientations;
QList<QQuaternion> BreezyDesktopEffect::imuRotations() const {
return m_imuRotations;
}
QVector3D BreezyDesktopEffect::posePosition() const {
return m_posePosition;
quint32 BreezyDesktopEffect::imuTimeElapsedMs() const {
return m_imuTimeElapsedMs;
}
quint32 BreezyDesktopEffect::poseTimeElapsedMs() const {
return m_poseTimeElapsedMs;
}
quint64 BreezyDesktopEffect::poseTimestamp() const {
return m_poseTimestamp;
}
bool BreezyDesktopEffect::poseHasPosition() const {
return m_poseHasPosition;
quint64 BreezyDesktopEffect::imuTimestamp() const {
return m_imuTimestamp;
}
QList<qreal> BreezyDesktopEffect::lookAheadConfig() const {
@ -532,7 +480,7 @@ qreal BreezyDesktopEffect::focusedDisplayDistance() const {
void BreezyDesktopEffect::setFocusedDisplayDistance(qreal distance) {
if (distance != m_focusedDisplayDistance) {
m_focusedDisplayDistance = std::clamp(distance, 0.1, m_allDisplaysDistance);
m_focusedDisplayDistance = std::clamp(distance, 0.2, m_allDisplaysDistance);
Q_EMIT focusedDisplayDistanceChanged();
if (m_smoothFollowEnabled) updateDriverSmoothFollowSettings();
@ -545,7 +493,7 @@ qreal BreezyDesktopEffect::allDisplaysDistance() const {
void BreezyDesktopEffect::setAllDisplaysDistance(qreal distance) {
if (distance != m_allDisplaysDistance) {
qreal min = m_zoomOnFocusEnabled ? m_focusedDisplayDistance : 0.1;
qreal min = m_zoomOnFocusEnabled ? m_focusedDisplayDistance : 0.2;
m_allDisplaysDistance = std::clamp(distance, min, 2.5);
Q_EMIT allDisplaysDistanceChanged();
}
@ -562,18 +510,6 @@ void BreezyDesktopEffect::setDisplaySpacing(qreal spacing) {
}
}
qreal BreezyDesktopEffect::displaySize() const {
return m_displaySize;
}
void BreezyDesktopEffect::setDisplaySize(qreal size) {
const qreal clamped = std::clamp(size, 0.1, 4.0);
if (!qFuzzyCompare(clamped, m_displaySize)) {
m_displaySize = clamped;
Q_EMIT displaySizeChanged();
}
}
qreal BreezyDesktopEffect::displayHorizontalOffset() const {
return m_displayHorizontalOffset;
}
@ -645,17 +581,17 @@ bool BreezyDesktopEffect::smoothFollowEnabled() const {
}
bool BreezyDesktopEffect::checkParityByte(const char* data) {
const uint8_t parityByte = static_cast<uint8_t>(data[DataView::POSE_PARITY_BYTE[DataView::OFFSET_INDEX]]);
const uint8_t parityByte = static_cast<uint8_t>(data[DataView::IMU_PARITY_BYTE[DataView::OFFSET_INDEX]]);
uint8_t parity = 0;
const int dateBytes = DataView::POSE_DATE_MS[DataView::COUNT_INDEX] * DataView::POSE_DATE_MS[DataView::SIZE_INDEX];
const int dateBytes = DataView::IMU_DATE_MS[DataView::COUNT_INDEX] * DataView::IMU_DATE_MS[DataView::SIZE_INDEX];
for (int i = 0; i < dateBytes; ++i) {
parity ^= static_cast<uint8_t>(data[DataView::POSE_DATE_MS[DataView::OFFSET_INDEX] + i]);
parity ^= static_cast<uint8_t>(data[DataView::IMU_DATE_MS[DataView::OFFSET_INDEX] + i]);
}
const int quatBytes = DataView::POSE_ORIENTATION_DATA[DataView::COUNT_INDEX] * DataView::POSE_ORIENTATION_DATA[DataView::SIZE_INDEX];
const int quatBytes = DataView::IMU_QUAT_DATA[DataView::COUNT_INDEX] * DataView::IMU_QUAT_DATA[DataView::SIZE_INDEX];
for (int i = 0; i < quatBytes; ++i) {
parity ^= static_cast<uint8_t>(data[DataView::POSE_ORIENTATION_DATA[DataView::OFFSET_INDEX] + i]);
parity ^= static_cast<uint8_t>(data[DataView::IMU_QUAT_DATA[DataView::OFFSET_INDEX] + i]);
}
return parityByte == parity;
@ -663,18 +599,15 @@ bool BreezyDesktopEffect::checkParityByte(const char* data) {
static qint64 lastConfigUpdate = 0;
static qint64 activatedAt = 0;
void BreezyDesktopEffect::updatePose() {
if (m_sessionClassBlocked) {
return;
}
void BreezyDesktopEffect::updateImuRotation() {
// Reentrancy guard: if an update is already in progress, skip
bool expected = false;
if (!m_poseUpdateInProgress.compare_exchange_strong(expected, true)) {
if (!m_imuUpdateInProgress.compare_exchange_strong(expected, true)) {
return;
}
// destructor called on function exit, triggers reset of the flag
struct ResetFlag { std::atomic<bool>* f; ~ResetFlag(){ f->store(false); } } reset{&m_poseUpdateInProgress};
struct ResetFlag { std::atomic<bool>* f; ~ResetFlag(){ f->store(false); } } reset{&m_imuUpdateInProgress};
const QString shmPath = QStringLiteral("/dev/shm/breezy_desktop_imu");
QFile shmFile(shmPath);
@ -690,9 +623,9 @@ void BreezyDesktopEffect::updatePose() {
uint8_t version = static_cast<uint8_t>(data[DataView::VERSION[DataView::OFFSET_INDEX]]);
uint8_t enabledFlag = static_cast<uint8_t>(data[DataView::ENABLED[DataView::OFFSET_INDEX]]);
uint64_t poseDateMs;
memcpy(&poseDateMs, data + DataView::POSE_DATE_MS[DataView::OFFSET_INDEX], sizeof(poseDateMs));
poseDateMs = qFromLittleEndian(poseDateMs);
uint64_t imuDateMs;
memcpy(&imuDateMs, data + DataView::IMU_DATE_MS[DataView::OFFSET_INDEX], sizeof(imuDateMs));
imuDateMs = qFromLittleEndian(imuDateMs);
const qint64 currentTimeMs = QDateTime::currentMSecsSinceEpoch();
const bool updateConfig = lastConfigUpdate == 0 || currentTimeMs - lastConfigUpdate > 1000;
@ -731,9 +664,9 @@ void BreezyDesktopEffect::updatePose() {
lastConfigUpdate = currentTimeMs;
}
const bool validKeepAlive = (currentTimeMs - poseDateMs) < 5000;
const bool validKeepAlive = (currentTimeMs - imuDateMs) < 5000;
const bool validData = validKeepAlive && m_diagonalFOV != 0.0f;
const uint8_t expectedVersion = 5;
const uint8_t expectedVersion = 4;
bool enabledFlagSet = (enabledFlag != 0);
bool validVersion = (version == expectedVersion);
const bool wasEnabled = m_enabled;
@ -742,7 +675,7 @@ void BreezyDesktopEffect::updatePose() {
// give a grace period after enabling the effect
if (wasEnabled && (currentTimeMs - activatedAt > 1000)) {
qCCritical(KWIN_XR) << "\t\t\tBreezy - disabling effect; currentTimeMs:" << currentTimeMs
<< "poseDateMs:" << poseDateMs
<< "imuDateMs:" << imuDateMs
<< "enabledFlag:" << enabledFlag
<< "version:" << version
<< "diagonalFOV:" << m_diagonalFOV;
@ -753,77 +686,62 @@ void BreezyDesktopEffect::updatePose() {
}
} else if (!wasEnabled) {
qCCritical(KWIN_XR) << "\t\t\tBreezy - enabling effect; currentTimeMs:" << currentTimeMs
<< "poseDateMs:" << poseDateMs
<< "imuDateMs:" << imuDateMs
<< "enabledFlag:" << enabledFlag
<< "version:" << version
<< "diagonalFOV:" << m_diagonalFOV;
activate();
m_enabled = true;
m_poseHasPosition = false;
auto driverStateOpt = XRDriverIPC::instance().retrieveDriverState();
if (driverStateOpt) {
QJsonObject driverState = driverStateOpt.value();
if (driverState.contains(QStringLiteral("connected_device_pose_has_position"))) {
m_poseHasPosition = driverState.value(QStringLiteral("connected_device_pose_has_position")).toBool();
}
}
Q_EMIT enabledStateChanged();
Q_EMIT poseHasPositionChanged();
activatedAt = currentTimeMs;
}
if (updateConfig) Q_EMIT devicePropertiesChanged();
float posePositionData[3];
memcpy(posePositionData, data + DataView::POSE_POSITION_DATA[DataView::OFFSET_INDEX], sizeof(posePositionData));
// convert NWU to EUS by passing position values: -y, z, -x
m_posePosition = QVector3D(-posePositionData[1], posePositionData[2], -posePositionData[0]);
float poseOrientationData[4 * DataView::POSE_ORIENTATION_ENTRIES]; // 4 quaternion-sized rows
memcpy(poseOrientationData, data + DataView::POSE_ORIENTATION_DATA[DataView::OFFSET_INDEX], sizeof(poseOrientationData));
bool wasPoseResetState = m_poseResetState;
m_poseResetState = (poseOrientationData[0] == 0.0f && poseOrientationData[1] == 0.0f && poseOrientationData[2] == 0.0f && poseOrientationData[3] == 1.0f);
if (m_poseResetState != wasPoseResetState) {
if (m_poseResetState) recenter();
Q_EMIT poseResetStateChanged();
float imuData[4 * DataView::IMU_QUAT_ENTRIES]; // 4 quaternion-sized rows
memcpy(imuData, data + DataView::IMU_QUAT_DATA[DataView::OFFSET_INDEX], sizeof(imuData));
bool wasImuResetState = m_imuResetState;
m_imuResetState = (imuData[0] == 0.0f && imuData[1] == 0.0f && imuData[2] == 0.0f && imuData[3] == 1.0f);
if (m_imuResetState != wasImuResetState) {
if (m_imuResetState) recenter();
Q_EMIT imuResetStateChanged();
}
// convert NWU to EUS by passing orientation values: -y, z, -x
QQuaternion quatT0(poseOrientationData[3], -poseOrientationData[1], poseOrientationData[2], -poseOrientationData[0]);
// convert NWU to EUS by passing root.rotation values: -y, z, -x
QQuaternion quatT0(imuData[3], -imuData[1], imuData[2], -imuData[0]);
int orientationDataOffset = DataView::POSE_ORIENTATION_ENTRIES;
QQuaternion quatT1(poseOrientationData[orientationDataOffset + 3], -poseOrientationData[orientationDataOffset + 1], poseOrientationData[orientationDataOffset + 2], -poseOrientationData[orientationDataOffset + 0]);
int imuDataOffset = DataView::IMU_QUAT_ENTRIES;
QQuaternion quatT1(imuData[imuDataOffset + 3], -imuData[imuDataOffset + 1], imuData[imuDataOffset + 2], -imuData[imuDataOffset + 0]);
orientationDataOffset += DataView::POSE_ORIENTATION_ENTRIES;
imuDataOffset += DataView::IMU_QUAT_ENTRIES;
// skip the 3rd quaternion
orientationDataOffset += DataView::POSE_ORIENTATION_ENTRIES;
imuDataOffset += DataView::IMU_QUAT_ENTRIES;
// set poseOrientations to the last two rotations, leave out the elapsed time
m_poseOrientations.clear();
m_poseOrientations.append(quatT0);
m_poseOrientations.append(quatT1);
// set imuRotations to the last two rotations, leave out the elapsed time
m_imuRotations.clear();
m_imuRotations.append(quatT0);
m_imuRotations.append(quatT1);
// 4th row isn't actually a quaternion, it contains the timestamps for each of the 3 quaternions
// elapsed time between T0 and T1 is: poseOrientationData[0] - poseOrientationData[1]
m_poseTimeElapsedMs = static_cast<quint32>(poseOrientationData[orientationDataOffset + 0] - poseOrientationData[orientationDataOffset + 1]);
// elapsed time between T0 and T1 is: imuData[0] - imuData[1]
m_imuTimeElapsedMs = static_cast<quint32>(imuData[imuDataOffset + 0] - imuData[imuDataOffset + 1]);
m_poseTimestamp = poseDateMs;
m_imuTimestamp = imuDateMs;
float originData[4 * DataView::POSE_ORIENTATION_ENTRIES]; // 4 quaternion-sized rows
float originData[4 * DataView::IMU_QUAT_ENTRIES]; // 4 quaternion-sized rows
memcpy(originData, data + DataView::SMOOTH_FOLLOW_ORIGIN_DATA[DataView::OFFSET_INDEX], sizeof(originData));
// convert NWU to EUS by passing root.rotation values: -y, z, -x
QQuaternion sfQuatT0(originData[3], -originData[1], originData[2], -originData[0]);
int originDataOffset = DataView::POSE_ORIENTATION_ENTRIES;
int originDataOffset = DataView::IMU_QUAT_ENTRIES;
QQuaternion sfQuatT1(originData[originDataOffset + 3], -originData[originDataOffset + 1], originData[originDataOffset + 2], -originData[originDataOffset + 0]);
originDataOffset += DataView::POSE_ORIENTATION_ENTRIES;
originDataOffset += DataView::IMU_QUAT_ENTRIES;
// skip the 3rd quaternion
originDataOffset += DataView::POSE_ORIENTATION_ENTRIES;
originDataOffset += DataView::IMU_QUAT_ENTRIES;
// set smoothFollowOrigin to the last two rotations, leave out the elapsed time
m_smoothFollowOrigin.clear();
@ -859,11 +777,11 @@ void BreezyDesktopEffect::setSmoothFollowThreshold(float threshold) {
}
void BreezyDesktopEffect::updateDriverSmoothFollowSettings() {
qreal adjustedDistance = m_focusedDisplayDistance / (m_displaySize * m_allDisplaysDistance);
qreal adjustedDistance = m_focusedDisplayDistance;
if (m_lookingAtScreenIndex != -1 && !m_displayResolution.isEmpty()) {
// Adjust display distance by relative monitor size compared to the FOV monitor
const ScreenOutput *focusedOutput = effects->screens().at(m_lookingAtScreenIndex);
const Output *focusedOutput = effects->screens().at(m_lookingAtScreenIndex);
const QSize focusedSize = focusedOutput ? focusedOutput->geometry().size() : QSize();
if (focusedSize.isValid()) {
@ -874,7 +792,7 @@ void BreezyDesktopEffect::updateDriverSmoothFollowSettings() {
const qreal ratioH = static_cast<qreal>(focusedSize.height()) / fovH;
const qreal focusedMonitorSizeAdjustment = std::max(ratioW, ratioH);
adjustedDistance /= focusedMonitorSizeAdjustment;
adjustedDistance = m_focusedDisplayDistance / focusedMonitorSizeAdjustment;
}
}
@ -960,9 +878,9 @@ void BreezyDesktopEffect::evaluateCursorOnScreenState(const QPointF &prevPos, co
const bool onScreen =
m_effectOnScreenExpandedGeometry.contains(newPos.toPoint()) ||
m_effectOnScreenExpandedGeometry.contains(predicted.toPoint());
if (m_enabled && !m_poseResetState && !m_cursorHidden && onScreen) {
if (m_enabled && !m_imuResetState && !m_cursorHidden && onScreen) {
hideCursor();
} else if (m_cursorHidden && (!m_enabled || m_poseResetState || !onScreen)) {
} else if (m_cursorHidden && (!m_enabled || m_imuResetState || !onScreen)) {
showCursor();
}
}
@ -985,7 +903,7 @@ bool BreezyDesktopEffect::updateEffectOnScreenGeometryCache()
m_effectTargetScreenIndex = -1;
return false;
}
ScreenOutput *effectOnScreen = screensList.at(m_effectTargetScreenIndex);
Output *effectOnScreen = screensList.at(m_effectTargetScreenIndex);
if (!effectOnScreen) {
m_effectTargetScreenIndex = -1;
return false;
@ -999,35 +917,17 @@ bool BreezyDesktopEffect::updateEffectOnScreenGeometryCache()
return true;
}
void BreezyDesktopEffect::warpPointerToOutputCenter(ScreenOutput *output)
void BreezyDesktopEffect::warpPointerToOutputCenter(Output *output)
{
if (!output) {
return;
}
const QRect geometry = output->geometry();
const QPointF center = geometry.center();
Cursors::self()->mouse()->setPos(center);
bool warped = false;
if (InputRedirection *inputRedirection = input(); inputRedirection && inputRedirection->supportsPointerWarping()) {
inputRedirection->warpPointer(center);
warped = true;
} else if (auto *mouseCursor = Cursors::self()->mouse(); mouseCursor) {
mouseCursor->setPos(center);
warped = true;
}
if (!warped) {
return;
}
const QPointF newPos = center - effects->cursorImage().hotSpot();
const QPointF prevPos = m_cursorPos;
if (m_cursorPos != newPos) {
m_cursorPos = newPos;
Q_EMIT cursorPosChanged();
}
evaluateCursorOnScreenState(prevPos, newPos);
// When warping, we don't have a meaningful previous position; use center for both.
evaluateCursorOnScreenState(center, center);
}
void BreezyDesktopEffect::moveCursorToFocusedDisplay()

View File

@ -17,18 +17,6 @@ class QTimer;
namespace KWin
{
class BackendOutput;
class LogicalOutput;
class Output;
#if defined(KWIN_VERSION_ENCODED) && KWIN_VERSION_ENCODED >= 60590
using ScreenOutput = LogicalOutput;
using VirtualOutputHandle = BackendOutput;
#else
using ScreenOutput = Output;
using VirtualOutputHandle = ScreenOutput;
#endif
class BreezyDesktopEffect : public QuickSceneEffect
{
Q_OBJECT
@ -36,12 +24,10 @@ namespace KWin
Q_PROPERTY(int effectTargetScreenIndex READ effectTargetScreenIndex WRITE setEffectTargetScreenIndex)
Q_PROPERTY(bool zoomOnFocusEnabled READ isZoomOnFocusEnabled WRITE setZoomOnFocusEnabled NOTIFY zoomOnFocusChanged)
Q_PROPERTY(int lookingAtScreenIndex READ lookingAtScreenIndex WRITE setLookingAtScreenIndex)
Q_PROPERTY(bool poseResetState READ poseResetState NOTIFY poseResetStateChanged)
Q_PROPERTY(bool poseHasPosition READ poseHasPosition NOTIFY poseResetStateChanged)
Q_PROPERTY(QList<QQuaternion> poseOrientations READ poseOrientations)
Q_PROPERTY(QVector3D posePosition READ posePosition)
Q_PROPERTY(quint32 poseTimeElapsedMs READ poseTimeElapsedMs)
Q_PROPERTY(quint64 poseTimestamp READ poseTimestamp)
Q_PROPERTY(bool imuResetState READ imuResetState NOTIFY imuResetStateChanged)
Q_PROPERTY(QList<QQuaternion> imuRotations READ imuRotations)
Q_PROPERTY(quint32 imuTimeElapsedMs READ imuTimeElapsedMs)
Q_PROPERTY(quint64 imuTimestamp READ imuTimestamp)
Q_PROPERTY(QString cursorImageSource READ cursorImageSource NOTIFY cursorImageSourceChanged)
Q_PROPERTY(QSize cursorImageSize READ cursorImageSize NOTIFY cursorImageSourceChanged)
Q_PROPERTY(QPointF cursorPos READ cursorPos NOTIFY cursorPosChanged)
@ -51,7 +37,6 @@ namespace KWin
Q_PROPERTY(qreal focusedDisplayDistance READ focusedDisplayDistance NOTIFY focusedDisplayDistanceChanged)
Q_PROPERTY(qreal allDisplaysDistance READ allDisplaysDistance NOTIFY allDisplaysDistanceChanged)
Q_PROPERTY(qreal displaySpacing READ displaySpacing NOTIFY displaySpacingChanged)
Q_PROPERTY(qreal displaySize READ displaySize NOTIFY displaySizeChanged)
Q_PROPERTY(qreal displayHorizontalOffset READ displayHorizontalOffset NOTIFY displayOffsetChanged)
Q_PROPERTY(qreal displayVerticalOffset READ displayVerticalOffset NOTIFY displayOffsetChanged)
Q_PROPERTY(int displayWrappingScheme READ displayWrappingScheme NOTIFY displayWrappingSchemeChanged)
@ -66,7 +51,6 @@ namespace KWin
Q_PROPERTY(bool mirrorPhysicalDisplays READ mirrorPhysicalDisplays NOTIFY mirrorPhysicalDisplaysChanged)
Q_PROPERTY(bool curvedDisplay READ curvedDisplay NOTIFY curvedDisplayChanged)
Q_PROPERTY(bool curvedDisplaySupported READ curvedDisplaySupported WRITE setCurvedDisplaySupported NOTIFY curvedDisplaySupportedChanged)
Q_PROPERTY(bool developerMode READ developerMode NOTIFY developerModeChanged)
public:
@ -89,12 +73,10 @@ namespace KWin
void setZoomOnFocusEnabled(bool enabled);
int lookingAtScreenIndex() const { return m_lookingAtScreenIndex; }
void setLookingAtScreenIndex(int index);
QList<QQuaternion> poseOrientations() const;
QVector3D posePosition() const;
quint32 poseTimeElapsedMs() const;
quint64 poseTimestamp() const;
bool poseResetState() const;
bool poseHasPosition() const;
QList<QQuaternion> imuRotations() const;
quint32 imuTimeElapsedMs() const;
quint64 imuTimestamp() const;
bool imuResetState() const;
QList<qreal> lookAheadConfig() const;
qreal lookAheadOverride() const;
void setLookAheadOverride(qreal override);
@ -105,8 +87,6 @@ namespace KWin
void setAllDisplaysDistance(qreal distance);
qreal displaySpacing() const;
void setDisplaySpacing(qreal spacing);
qreal displaySize() const;
void setDisplaySize(qreal size);
qreal displayHorizontalOffset() const;
qreal displayVerticalOffset() const;
int displayWrappingScheme() const;
@ -120,7 +100,6 @@ namespace KWin
bool removeVirtualDisplaysOnDisable() const;
bool mirrorPhysicalDisplays() const;
bool curvedDisplay() const;
bool developerMode() const;
void setCurvedDisplaySupported(bool supported);
void showCursor();
@ -133,7 +112,7 @@ namespace KWin
void disableDriver();
void toggle();
void addVirtualDisplay(QSize size);
void updatePose();
void updateImuRotation();
void updateCursorImage();
void updateCursorPos();
QVariantList listVirtualDisplays() const;
@ -146,13 +125,11 @@ namespace KWin
void focusedDisplayDistanceChanged();
void allDisplaysDistanceChanged();
void displaySpacingChanged();
void displaySizeChanged();
void displayOffsetChanged();
void displayWrappingSchemeChanged();
void enabledStateChanged();
void zoomOnFocusChanged();
void poseResetStateChanged();
void poseHasPositionChanged();
void imuResetStateChanged();
void sbsEnabledChanged();
void smoothFollowEnabledChanged();
void devicePropertiesChanged();
@ -161,12 +138,11 @@ namespace KWin
void mirrorPhysicalDisplaysChanged();
void curvedDisplayChanged();
void curvedDisplaySupportedChanged();
void developerModeChanged();
void cursorImageSourceChanged();
void cursorPosChanged();
protected:
QVariantMap initialProperties(ScreenOutput *screen) override;
QVariantMap initialProperties(Output *screen) override;
private:
void teardown();
@ -177,7 +153,7 @@ namespace KWin
void toggleSmoothFollow();
void setSmoothFollowThreshold(float threshold);
void updateDriverSmoothFollowSettings();
void warpPointerToOutputCenter(ScreenOutput *output);
void warpPointerToOutputCenter(Output *output);
void evaluateCursorOnScreenState(const QPointF &prevPos, const QPointF &newPos);
void invalidateEffectOnScreenGeometryCache();
bool updateEffectOnScreenGeometryCache();
@ -189,33 +165,29 @@ namespace KWin
bool m_zoomOnFocusEnabled = false;
int m_lookingAtScreenIndex = -1;
int m_effectTargetScreenIndex = -1;
bool m_poseResetState = false;
bool m_poseHasPosition = false;
QList<QQuaternion> m_poseOrientations;
QVector3D m_posePosition;
quint32 m_poseTimeElapsedMs = 0;
quint64 m_poseTimestamp = 0;
bool m_imuResetState;
QList<QQuaternion> m_imuRotations;
quint32 m_imuTimeElapsedMs;
quint64 m_imuTimestamp = 0;
QList<qreal> m_lookAheadConfig;
qreal m_lookAheadOverride = -1.0; // -1 = use device default
QList<quint32> m_displayResolution;
qreal m_diagonalFOV = 0.0;
qreal m_lensDistanceRatio = 0.0;
bool m_sbsEnabled = false;
bool m_smoothFollowEnabled = false;
qreal m_diagonalFOV;
qreal m_lensDistanceRatio;
bool m_sbsEnabled;
bool m_smoothFollowEnabled;
QList<QQuaternion> m_smoothFollowOrigin;
bool m_customBannerEnabled = false;
bool m_customBannerEnabled;
QFileSystemWatcher *m_shmFileWatcher = nullptr;
QFileSystemWatcher *m_shmDirectoryWatcher = nullptr;
bool m_cursorHidden = false;
QPointF m_cursorPos;
QTimer *m_cursorUpdateTimer = nullptr;
QTimer *m_watchdogTimer = nullptr;
std::atomic<bool> m_poseUpdateInProgress{false};
bool m_sessionClassBlocked = false;
QTimer *m_imuWatchdogTimer = nullptr;
std::atomic<bool> m_imuUpdateInProgress{false};
qreal m_focusedDisplayDistance = 0.85;
qreal m_allDisplaysDistance = 1.05;
qreal m_displaySpacing = 0.0;
qreal m_displaySize = 1.0;
qreal m_displayHorizontalOffset = 0.0;
qreal m_displayVerticalOffset = 0.0;
int m_displayWrappingScheme = 0; // 0=auto,1=horizontal,2=vertical,3=flat
@ -224,7 +196,6 @@ namespace KWin
bool m_mirrorPhysicalDisplays = false;
bool m_curvedDisplay = false;
bool m_curvedDisplaySupported = false;
bool m_developerMode = false;
float m_smoothFollowThreshold = 1.0f;
bool m_allDisplaysFollowMode = false;
bool m_focusedSmoothFollowEnabled = false;
@ -234,7 +205,7 @@ namespace KWin
bool m_effectOnScreenGeometryValid = false;
struct VirtualOutputInfo {
VirtualOutputHandle *output = nullptr;
Output *output = nullptr;
QString id;
QSize size;
};

View File

@ -15,7 +15,6 @@ kcoreaddons_add_plugin(breezy_desktop_config INSTALL_NAMESPACE "plasma/kcms" SOU
kconfig_add_kcfg_files(breezy_desktop_config ../breezydesktopconfig.kcfgc)
target_link_libraries(breezy_desktop_config
Qt6::DBus
Qt6::Network
KF6::ConfigCore
KF6::ConfigGui
KF6::ConfigWidgets

View File

@ -48,11 +48,6 @@
#include <QFile>
#include <QDir>
#include <QJsonDocument>
#include <QDebug>
#include <QLocale>
#include <QSignalBlocker>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <cmath>
#include <algorithm>
@ -206,43 +201,9 @@ BreezyDesktopEffectConfig::BreezyDesktopEffectConfig(QObject *parent, const KPlu
ui.setupUi(widget());
addConfig(BreezyDesktopConfig::self(), widget());
// safe to request on each load, acts as a no-op if already present
{
QJsonObject flags;
QJsonArray requested;
requested.append(QStringLiteral("productivity"));
requested.append(QStringLiteral("productivity_pro"));
flags.insert(QStringLiteral("request_features"), requested);
XRDriverIPC::instance().writeControlFlags(flags);
}
// Advanced tab: measurement units selector (stored as "cm" or "in")
if (ui.comboMeasurementUnits) {
ui.comboMeasurementUnits->clear();
ui.comboMeasurementUnits->addItem(i18n("Centimeters (cm)"), QStringLiteral("cm"));
ui.comboMeasurementUnits->addItem(i18n("Inches (in)"), QStringLiteral("in"));
{
QSignalBlocker b(ui.comboMeasurementUnits);
const QString saved = KConfigGroup(BreezyDesktopConfig::self()->sharedConfig(), QLatin1String(EFFECT_GROUP))
.readEntry(QStringLiteral("measurement_units"), QStringLiteral("cm"));
const int idx = ui.comboMeasurementUnits->findData(saved);
ui.comboMeasurementUnits->setCurrentIndex(idx >= 0 ? idx : 0);
}
connect(ui.comboMeasurementUnits, qOverload<int>(&QComboBox::currentIndexChanged), this, [this](int) {
if (m_updatingFromConfig) return;
applyDistanceLabelFormatters();
save();
});
}
// One-time check if the KWin effect backend is actually loaded. If not, disable UI early.
checkEffectLoaded();
// Asynchronously check GitHub for a newer release.
checkForUpdates();
// Show/enable Virtual Display controls only when we're on Wayland
const bool isWaylandSession = QGuiApplication::platformName().contains(QStringLiteral("wayland"), Qt::CaseInsensitive)
|| qEnvironmentVariable("XDG_SESSION_TYPE").compare(QStringLiteral("wayland"), Qt::CaseInsensitive) == 0;
@ -369,7 +330,6 @@ BreezyDesktopEffectConfig::BreezyDesktopEffectConfig(QObject *parent, const KPlu
connect(ui.kcfg_ZoomOnFocusEnabled, &QCheckBox::toggled, this, &BreezyDesktopEffectConfig::save);
connect(ui.kcfg_FocusedDisplayDistance, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save);
connect(ui.kcfg_AllDisplaysDistance, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save);
connect(ui.kcfg_DisplaySize, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save);
connect(ui.kcfg_DisplaySpacing, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save);
connect(ui.kcfg_SmoothFollowThreshold, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save);
connect(ui.kcfg_DisplayHorizontalOffset, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save);
@ -387,12 +347,6 @@ BreezyDesktopEffectConfig::BreezyDesktopEffectConfig(QObject *parent, const KPlu
connect(ui.SmoothFollowTrackRoll, &QCheckBox::toggled, this, &BreezyDesktopEffectConfig::updateSmoothFollowTrackRoll);
connect(ui.NeckSaverHorizontalMultiplier, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::updateNeckSaverHorizontal);
connect(ui.NeckSaverVerticalMultiplier, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::updateNeckSaverVertical);
connect(ui.DeadZoneThresholdDeg, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::updateDeadZoneThresholdDeg);
if (ui.DeadZoneThresholdDeg) {
ui.DeadZoneThresholdDeg->setValueUnitsSuffix(QStringLiteral("°"));
ui.DeadZoneThresholdDeg->setValueText(0, i18n("Disabled"));
}
if (auto label = widget()->findChild<QLabel*>("labelAppNameVersion")) {
label->setText(QStringLiteral("Breezy Desktop - v%1").arg(QLatin1String(BREEZY_DESKTOP_VERSION_STR)));
@ -439,8 +393,6 @@ BreezyDesktopEffectConfig::BreezyDesktopEffectConfig(QObject *parent, const KPlu
lookAheadOverrideSlider->setValueText(-1, i18n("Default"));
}
applyDistanceLabelFormatters();
renderVirtualDisplays(dbusListVirtualDisplays());
m_virtualDisplayPollTimer.setInterval(15000);
@ -459,27 +411,6 @@ BreezyDesktopEffectConfig::BreezyDesktopEffectConfig(QObject *parent, const KPlu
}
});
}
// Advanced tab: Force reset xr-driver (matches the Python UI's reset action)
if (auto btnResetDriver = widget()->findChild<QPushButton*>(QStringLiteral("buttonResetDriver"))) {
connect(btnResetDriver, &QPushButton::clicked, this, [this]() {
auto labelStatus = widget()->findChild<QLabel*>(QStringLiteral("labelResetDriverStatus"));
if (labelStatus) {
labelStatus->setVisible(false);
}
setRequestInProgress({sender()}, true);
const bool ok = XRDriverIPC::instance().resetDriver();
if (ok) {
showStatus(labelStatus, true, tr("Driver restarted."));
} else {
showStatus(labelStatus, false, tr("Failed to restart driver."));
}
setRequestInProgress({sender()}, false);
});
}
}
BreezyDesktopEffectConfig::~BreezyDesktopEffectConfig()
@ -499,14 +430,6 @@ void BreezyDesktopEffectConfig::save()
m_updatingFromConfig = true;
updateConfigFromUi();
BreezyDesktopConfig::self()->save();
// Store measurement_units explicitly (snake_case key) without depending on KConfigXT accessor naming.
{
KConfigGroup grp(BreezyDesktopConfig::self()->sharedConfig(), QLatin1String(EFFECT_GROUP));
grp.writeEntry(QStringLiteral("measurement_units"), measurementUnitsFromUi());
grp.sync();
}
KCModule::save();
ui.kcfg_FocusedDisplayDistance->setEnabled(
ui.kcfg_ZoomOnFocusEnabled->isChecked() || ui.SmoothFollowEnabled->isChecked());
@ -533,7 +456,6 @@ void BreezyDesktopEffectConfig::updateUiFromConfig()
{
ui.kcfg_FocusedDisplayDistance->setValue(BreezyDesktopConfig::self()->focusedDisplayDistance());
ui.kcfg_AllDisplaysDistance->setValue(BreezyDesktopConfig::self()->allDisplaysDistance());
ui.kcfg_DisplaySize->setValue(BreezyDesktopConfig::self()->displaySize());
ui.kcfg_DisplaySpacing->setValue(BreezyDesktopConfig::self()->displaySpacing());
ui.kcfg_DisplayHorizontalOffset->setValue(BreezyDesktopConfig::self()->displayHorizontalOffset());
ui.kcfg_DisplayVerticalOffset->setValue(BreezyDesktopConfig::self()->displayVerticalOffset());
@ -548,29 +470,11 @@ void BreezyDesktopEffectConfig::updateUiFromConfig()
ui.kcfg_FocusedDisplayDistance->setEnabled(
ui.kcfg_ZoomOnFocusEnabled->isChecked() || ui.SmoothFollowEnabled->isChecked());
ui.kcfg_SmoothFollowThreshold->setValue(BreezyDesktopConfig::self()->smoothFollowThreshold());
if (ui.comboMeasurementUnits) {
QSignalBlocker b(ui.comboMeasurementUnits);
const QString saved = KConfigGroup(BreezyDesktopConfig::self()->sharedConfig(), QLatin1String(EFFECT_GROUP))
.readEntry(QStringLiteral("measurement_units"), QStringLiteral("cm"));
const int idx = ui.comboMeasurementUnits->findData(saved);
ui.comboMeasurementUnits->setCurrentIndex(idx >= 0 ? idx : 0);
}
applyDistanceLabelFormatters();
}
void BreezyDesktopEffectConfig::updateUiFromDefaultConfig()
{
ui.shortcutsEditor->allDefault();
if (ui.comboMeasurementUnits) {
QSignalBlocker b(ui.comboMeasurementUnits);
const int idx = ui.comboMeasurementUnits->findData(QStringLiteral("cm"));
ui.comboMeasurementUnits->setCurrentIndex(idx >= 0 ? idx : 0);
}
applyDistanceLabelFormatters();
}
void BreezyDesktopEffectConfig::updateUnmanagedState()
@ -588,78 +492,12 @@ void BreezyDesktopEffectConfig::checkEffectLoaded() {
QPalette pal = warn->palette();
pal.setColor(QPalette::WindowText, QColor(Qt::red));
warn->setPalette(pal);
warn->setText(tr("The Breezy Desktop KWin effect is disabled or not loaded. Please check the Desktop Effects dialog. Otherwise, log out and back in to enable it."));
warn->setText(tr("The Breezy Desktop KWin effect is not loaded. Please log out and back in to enable it."));
warn->setVisible(true);
}
}
}
void BreezyDesktopEffectConfig::checkForUpdates() {
#ifdef BREEZY_DESKTOP_VERSION_STR
// Skip update check for system-wide installs (e.g. AUR) — the package
// manager handles updates there. Scripted installs put the plugin under
// the user's home directory, so we use that as the heuristic.
const QString pluginPath = metaData().fileName();
const QString home = QDir::homePath();
if (!pluginPath.startsWith(home + QLatin1Char('/')))
return;
if (!m_networkManager)
m_networkManager = new QNetworkAccessManager(this);
QNetworkRequest request(QUrl(QStringLiteral("https://api.github.com/repos/wheaney/breezy-desktop/releases/latest")));
request.setHeader(QNetworkRequest::UserAgentHeader, QStringLiteral("breezy-desktop-kcm"));
auto *reply = m_networkManager->get(request);
connect(reply, &QNetworkReply::finished, this, [this, reply]() {
reply->deleteLater();
if (reply->error() != QNetworkReply::NoError) {
qCDebug(KWIN_XR) << "Update check failed:" << reply->errorString();
return;
}
const QJsonDocument doc = QJsonDocument::fromJson(reply->readAll());
if (!doc.isObject()) return;
const QString latestTag = doc.object().value(QStringLiteral("tag_name")).toString();
if (latestTag.isEmpty()) return;
QString latest = latestTag;
if (latest.startsWith(QLatin1Char('v'))) latest.remove(0, 1);
// Compare version tuples
const QString current = QLatin1String(BREEZY_DESKTOP_VERSION_STR);
auto parseParts = [](const QString &v) -> QList<int> {
QList<int> parts;
for (const QString &p : v.split(QLatin1Char('.'))) {
bool ok;
int n = p.toInt(&ok);
if (!ok) return {};
parts.append(n);
}
return parts;
};
const QList<int> latestParts = parseParts(latest);
const QList<int> currentParts = parseParts(current);
if (latestParts.isEmpty() || currentParts.isEmpty()) return;
bool isNewer = false;
for (int i = 0; i < qMax(latestParts.size(), currentParts.size()); ++i) {
int lv = i < latestParts.size() ? latestParts[i] : 0;
int cv = i < currentParts.size() ? currentParts[i] : 0;
if (lv != cv) {
isNewer = lv > cv;
break;
}
}
if (isNewer) {
if (auto label = widget()->findChild<QLabel*>(QStringLiteral("labelUpdateAvailable"))) {
label->setText(tr("A newer version (%1) is available. To update, rerun the breezy_kwin_setup script.").arg(latest));
label->setVisible(true);
}
}
});
#endif
}
static QDBusInterface makeVDInterface() {
return QDBusInterface(
QStringLiteral("org.kde.KWin"),
@ -806,14 +644,8 @@ void BreezyDesktopEffectConfig::pollDriverState()
auto configJsonOpt = XRDriverIPC::instance().retrieveConfig();
if (!stateJsonOpt || !configJsonOpt) return;
auto stateJson = stateJsonOpt.value();
m_connectedDeviceBrand = stateJson.value(QStringLiteral("connected_device_brand")).toString();
m_connectedDeviceModel = stateJson.value(QStringLiteral("connected_device_model")).toString();
m_connectedDeviceFullDistanceCm = stateJson.value(QStringLiteral("connected_device_full_distance_cm")).toDouble(0.0);
m_connectedDeviceFullSizeCm = stateJson.value(QStringLiteral("connected_device_full_size_cm")).toDouble(0.0);
m_connectedDevicePoseHasPosition = stateJson.value(QStringLiteral("connected_device_pose_has_position")).toBool(false);
applyDistanceLabelFormatters();
const bool smoothFollow = smoothFollowEnabled(stateJsonOpt);
if (ui.SmoothFollowEnabled->isChecked() != smoothFollow) {
@ -872,65 +704,11 @@ void BreezyDesktopEffectConfig::pollDriverState()
ui.NeckSaverVerticalMultiplier->setValue(vertInt);
}
const double dz = deadZoneThresholdDeg(configJsonOpt);
const int dzInt = static_cast<int>(std::round(dz * 10.0));
if (ui.DeadZoneThresholdDeg->value() != dzInt) {
ui.DeadZoneThresholdDeg->setValue(dzInt);
}
refreshLicenseUi(stateJson);
m_driverStateInitialized = true;
}
QString BreezyDesktopEffectConfig::measurementUnitsFromUi() const
{
if (!ui.comboMeasurementUnits) return QStringLiteral("cm");
const QString v = ui.comboMeasurementUnits->currentData().toString();
if (v == QLatin1String("in")) return QStringLiteral("in");
return QStringLiteral("cm");
}
void BreezyDesktopEffectConfig::applyDistanceLabelFormatters()
{
auto *focused = ui.kcfg_FocusedDisplayDistance;
auto *all = ui.kcfg_AllDisplaysDistance;
if (!focused || !all) {
return;
}
// Only apply the unit conversion labels when the driver reports positional tracking.
if (!m_connectedDevicePoseHasPosition) {
focused->clearValueToDisplayStringFn();
all->clearValueToDisplayStringFn();
focused->setValueUnitsSuffix(QString());
all->setValueUnitsSuffix(QString());
return;
}
const double fullCm = static_cast<double>(m_connectedDeviceFullDistanceCm);
const QString units = measurementUnitsFromUi();
const QLocale loc;
// Units should appear only in the floating value bubble, not on tick labels.
focused->setValueUnitsSuffix(units);
all->setValueUnitsSuffix(units);
LabeledSlider::ValueToDisplayStringFn fn = [fullCm, units, loc](int raw) -> QString {
if (fullCm <= 0.0) return QString();
const double ratio = static_cast<double>(raw) / 100.0; // slider uses a 2-decimal fixed-point scale
const double cm = ratio * fullCm;
if (units == QLatin1String("in")) {
const double inches = cm / 2.54;
return loc.toString(inches, 'f', 1);
}
return loc.toString(cm, 'f', 0);
};
focused->setValueToDisplayStringFn(fn);
all->setValueToDisplayStringFn(fn);
}
double BreezyDesktopEffectConfig::neckSaverHorizontalMultiplier(std::optional<QJsonObject> configJsonOpt)
{
if (!configJsonOpt) return 1.0;
@ -951,16 +729,6 @@ double BreezyDesktopEffectConfig::neckSaverVerticalMultiplier(std::optional<QJso
return v;
}
double BreezyDesktopEffectConfig::deadZoneThresholdDeg(std::optional<QJsonObject> configJsonOpt)
{
if (!configJsonOpt) return 0.0;
const QJsonValue jv = configJsonOpt->value(QStringLiteral("dead_zone_threshold_deg"));
const double v = jv.isDouble() ? jv.toDouble() : 0.0;
if (v < 0.0) return 0.0;
if (v > 5.0) return 5.0;
return v;
}
void BreezyDesktopEffectConfig::updateNeckSaverHorizontal()
{
auto configJsonOpt = XRDriverIPC::instance().retrieveConfig();
@ -983,29 +751,6 @@ void BreezyDesktopEffectConfig::updateNeckSaverVertical()
XRDriverIPC::instance().writeConfig(newConfig);
}
void BreezyDesktopEffectConfig::updateDeadZoneThresholdDeg()
{
auto configJsonOpt = XRDriverIPC::instance().retrieveConfig();
int raw = ui.DeadZoneThresholdDeg->value();
const int clampedRaw = std::clamp(raw, 0, 50);
if (raw != clampedRaw) {
QSignalBlocker b(ui.DeadZoneThresholdDeg);
ui.DeadZoneThresholdDeg->setValue(clampedRaw);
raw = clampedRaw;
}
double val = raw / 10.0;
val = std::clamp(val, 0.0, 5.0);
const double current = deadZoneThresholdDeg(configJsonOpt);
if (std::abs(current - val) < 1e-9) return;
QJsonObject newConfig = configJsonOpt ? configJsonOpt.value() : QJsonObject();
newConfig.insert(QStringLiteral("dead_zone_threshold_deg"), val);
XRDriverIPC::instance().writeConfig(newConfig);
}
bool BreezyDesktopEffectConfig::multitapEnabled(std::optional<QJsonObject> configJsonOpt)
{
if (!configJsonOpt) return false;
@ -1170,144 +915,80 @@ void BreezyDesktopEffectConfig::refreshLicenseUi(const QJsonObject &rootObj) {
if (!labelSummary) return;
auto donate = tab->findChild<QLabel*>("labelDonateLink");
auto globalWarn = widget()->findChild<QLabel*>("labelGlobalWarning");
auto poseProWarn = widget()->findChild<QLabel*>("labelPoseProWarning");
struct TierUiState {
QString status = BreezyDesktopEffectConfig::tr("disabled");
QString renewalDescriptor;
bool warningState = false;
bool isActive = false;
bool isTrial = false;
bool entitled = false;
};
QString status = tr("disabled");
QString renewalDescriptor = QStringLiteral("");
auto uiView = rootObj.value(QStringLiteral("ui_view")).toObject();
auto license = uiView.value(QStringLiteral("license")).toObject();
bool warningState = false;
bool expired = false;
if (!license.isEmpty()) {
auto tiers = license.value(QStringLiteral("tiers")).toObject();
QJsonValue prodTier = tiers.value(QStringLiteral("subscriber"));
QJsonObject prodTierObj = prodTier.isUndefined() ? QJsonObject() : prodTier.toObject();
auto computeTierState = [](const QJsonObject &tierObj, const QJsonObject &featureObj) -> TierUiState {
TierUiState out;
auto features = license.value(QStringLiteral("features")).toObject();
QJsonValue prodFeature = features.value(QStringLiteral("productivity_basic"));
QJsonObject prodFeatureObj = prodFeature.isUndefined() ? QJsonObject() : prodFeature.toObject();
if (!prodTierObj.isEmpty() && !prodFeatureObj.isEmpty()) {
const QString activePeriod = prodTierObj.value(QStringLiteral("active_period")).toString();
const bool isActive = !activePeriod.isEmpty();
if (isActive) {
status = tr("active");
// Active if both tier+feature exist and the tier reports an active period.
const QString activePeriod = tierObj.value(QStringLiteral("active_period")).toString();
const bool isActive = !tierObj.isEmpty() && !featureObj.isEmpty() && !activePeriod.isEmpty();
QString periodDescriptor = activePeriod.contains(QStringLiteral("lifetime"), Qt::CaseInsensitive) ?
tr("lifetime") :
tr("%1 license").arg(activePeriod);
if (isActive) {
out.status = BreezyDesktopEffectConfig::tr("active");
out.isActive = true;
out.entitled = true;
const QString periodDescriptor = activePeriod.contains(QStringLiteral("lifetime"), Qt::CaseInsensitive)
? BreezyDesktopEffectConfig::tr("lifetime")
: BreezyDesktopEffectConfig::tr("%1 license").arg(activePeriod);
QString timeDescriptor;
const QJsonValue secsVal = tierObj.value(QStringLiteral("funds_needed_in_seconds"));
if (secsVal.isDouble()) {
const qint64 secs = static_cast<qint64>(secsVal.toDouble());
const QString remaining = secondsToRemainingString(secs);
if (!remaining.isEmpty()) {
timeDescriptor = BreezyDesktopEffectConfig::tr("%1 remaining").arg(remaining);
QString timeDescriptor;
auto secsVal = prodTierObj.value(QStringLiteral("funds_needed_in_seconds"));
if (secsVal.isDouble()) {
qint64 secs = static_cast<qint64>(secsVal.toDouble());
QString remaining = secondsToRemainingString(secs);
if (!remaining.isEmpty()) {
timeDescriptor = tr("%1 remaining").arg(remaining);
}
}
}
out.renewalDescriptor = BreezyDesktopEffectConfig::tr(" (%1)").arg(periodDescriptor);
out.warningState = !timeDescriptor.isEmpty();
if (out.warningState) {
const double fundsNeeded = tierObj.value(QStringLiteral("funds_needed_by_period"))
.toObject()
.value(activePeriod)
.toDouble();
if (fundsNeeded > 0.0) {
const QString fundsNeededDescriptor = BreezyDesktopEffectConfig::tr("$%1 USD to renew").arg(fundsNeeded);
out.renewalDescriptor = BreezyDesktopEffectConfig::tr(" (%1, %2, %3)").arg(periodDescriptor, fundsNeededDescriptor, timeDescriptor);
renewalDescriptor = tr(" (%1)").arg(periodDescriptor);
warningState = !timeDescriptor.isEmpty();
if (warningState) {
auto fundsNeeded = prodTierObj.value(QStringLiteral("funds_needed_by_period")).toObject().value(activePeriod).toDouble();
if (fundsNeeded > 0.0) {
QString fundsNeededDescriptor = tr("$%1 USD to renew").arg(fundsNeeded);
renewalDescriptor = tr(" (%1, %2, %3)").arg(periodDescriptor, fundsNeededDescriptor, timeDescriptor);
}
}
}
return out;
}
// Not active: interpret feature flags.
if (!featureObj.isEmpty()) {
const bool isEnabled = featureObj.value(QStringLiteral("is_enabled")).toBool();
const bool isTrial = featureObj.value(QStringLiteral("is_trial")).toBool();
if (isEnabled) {
if (isTrial) {
out.status = BreezyDesktopEffectConfig::tr("in trial");
out.isTrial = true;
out.entitled = true;
const QJsonValue secsVal = featureObj.value(QStringLiteral("funds_needed_in_seconds"));
if (secsVal.isDouble()) {
const qint64 secs = static_cast<qint64>(secsVal.toDouble());
const QString remaining = secondsToRemainingString(secs);
out.warningState = !remaining.isEmpty();
if (out.warningState) {
const QString timeDescriptor = BreezyDesktopEffectConfig::tr("%1 remaining").arg(remaining);
out.renewalDescriptor = BreezyDesktopEffectConfig::tr(" (%1)").arg(timeDescriptor);
} else {
QJsonValue isEnabled = prodFeatureObj.value(QStringLiteral("is_enabled"));
QJsonValue isTrial = prodFeatureObj.value(QStringLiteral("is_trial"));
if (isEnabled.toBool()) {
if (isTrial.toBool()) {
status = tr("in trial");
auto secsVal = prodFeatureObj.value(QStringLiteral("funds_needed_in_seconds"));
if (secsVal.isDouble()) {
qint64 secs = static_cast<qint64>(secsVal.toDouble());
QString remaining = secondsToRemainingString(secs);
warningState = !remaining.isEmpty();
if (warningState) {
QString timeDescriptor = tr("%1 remaining").arg(remaining);
renewalDescriptor = tr(" (%1)").arg(timeDescriptor);
}
}
}
} else {
out.status = BreezyDesktopEffectConfig::tr("enabled");
out.entitled = true;
expired = true;
}
}
}
return out;
};
auto uiView = rootObj.value(QStringLiteral("ui_view")).toObject();
auto license = uiView.value(QStringLiteral("license")).toObject();
const QJsonObject tiers = license.value(QStringLiteral("tiers")).toObject();
const QJsonObject features = license.value(QStringLiteral("features")).toObject();
const TierUiState baseState = computeTierState(
tiers.value(QStringLiteral("productivity")).toObject(),
features.value(QStringLiteral("productivity")).toObject());
const QString baseLine = tr("Productivity Basic features are %1%2").arg(baseState.status, baseState.renewalDescriptor);
const TierUiState proState = computeTierState(
tiers.value(QStringLiteral("productivity_pro")).toObject(),
features.value(QStringLiteral("productivity_pro")).toObject());
const QString proLine = tr("Productivity Pro features are %1%2").arg(proState.status, proState.renewalDescriptor);
// Display rules:
// - Only Pro if it has an active period or both are in trial
// - Both if Pro is in trial and base is active
// - Only base if Pro is disabled or expired
// - Otherwise show both (fallback)
const bool baseEntitled = baseState.entitled;
const bool proEntitled = proState.entitled;
const bool bothInTrial = proState.isTrial && baseState.isTrial;
const bool showProOnly = proEntitled && (proState.isActive || bothInTrial);
const bool showBaseOnly = !proEntitled;
const bool showBoth = !showProOnly && !showBaseOnly;
QStringList lines;
if (showProOnly) {
lines << proLine;
} else if (showBoth) {
lines << baseLine;
lines << proLine;
} else {
lines << baseLine;
}
const bool showBase = !showProOnly;
const bool showPro = showProOnly || showBoth;
const bool warningState = (showBase && baseState.warningState) || (showPro && proState.warningState);
// Only disable the effect if neither tier grants access.
const bool effectDisabled = !baseEntitled && !proEntitled;
// Show donate link when the currently relevant tier(s) are warning/disabled.
const bool shownTierNotEntitled = (showBase && !baseEntitled) || (showPro && !proEntitled);
const bool donateVisible = warningState || effectDisabled || shownTierNotEntitled;
const QString message = lines.join(QStringLiteral("\n"));
const QString message = tr("Productivity Tier features are %1%2").arg(status, renewalDescriptor);
labelSummary->setText(message);
if (donate) donate->setVisible(donateVisible);
if (donate) donate->setVisible(warningState || expired);
if (globalWarn && !globalWarn->isVisible()) {
if (donateVisible) {
globalWarn->setText(message + (effectDisabled ? tr(" — effect disabled") : QString()));
if (warningState || expired) {
globalWarn->setText(message + (expired ? tr(" — effect disabled") : QString()));
globalWarn->setVisible(true);
} else {
globalWarn->clear();
@ -1315,23 +996,12 @@ void BreezyDesktopEffectConfig::refreshLicenseUi(const QJsonObject &rootObj) {
}
}
if (effectDisabled) {
if (expired) {
ui.EffectEnabled->setChecked(false);
ui.EffectEnabled->setEnabled(false);
} else {
ui.EffectEnabled->setEnabled(true);
}
if (poseProWarn) {
const bool showPoseProWarn = m_deviceConnected && m_connectedDevicePoseHasPosition && baseEntitled && !proEntitled;
if (showPoseProWarn) {
poseProWarn->setText(tr("Productivity Pro license is inactive — 6DoF features will be unavailable."));
poseProWarn->setVisible(true);
} else {
poseProWarn->clear();
poseProWarn->setVisible(false);
}
}
}
#include "breezydesktopeffectkcm.moc"

View File

@ -4,7 +4,6 @@
#include <KConfigWatcher>
#include <memory>
#include <QNetworkAccessManager>
#include <QTimer>
#include <QVariant>
#include <QVariantList>
@ -29,9 +28,6 @@ public Q_SLOTS:
void defaults() override;
private:
QString measurementUnitsFromUi() const;
void applyDistanceLabelFormatters();
void updateDriverEnabled();
void updateMultitapEnabled();
void updateSmoothFollowEnabled();
@ -40,7 +36,6 @@ private:
void updateSmoothFollowTrackRoll();
void updateNeckSaverHorizontal();
void updateNeckSaverVertical();
void updateDeadZoneThresholdDeg();
void updateUiFromConfig();
void updateUiFromDefaultConfig();
void updateConfigFromUi();
@ -53,11 +48,9 @@ private:
bool smoothFollowTrackRollEnabled(std::optional<QJsonObject> configJsonOpt);
double neckSaverHorizontalMultiplier(std::optional<QJsonObject> configJsonOpt);
double neckSaverVerticalMultiplier(std::optional<QJsonObject> configJsonOpt);
double deadZoneThresholdDeg(std::optional<QJsonObject> configJsonOpt);
void pollDriverState();
void refreshLicenseUi(const QJsonObject &rootObj);
void checkEffectLoaded();
void checkForUpdates();
void showStatus(QLabel *label, bool success, const QString &message);
void setRequestInProgress(std::initializer_list<QObject*> widgets, bool inProgress);
bool eventFilter(QObject *watched, QEvent *event) override;
@ -73,7 +66,6 @@ private:
::Ui::BreezyDesktopEffectConfig ui;
KConfigWatcher::Ptr m_configWatcher;
QNetworkAccessManager *m_networkManager = nullptr;
bool m_updatingFromConfig = false;
bool m_driverStateInitialized = false;
bool m_deviceConnected = false;
@ -81,9 +73,6 @@ private:
int m_smoothFollowThreshold = 1;
QString m_connectedDeviceBrand;
QString m_connectedDeviceModel;
float m_connectedDeviceFullDistanceCm = 0.0;
float m_connectedDeviceFullSizeCm = 0.0;
bool m_connectedDevicePoseHasPosition = false;
QTimer m_statePollTimer; // periodic driver state polling
QTimer m_virtualDisplayPollTimer; // periodic virtual display list polling
bool m_licenseLoading = false;

View File

@ -39,44 +39,6 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelPoseProWarning">
<property name="text">
<string/>
</property>
<property name="visible">
<bool>false</bool>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignHCenter|Qt::AlignVCenter</set>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(200,0,0); font-weight: bold;</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelUpdateAvailable">
<property name="text">
<string/>
</property>
<property name="visible">
<bool>false</bool>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignHCenter|Qt::AlignVCenter</set>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(0,100,200); font-weight: bold;</string>
</property>
</widget>
</item>
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="tabPosition">
@ -90,16 +52,7 @@
<string>&amp;General</string>
</attribute>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0" colspan="2">
<widget class="QWidget" name="widgetGeneralCheckboxes" native="true">
<layout class="QGridLayout" name="gridLayoutGeneralCheckboxes" columnstretch="1,1">
<property name="leftMargin"><number>0</number></property>
<property name="topMargin"><number>0</number></property>
<property name="rightMargin"><number>0</number></property>
<property name="bottomMargin"><number>0</number></property>
<property name="horizontalSpacing"><number>12</number></property>
<property name="verticalSpacing"><number>6</number></property>
<item row="0" column="0">
<item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="EffectEnabled">
<property name="text">
<string>XR Effect enabled</string>
@ -108,8 +61,8 @@
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="1">
</item>
<item row="1" column="0" colspan="2">
<widget class="QCheckBox" name="kcfg_ZoomOnFocusEnabled">
<property name="text">
<string>Zoom on Focus</string>
@ -118,8 +71,8 @@
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0">
</item>
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="kcfg_CurvedDisplay">
<property name="text">
<string>Curved display</string>
@ -128,8 +81,8 @@
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="1">
</item>
<item row="3" column="0" colspan="2">
<widget class="QCheckBox" name="SmoothFollowEnabled">
<property name="text">
<string>Follow mode</string>
@ -138,18 +91,15 @@
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
</item>
<item row="4" column="0">
<widget class="QLabel" name="labelFocusedDisplayDistance">
<property name="text">
<string>Focused Display Distance:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<item row="4" column="1">
<widget class="LabeledSlider" name="kcfg_FocusedDisplayDistance">
<property name="decimalShift">
<double>2</double>
@ -158,10 +108,10 @@
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickStartOffset">
<double>15</double>
<double>5</double>
</property>
<property name="tickInterval">
<double>50</double>
<double>25</double>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
@ -171,14 +121,14 @@
</property>
</widget>
</item>
<item row="2" column="0">
<item row="5" column="0">
<widget class="QLabel" name="labelAllDisplaysDistance">
<property name="text">
<string>All Displays Distance:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<item row="5" column="1">
<widget class="LabeledSlider" name="kcfg_AllDisplaysDistance">
<property name="decimalShift">
<double>2</double>
@ -187,10 +137,10 @@
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickStartOffset">
<double>15</double>
<double>5</double>
</property>
<property name="tickInterval">
<double>50</double>
<double>25</double>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
@ -200,43 +150,14 @@
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="labelDisplaySize">
<property name="text">
<string>Display Size:</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="LabeledSlider" name="kcfg_DisplaySize">
<property name="decimalShift">
<double>2</double>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickStartOffset">
<double>15</double>
</property>
<property name="tickInterval">
<double>50</double>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tracking">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="0">
<item row="6" column="0">
<widget class="QLabel" name="labelDisplaySpacing">
<property name="text">
<string>Display Spacing:</string>
</property>
</widget>
</item>
<item row="4" column="1">
<item row="6" column="1">
<widget class="QSlider" name="kcfg_DisplaySpacing">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@ -246,72 +167,14 @@
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="labelDisplayHorizontalOffset">
<property name="text">
<string>Display Horizontal Offset:</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="LabeledSlider" name="kcfg_DisplayHorizontalOffset">
<property name="decimalShift">
<double>2</double>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickStartOffset">
<double>50</double>
</property>
<property name="tickInterval">
<double>100</double>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tracking">
<bool>true</bool>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="labelDisplayVerticalOffset">
<property name="text">
<string>Display Vertical Offset:</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="LabeledSlider" name="kcfg_DisplayVerticalOffset">
<property name="decimalShift">
<double>2</double>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickStartOffset">
<double>50</double>
</property>
<property name="tickInterval">
<double>100</double>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tracking">
<bool>true</bool>
</property>
</widget>
</item>
<item row="7" column="0">
<item row="7" column="0">
<widget class="QLabel" name="labelFollowThreshold">
<property name="text">
<string>Follow threshold:</string>
</property>
</widget>
</item>
<item row="7" column="1">
<item row="7" column="1">
<widget class="LabeledSlider" name="kcfg_SmoothFollowThreshold">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@ -422,22 +285,15 @@
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabShortcuts">
<attribute name="title">
<string>&amp;Shortcuts</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayoutShortcuts">
<item>
<widget class="KShortcutsEditor" name="shortcutsEditor" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<item row="10" column="0" colspan="2">
<widget class="KShortcutsEditor" name="shortcutsEditor" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</widget>
@ -565,34 +421,62 @@
</property>
</widget>
</item>
<item row="4" column="0" colspan="2">
<widget class="QCheckBox" name="kcfg_RemoveVirtualDisplaysOnDisable">
<property name="visible">
<bool>false</bool>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Remove virtual displays on disable</string>
</property>
<property name="checked"><bool>true</bool></property>
<item row="5" column="0">
<widget class="QLabel" name="labelDisplayHorizontalOffset">
<property name="text">
<string>Display Horizontal Offset:</string>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2">
<widget class="QCheckBox" name="kcfg_MirrorPhysicalDisplays">
<property name="text">
<string>Mirror physical displays (may impact performance)</string>
</property>
<property name="checked"><bool>false</bool></property>
<item row="5" column="1">
<widget class="LabeledSlider" name="kcfg_DisplayHorizontalOffset">
<property name="decimalShift">
<double>2</double>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickStartOffset">
<double>50</double>
</property>
<property name="tickInterval">
<double>100</double>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tracking">
<bool>true</bool>
</property>
</widget>
</item>
<item row="6" column="0" colspan="2">
<widget class="QCheckBox" name="EnableMultitap">
<property name="text">
<string>Enable multi-tap detection</string>
</property>
<property name="checked"><bool>false</bool></property>
<item row="6" column="0">
<widget class="QLabel" name="labelDisplayVerticalOffset">
<property name="text">
<string>Display Vertical Offset:</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="LabeledSlider" name="kcfg_DisplayVerticalOffset">
<property name="decimalShift">
<double>2</double>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickStartOffset">
<double>50</double>
</property>
<property name="tickInterval">
<double>100</double>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tracking">
<bool>true</bool>
</property>
</widget>
</item>
<item row="7" column="0">
@ -621,14 +505,44 @@
</property>
</widget>
</item>
<item row="8" column="0">
<item row="8" column="0" colspan="2">
<widget class="QCheckBox" name="kcfg_RemoveVirtualDisplaysOnDisable">
<property name="visible">
<bool>false</bool>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Remove virtual displays on disable</string>
</property>
<property name="checked"><bool>true</bool></property>
</widget>
</item>
<item row="9" column="0" colspan="2">
<widget class="QCheckBox" name="kcfg_MirrorPhysicalDisplays">
<property name="text">
<string>Mirror physical displays (may impact performance)</string>
</property>
<property name="checked"><bool>false</bool></property>
</widget>
</item>
<item row="10" column="0" colspan="2">
<widget class="QCheckBox" name="EnableMultitap">
<property name="text">
<string>Enable multi-tap detection</string>
</property>
<property name="checked"><bool>false</bool></property>
</widget>
</item>
<item row="11" column="0">
<widget class="QLabel" name="labelNeckSaverHorizontal">
<property name="text">
<string>Neck-saver horizontal:</string>
</property>
</widget>
</item>
<item row="8" column="1">
<item row="11" column="1">
<widget class="LabeledSlider" name="NeckSaverHorizontalMultiplier">
<property name="decimalShift">
<double>2</double>
@ -656,14 +570,14 @@
</property>
</widget>
</item>
<item row="9" column="0">
<item row="12" column="0">
<widget class="QLabel" name="labelNeckSaverVertical">
<property name="text">
<string>Neck-saver vertical:</string>
</property>
</widget>
</item>
<item row="9" column="1">
<item row="12" column="1">
<widget class="LabeledSlider" name="NeckSaverVerticalMultiplier">
<property name="decimalShift">
<double>2</double>
@ -691,78 +605,6 @@
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="labelDeadZoneThresholdDeg">
<property name="text">
<string>Dead-zone threshold (deg):</string>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="LabeledSlider" name="DeadZoneThresholdDeg">
<property name="decimalShift">
<double>1</double>
</property>
<property name="minimum">
<number>-5</number>
</property>
<property name="maximum">
<number>55</number>
</property>
<property name="tickStartOffset">
<double>5</double>
</property>
<property name="tickInterval">
<double>10</double>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tracking">
<bool>false</bool>
</property>
</widget>
</item>
<item row="11" column="0">
<widget class="QLabel" name="labelMeasurementUnits">
<property name="text">
<string>Measurement units:</string>
</property>
</widget>
</item>
<item row="11" column="1">
<widget class="QComboBox" name="comboMeasurementUnits"/>
</item>
<item row="12" column="0">
<widget class="QLabel" name="labelResetDriver">
<property name="text">
<string>Reset driver:</string>
</property>
</widget>
</item>
<item row="12" column="1">
<widget class="QPushButton" name="buttonResetDriver">
<property name="text">
<string>Force reset driver</string>
</property>
</widget>
</item>
<item row="13" column="1">
<widget class="QLabel" name="labelResetDriverStatus">
<property name="text">
<string/>
</property>
<property name="visible">
<bool>false</bool>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabLicenseDetails">

View File

@ -5,7 +5,6 @@
#include <QPainterPath>
#include <QStyleOptionSlider>
#include <algorithm> // for std::max
#include <functional>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QStringList>
@ -33,12 +32,7 @@ class LabeledSlider : public QSlider {
// tickStartOffset: starting offset for label positions relative to minimum().
// Example: minimum=0, tickInterval=20, tickStartOffset=10 -> labels at 10,30,50,...
Q_PROPERTY(int tickStartOffset READ tickStartOffset WRITE setTickStartOffset)
// Optional units suffix shown ONLY in the floating value bubble.
// Tick labels never include units.
Q_PROPERTY(QString valueUnitsSuffix READ valueUnitsSuffix WRITE setValueUnitsSuffix)
public:
using ValueToDisplayStringFn = std::function<QString(int)>;
explicit LabeledSlider(QWidget *parent = nullptr)
: QSlider(Qt::Horizontal, parent)
{
@ -80,32 +74,6 @@ public:
QMap<int, QString> valueTexts() const { return m_valueTexts; }
QString valueUnitsSuffix() const { return m_valueUnitsSuffix; }
void setValueUnitsSuffix(const QString &suffix) {
if (m_valueUnitsSuffix == suffix) return;
m_valueUnitsSuffix = suffix;
updateGeometry();
update();
}
// Optional custom formatter for displayed values.
// If set, it is consulted for values without an explicit setValueText() override.
// Returning a null QString (QString()) falls back to the built-in formatting.
void setValueToDisplayStringFn(ValueToDisplayStringFn fn) {
m_valueToDisplayStringFn = std::move(fn);
updateGeometry();
update();
}
void clearValueToDisplayStringFn() {
if (!m_valueToDisplayStringFn) return;
m_valueToDisplayStringFn = nullptr;
updateGeometry();
update();
}
bool hasValueToDisplayStringFn() const { return static_cast<bool>(m_valueToDisplayStringFn); }
int decimalShift() const { return m_decimalShift; }
void setDecimalShift(int shift) {
// clamp to sensible range
@ -173,7 +141,7 @@ protected:
optPos.sliderValue = v;
QRect handleAtVal = style()->subControlRect(QStyle::CC_Slider, &optPos, QStyle::SC_SliderHandle, this);
int x = handleAtVal.center().x();
QString text = valueToDisplayString(v, /*forValueBubble=*/false);
QString text = valueToDisplayString(v);
int halfW = fm.horizontalAdvance(text) / 2;
QRect r(x - halfW, baselineY - fm.ascent(), fm.horizontalAdvance(text), fm.height());
p.drawText(r, Qt::AlignCenter, text);
@ -184,7 +152,7 @@ protected:
if (m_showValueBubble) {
// Handle rect
const QRect handle = style()->subControlRect(QStyle::CC_Slider, &opt, QStyle::SC_SliderHandle, this);
QString valText = valueToDisplayString(value(), /*forValueBubble=*/true);
QString valText = valueToDisplayString(value());
QFontMetrics fm(font());
QRect textRect = fm.boundingRect(valText);
textRect.adjust(-6, -4, 6, 4);
@ -219,57 +187,29 @@ protected:
}
private:
QString valueToDisplayString(int raw, bool forValueBubble) const {
QString valueToDisplayString(int raw) const {
// Use custom text if provided for this exact integer value
auto it = m_valueTexts.constFind(raw);
if (it != m_valueTexts.constEnd()) {
return *it;
}
auto decimalShiftString = [this](int r) -> QString {
if (m_decimalShift == 0) {
return QString::number(r);
}
int divisor = 1;
for (int i = 0; i < m_decimalShift; ++i) divisor *= 10;
int whole = r / divisor;
int frac = std::abs(r % divisor);
QString fracStr = QString::number(frac).rightJustified(m_decimalShift, QLatin1Char('0'));
QString result = QString::number(std::abs(whole)) + QLatin1Char('.') + fracStr;
if (r < 0) result.prepend(QLatin1Char('-'));
return result;
};
QString base;
if (m_valueToDisplayStringFn) {
base = m_valueToDisplayStringFn(raw);
if (m_decimalShift == 0) {
return QString::number(raw);
}
if (base.isNull()) {
base = decimalShiftString(raw);
}
if (!forValueBubble) {
return base;
}
const QString suffix = m_valueUnitsSuffix.trimmed();
if (suffix.isEmpty() || base.isEmpty()) {
return base;
}
// Avoid double-appending if caller included units in the formatter.
const QString baseTrimmed = base.trimmed();
if (baseTrimmed.endsWith(suffix) || baseTrimmed.endsWith(QLatin1Char(' ') + suffix)) {
return base;
}
return baseTrimmed + QLatin1Char(' ') + suffix;
int divisor = 1;
for (int i = 0; i < m_decimalShift; ++i) divisor *= 10;
int whole = raw / divisor;
int frac = std::abs(raw % divisor);
QString fracStr = QString::number(frac).rightJustified(m_decimalShift, QLatin1Char('0'));
QString result = QString::number(std::abs(whole)) + QLatin1Char('.') + fracStr;
if (raw < 0) result.prepend(QLatin1Char('-'));
return result;
}
bool m_showValueBubble = true;
int m_decimalShift = 0; // display-only decimal shift
int m_tickStartOffset = 0; // label positions start offset relative to minimum
QMap<int, QString> m_valueTexts; // optional text overrides for specific values
ValueToDisplayStringFn m_valueToDisplayStringFn; // optional custom formatter
QString m_valueUnitsSuffix; // shown only in the value bubble
private:
int labelInterval() const {
int ti = tickInterval();

View File

@ -8,7 +8,6 @@ Node {
property var viewportResolution: effect.displayResolution
property bool smoothFollowEnabled: effect.smoothFollowEnabled
required property var screens
required property var sizeAdjustedScreens
required property var fovDetails
required property var monitorPlacements
property int focusedMonitorIndex: -1
@ -27,18 +26,16 @@ Node {
}
function updateFocus(smoothFollowEnabledChanged = false) {
const orientations = smoothFollowEnabled ? effect.smoothFollowOrigin : effect.poseOrientations;
if (orientations && orientations.length > 0) {
const posePosition = effect.posePosition.times(breezyDesktop.fovDetails.fullScreenDistancePixels);
const rotations = smoothFollowEnabled ? effect.smoothFollowOrigin : effect.imuRotations;
if (rotations && rotations.length > 0) {
let focusedIndex = -1;
const lookingAtIndex = displays.findFocusedMonitor(
displays.eusToNwuQuat(orientations[0]),
displays.eusToNwuVector(posePosition),
displays.eusToNwuQuat(rotations[0]),
breezyDesktop.monitorPlacements.map(monitorVectors => monitorVectors.centerLook),
breezyDesktop.focusedMonitorIndex,
smoothFollowEnabled,
breezyDesktop.fovDetails,
breezyDesktop.sizeAdjustedScreens.map(screen => screen.geometry)
breezyDesktop.screens.map(screen => screen.geometry)
);
if (breezyDesktop.lookingAtMonitorIndex !== lookingAtIndex) {
@ -123,10 +120,10 @@ Node {
}
// smoothFollowOrigin is the rotation away from the original placement of the displays
// poseOrientations is the smooth follow rotation relative to the camera (very near an identity quat)
// imuRotations is the smooth follow rotation relative to the camera (very near an identity quat)
// subtract the latter from the former to get the complete rotation
function smoothFollowQuat() {
return effect.smoothFollowOrigin[0].times(effect.poseOrientations[0].conjugated());
return effect.smoothFollowOrigin[0].times(effect.imuRotations[0].conjugated());
}
function displaySmoothFollowVector(display, smoothFollowRotation) {
@ -161,7 +158,6 @@ Node {
model: breezyDesktop.screens.length
delegate: BreezyDesktopDisplay {
screen: breezyDesktop.screens[index]
sizeAdjustedScreen: breezyDesktop.sizeAdjustedScreens[index]
monitorPlacement: breezyDesktop.monitorPlacements[index]
fovDetails: breezyDesktop.fovDetails
@ -179,9 +175,7 @@ Node {
// only for the Rectangle geometry fallback
property vector3d rectangleFallbackScale: {
if (!sizeAdjustedScreen) return Qt.vector3d(1, 1, 1);
const geometry = sizeAdjustedScreen.geometry;
const geometry = screen.geometry;
// default geometry unit size is 100x100, so we scale it up to the screen size
return Qt.vector3d(geometry.width / 100, geometry.height / 100, 1);
@ -198,9 +192,9 @@ Node {
}
}
// smoothFollowEnabled gets cleared before the orientation begins slerping back to the origin so we can't just
// switch off smooth follow logic based on this flag. Instead, we have to rely on
// smoothFollowTransitionProgress to determine how much of the orientations to apply.
// smoothFollowEnabled gets cleared before the IMU begins slerping back to the origin so we can't just
// switch off smooth follow logic based on this flag. Instead, we have to rely on
// smoothFollowTransitionProgress to determine how much of the IMU positions to apply.
onSmoothFollowEnabledChanged: {
updateFocus(true);
}
@ -224,7 +218,7 @@ Node {
// When smooth follow is running, we're updating the position of the display manually
// on every frame (avoid binding to a function that uses non-notify effect properties
// poseOrientations and smoothFollowOrigin).
// imuRotations and smoothFollowOrigin).
focusedDisplay.position = displayPosition(focusedDisplay, smoothFollowRotation);
} else {
focusedDisplay.rotation = Qt.quaternion(1, 0, 0, 0);

View File

@ -4,8 +4,7 @@ import QtQuick3D
Model {
id: display
required property var screen
required property var sizeAdjustedScreen
required property QtObject screen
required property var monitorPlacement
required property int index
required property var fovDetails
@ -28,7 +27,7 @@ Model {
if (component.status === Component.Ready) {
const mesh = component.createObject(display, {
fovDetails: Qt.binding(() => display.fovDetails),
monitorGeometry: Qt.binding(() => display.sizeAdjustedScreen ? display.sizeAdjustedScreen.geometry : null),
monitorGeometry: Qt.binding(() => display.screen ? display.screen.geometry : null),
fovConversionFns: Qt.binding(() => displays.fovConversionFns)
});
if (mesh) {

View File

@ -17,24 +17,22 @@ Item {
property bool customBannerEnabled: effect.customBannerEnabled
property bool smoothFollowEnabled: effect.smoothFollowEnabled
property real lookAheadScanlineMs: effect.lookAheadConfig[2]
property var fovLengths: displays.diagonalToCrossFOVs(
property var crossFovs: displays.diagonalToCrossFOVs(
displays.degreeToRadian(effect.diagonalFOV),
aspectRatio
);
property real fovHalfVerticalTangent: fovLengths.heightUnitDistance / 2.0;
property real fovHalfHorizontalTangent: fovLengths.widthUnitDistance / 2.0;
// if true, then smoothFollowEnabled just cleared and the orientation data is slerping back,
// if true, then smoothFollowEnabled just cleared and the IMU data is slerping back,
// continue to use the origin data for the duration of the Timer
property bool smoothFollowDisabling: false
property real clipNear: 10.0
property real clipFar: 10000.0
function ratesOfChange(orientations) {
const e0 = orientations[0].toEulerAngles();
const e1 = orientations[1].toEulerAngles();
const dt = effect.poseTimeElapsedMs;
function ratesOfChange(rotations) {
const e0 = rotations[0].toEulerAngles();
const e1 = rotations[1].toEulerAngles();
const dt = effect.imuTimeElapsedMs;
const yawDegrees = (e0.y - e1.y) / dt;
const pitchDegrees = (e0.x - e1.x) / dt;
const rollDegrees = (e0.z - e1.z) / dt;
@ -51,28 +49,22 @@ Item {
};
}
function updateCamera(orientations, position, rates) {
function updateCamera(rotations, rates) {
camera.eulerRotation = applyLookAhead(
rates,
lookAheadMS(
effect.poseTimestamp,
effect.imuTimestamp,
effect.lookAheadConfig,
effect.lookAheadOverride
)
);
let lensVector = Qt.vector3d(0, 0, -fovDetails.lensDistancePixels);
// if we only have 3DoF, account for a bit of positional change based on orientation,
// don't do this for 6DoF to prevent doubling the positional movement due to rotation
if (!effect.poseHasPosition) lensVector = orientations[0].times(lensVector);
camera.position = position.times(fovDetails.fullScreenDistancePixels).plus(lensVector);
camera.position = rotations[0].times(Qt.vector3d(0, 0, -fovDetails.lensDistancePixels));
}
// how far to look ahead is how old the pose data is plus a constant that is either the default for this device or an override
function lookAheadMS(poseDateMs, lookAheadConfig, override) {
// how stale the pose data is
const dataAge = Date.now() - poseDateMs;
// how far to look ahead is how old the IMU data is plus a constant that is either the default for this device or an override
function lookAheadMS(imuDateMs, lookAheadConfig, override) {
// how stale the imu data is
const dataAge = Date.now() - imuDateMs;
const lookAheadConstant = lookAheadConfig[0];
const lookAheadMultiplier = lookAheadConfig[1];
@ -92,7 +84,7 @@ Item {
}
function buildPerspectiveMatrix() {
const f = 1.0 / fovHalfVerticalTangent;
const f = 1.0 / crossFovs.verticalTangent;
const nf = 1.0 / (clipNear - clipFar);
const m00 = f / aspectRatio;
const m11 = f;
@ -110,13 +102,13 @@ Item {
function applyRollingShutterShear(rates) {
// Convert to maximum shift at bottom of frame
const maxDxNdc = (rates.yaw * lookAheadScanlineMs) / fovHalfHorizontalTangent;
const maxDyNdc = -(rates.pitch * lookAheadScanlineMs) / fovHalfVerticalTangent;
const maxDxNdc = (rates.yaw * lookAheadScanlineMs) / crossFovs.horizontalTangent;
const maxDyNdc = -(rates.pitch * lookAheadScanlineMs) / crossFovs.verticalTangent;
let shx = maxDxNdc / 2.0;
let shy = maxDyNdc / 2.0;
const f = 1.0 / fovHalfVerticalTangent;
const f = 1.0 / crossFovs.verticalTangent;
const nf = 1.0 / (clipNear - clipFar);
const m00 = f / aspectRatio;
const m11 = f;
@ -156,10 +148,10 @@ Item {
FrameAnimation {
running: true
onTriggered: {
const orientations = (effect.smoothFollowEnabled || smoothFollowDisabling) ? effect.smoothFollowOrigin : effect.poseOrientations;
if (orientations && orientations.length > 0) {
const rates = ratesOfChange(orientations);
updateCamera(orientations, effect.posePosition, rates);
const rotations = (effect.smoothFollowEnabled || smoothFollowDisabling) ? effect.smoothFollowOrigin : effect.imuRotations;
if (rotations && rotations.length > 0) {
const rates = ratesOfChange(rotations);
updateCamera(rotations, rates);
applyRollingShutterShear(rates);
}
}

View File

@ -26,26 +26,27 @@ ProceduralMesh {
const fov = mesh.fovDetails;
const monitor = mesh.monitorGeometry;
const horizontalWrap = fov.monitorWrappingScheme === 'horizontal';
const horizontalConversions = horizontalWrap && fov.curvedDisplay ? fovConversionFns.curved : fovConversionFns.flat;
const conv = fov.curvedDisplay ? mesh.fovConversionFns.curved
: mesh.fovConversionFns.flat;
const sideEdgeDistancePixels = horizontalConversions.centerToFovEdgeDistance(
fov.completeScreenDistancePixels, fov.sizeAdjustedWidthPixels);
const horizontalRadians = horizontalConversions.lengthToRadians(
const horizontalWrap = fov.monitorWrappingScheme === 'horizontal';
const verticalWrap = fov.monitorWrappingScheme === 'vertical';
const sideEdgeDistance = conv.centerToFovEdgeDistance(
fov.completeScreenDistancePixels, fov.widthPixels);
const horizontalRadians = conv.lengthToRadians(
fov.defaultDistanceHorizontalRadians,
fov.widthPixels,
sideEdgeDistancePixels,
sideEdgeDistance,
monitor.width
);
const verticalWrap = fov.monitorWrappingScheme === 'vertical';
const verticalConversions = verticalWrap && fov.curvedDisplay ? fovConversionFns.curved : fovConversionFns.flat;
const topEdgeDistancePixels = verticalConversions.centerToFovEdgeDistance(
fov.completeScreenDistancePixels, fov.sizeAdjustedHeightPixels);
const verticalRadians = verticalConversions.lengthToRadians(
const topEdgeDistance = conv.centerToFovEdgeDistance(
fov.completeScreenDistancePixels, fov.heightPixels);
const verticalRadians = conv.lengthToRadians(
fov.defaultDistanceVerticalRadians,
fov.heightPixels,
topEdgeDistancePixels,
topEdgeDistance,
monitor.height
);
@ -77,8 +78,8 @@ ProceduralMesh {
}
let segments = 1;
if (horizontalWrap) segments = horizontalConversions.radiansToSegments(horizontalRadians);
if (verticalWrap) segments = verticalConversions.radiansToSegments(verticalRadians);
if (horizontalWrap) segments = conv.radiansToSegments(horizontalRadians);
if (verticalWrap) segments = conv.radiansToSegments(verticalRadians);
for (let i = 0; i <= segments; i++) {
const texFraction = i / segments;

View File

@ -4,7 +4,7 @@ import org.kde.kwin as KWinComponents
Item {
id: desktopView
required property var screen
required property QtObject screen
function overlapsScreen(win, screenGeom) {
if (!win) return false

View File

@ -18,35 +18,22 @@ QtObject {
return Qt.vector3d(-vector.y, vector.z, -vector.x);
}
function eusToNwuVector(vector) {
// Converts EUS vector to NWU vector
return Qt.vector3d(-vector.z, -vector.x, vector.y);
}
function eusToNwuQuat(quaternion) {
// Converts EUS quaternion to NWU quaternion
return Qt.quaternion(quaternion.scalar, -quaternion.z, -quaternion.x, quaternion.y);
}
// Converts diagonal FOV in radians and aspect ratio to horizontal and vertical FOV measurements
// Converts diagonal FOV in radians and aspect ratio to horizontal and vertical FOVs
function diagonalToCrossFOVs(diagonalFOVRadians, aspectRatio) {
// first convert from a spherical FOV to a diagonal FOV on a flat plane at a unit distance of 1.0
const diagonalLengthUnitDistance = 2 * Math.tan(diagonalFOVRadians / 2);
// then convert to flat plane horizontal and vertical FOVs
const heightUnitDistance = diagonalLengthUnitDistance / Math.sqrt(1 + aspectRatio * aspectRatio);
const widthUnitDistance = heightUnitDistance * aspectRatio;
var diagonalTangent = Math.tan(diagonalFOVRadians / 2);
var verticalTangent = diagonalTangent / Math.sqrt(1 + aspectRatio * aspectRatio);
var horizontalTangent = verticalTangent * aspectRatio;
return {
// then convert back to spherical FOV
diagonalRadians: diagonalFOVRadians,
horizontalRadians: 2 * Math.atan(widthUnitDistance / 2),
verticalRadians: 2 * Math.atan(heightUnitDistance / 2),
// flat values are relative to a unit distance of 1.0
diagonalLengthUnitDistance,
widthUnitDistance,
heightUnitDistance
diagonal: diagonalFOVRadians,
horizontal: 2 * Math.atan(horizontalTangent),
horizontalTangent: horizontalTangent,
vertical: 2 * Math.atan(verticalTangent),
verticalTangent: verticalTangent
}
}
@ -63,55 +50,33 @@ QtObject {
}
}
function buildFovDetails(screens, viewportWidth, viewportHeight, viewportDiagonalFOV, lensDistanceRatio, defaultDisplayDistance, wrappingChoice, distanceAdjustedSize) {
function buildFovDetails(screens, viewportWidth, viewportHeight, viewportDiagonalFOV, lensDistanceRatio, defaultDisplayDistance, wrappingChoice) {
const aspect = viewportWidth / viewportHeight;
const fovLengths = diagonalToCrossFOVs(degreeToRadian(viewportDiagonalFOV), aspect);
const crossFovs = diagonalToCrossFOVs(degreeToRadian(viewportDiagonalFOV), aspect);
const defaultDistanceVerticalRadians = 2 * Math.atan(crossFovs.verticalTangent / defaultDisplayDistance);
const defaultDistanceHorizontalRadians = 2 * Math.atan(crossFovs.horizontalTangent / defaultDisplayDistance);
// distance needed for the FOV-sized monitor to fill up the screen
const fullScreenDistance = viewportHeight / (2 * crossFovs.verticalTangent);
const lensDistancePixels = fullScreenDistance / (1.0 - lensDistanceRatio) - fullScreenDistance;
// distance of a display at the default (most zoomed out) distance, plus the lens distance constant
const lensToScreenDistance = viewportHeight / (2 * Math.tan(defaultDistanceVerticalRadians / 2));
const completeScreenDistancePixels = lensToScreenDistance + lensDistancePixels;
let monitorWrappingScheme = actualWrapScheme(screens, viewportWidth, viewportHeight);
if (wrappingChoice === 1) monitorWrappingScheme = 'horizontal';
else if (wrappingChoice === 2) monitorWrappingScheme = 'vertical';
else if (wrappingChoice === 3) monitorWrappingScheme = 'flat';
const lensDistanceComplement = 1.0 - lensDistanceRatio;
const lensDistanceFactor = (1.0 / lensDistanceComplement) - 1.0;
const horizontalConversions = effect.curvedDisplay && monitorWrappingScheme === 'horizontal' ? fovConversionFns.curved : fovConversionFns.flat;
const verticalConversions = effect.curvedDisplay && monitorWrappingScheme === 'vertical' ? fovConversionFns.curved : fovConversionFns.flat;
const defaultDistanceVerticalRadians = verticalConversions.fovRadiansAtDistance(
fovLengths.verticalRadians,
fovLengths.heightUnitDistance,
defaultDisplayDistance
);
const defaultDistanceHorizontalRadians = horizontalConversions.fovRadiansAtDistance(
fovLengths.horizontalRadians,
fovLengths.widthUnitDistance,
defaultDisplayDistance
);
// distance needed for the FOV-sized monitor to fill up the screen, as measured from the lenses
const lensToUnitDistancePixels = viewportWidth / fovLengths.widthUnitDistance;
// distance from pivot point to lens
const lensDistancePixels = lensToUnitDistancePixels * lensDistanceFactor;
// distance from pivot point to full screen (monitor at unit distance from lens)
const fullScreenDistancePixels = lensToUnitDistancePixels + lensDistancePixels;
// distance of a display at the default (most zoomed out) distance from the pivot point
const completeScreenDistancePixels = fullScreenDistancePixels * defaultDisplayDistance;
return {
widthPixels: viewportWidth,
distanceAdjustedSize,
sizeAdjustedWidthPixels: viewportWidth * distanceAdjustedSize,
heightPixels: viewportHeight,
sizeAdjustedHeightPixels: viewportHeight * distanceAdjustedSize,
defaultDistanceVerticalRadians,
defaultDistanceHorizontalRadians,
lensDistancePixels,
fullScreenDistancePixels,
completeScreenDistancePixels,
monitorWrappingScheme,
monitorWrappingScheme: monitorWrappingScheme,
curvedDisplay: effect.curvedDisplay
};
}
@ -134,9 +99,6 @@ QtObject {
angleToLength: function(fovRadians, fovLength, screenDistance, toAngleOpposite, toAngleAdjacent) {
return toAngleOpposite / toAngleAdjacent * screenDistance;
},
fovRadiansAtDistance: function(fovRadians, unitLength, newScreenDistance) {
return 2 * Math.atan(unitLength / 2 / newScreenDistance);
},
radiansToSegments: function(screenRadians) { return 1; }
},
curved: {
@ -152,9 +114,6 @@ QtObject {
angleToLength: function(fovRadians, fovLength, screenDistance, toAngleOpposite, toAngleAdjacent) {
return fovLength / fovRadians * Math.atan2(toAngleOpposite, toAngleAdjacent);
},
fovRadiansAtDistance: function(fovRadians, unitLength, newScreenDistance) {
return fovRadians / newScreenDistance;
},
radiansToSegments: function(screenRadians) {
return Math.ceil(screenRadians * segmentsPerRadian);
}
@ -239,12 +198,8 @@ QtObject {
var conversionFns = fovDetails.curvedDisplay ? fovConversionFns.curved : fovConversionFns.flat;
if (fovDetails.monitorWrappingScheme === 'horizontal') {
// monitors wrap around us horizontally
var sideEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.sizeAdjustedWidthPixels);
var monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedWidthPixels;
// targetWidth is assumed to aleady be size adjusted
var sideEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.widthPixels);
var monitorSpacingPixels = monitorSpacing * fovDetails.widthPixels;
var lengthToRadianFn = function(targetWidth) {
return conversionFns.lengthToRadians(
fovDetails.defaultDistanceHorizontalRadians,
@ -254,14 +209,14 @@ QtObject {
);
};
cachedMonitorRadians[0] = -lengthToRadianFn(fovDetails.sizeAdjustedWidthPixels) / 2;
cachedMonitorRadians[0] = -fovDetails.defaultDistanceHorizontalRadians / 2;
horizontalMonitorSort(monitorDetailsList).forEach(function(obj) {
var monitorDetails = obj.monitorDetails;
var originalIndex = obj.originalIndex;
var monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.x, monitorDetails.width, lengthToRadianFn);
var monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(sideEdgeRadius, monitorDetails.width);
var upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.sizeAdjustedHeightPixels) * monitorSpacingPixels;
var upCenterOffsetPixels = (monitorDetails.height - fovDetails.sizeAdjustedHeightPixels) / 2;
var upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.heightPixels) * monitorSpacingPixels;
var upCenterOffsetPixels = (monitorDetails.height - fovDetails.heightPixels) / 2;
var upCenterPixels = upTopPixels - upCenterOffsetPixels;
monitorPlacements.push({
@ -276,7 +231,7 @@ QtObject {
monitorCenterRadius * Math.cos(monitorWrapDetails.center),
-monitorCenterRadius * Math.sin(monitorWrapDetails.center),
upCenterPixels
),
).normalized(),
rotationAngleRadians: {
x: 0,
y: -monitorWrapDetails.center
@ -284,8 +239,8 @@ QtObject {
});
});
} else if (fovDetails.monitorWrappingScheme === 'vertical') {
var topEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.sizeAdjustedHeightPixels);
var monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedHeightPixels;
var topEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.heightPixels);
var monitorSpacingPixels = monitorSpacing * fovDetails.heightPixels;
var lengthToRadianFn = function(targetHeight) {
return conversionFns.lengthToRadians(
fovDetails.defaultDistanceVerticalRadians,
@ -295,14 +250,14 @@ QtObject {
);
};
cachedMonitorRadians[0] = -lengthToRadianFn(fovDetails.sizeAdjustedHeightPixels) / 2;
cachedMonitorRadians[0] = -fovDetails.defaultDistanceVerticalRadians / 2;
verticalMonitorSort(monitorDetailsList).forEach(function(obj) {
var monitorDetails = obj.monitorDetails;
var originalIndex = obj.originalIndex;
var monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.y, monitorDetails.height, lengthToRadianFn);
var monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(topEdgeRadius, monitorDetails.height);
var westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.sizeAdjustedWidthPixels) * monitorSpacingPixels;
var westCenterOffsetPixels = (monitorDetails.width - fovDetails.sizeAdjustedWidthPixels) / 2;
var westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.widthPixels) * monitorSpacingPixels;
var westCenterOffsetPixels = (monitorDetails.width - fovDetails.widthPixels) / 2;
var westCenterPixels = westLeftPixels - westCenterOffsetPixels;
monitorPlacements.push({
@ -317,7 +272,7 @@ QtObject {
monitorCenterRadius * Math.cos(monitorWrapDetails.center),
westCenterPixels,
-monitorCenterRadius * Math.sin(monitorWrapDetails.center)
),
).normalized(),
rotationAngleRadians: {
x: -monitorWrapDetails.center,
y: 0
@ -325,12 +280,12 @@ QtObject {
});
});
} else {
var monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedWidthPixels;
var monitorSpacingPixels = monitorSpacing * fovDetails.widthPixels;
monitorDetailsList.forEach(function(monitorDetails, index) {
var upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.sizeAdjustedHeightPixels) * monitorSpacingPixels;
var westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.sizeAdjustedWidthPixels) * monitorSpacingPixels;
var westCenterOffsetPixels = (monitorDetails.width - fovDetails.sizeAdjustedWidthPixels) / 2;
var upCenterOffsetPixels = (monitorDetails.height - fovDetails.sizeAdjustedHeightPixels) / 2;
var upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.heightPixels) * monitorSpacingPixels;
var westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.widthPixels) * monitorSpacingPixels;
var westCenterOffsetPixels = (monitorDetails.width - fovDetails.widthPixels) / 2;
var upCenterOffsetPixels = (monitorDetails.height - fovDetails.heightPixels) / 2;
var westCenterPixels = westLeftPixels - westCenterOffsetPixels;
var upCenterPixels = upTopPixels - upCenterOffsetPixels;
@ -346,7 +301,7 @@ QtObject {
fovDetails.completeScreenDistancePixels,
westCenterPixels,
upCenterPixels
),
).normalized(),
rotationAngleRadians: {
x: 0,
y: 0
@ -363,41 +318,35 @@ QtObject {
// returns how far the look vector is from the center of the monitor, as a percentage of the monitor's dimensions
function getMonitorDistance(fovDetails, lookUpPixels, lookWestPixels, monitorVector, monitorDetails, upAngleToLength, westAngleToLength) {
// since the monitor vector has been modified to be relative to the lens position, we need to calculate its distance from the lens
// we need to adjust all angle-based lengths based on new vector distance
const monitorDistance = monitorVector.length();
const distanceAdjustment = monitorDistance / fovDetails.completeScreenDistancePixels;
var vectorUpPixels = upAngleToLength(
fovDetails.defaultDistanceVerticalRadians,
fovDetails.heightPixels,
monitorDistance,
fovDetails.completeScreenDistancePixels,
monitorVector.z,
monitorVector.x
) * distanceAdjustment;
var upPercentage = Math.abs(lookUpPixels * distanceAdjustment - vectorUpPixels) / monitorDetails.height;
);
var upPercentage = Math.abs(lookUpPixels - vectorUpPixels) / monitorDetails.height;
var vectorWestPixels = westAngleToLength(
fovDetails.defaultDistanceHorizontalRadians,
fovDetails.widthPixels,
monitorDistance,
fovDetails.completeScreenDistancePixels,
monitorVector.y,
monitorVector.x
) * distanceAdjustment;
var westPercentage = Math.abs(lookWestPixels * distanceAdjustment - vectorWestPixels) / monitorDetails.width;
);
var westPercentage = Math.abs(lookWestPixels - vectorWestPixels) / monitorDetails.width;
// how close we are to any edge is the largest of the two percentages
return Math.max(upPercentage, westPercentage);
}
function findFocusedMonitor(quaternion, position, monitorVectors, currentFocusedIndex, smoothFollowEnabled, fovDetails, monitorsDetails) {
function findFocusedMonitor(quaternion, monitorVectors, currentFocusedIndex, smoothFollowEnabled, fovDetails, monitorsDetails) {
if (currentFocusedIndex !== -1 && smoothFollowEnabled) return currentFocusedIndex;
var lookVector = Qt.vector3d(1.0, 0.0, 0.0); // NWU vector pointing to the center of the screen
var rotatedLookVector = quaternion.times(lookVector);
// TODO - right now we're using the curved functions to figure out distances even for flat monitors
// because it will account for the monitors facing towards us, but this will lose some accuracy
// Use curved or flat conversion functions depending on wrapping scheme
var upConversionFns = fovDetails.monitorWrappingScheme === "vertical" ? fovConversionFns.curved : fovConversionFns.flat;
var lookUpPixels = upConversionFns.angleToLength(
fovDetails.defaultDistanceVerticalRadians,
@ -415,17 +364,13 @@ QtObject {
rotatedLookVector.x
);
function vectorRelativeToPosition(vector) {
return vector.minus(position);
}
// Check current focused monitor first
if (currentFocusedIndex !== -1) {
var focusedDistance = getMonitorDistance(
fovDetails,
lookUpPixels,
lookWestPixels,
vectorRelativeToPosition(monitorVectors[currentFocusedIndex]),
monitorVectors[currentFocusedIndex],
monitorsDetails[currentFocusedIndex],
upConversionFns.angleToLength,
westConversionFns.angleToLength
@ -445,7 +390,7 @@ QtObject {
fovDetails,
lookUpPixels,
lookWestPixels,
vectorRelativeToPosition(monitorVectors[i]),
monitorVectors[i],
monitorsDetails[i],
upConversionFns.angleToLength,
westConversionFns.angleToLength

View File

@ -17,9 +17,6 @@ Item {
"Air 2 Ultra",
"One",
"One Pro",
"XREAL One",
"XREAL One Pro",
"XREAL 1S",
"SmartGlasses", // TCL/RayNeo
"Rokid Max",
"Rokid Max 2",
@ -31,45 +28,22 @@ Item {
property real viewportDiagonalFOVDegrees: effect.diagonalFOV
property var viewportResolution: effect.displayResolution
property bool mirrorPhysicalDisplays: effect.mirrorPhysicalDisplays
property bool developerMode: effect.developerMode
property var screens: KWinComponents.Workspace.screens.filter(function(screen) {
return developerMode || mirrorPhysicalDisplays || screen.name.includes("BreezyDesktop") || supportedModels.some(model => screen.model.includes(model));
return mirrorPhysicalDisplays || screen.name.includes("BreezyDesktop") || supportedModels.some(model => screen.model.includes(model));
})
property real distanceAdjustedSize: (effect.allDisplaysDistance - effect.lensDistanceRatio) * effect.displaySize
property var sizeAdjustedScreens: screens.map(function(screen) {
const sizeComplement = (1.0 - distanceAdjustedSize) / 2.0;
const sizeViewportOffsetX = sizeComplement * viewportResolution[0];
const sizeViewportOffsetY = sizeComplement * viewportResolution[1];
return {
geometry: {
x: screen.geometry.x * distanceAdjustedSize + sizeViewportOffsetX,
y: screen.geometry.y * distanceAdjustedSize + sizeViewportOffsetY,
width: screen.geometry.width * distanceAdjustedSize,
height: screen.geometry.height * distanceAdjustedSize
},
name: screen.name,
model: screen.model
};
})
property var sizeAdjustedViewport: {
return {
width: viewportResolution[0] * distanceAdjustedSize,
height: viewportResolution[1] * distanceAdjustedSize
};
}
// x value for placing the viewport in the middle of all screens
property real screensXMid: {
let xMin = Number.MAX_VALUE;
let xMax = Number.MIN_VALUE;
for (let i = 0; i < sizeAdjustedScreens.length; i++) {
const geometry = sizeAdjustedScreens[i].geometry;
for (let i = 0; i < screens.length; i++) {
const geometry = screens[i].geometry;
xMin = Math.min(xMin, geometry.x);
xMax = Math.max(xMax, geometry.x + geometry.width);
}
return (xMin + xMax) / 2 - (sizeAdjustedViewport.width / 2);
return (xMin + xMax) / 2 - (viewportResolution[0] / 2);
}
// y value for placing the viewport in the middle of all screens
@ -77,13 +51,13 @@ Item {
let yMin = Number.MAX_VALUE;
let yMax = Number.MIN_VALUE;
for (let i = 0; i < sizeAdjustedScreens.length; i++) {
const geometry = sizeAdjustedScreens[i].geometry;
for (let i = 0; i < screens.length; i++) {
const geometry = screens[i].geometry;
yMin = Math.min(yMin, geometry.y);
yMax = Math.max(yMax, geometry.y + geometry.height);
}
return (yMin + yMax) / 2 - (sizeAdjustedViewport.height / 2);
return (yMin + yMax) / 2 - (viewportResolution[1] / 2);
}
Displays {
@ -91,20 +65,19 @@ Item {
}
property var fovDetails: displays.buildFovDetails(
sizeAdjustedScreens,
screens,
viewportResolution[0],
viewportResolution[1],
viewportDiagonalFOVDegrees,
effect.lensDistanceRatio,
effect.allDisplaysDistance,
effect.displayWrappingScheme,
distanceAdjustedSize
effect.displayWrappingScheme
)
property var monitorPlacements: {
const dx = effect.displayHorizontalOffset * sizeAdjustedViewport.width;
const dy = effect.displayVerticalOffset * sizeAdjustedViewport.height;
const adjustedGeometries = sizeAdjustedScreens.map(screen => {
const dx = effect.displayHorizontalOffset * viewportResolution[0];
const dy = effect.displayVerticalOffset * viewportResolution[1];
const adjustedGeometries = screens.map(screen => {
const g = screen.geometry;
return {
x: g.x - screensXMid + dx,
@ -116,16 +89,16 @@ Item {
return displays.monitorsToPlacements(fovDetails, adjustedGeometries, effect.displaySpacing);
}
property bool targetScreenSupported: developerMode || supportedModels.some(model => root.targetScreen.model.includes(model))
property bool targetScreenSupported: supportedModels.some(model => root.targetScreen.model.includes(model))
property bool targetScreenIsVirtual: targetScreen.name.includes("BreezyDesktop")
property bool poseResetState: effect.poseResetState
property bool imuResetState: effect.imuResetState
property bool isEnabled: effect.isEnabled
Component {
id: desktopViewComponent
SingleDesktopView {
supportsXR: targetScreenSupported
showCalibratingBanner: isEnabled && poseResetState
showCalibratingBanner: isEnabled && imuResetState
}
}
@ -147,7 +120,6 @@ Item {
BreezyDesktop {
id: breezyDesktop
screens: root.screens
sizeAdjustedScreens: root.sizeAdjustedScreens
fovDetails: root.fovDetails
monitorPlacements: root.monitorPlacements
}
@ -167,8 +139,8 @@ Item {
}
function checkLoadedComponent() {
console.log(`Breezy - checking screen ${targetScreen.model}: ${targetScreenSupported} ${targetScreenIsVirtual} ${isEnabled} ${poseResetState}`);
const show3DView = targetScreenSupported && isEnabled && !poseResetState;
console.log(`Breezy - checking screen ${targetScreen.model}: ${targetScreenSupported} ${targetScreenIsVirtual} ${isEnabled} ${imuResetState}`);
const show3DView = targetScreenSupported && isEnabled && !imuResetState;
if (!targetScreenIsVirtual) viewLoader.sourceComponent = show3DView ? view3DComponent : desktopViewComponent;
if (targetScreenSupported) effect.effectTargetScreenIndex = KWinComponents.Workspace.screens.indexOf(targetScreen);
}
@ -177,7 +149,7 @@ Item {
checkLoadedComponent();
}
onPoseResetStateChanged: {
onImuResetStateChanged: {
checkLoadedComponent();
}

View File

@ -108,10 +108,3 @@ bool XRDriverIPC::verifyToken(const std::string &token) {
QString result = QString::fromUtf8(out).trimmed().toLower();
return result == QStringLiteral("true");
}
bool XRDriverIPC::resetDriver() {
QByteArray out = invokePython(QStringLiteral("reset_driver"), {}, {});
if (out.isEmpty()) return false;
QString result = QString::fromUtf8(out).trimmed().toLower();
return result == QStringLiteral("true");
}

View File

@ -85,7 +85,6 @@ public:
bool writeControlFlags(const QJsonObject &flags);
bool requestToken(const std::string &email);
bool verifyToken(const std::string &token);
bool resetDriver();
private:

@ -1 +1 @@
Subproject commit 33f15b0e15b141e7664afcc4c09d2c19b62716c0
Subproject commit d39fbf4ffba0868fa8c2837382c9c669866794a6

@ -1 +1 @@
Subproject commit e3da76189390d81fda70ced38976a2061a8711ea
Subproject commit 712497b4795dbcbaa4c6fdb60a82144cfde26086

View File

@ -100,15 +100,6 @@
The size of the display
</description>
</key>
<key name="units" type="s">
<default>
"cm"
</default>
<summary>Measurement units</summary>
<description>
Units to display for physical measurements: "cm" or "in"
</description>
</key>
<key name="viewport-offset-x" type="d">
<default>
0.0

@ -1 +1 @@
Subproject commit 40c9979d7e79d31047cb474c154018ce43afb63a
Subproject commit 0eb04ff4429ce7a025f126843cd0d3b24bc0d73e

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -27,36 +27,48 @@ msgstr ""
msgid "This feature is not currently supported for your device."
msgstr ""
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
msgid "Set Focused Display Distance"
msgstr ""
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr ""
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
msgid "Set All Displays Distance"
msgstr ""
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr ""
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
msgstr ""
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
msgid "Focused display"
msgstr ""
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
msgid "All displays"
msgstr ""
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr ""
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr ""
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr ""
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr ""
@ -66,7 +78,6 @@ msgid "Feature Availability"
msgstr ""
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr ""
@ -83,12 +94,16 @@ msgstr ""
msgid " ({time_remaining} remaining)"
msgstr ""
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr ""
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr ""
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr ""
#: src/licensetierrow.py:24
@ -116,6 +131,14 @@ msgstr ""
msgid "Paid through next renewal period"
msgstr ""
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr ""
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr ""
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr ""
@ -210,11 +233,11 @@ msgstr ""
msgid "Switch between flat and curved displays."
msgstr ""
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr ""
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr ""
@ -256,291 +279,255 @@ msgid "Set how close you want displays to appear."
msgstr ""
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr ""
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr ""
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr ""
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr ""
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr ""
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr ""
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
msgid "Display angling"
msgstr ""
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr ""
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr ""
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr ""
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr ""
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr ""
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
msgid "Display spacing"
msgstr ""
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr ""
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr ""
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr ""
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr ""
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr ""
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr ""
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr ""
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr ""
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr ""
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr ""
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr ""
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr ""
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
msgstr ""
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr ""
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr ""
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
msgid "Toggle zoom on focus shortcut"
msgstr ""
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
msgid "Quickly toggle zoom on focus mode."
msgstr ""
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr ""
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr ""
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr ""
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr ""
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr ""
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr ""
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr ""
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr ""
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr ""
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr ""
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
msgstr ""
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr ""
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr ""
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr ""
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
msgstr ""
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr ""
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr ""
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
msgid "Remove virtual displays on disable"
msgstr ""
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr ""
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr ""
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr ""
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
msgid "All displays follow mode"
msgstr ""
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr ""
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr ""
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr ""
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr ""
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr ""
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr ""
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr ""
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr ""
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr ""
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
"movements, jumps ahead, or is very shaky."
msgstr ""
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr ""
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr ""
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr ""
@ -560,27 +547,19 @@ msgstr ""
msgid "Add"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr ""
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr ""
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr ""
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr ""
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -598,33 +577,33 @@ msgstr ""
msgid "Verify token"
msgstr ""
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr ""
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr ""
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr ""
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
msgid "Auto-enable XR effect"
msgstr ""
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
msgstr ""
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr ""
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -636,21 +615,21 @@ msgid ""
" "
msgstr ""
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr ""
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
msgstr ""
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr ""
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -666,7 +645,7 @@ msgid ""
" "
msgstr ""
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr ""
@ -690,7 +669,7 @@ msgstr ""
msgid "Some features expire soon"
msgstr ""
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr ""
@ -698,20 +677,10 @@ msgstr ""
msgid "Productivity features are disabled"
msgstr ""
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr ""
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: 2024-08-02 20:54-0700\n"
"Last-Translator: <wayne@xronlinux.com>\n"
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
@ -29,27 +29,27 @@ msgstr ""
msgid "This feature is not currently supported for your device."
msgstr "Diese Funktion wird von Ihrem Gerät derzeit nicht unterstützt."
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
msgid "Set Focused Display Distance"
msgstr "Setze fokussierte Bildschirmentfernung"
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr ""
"Nutze einen Näher Wert um den Bildschirm zu vergößern, wenn der Bildschirm "
"angesehen wird."
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
msgid "Set All Displays Distance"
msgstr "Setze alle Bildschirmentfernungen"
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr ""
"Nutze einen Entfernter Wert um den Bildschirm zu verkleinern, wenn diese "
"nicht angesehen werden."
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
@ -57,14 +57,26 @@ msgstr ""
"Virtuelle Bildschirme können nicht hinzugefügt werden.Wayland und xdg-"
"desktop-portal werden benötigt"
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
msgid "Focused display"
msgstr "Fokussierter Bildschirm"
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
msgid "All displays"
msgstr "Gebogene Bildschirm"
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr "Näher"
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr "Vollbild"
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr "Entfernter"
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr "Bezahlter Tarifstatus"
@ -74,7 +86,6 @@ msgid "Feature Availability"
msgstr "Funktionsverfügbarkeit"
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr "Deaktiviert"
@ -91,13 +102,17 @@ msgstr "Aktiviert"
msgid " ({time_remaining} remaining)"
msgstr " ({time_remaining} verbleibend)"
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
msgstr ""
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr "Side-by-Side-Modus (Gaming)"
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
msgstr ""
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr "Glattes Verfolgen (Gaming)"
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr "Breezy Desktop (Produktivität)"
#: src/licensetierrow.py:24
msgid "Active"
@ -124,6 +139,14 @@ msgstr " zum aktualisieren"
msgid "Paid through next renewal period"
msgstr "Bezahlt bis zum nächsten Erneuerungszeitraum"
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr "Gaming"
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr "Produktivität"
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr " - monatlich erneuern"
@ -222,11 +245,11 @@ msgstr "Gebogener Bildschirm"
msgid "Switch between flat and curved displays."
msgstr "Zwischen flachen und gebogenen Bildschirm wechseln."
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr "Physische Bildschirme deaktivieren"
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr ""
@ -270,112 +293,100 @@ msgid "Set how close you want displays to appear."
msgstr "Stelle ein, wie nah Ihre Bildschirme erscheinen sollen."
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr "Ändern"
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr ""
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr ""
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr ""
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr "Folgemodus-Schwelle"
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr "Wie weit Sie wegschauen können, bevor der Bildschirm folgt."
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
msgid "Display angling"
msgstr "Bildschirmgröße"
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr "Stelle ein, wie mehrere Bildschirme angewinkelt werden sollen."
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr "Automatisch"
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr "Seitlich gewinkelt"
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr "Oben gewinkelt"
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr "Flach"
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
msgid "Display spacing"
msgstr "Bildschirmgröße"
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr ""
"Setze einen leeren Bereich zwischen Bildschirme, wenn mehrere vorhanden sind."
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr "Horizontaler Anzeigebereich Ausgleich"
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr "Bewege den Anzeigebreich nach links oder rechts der Anfangsposition."
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr "Links"
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr "Mitte"
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr "Rechts"
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr "Vertikaler Anzeigebereich Ausgleich"
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr ""
"Bewege den Anzeigebreich nach oberhalb oder unterhalb der Anfangsposition."
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr "Unten"
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr "Oben"
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr "Tastenkombinationen"
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr "XR-Effekt an/aus Tastenkombination"
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
@ -384,63 +395,47 @@ msgstr ""
"Effekt einmalig manuell aktiviert werden, um die Tastenkombination zu "
"aktivieren."
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr "Bildschirm-Zentrierung-Tastenkombination"
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr "Heften Sie den virtuellen Bildschirm an die aktuelle Position an."
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
msgid "Toggle zoom on focus shortcut"
msgstr "Folgemodus-Tastenkombination umschalten"
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
msgid "Quickly toggle zoom on focus mode."
msgstr "Schnell den Folgemodus wechseln."
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr "Folgemodus-Tastenkombination umschalten"
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr "Schnell den Folgemodus wechseln."
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr "Mauszeigerazeigenkürzel"
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr "Bewege den Mauszeiger in die Mitte des fokussierten Bildschirms."
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr "Erweiterte Einstellungen"
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr ""
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr ""
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr ""
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr ""
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr "Optimale Bildschirm-Konfiguration finden"
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
@ -448,21 +443,21 @@ msgstr ""
"Ändern Sie die Bildschirmkonfiguration der Brille automatisch zur maximalen "
"Auflösung und besten Skalierung, wenn sie angeschlossen ist."
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr "Höchste Bildwiederholrate verwenden"
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr ""
"Die Bildwiederholrate kann die Leistung beeinflussen, deaktivieren Sie dies, "
"um sie manuell festzulegen."
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr "Zentriere auf den Brillenbildschirm"
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
@ -470,93 +465,85 @@ msgstr ""
"Zentriere den Anzeigebereich auf den Brillenbildschirm, selbst wenn der "
"Bildschirm nicht mittig ist."
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr "Immer primärer Bildschirm"
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr ""
"Setzen Sie die Brille automatisch als primären Bildschirm, wenn sie "
"angeschlossen ist."
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
msgid "Remove virtual displays on disable"
msgstr "Gebogener Bildschirm"
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr ""
"Entferne virtuelle Bildschirme automatisch, wenn der XR Effekt deaktiviert "
"ist."
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr "Aktiviere Multi Tap Erkennung"
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr ""
"Aktviert die Doppelberührung zum rezentrieren und Dreifach-berührung zum "
"Kalibrieren."
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
msgid "All displays follow mode"
msgstr "Gebogener Bildschirm"
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr "Folgemodus bewegt alle Bildschirme, nicht nur den fokussierten"
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr ""
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr ""
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr "Folgemodus Bewegungstracking"
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr "Setzen Sie, welchen Bewegungen der Folgemodus folgen soll."
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr "Horizontal"
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr "Vertikal"
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr "Neigen/Rollen"
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr "Bewegungsvorausschau"
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
@ -567,15 +554,15 @@ msgstr ""
"es sei denn, der virtuelle Bildschirm hängt hinter Ihren Kopfbewegungen "
"hinterher, springt vor oder ist sehr wackelig."
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr "Standard"
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr "Textskalierung"
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr "Text unter 1.0 skalieren simuliert einen höher aufgelösten Bildschirm"
@ -595,27 +582,19 @@ msgstr "Eigene Auflösung hinzufügen"
msgid "Add"
msgstr "Hinzufügen"
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr "Näher"
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr "Entfernter"
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr "Gesamtes Spektrum anzeigen"
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr "Fertig"
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr "Ungültige Breezy Desktop GNOME-Installation"
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -636,23 +615,23 @@ msgstr "Ein Token anfordern"
msgid "Verify token"
msgstr "Token verifizieren"
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr "Lizenzdetails"
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr "Kein Gerät verbunden"
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr "Breezy Desktop konnte kein unterstütztes XR-Gerät erkennen."
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
msgid "Auto-enable XR effect"
msgstr "XR-Effekt automatisch aktivieren"
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
@ -660,11 +639,11 @@ msgstr ""
"Automatisch den Breezy Desktop XR-Effekt aktivieren, wenn unterstützte "
"Gläser verbunden werden"
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr "Kein Treiber wird ausgeführt"
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -684,11 +663,11 @@ msgstr ""
"einen neuen Thread im Kanal #troubleshooting auf Discord.\n"
" "
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr "Breezy Desktop GNOME-Erweiterung nicht bereit"
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
@ -697,11 +676,11 @@ msgstr ""
"möglicherweise abmelden und wieder anmelden, um sie zu verwenden. "
"Andernfalls folgen Sie bitte den Breezy GNOME-Einrichtungsanweisungen."
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr "Keine Lizenzdatei wurde gefunden"
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -730,7 +709,7 @@ msgstr ""
"haben).\n"
" "
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr "Erneut versuchen"
@ -756,7 +735,7 @@ msgstr "Menü"
msgid "Some features expire soon"
msgstr "Einige Funktionen laufen bald ab"
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr "Details anzeigen"
@ -764,45 +743,14 @@ msgstr "Details anzeigen"
msgid "Productivity features are disabled"
msgstr "Produktivitätsfunktionen sind deaktiviert"
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr "Zurrücksetzung erwzingen"
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr "Über BreezyDesktop"
#~ msgid "Side-by-side mode (gaming)"
#~ msgstr "Side-by-Side-Modus (Gaming)"
#~ msgid "Smooth Follow (gaming)"
#~ msgstr "Glattes Verfolgen (Gaming)"
#~ msgid "Breezy Desktop (productivity)"
#~ msgstr "Breezy Desktop (Produktivität)"
#~ msgid "Gaming"
#~ msgstr "Gaming"
#~ msgid "Productivity"
#~ msgstr "Produktivität"
#~ msgid "fullscreen"
#~ msgstr "Vollbild"
#~ msgid "Show full range"
#~ msgstr "Gesamtes Spektrum anzeigen"
#~ msgid ""
#~ "Unable to add virtual displays on this machine. Wayland and xdg-desktop-"
#~ "portal are required."

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: 2024-08-02 20:55-0700\n"
"Last-Translator: <wayne@xronlinux.com>\n"
"Language-Team: Spanish <es@tp.org.es>\n"
@ -28,26 +28,26 @@ msgstr ""
msgid "This feature is not currently supported for your device."
msgstr "Esta función no es compatible con tu dispositivo en este momento."
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
msgid "Set Focused Display Distance"
msgstr "Ajusta Distancia de Enfoque de la Pantalla"
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr ""
"Usa un valor más cercano para que la pantalla se acerque cuando la mires."
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
msgid "Set All Displays Distance"
msgstr "Ajusta Todas las Distancias de Pantalla"
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr ""
"Usa un valor más alejado para que las pantallas se alejen cuando apartes la "
"vista."
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
@ -55,14 +55,26 @@ msgstr ""
"No se pueden agregar pantallas virtuales en esta máquina. Se requiere "
"Wayland y xdg-desktop-portal."
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
msgid "Focused display"
msgstr "Pantalla enfocada"
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
msgid "All displays"
msgstr "Todas las pantallas"
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr "más próximo"
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr "a toda pantalla"
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr "más lejano"
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr "Estado del Nivel de Membresía Pagada"
@ -72,7 +84,6 @@ msgid "Feature Availability"
msgstr "Disponibilidad de Características"
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr "Deshabilitado"
@ -89,13 +100,17 @@ msgstr "Habilitado"
msgid " ({time_remaining} remaining)"
msgstr " ({time_remaining} restantes)"
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
msgstr ""
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr "Modo lado a lado (juegos)"
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
msgstr ""
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr "Seguimiento suave (juegos)"
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr "Breezy Desktop (productividad)"
#: src/licensetierrow.py:24
msgid "Active"
@ -122,6 +137,14 @@ msgstr " para actualizar"
msgid "Paid through next renewal period"
msgstr "Pagado hasta el próximo período de renovación"
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr "Juegos"
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr "Productividad"
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr " - renovando mensualmente"
@ -220,11 +243,11 @@ msgstr "Pantalla curvada"
msgid "Switch between flat and curved displays."
msgstr "Cambiar entre pantallas planas y curvadas."
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr "Desactivar pantallas físicas"
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr ""
@ -268,110 +291,98 @@ msgid "Set how close you want displays to appear."
msgstr "Ajusta cómo de cerca quieres que aparezcan las pantallas."
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr "Cambiar"
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr ""
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr ""
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr ""
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr "Umbral de seguimiento"
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr "Hasta qué punto puedes mirar antes de que la pantalla siga."
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
msgid "Display angling"
msgstr "Inclinación de la pantalla"
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr "Cuando hay múltiples pantallas, elige cómo deben inclinarse hacia ti."
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr "Automático"
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr "Inclinación lateral"
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr "Inclinación superior"
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr "Plano"
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
msgid "Display spacing"
msgstr "Separación de pantallas"
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr "Poner espacio vacío entre las pantallas, cuando haya varias."
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr "Desplazamiento horizontal del visor"
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr "Mueve el visor a izquierda o derecha de su posición predeterminada."
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr "izquierda"
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr "centro"
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr "derecha"
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr "Desplazamiento vertical del visor"
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr "Mueve el visor arriba o abajo de su posición predeterminada."
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr "abajo"
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr "arriba"
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr "Atajos de teclado"
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr "Atajo encendido/apagado Efecto XR"
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
@ -379,63 +390,47 @@ msgstr ""
"Activa o desactiva rápidamente el Efecto XR. Es posible que necesites "
"activar el efecto manualmente una vez para habilitar el atajo."
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr "Atajo para recentrar la pantalla"
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr "Fije la pantalla virtual en la posición actual."
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
msgid "Toggle zoom on focus shortcut"
msgstr "Atajo para alternar el acercamiento al enfocar"
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
msgid "Quickly toggle zoom on focus mode."
msgstr "Modo para alternar rápidamente el acercamiento al enfocar."
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr "Atajo para alternar el modo de seguimiento"
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr "Activar el modo de seguimiento."
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr ""
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr ""
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr "Configuración Avanzada"
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr ""
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr ""
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr ""
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr ""
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr "Encuentre la configuración de pantalla óptima"
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
@ -444,21 +439,21 @@ msgstr ""
"obtener la máxima resolución y la mejor escalabilidad cuando estén "
"enchufadas."
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr "Utilizar la frecuencia de actualización más alta"
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr ""
"La frecuencia de actualización puede afectar el rendimiento, deshabilite "
"esto para configurarlo manualmente."
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr "Centrar en la pantalla de las gafas"
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
@ -466,91 +461,83 @@ msgstr ""
"Centrar el visor en la pantalla de las gafas, incluso si la pantalla no está "
"en el centro."
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr "Siempre como pantalla principal"
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr ""
"Automáticamente configurar las gafas como pantalla principal al enchufarse."
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
msgid "Remove virtual displays on disable"
msgstr "Eliminar pantallas virtuales al desactivar"
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr ""
"Eliminar automáticamente las pantallas virtuales cuando se desactiva el "
"efecto XR."
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr "Activar la detección de toques múltiples"
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr ""
"Activa el doble toque para recentrar y el triple toque para recalibrar."
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
msgid "All displays follow mode"
msgstr "Modo de seguimiento de todas las pantallas"
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr "El modo de seguimiento mueve todas las pantallas, no solo la enfocada."
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr ""
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr ""
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr "Rastreo de movimiento de modo de seguimiento"
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr "Elige qué movimientos deben rastrearse en el modo de seguimiento."
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr "Horizontal"
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr "Vertical"
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr "Inclinación/giro"
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr "Anticipación de movimiento"
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
@ -561,15 +548,15 @@ msgstr ""
"predeterminado a menos que la pantalla virtual se retrase detrás de los "
"movimientos de la cabeza, se adelante o sea muy inestable."
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr "Predeterminado"
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr "Escalado de Texto"
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr ""
"Escalando el texto por debajo de 1.0 simulará una pantalla de mayor "
@ -591,27 +578,19 @@ msgstr "Añadir una Resolución Personalizada"
msgid "Add"
msgstr "Añadir"
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr "más próximo"
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr "más lejano"
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr "Mostrar rango completo"
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr "Hecho"
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr "Configuración inválida de Breezy Desktop GNOME"
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -631,23 +610,23 @@ msgstr "Solicitar un token"
msgid "Verify token"
msgstr "Verificar token"
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr "Detalles de la Licencia"
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr "No hay dispositivo conectado"
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr "Breezy Desktop no pudo detectar ningún dispositivo XR compatible."
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
msgid "Auto-enable XR effect"
msgstr "Auto-activar efecto XR"
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
@ -655,11 +634,11 @@ msgstr ""
"Habilita automáticamente el efecto Breezy Desktop XR cuando se conectan "
"gafas compatibles."
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr "No se está ejecutando ningún controlador"
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -679,11 +658,11 @@ msgstr ""
"nuevo hilo en el canal #troubleshooting de Discord.\n"
" "
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr "La extensión de Breezy Desktop GNOME no está lista"
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
@ -692,11 +671,11 @@ msgstr ""
"volver a iniciar para usarla. De lo contrario, siga las instrucciones de "
"configuración de Breezy GNOME."
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr "No se encontró ningún archivo de licencia"
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -723,7 +702,7 @@ msgstr ""
"Breezy Desktop sin conexión hasta que expiren las características (o "
"indefinidamente, si ha elegido el acceso de por vida). "
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr "Reintentar"
@ -749,7 +728,7 @@ msgstr "Menú"
msgid "Some features expire soon"
msgstr "Algunas funciones expirarán pronto"
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr "Ver detalles"
@ -757,45 +736,14 @@ msgstr "Ver detalles"
msgid "Productivity features are disabled"
msgstr "Las funciones de productividad están deshabilitadas"
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr "Reinicio forzoso"
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr "Acerca de BreezyDesktop"
#~ msgid "Side-by-side mode (gaming)"
#~ msgstr "Modo lado a lado (juegos)"
#~ msgid "Smooth Follow (gaming)"
#~ msgstr "Seguimiento suave (juegos)"
#~ msgid "Breezy Desktop (productivity)"
#~ msgstr "Breezy Desktop (productividad)"
#~ msgid "Gaming"
#~ msgstr "Juegos"
#~ msgid "Productivity"
#~ msgstr "Productividad"
#~ msgid "fullscreen"
#~ msgstr "a toda pantalla"
#~ msgid "Show full range"
#~ msgstr "Mostrar rango completo"
#~ msgid ""
#~ "Unable to add virtual displays on this machine. Wayland and xdg-desktop-"
#~ "portal are required."

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: 2024-08-02 20:54-0700\n"
"Last-Translator: <wayne@xronlinux.com>\n"
"Language-Team: French <traduc@traduc.org>\n"
@ -31,26 +31,26 @@ msgstr ""
"Cette fonctionnalité n'est actuellement pas prise en charge par votre "
"appareil."
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
msgid "Set Focused Display Distance"
msgstr "Définir la distance de l'écran cible"
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr ""
"Utiliser une valeur plus proche pour que l'écran zoom lorsqu'on le regarde."
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
msgid "Set All Displays Distance"
msgstr "Définir la distance d'affichage de tous les écrans"
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr ""
"Utiliser une valeur plus éloignée afin que les écrans dézooment lorsqu'on ne "
"les regarde plus."
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
@ -58,14 +58,26 @@ msgstr ""
"Impossible d'ajouter des écrans virtuels sur cet appareil. Wayland et xdg-"
"desktop-portal sont nécessaires."
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
msgid "Focused display"
msgstr "Ecran cible"
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
msgid "All displays"
msgstr "Tous les écrans"
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr "Plus proche"
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr "Plein écran"
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr "Plus éloigné"
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr "Statut de l'abonnement payant"
@ -75,7 +87,6 @@ msgid "Feature Availability"
msgstr "Disponibilité des fonctionnalités"
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr "Désactivé"
@ -92,13 +103,17 @@ msgstr "Activé"
msgid " ({time_remaining} remaining)"
msgstr " ({time_remaining} restant)"
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
msgstr ""
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr "Mode SBS (jeu)"
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
msgstr ""
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr "Suivi fluide (jeu)"
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr "Breezy Desktop (productivité)"
#: src/licensetierrow.py:24
msgid "Active"
@ -125,6 +140,14 @@ msgstr " à mettre à niveau"
msgid "Paid through next renewal period"
msgstr "Payé jusqu'à la prochaine période de renouvellement"
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr "Jeu"
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr "Productivité"
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr " - renouvellement mensuel"
@ -222,11 +245,11 @@ msgstr "Affichage incurvé"
msgid "Switch between flat and curved displays."
msgstr "Basculez entre les affichages plats et incurvés."
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr "Désactiver les écrans physiques"
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr ""
@ -270,116 +293,104 @@ msgid "Set how close you want displays to appear."
msgstr "Réglez la distance à laquelle vous voulez que les écrans apparaissent."
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr "Changer"
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr ""
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr ""
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr ""
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr "Seuil de suivi"
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr "Distance jusqu'où vous pouvez regarder avant que l'affichage ne suive."
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
msgid "Display angling"
msgstr "Orientation des écrans"
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr ""
"Lorsqu'il y a plusieur sécrans, définissez comment ils devraient être "
"orientés."
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr "Automatique"
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr "Pivot sur le côté"
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr "Pivot sur le dessus"
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr "Plat"
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
msgid "Display spacing"
msgstr "Espacement des écrans"
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr "Ajoute un espace vide entre les écrans lorsqu'il y en a plusieurs."
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr "Décalage horizontal de l'affichage"
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr ""
"Décale l'affichage des écrans vers la gauche ou la droite de la position par "
"défaut."
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr "gauche"
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr "centre"
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr "droite"
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr "Décalage vertical de l'affichage"
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr ""
"Décale l'affichage des écrans au dessus ou au dessous de la position par "
"défaut."
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr "bas"
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr "haut"
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr "Raccourcis clavier"
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr "Raccourci on/off de l'effet XR"
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
@ -387,64 +398,48 @@ msgstr ""
"Activez ou désactivez rapidement l'effet XR. Il se peut que vous deviez "
"activer l'effet manuellement une fois pour activer le raccourci."
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr "Raccourci de recentrage de l'affichage"
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr "Fixez l'affichage virtuel à la position actuelle"
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
msgid "Toggle zoom on focus shortcut"
msgstr "Raccourci d'activation du zoom sur l'écran ciblé"
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
msgid "Quickly toggle zoom on focus mode."
msgstr "Zoom rapidement sur l'écran que l'on regarde"
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr "Raccourci de basculement du mode de suivi"
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr "Basculer rapidement le mode de suivi."
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr "Raccourci de téléportation de la souris"
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr ""
"Ramène automatiquement la souris au centre de l'écran que vous regardez."
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr "Paramètres avancés"
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr ""
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr ""
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr ""
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr ""
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr "Trouver la configuration d'affichage optimale"
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
@ -453,21 +448,21 @@ msgstr ""
"résolution maximale et une meilleure mise à l'échelle lorsque elles sont "
"branchées."
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr "Utiliser le taux de rafraîchissement le plus élevé"
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr ""
"Un taux de rafraîchissement élevé peut affecter les performances, désactivez-"
"le pour le définir manuellement."
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr "Garder l'écran principal au centre"
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
@ -475,92 +470,84 @@ msgstr ""
"Garde l'écran principal au centre de la vue, même si l'écran n'est pas au "
"milieu."
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr "Affichage principal en permanence"
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr ""
"Définissez automatiquement les lunettes comme affichage principal "
"lorsqu'elles sont branchées."
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
msgid "Remove virtual displays on disable"
msgstr "Supprimer les écrans virtuels sur déconnection"
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr ""
"Supprime automatiquement les écrans virtuels lorsque l'effet XR est "
"désactivé."
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr "Activer la détection du tapotement"
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr "Active le double-tap pour recentrer et le triple-tap pour recalibrer."
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
msgid "All displays follow mode"
msgstr "Tous les écrans en mode suivi"
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr ""
"Le mode suivi déplace tous les écrans, pas seulement celui que l'on regarde."
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr ""
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr ""
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr "Suivi des mouvements en mode suivi"
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr "Définissez quels mouvements doivent être suivis en mode suivi."
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr "Horizontaux"
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr "Verticaux"
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr "Inclinaison"
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr "Anticipation des mouvements"
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
@ -570,15 +557,15 @@ msgstr ""
"le temps de rendu. Restez sur la valeur par défaut à moins que l'affichage "
"virtuel ne soit lent, ne saute pas ou ne soit très instable."
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr "Par défaut"
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr "Mise à l'échelle du texte"
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr ""
"Une mise à l'échelle du texte en dessous de 1.0 simulera un affichage de "
@ -600,27 +587,19 @@ msgstr "Ajouter une résolution personnalisée"
msgid "Add"
msgstr "Ajouter"
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr "Plus proche"
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr "Plus éloigné"
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr "Afficher toute la gamme"
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr "Terminé"
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr "Configuration Breezy Desktop GNOME non valide"
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -641,23 +620,23 @@ msgstr "Demander un jeton d'authentification"
msgid "Verify token"
msgstr "Vérifier le jeton d'authentification"
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr "Détails de la licence"
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr "Aucun appareil connecté"
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr "Breezy Desktop n'a pas pu détecter d'appareils XR pris en charge."
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
msgid "Auto-enable XR effect"
msgstr "Activation automatique de l'effet XR"
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
@ -665,11 +644,11 @@ msgstr ""
"Activer automatiquement l'effet Breezy Desktop XR lorsque des lunettes "
"compatibles sont connectées."
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr "Aucun pilote en cours d'exécution"
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -689,11 +668,11 @@ msgstr ""
"discussion dans le canal #troubleshooting sur Discord.\n"
" "
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr "Extension Breezy Desktop GNOME non prête"
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
@ -702,11 +681,11 @@ msgstr ""
"déconnecter et vous reconnecter pour l'utiliser. Sinon, veuillez suivre les "
"instructions d'installation de Breezy GNOME."
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr "Aucun fichier de licence trouvé"
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -734,7 +713,7 @@ msgstr ""
"(ou indéfiniment, si vous avez choisi l'accès à vie).\n"
" "
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr "Réessayer"
@ -759,7 +738,7 @@ msgstr "Menu"
msgid "Some features expire soon"
msgstr "Certaines fonctionnalités expirent bientôt"
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr "Afficher les détails"
@ -767,45 +746,14 @@ msgstr "Afficher les détails"
msgid "Productivity features are disabled"
msgstr "Les fonctionnalités de productivité sont désactivées"
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr "Réinitialiser"
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr "À propos de BreezyDesktop"
#~ msgid "Side-by-side mode (gaming)"
#~ msgstr "Mode SBS (jeu)"
#~ msgid "Smooth Follow (gaming)"
#~ msgstr "Suivi fluide (jeu)"
#~ msgid "Breezy Desktop (productivity)"
#~ msgstr "Breezy Desktop (productivité)"
#~ msgid "Gaming"
#~ msgstr "Jeu"
#~ msgid "Productivity"
#~ msgstr "Productivité"
#~ msgid "fullscreen"
#~ msgstr "Plein écran"
#~ msgid "Show full range"
#~ msgstr "Afficher toute la gamme"
#~ msgid ""
#~ "Unable to add virtual displays on this machine. Wayland and xdg-desktop-"
#~ "portal are required."

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: 2024-08-02 21:14-0700\n"
"Last-Translator: <fsciarra62@gmail.com>\n"
"Language-Team: Italian <tp@lists.linux.it>\n"
@ -29,26 +29,26 @@ msgstr ""
msgid "This feature is not currently supported for your device."
msgstr "Questa funzione non è attualmente supportata sul tuo dispositivo."
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
msgid "Set Focused Display Distance"
msgstr "Distanza del display con focus"
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr ""
"Usa un valore più vicino, così che il display si avvicini quando lo guardi."
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
msgid "Set All Displays Distance"
msgstr "Imposta la distanza di tutti i display"
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr ""
"Usa un valore più distante così che i display si allontanino quando distogli "
"lo sguardo."
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
@ -56,14 +56,26 @@ msgstr ""
"Non è possibile aggiungere display virtuali su questo dispositivo. Sono "
"richiesti Wayland e xdg-desktop-portal."
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
msgid "Focused display"
msgstr "Distanza del display col focus"
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
msgid "All displays"
msgstr "Tutti i display"
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr "più vicino"
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr "schermo intero"
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr "più lontano"
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr "Stato del livello a pagamento"
@ -73,7 +85,6 @@ msgid "Feature Availability"
msgstr "Disponibilità delle funzionalità"
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr "Disabilitato"
@ -90,13 +101,17 @@ msgstr "Abilitato"
msgid " ({time_remaining} remaining)"
msgstr " ({time_remaining} rimanenti)"
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
msgstr ""
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr "Modalità side-by-side (gaming)"
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
msgstr ""
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr "Smooth Follow (gaming)"
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr "Breezy Desktop (produttività)"
#: src/licensetierrow.py:24
msgid "Active"
@ -123,6 +138,14 @@ msgstr " per aggiornare"
msgid "Paid through next renewal period"
msgstr "Pagato fino al prossimo periodo di rinnovo"
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr "Gaming"
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr "Produttività"
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr " - rinnovo mensile"
@ -219,11 +242,11 @@ msgstr "Schermo curvo"
msgid "Switch between flat and curved displays."
msgstr "Passa da display piatti a curvi."
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr "Disabilita display fisici"
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr ""
@ -267,114 +290,102 @@ msgid "Set how close you want displays to appear."
msgstr "Imposta quanto vicino vuoi che appaiano i display"
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr "Cambia"
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr ""
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr ""
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr ""
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr "Soglia di inseguimento"
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr "Quanto lontano puoi guardare prima che il display ti segua."
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
msgid "Display angling"
msgstr "Angolazione del display"
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr ""
"Quando ci sonn display multipli, scegli come dovrebbero angolarsi davanti a "
"te."
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr "Automatico"
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr "Angolazione su un lato"
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr "Angolazione in alto"
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr "Piatto"
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
msgid "Display spacing"
msgstr "Spaziatura del display"
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr "Inserisci spazio vuoto tra i display, quando ce ne sono molteplici."
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr "Spostamento orizzontale della visuale"
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr ""
"Muovi la visuale a sinistra o a destra rispetto alla sua posizione di "
"default."
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr "sinistra"
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr "centro"
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr "destra"
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr "Spostamento verticale della visuale"
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr "Muovi la visuale su o giù rispetto alla sua posizione di default."
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr "giù"
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr "su"
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr "Scorciatoie da tastiera"
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr "Scorciatoia per on/off dell'effetto XR"
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
@ -383,63 +394,47 @@ msgstr ""
"abilitare l'effetto manualmente almeno una volta per abilitare la "
"scorciatoia da tastiera."
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr "Scorciatoia per ricentrare il display"
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr "Fissa il display virtuale alla posizione attuale."
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
msgid "Toggle zoom on focus shortcut"
msgstr "Scorciatoia per attivare/disattivare lo zoom sul focus"
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
msgid "Quickly toggle zoom on focus mode."
msgstr "Attivazione/disattivazione rapida della modalità di zoom sul focus."
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr "Scorciatoia per attivare/disattivare la modalità di inseguimento"
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr "Attivazione/disattivazione rapida della modalità di inseguimento."
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr "Scorciatoia per richiamare il cursore del mouse "
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr "Porta il cursore del mouse al centro del display col focus."
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr "Impostazioni avanzate"
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr ""
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr ""
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr ""
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr ""
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr "Trova la configurazione ottimale del display"
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
@ -447,21 +442,21 @@ msgstr ""
"Modifica automaticamente la configurazione del display degli occhiali per "
"ottenere la massima risoluzione e la migliore scalabilità quando collegati."
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr "Usa la frequenza di aggiornamento più elevata"
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr ""
"La frequenza di aggiornamento potrebbe influire sulle prestazioni, "
"disabilitala per impostarla manualmente."
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr "Centra sui display degli occhiali"
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
@ -469,94 +464,86 @@ msgstr ""
"Centra la visuale sul display degli occhiali, anche se il display non è nel "
"mezzo."
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr "Imposta sempre come display primario"
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr ""
"Imposta automaticamente gli occhiali come display primario quando sono "
"collegati."
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
msgid "Remove virtual displays on disable"
msgstr "Rimuovi il display virtuale quando disabilitato"
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr ""
"Rimuovi automaticamente i display virtuali quando l'effetto XR è "
"disabilitato."
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr "Abilita il riconoscimento del tocco multiplo"
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr ""
"Abilita il doppio tocco per ricentrare e il triplo tocco per ricalibrare."
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
msgid "All displays follow mode"
msgstr "Modalità inseguimento su tutti i display"
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr ""
"La modalità inseguimento muove tutti i display, non solo quello col focus."
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr ""
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr ""
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr "Tracciamento del movimento nella modalità inseguimento"
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr ""
"Scegli quale movimento deve essere tracciato nella modalità inseguimento."
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr "Orizzontale"
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr "Verticale"
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr "Inclina/ruota"
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr "Anticipo del movimento"
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
@ -567,15 +554,15 @@ msgstr ""
"che il display virtuale non rimanga indietro rispetto ai tuoi movimenti, non "
"salti in avanti o sia molto tremolante."
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr "Predefinito"
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr "Ridimensionamento del testo"
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr ""
"Ridimensionando il testo sotto a 1.0 si simula una maggiore risoluzione del "
@ -597,27 +584,19 @@ msgstr "Aggiungi una Risoluzione Personalizzata"
msgid "Add"
msgstr "Aggiungi"
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr "più vicino"
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr "più lontano"
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr "Visualizza gamma completa"
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr "Fatto"
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr "Configurazione non valida di Breezy Desktop GNOME"
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -638,23 +617,23 @@ msgstr "Richiesta di un token"
msgid "Verify token"
msgstr "Verifica del token"
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr "Dettagli della licenza"
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr "Nessun dispositivo connesso"
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr "Breezy Desktop non ha rilevato nessun dispositivo XR supportato."
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
msgid "Auto-enable XR effect"
msgstr "Abilitazione automatica effetto XR"
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
@ -662,11 +641,11 @@ msgstr ""
"Abilita automaticamente l'effetto XR di Breezy Desktop quando vengono "
"connessi degli occhiali supportati."
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr "Nessun driver in esecuzione"
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -686,11 +665,11 @@ msgstr ""
"thread nel canale #troubleshooting su Discord.\n"
" "
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr "Estensione di Breezy Desktop GNOME non pronta"
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
@ -699,11 +678,11 @@ msgstr ""
"disconnettersi e riconnettersi per utilizzarla. In caso contrario, segui le "
"istruzioni di configurazione di Breezy GNOME."
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr "Nessun file di licenza trovato"
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -731,7 +710,7 @@ msgstr ""
"indeterminato, se hai scelto l'accesso perpetuo).\n"
" "
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr "Riprova"
@ -755,7 +734,7 @@ msgstr "Menu"
msgid "Some features expire soon"
msgstr "Alcune funzionalità scadranno presto"
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr "Visualizza dettagli"
@ -763,45 +742,14 @@ msgstr "Visualizza dettagli"
msgid "Productivity features are disabled"
msgstr "Le funzionalità di produttività sono disabilitate"
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr "Reset forzato"
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr "Informazioni su BreezyDesktop"
#~ msgid "Side-by-side mode (gaming)"
#~ msgstr "Modalità side-by-side (gaming)"
#~ msgid "Smooth Follow (gaming)"
#~ msgstr "Smooth Follow (gaming)"
#~ msgid "Breezy Desktop (productivity)"
#~ msgstr "Breezy Desktop (produttività)"
#~ msgid "Gaming"
#~ msgstr "Gaming"
#~ msgid "Productivity"
#~ msgstr "Produttività"
#~ msgid "fullscreen"
#~ msgstr "schermo intero"
#~ msgid "Show full range"
#~ msgstr "Visualizza gamma completa"
#~ msgid ""
#~ "Unable to add virtual displays on this machine. Wayland and xdg-desktop-"
#~ "portal are required."

View File

@ -1,8 +1,7 @@
# Japanese translations for PACKAGE package.
# Copyright (C) 2024-2026 THE PACKAGE'S COPYRIGHT HOLDER
# Copyright (C) 2024 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# <wayne@xronlinux.com>, 2024.
# <iwaim.sub@gmail.com>, 2026.
#
# Breezy DesktopやXR、GNOMEのような固有名詞はそのままの表記にしています。
# 「gaming」が「ゲーミング」なので「productivity」も「プロダクティビティ」とカナ表記にしました。
@ -12,9 +11,9 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"PO-Revision-Date: 2026-02-11 07:53+0900\n"
"Last-Translator: iwaim.sub@gmail.com\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: 2024-08-02 20:55-0700\n"
"Last-Translator: <wayne@xronlinux.com>\n"
"Language-Team: Japanese <translation-team-ja@lists.sourceforge.net>\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
@ -32,36 +31,48 @@ msgstr "メガネを3Dモードに切り替え、表示の幅を2倍にします
msgid "This feature is not currently supported for your device."
msgstr "現在接続されているデバイスはこの機能に対応していません。"
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
msgid "Set Focused Display Distance"
msgstr "フォーカスされたディスプレイ距離"
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr "近くに設定すると見たディスプレイにズームインします。"
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
msgid "Set All Displays Distance"
msgstr "すべてのディスプレイ距離"
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr "遠くに設定すると視線の外れたディスプレイがズームアウトします。"
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
msgstr "仮想ディスプレイが追加できません。"
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
msgid "Focused display"
msgstr "フォーカスされたディスプレイ"
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
msgid "All displays"
msgstr "すべてのディスプレイ"
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr "近い"
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr "全画面"
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr "遠い"
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr "有料ティアの状態"
@ -71,7 +82,6 @@ msgid "Feature Availability"
msgstr "利用できる機能"
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr "無効"
@ -88,13 +98,17 @@ msgstr "有効"
msgid " ({time_remaining} remaining)"
msgstr "(残り {time_remaining})"
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
msgstr ""
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr "サイドバイサイドモード(ゲーミング)"
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
msgstr ""
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr "スムーズフォロー(ゲーミング)"
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr "Breezy Desktop(プロダクティビティ)"
#: src/licensetierrow.py:24
msgid "Active"
@ -121,6 +135,14 @@ msgstr "でアップグレード可能"
msgid "Paid through next renewal period"
msgstr "次の更新期間まで支払済み"
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr "ゲーミング"
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr "プロダクティビティ"
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr " - 月払い"
@ -217,11 +239,11 @@ msgstr "曲面ディスプレイ"
msgid "Switch between flat and curved displays."
msgstr "平面と曲面ディスプレイを切り替えます。"
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr "物理ディスプレイの無効化"
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr "XRエフェクト有効時、自動的に物理ディスプレイを無効化する。"
@ -263,110 +285,98 @@ msgid "Set how close you want displays to appear."
msgstr "ディスプレイの表示距離を設定。"
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr "変更"
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr "ディスプレイサイズ"
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr "ディスプレイの大きさを設定します。"
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr "標準"
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr "フォローしきい値"
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr "ディスプレイがフォロー(追従)を開始するまでの距離"
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
msgid "Display angling"
msgstr "ディスプレイの向き"
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr "複数のディスプレイがある場合、ディスプレイの向きを選択します。"
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr "自動"
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr "横向き"
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr "縦向き"
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr "平面"
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
msgid "Display spacing"
msgstr "ディスプレイの隙間"
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr "複数のディスプレイがある場合、ディスプレイ間の隙間を設定します。"
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr "表示域の水平オフセット"
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr "表示域を左右に移動させます。"
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr "左"
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr "中央"
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr "→"
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr "表示域の垂直オフセット"
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr "表示域を上下に移動させます。"
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr "下"
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr "上"
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr "キーボードショートカット"
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr "XRエフェクトの切り替え"
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
@ -374,63 +384,47 @@ msgstr ""
"XRエフェクトの有効・無効を切り替えます。このショートカットを有効にするために"
"手動で1回XRエフェクトを有効にする必要があります。"
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr "ディスプレイを中央へ移動"
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr "仮想ディスプレイを現在の視点に固定します。"
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
msgid "Toggle zoom on focus shortcut"
msgstr "フォーカス時のズーム切り替え"
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
msgid "Quickly toggle zoom on focus mode."
msgstr "フォーカス時のズームをすばやく切り替えます。"
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr "フォローモードの切り替え"
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr "フォローモードのオン/オフをすばやく切り替えます。"
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr "マウスカーソルを呼び戻す"
msgstr ""
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr "フォーカス中のディスプレイの中央にマウスカーソルを移動します。"
msgstr ""
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr "詳細設定"
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr "単位"
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr "ディスプレイ距離とサイズの単位を選択します。"
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr "センチメートルcm"
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr "インチin"
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr "ディスプレイ設定を最適化する"
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
@ -438,21 +432,21 @@ msgstr ""
"メガネ接続時、最大解像度と最適なスケーリングのためにディスプレイ設定を自動的"
"に変更します。"
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr "最大のリフレッシュレートを使用する"
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr ""
"リフレッシュレートはパフォーマンスに影響を与える可能性があります。手動で設定"
"する場合は無効にしてください。"
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr "メガネのディスプレイを中央に"
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
@ -460,93 +454,83 @@ msgstr ""
"ディスプレイが中央にない場合でも、表示域をメガネのディスプレイの中央に配置し"
"ます。"
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr "常にプライマリディスプレイにする"
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr "メガネ接続時、自動的にプライマリディスプレイにします。"
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
msgid "Remove virtual displays on disable"
msgstr "無効時に仮想ディスプレイ削除"
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr "XRエフェクト無効時に仮想ディスプレイを自動的に削除します。"
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr "マルチタップ認識を有効化"
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr ""
"ダブルタップで中央へ移動、トリプルタップで再キャリブレーションを有効にしま"
"す。"
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
msgid "All displays follow mode"
msgstr "全画面フォローモード"
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr ""
"フォローモードはフォーカスされてるディスプレイだけでなく全ての画面が移動しま"
"す。"
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr "水平方向の首振り"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
"値を大きくすると、水平方向の小さな動きで視点を移動できるようになります。"
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr "垂直方向の首振り"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
"値を大きくすると、垂直方向の小さな動きで視点を移動できるようになります。"
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr "不感帯の閾値(角度)"
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr "この角度以下では動きを検知せず、動作を安定させます。"
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr "フォローモード移動設定"
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr "フォローモードで追跡する方法を選択します。"
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr "水平"
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr "垂直"
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr "傾き・回転"
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr "動きの先読み"
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
@ -556,15 +540,15 @@ msgstr ""
"ます。仮想ディスプレイが頭の動きに遅れたり、先に進んだり、非常に揺れたりする"
"場合を除き、デフォルトのままで問題ありません。"
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr "デフォルト"
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr "テキストスケーリング"
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr ""
"テキストを1.0未満にスケーリングすると、高解像度ディスプレイをシミュレートしま"
@ -586,27 +570,19 @@ msgstr "カスタム解像度を追加"
msgid "Add"
msgstr "追加"
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr "近い"
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr "デフォルト"
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr "遠い"
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr "全範囲を表示"
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr "完了"
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr "Breezy Desktop GNOMEの無効なセットアップ"
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -626,34 +602,34 @@ msgstr "トークンをリクエストする"
msgid "Verify token"
msgstr "トークンを検証する"
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr "ライセンスの詳細"
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr "デバイスが接続されていません"
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr "Breezy Desktopは対応しているXRデバイスを検出できませんでした。"
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
msgid "Auto-enable XR effect"
msgstr "XRエフェクトの自動有効化"
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
msgstr ""
"対応メガネを接続するとBreezy DesktopのXRエフェクトを自動的に開始します。"
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr "ドライバーが実行されていません"
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -673,11 +649,11 @@ msgstr ""
"#troubleshootingチャンネルで新しいスレッドを作成してください。\n"
" "
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr "Breezy Desktop GNOME Shell拡張機能が準備できていません"
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
@ -686,11 +662,11 @@ msgstr ""
"る必要があるかもしれません。それ以外の場合は、Breezy GNOMEのセットアップ手順"
"に従ってください。"
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr "ライセンスファイルが見つかりませんでした"
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -718,7 +694,7 @@ msgstr ""
"せん。)\n"
" "
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr "もう一度お試しください"
@ -743,7 +719,7 @@ msgstr "メニュー"
msgid "Some features expire soon"
msgstr "一部の機能はもうすぐ期限が切れます"
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr "詳細を表示"
@ -751,45 +727,14 @@ msgstr "詳細を表示"
msgid "Productivity features are disabled"
msgstr "プロダクティビティ機能が無効になっています"
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr "強制リセット"
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr "Breezy Desktopについて"
#~ msgid "Side-by-side mode (gaming)"
#~ msgstr "サイドバイサイドモード(ゲーミング)"
#~ msgid "Smooth Follow (gaming)"
#~ msgstr "スムーズフォロー(ゲーミング)"
#~ msgid "Breezy Desktop (productivity)"
#~ msgstr "Breezy Desktop(プロダクティビティ)"
#~ msgid "Gaming"
#~ msgstr "ゲーミング"
#~ msgid "Productivity"
#~ msgstr "プロダクティビティ"
#~ msgid "fullscreen"
#~ msgstr "全画面"
#~ msgid "Show full range"
#~ msgstr "全範囲を表示"
#~ msgid ""
#~ "Unable to add virtual displays on this machine. Wayland and xdg-desktop-"
#~ "portal are required."

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: 2024-08-16 10:26-0700\n"
"Last-Translator: <wayne@xronlinux.com>\n"
"Language-Team: Polish <translation-team-pl@lists.sourceforge.net>\n"
@ -28,36 +28,48 @@ msgstr ""
msgid "This feature is not currently supported for your device."
msgstr ""
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
msgid "Set Focused Display Distance"
msgstr ""
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr ""
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
msgid "Set All Displays Distance"
msgstr ""
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr ""
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
msgstr ""
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
msgid "Focused display"
msgstr ""
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
msgid "All displays"
msgstr ""
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr ""
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr ""
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr ""
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr ""
@ -67,7 +79,6 @@ msgid "Feature Availability"
msgstr ""
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr ""
@ -84,12 +95,16 @@ msgstr ""
msgid " ({time_remaining} remaining)"
msgstr ""
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr ""
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr ""
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr ""
#: src/licensetierrow.py:24
@ -117,6 +132,14 @@ msgstr ""
msgid "Paid through next renewal period"
msgstr ""
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr ""
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr ""
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr ""
@ -211,11 +234,11 @@ msgstr ""
msgid "Switch between flat and curved displays."
msgstr ""
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr ""
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr ""
@ -257,291 +280,255 @@ msgid "Set how close you want displays to appear."
msgstr ""
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr ""
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr ""
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr ""
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr ""
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr ""
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr ""
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
msgid "Display angling"
msgstr ""
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr ""
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr ""
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr ""
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr ""
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr ""
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
msgid "Display spacing"
msgstr ""
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr ""
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr ""
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr ""
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr ""
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr ""
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr ""
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr ""
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr ""
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr ""
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr ""
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr ""
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr ""
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
msgstr ""
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr ""
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr ""
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
msgid "Toggle zoom on focus shortcut"
msgstr ""
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
msgid "Quickly toggle zoom on focus mode."
msgstr ""
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr ""
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr ""
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr ""
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr ""
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr ""
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr ""
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr ""
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr ""
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr ""
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr ""
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
msgstr ""
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr ""
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr ""
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr ""
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
msgstr ""
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr ""
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr ""
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
msgid "Remove virtual displays on disable"
msgstr ""
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr ""
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr ""
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr ""
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
msgid "All displays follow mode"
msgstr ""
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr ""
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr ""
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr ""
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr ""
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr ""
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr ""
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr ""
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr ""
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr ""
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
"movements, jumps ahead, or is very shaky."
msgstr ""
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr ""
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr ""
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr ""
@ -561,27 +548,19 @@ msgstr ""
msgid "Add"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr ""
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr ""
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr ""
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr ""
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -599,33 +578,33 @@ msgstr ""
msgid "Verify token"
msgstr ""
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr ""
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr ""
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr ""
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
msgid "Auto-enable XR effect"
msgstr ""
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
msgstr ""
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr ""
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -637,21 +616,21 @@ msgid ""
" "
msgstr ""
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr ""
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
msgstr ""
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr ""
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -667,7 +646,7 @@ msgid ""
" "
msgstr ""
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr ""
@ -691,7 +670,7 @@ msgstr ""
msgid "Some features expire soon"
msgstr ""
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr ""
@ -699,20 +678,10 @@ msgstr ""
msgid "Productivity features are disabled"
msgstr ""
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr ""
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: 2024-08-19 09:39-0700\n"
"Last-Translator: <wayne@xronlinux.com>\n"
"Language-Team: Brazilian Portuguese <ldpbr-"
@ -30,27 +30,27 @@ msgstr ""
msgid "This feature is not currently supported for your device."
msgstr "Este recurso não é atualmente suportado para o seu dispositivo."
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
msgid "Set Focused Display Distance"
msgstr "Distância da tela"
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr ""
"Use um valor mais aproximado para que as telas se aproximem quando olha para "
"ela."
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
msgid "Set All Displays Distance"
msgstr "Distância da tela"
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr ""
"Use um valor mais distante para que as telas se afastem quando olha para "
"elas."
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
@ -58,14 +58,26 @@ msgstr ""
"Não é possível adicionar telas neste dispositivo. xdg-desktop-portal é "
"requerido."
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
msgid "Focused display"
msgstr "Distância da tela"
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
msgid "All displays"
msgstr "Tela curva"
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr "mais perto"
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr "Tela cheia"
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr "mais longe"
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr "Status do Nível Pago"
@ -75,7 +87,6 @@ msgid "Feature Availability"
msgstr "Disponibilidade de Recursos"
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr "Desabilitado"
@ -92,13 +103,17 @@ msgstr "Habilitado"
msgid " ({time_remaining} remaining)"
msgstr " ({time_remaining} restantes)"
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
msgstr ""
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr "Modo lado a lado (Jogos)"
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
msgstr ""
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr "Acompanhar Suavemente (Jogos)"
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr "Breezy Desktop (produtividade)"
#: src/licensetierrow.py:24
msgid "Active"
@ -125,6 +140,14 @@ msgstr " para atualizar"
msgid "Paid through next renewal period"
msgstr "Pago até o próximo período de renovação"
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr "Jogos"
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr "Produtividade"
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr " - renovando mensalmente"
@ -223,11 +246,11 @@ msgstr "Tela curva"
msgid "Switch between flat and curved displays."
msgstr "Alterne entre tela plana e tela curva."
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr "Desativar as telas físicas"
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr ""
@ -271,116 +294,104 @@ msgid "Set how close you want displays to appear."
msgstr "Defina o quão perto quer que as telas apareçam."
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr "Alterar"
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr ""
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr ""
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr ""
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr "Sensibilidade do modo de acompanhamento"
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr "Quanto você pode mover a cabeça antes que a tela te acompanhe."
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
msgid "Display angling"
msgstr "Tamanho da tela"
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr ""
"Quando existirem várias telas, escolha o ângulo em que devem estar virados "
"para si."
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr "Automático"
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr "Ângulo lateral"
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr "Ângulo superior"
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr "Plano"
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
msgid "Display spacing"
msgstr "Tamanho da tela"
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr "Coloque um espaço vazio entre as telas, quando existem várias."
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr "Deslocamento horizontal da janela de visualização"
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr ""
"Mova a janela de visualização para a esquerda ou direita da sua posição "
"predefinida."
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr "esquerda"
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr "centro"
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr "direita"
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr "Deslocamento vertical da janela de visualização"
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr ""
"Mova a janela de visualização para cima ou para baixo da sua posição "
"predefinida."
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr "baixo"
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr "cima"
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr "Atalhos de teclado"
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr "Atalho para ligar/desligar o efeito XR"
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
@ -388,63 +399,47 @@ msgstr ""
"Ative ou desative rapidamente o Efeito XR. Pode ser necessário ativar o "
"efeito manualmente para ativar o atalho."
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr "Atalho para recentralizar a tela"
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr "Traga a tela virtual para onde você está olhando."
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
msgid "Toggle zoom on focus shortcut"
msgstr "Atalho para alternar o modo de acompanhamento"
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
msgid "Quickly toggle zoom on focus mode."
msgstr "Alterne rapidamente o modo de acompanhamento."
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr "Atalho para alternar o modo de acompanhamento"
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr "Alterne rapidamente o modo de acompanhamento."
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr ""
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr ""
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr "Configurações Avançadas"
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr ""
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr ""
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr ""
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr ""
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr "Encontre a configuração de tela ideal"
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
@ -452,21 +447,21 @@ msgstr ""
"Modifique automaticamente a configuração de exibição dos óculos para máxima "
"resolução e melhor dimensionamento quando conectado."
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr "Use a taxa de atualização mais alta"
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr ""
"A taxa de atualização pode afetar o desempenho, desative-a para defini-la "
"manualmente."
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr "Centralize na exposição dos óculos"
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
@ -474,89 +469,81 @@ msgstr ""
"Centralize a janela de visualização no ecrã dos óculos, mesmo que a tela não "
"esteja no meio."
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr "Sempre tela principal"
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr ""
"Defina automaticamente os óculos como a tela primária quando conectados."
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
msgid "Remove virtual displays on disable"
msgstr "Tela curva"
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr ""
"Remove automaticamente as telas virtuais quando o efeito XR está desativado."
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr "Ativar detecção de multitoque"
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr "Permite o duplo toque para recentrar e o triplo toque para recalibrar."
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
msgid "All displays follow mode"
msgstr "Tela curva"
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr "O modo Seguir move todas as telas, e não apenas o que está focado."
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr ""
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr ""
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr "Modo de acompanhamento do movimento"
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr ""
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr "Horizontal"
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr "Vertical"
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr "Inclinação/rolagem"
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr "Antecipação de movimento"
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
@ -567,15 +554,15 @@ msgstr ""
"virtual tenha atrasos, avance ou seja muito instável em relação aos "
"movimentos da cabeça "
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr "Padrão"
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr "Redimensionamento de Texto"
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr ""
"Redimensionar o texto abaixo de 1.0 simulará uma tela de resolução mais alta"
@ -596,27 +583,19 @@ msgstr "Adicionar uma Resolução Personalizada"
msgid "Add"
msgstr "Adicionar"
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr "mais perto"
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr "mais longe"
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr "Mostrar gama completa"
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr "Feito"
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr "Configuração inválida do Breezy Desktop GNOME"
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -637,24 +616,24 @@ msgstr "Solicitar um token"
msgid "Verify token"
msgstr "Verificar token"
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr "Detalhes da Licença"
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr "Nenhum dispositivo conectado"
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr ""
"O Breezy Desktop não conseguiu detectar nenhum dispositivo XR suportado."
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
msgid "Auto-enable XR effect"
msgstr "Efeito XR"
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
@ -662,11 +641,11 @@ msgstr ""
"Ativar automaticamente o efeito Breezy Desktop XR quando os óculos "
"suportados estiverem conectados."
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr "Nenhum driver em execução"
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -686,11 +665,11 @@ msgstr ""
"canal #troubleshooting no Discord.\n"
" "
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr "Extensão do Breezy Desktop GNOME não está pronta"
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
@ -699,11 +678,11 @@ msgstr ""
"e login novamente para usá-la. Caso contrário, siga as instruções de "
"configuração do Breezy GNOME."
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr "Nenhum arquivo de licença foi encontrado"
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -731,7 +710,7 @@ msgstr ""
"indefinidamente, se você escolheu o acesso vitalício).\n"
" "
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr "Tentar Novamente"
@ -755,7 +734,7 @@ msgstr "Menu"
msgid "Some features expire soon"
msgstr "Algumas funcionalidades expirarão em breve"
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr "Ver detalhes"
@ -763,45 +742,14 @@ msgstr "Ver detalhes"
msgid "Productivity features are disabled"
msgstr "As funcionalidades de produtividade estão desabilitadas"
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr "Forçar redefinição"
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr "Sobre o BreezyDesktop"
#~ msgid "Side-by-side mode (gaming)"
#~ msgstr "Modo lado a lado (Jogos)"
#~ msgid "Smooth Follow (gaming)"
#~ msgstr "Acompanhar Suavemente (Jogos)"
#~ msgid "Breezy Desktop (productivity)"
#~ msgstr "Breezy Desktop (produtividade)"
#~ msgid "Gaming"
#~ msgstr "Jogos"
#~ msgid "Productivity"
#~ msgstr "Produtividade"
#~ msgid "fullscreen"
#~ msgstr "Tela cheia"
#~ msgid "Show full range"
#~ msgstr "Mostrar gama completa"
#~ msgid ""
#~ "Unable to add virtual displays on this machine. Wayland and xdg-desktop-"
#~ "portal are required."

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: 2024-08-17 09:39-0700\n"
"Last-Translator: <wayne@xronlinux.com>\n"
"Language-Team: Russian <gnu@d07.ru>\n"
@ -29,40 +29,52 @@ msgstr ""
msgid "This feature is not currently supported for your device."
msgstr "Эта функция в настоящее время не поддерживается для вашего устройства."
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
#, fuzzy
msgid "Set Focused Display Distance"
msgstr "Расстояние дисплея"
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr ""
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
#, fuzzy
msgid "Set All Displays Distance"
msgstr "Расстояние дисплея"
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr ""
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
msgstr ""
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
#, fuzzy
msgid "Focused display"
msgstr "Расстояние дисплея"
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
#, fuzzy
msgid "All displays"
msgstr "Изогнутый дисплей"
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr ""
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr ""
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr ""
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr "Статус платного уровня"
@ -72,7 +84,6 @@ msgid "Feature Availability"
msgstr "Статус функций"
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr "Отключено"
@ -89,13 +100,17 @@ msgstr "Включено"
msgid " ({time_remaining} remaining)"
msgstr " ({time_remaining} осталось)"
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
msgstr ""
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr "Режим «бок о бок» (игровой режим)"
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
msgstr ""
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr "Плавное следование (игровой режим)"
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr "Breezy Desktop (продуктивный режим)"
#: src/licensetierrow.py:24
msgid "Active"
@ -122,6 +137,14 @@ msgstr " для апгрейда"
msgid "Paid through next renewal period"
msgstr "Оплачено до следующего периода"
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr "Игровой режим"
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr "Продуктивный режим"
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr " - ежемесячное обновление"
@ -217,11 +240,11 @@ msgstr "Изогнутый дисплей"
msgid "Switch between flat and curved displays."
msgstr "Переключается между плоскими и изогнутыми дисплеями."
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr ""
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr ""
@ -266,177 +289,149 @@ msgid "Set how close you want displays to appear."
msgstr ""
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr "Изменить"
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr ""
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr ""
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr ""
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr "Порог следования"
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr ""
"Как далеко вы можете отвернуть взгляд, прежде чем дисплей последует за вами."
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
#, fuzzy
msgid "Display angling"
msgstr "Размер дисплея"
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr ""
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr ""
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr ""
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr ""
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr ""
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
#, fuzzy
msgid "Display spacing"
msgstr "Размер дисплея"
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr ""
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr ""
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr ""
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr ""
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr ""
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr ""
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr ""
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr ""
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr ""
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr ""
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr "Сочетания клавиш"
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr ""
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
msgstr ""
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr "Сочетание клавиш для перецентровки дисплея"
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr "Фиксировать виртуальный дисплей в текущем положении."
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
#, fuzzy
msgid "Toggle zoom on focus shortcut"
msgstr "Сочетание клавиш для переключения режима следования"
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
#, fuzzy
msgid "Quickly toggle zoom on focus mode."
msgstr "Быстро переключать режим следования."
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr "Сочетание клавиш для переключения режима следования"
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr "Быстро переключать режим следования."
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr ""
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr ""
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr "Дополнительные настройки"
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr ""
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr ""
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr ""
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr ""
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr "Найти оптимальную конфигурацию дисплея"
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
@ -444,111 +439,103 @@ msgstr ""
"Автоматически изменять конфигурацию дисплея очков для максимального "
"разрешения и лучшей масштабирования при подключении."
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr "Использовать высшую частоту обновления"
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr ""
"Частота обновления может повлиять на производительность, отключите это, "
"чтобы установить ее вручную."
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr ""
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
msgstr ""
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr "Всегда основной дисплей"
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr ""
"Автоматически устанавливать очки в качестве основного дисплея при "
"подключении."
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
#, fuzzy
msgid "Remove virtual displays on disable"
msgstr "Изогнутый дисплей"
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr ""
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr ""
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr ""
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
#, fuzzy
msgid "All displays follow mode"
msgstr "Изогнутый дисплей"
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr ""
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr ""
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr ""
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr ""
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr ""
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr ""
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr ""
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr ""
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr "Прогнозирование движения"
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
@ -559,15 +546,15 @@ msgstr ""
"виртуальный дисплей не отстает от движений вашей головы, не опережает или не "
"очень трясётся."
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr "По умолчанию"
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr ""
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr ""
@ -587,27 +574,19 @@ msgstr ""
msgid "Add"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr ""
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr ""
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr ""
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr "Недействительная настройка Breezy Desktop GNOME"
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -628,34 +607,34 @@ msgstr "Запросить токен"
msgid "Verify token"
msgstr "Проверить токен"
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr "Подробности лицензии"
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr "Устройство не подключено"
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr "Breezy Desktop не смог обнаружить никаких поддерживаемых устройств XR."
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
#, fuzzy
msgid "Auto-enable XR effect"
msgstr "Эффект XR"
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
msgstr ""
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr "Драйвер не запущен"
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -675,11 +654,11 @@ msgstr ""
"новый тред в канале #troubleshooting на Discord.\n"
" "
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr "Расширение Breezy Desktop GNOME не готово"
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
@ -688,11 +667,11 @@ msgstr ""
"снова войти, чтобы использовать её. В противном случае, пожалуйста, следуйте "
"инструкциям по настройке Breezy GNOME."
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr "Файл лицензии не найден"
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -720,7 +699,7 @@ msgstr ""
"если вы выбрали пожизненный доступ).\n"
" "
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr "Попробовать еще раз"
@ -744,7 +723,7 @@ msgstr "Меню"
msgid "Some features expire soon"
msgstr "Некоторые функции скоро истекут"
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr "Просмотреть детали"
@ -752,39 +731,14 @@ msgstr "Просмотреть детали"
msgid "Productivity features are disabled"
msgstr "Функции повышения производительности отключены"
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr "Сброс"
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr "О BreezyDesktop"
#~ msgid "Side-by-side mode (gaming)"
#~ msgstr "Режим «бок о бок» (игровой режим)"
#~ msgid "Smooth Follow (gaming)"
#~ msgstr "Плавное следование (игровой режим)"
#~ msgid "Breezy Desktop (productivity)"
#~ msgstr "Breezy Desktop (продуктивный режим)"
#~ msgid "Gaming"
#~ msgstr "Игровой режим"
#~ msgid "Productivity"
#~ msgstr "Продуктивный режим"
#~ msgid "Fast SBS mode switching"
#~ msgstr "Быстрое переключение режима SBS"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: 2024-08-16 10:31-0700\n"
"Last-Translator: <wayne@xronlinux.com>\n"
"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
@ -29,40 +29,52 @@ msgstr ""
msgid "This feature is not currently supported for your device."
msgstr "Din enhet stöder inte den här funktionen för tillfället."
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
#, fuzzy
msgid "Set Focused Display Distance"
msgstr "Avstånd till skärmen"
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr ""
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
#, fuzzy
msgid "Set All Displays Distance"
msgstr "Avstånd till skärmen"
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr ""
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
msgstr ""
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
#, fuzzy
msgid "Focused display"
msgstr "Avstånd till skärmen"
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
#, fuzzy
msgid "All displays"
msgstr "Böjd skärm"
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr ""
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr ""
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr ""
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr "Betalningsstatus"
@ -72,7 +84,6 @@ msgid "Feature Availability"
msgstr "Funktions tillgänglighet"
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr "Inaktiverad"
@ -89,13 +100,17 @@ msgstr "Aktiverad"
msgid " ({time_remaining} remaining)"
msgstr " ({time_remaining} kvar)"
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
msgstr ""
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr "Side-by-side läge (spel)"
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
msgstr ""
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr "Smidig följning (spel)"
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr "Breezy Desktop (produktivitet)"
#: src/licensetierrow.py:24
msgid "Active"
@ -122,6 +137,14 @@ msgstr " att uppgradera"
msgid "Paid through next renewal period"
msgstr "Betald genom nästa förnyelseperiod"
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr "Spel"
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr "Produktivitet"
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr " - förnyar månadsvis"
@ -217,11 +240,11 @@ msgstr "Böjd skärm"
msgid "Switch between flat and curved displays."
msgstr "Växla mellan platt eller böjd skärm."
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr ""
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr ""
@ -266,112 +289,100 @@ msgid "Set how close you want displays to appear."
msgstr ""
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr "Ändra"
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr ""
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr ""
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr ""
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr "Automatisk följtröskel"
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr "Huvudrörelsetröskel för automatisk efterföljning."
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
#, fuzzy
msgid "Display angling"
msgstr "Skärmens storlek"
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr ""
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr ""
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr ""
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr ""
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr ""
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
#, fuzzy
msgid "Display spacing"
msgstr "Skärmens storlek"
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr ""
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr ""
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr ""
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr ""
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr ""
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr ""
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr ""
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr ""
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr ""
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr ""
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr "Tangentbordsgenvägar"
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr "XR-Effekt genväg på/av"
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
@ -379,65 +390,49 @@ msgstr ""
"Skifta snabbt mellan att slå av eller på XR-Effekt. Du kan behöva slå på den "
"manuellt en gång för att genvägen ska fungera."
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr "Om-centrering tangentbordsgenväg"
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr "Fäst den virtuella skärmen i den nuvarande positionen."
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
#, fuzzy
msgid "Toggle zoom on focus shortcut"
msgstr "Växla följ läge kort"
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
#, fuzzy
msgid "Quickly toggle zoom on focus mode."
msgstr "Växla snabbt följ läge."
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr "Växla följ läge kort"
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr "Växla snabbt följ läge."
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr ""
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr ""
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr "Avancerade inställningar"
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr ""
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr ""
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr ""
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr ""
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr "Hitta optimal konfiguration till skärmen"
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
@ -445,109 +440,101 @@ msgstr ""
"Ändrar automatisk glasögonens skärmkonfiguration för maximal upplösning och "
"bästa skälning när den är ansluten."
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr "Använd högsta uppdateringsfrekvens"
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr ""
"Uppdateringsfrekvens kan påverka prestanda, inaktivera detta för att ställa "
"in det manuellt."
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr ""
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
msgstr ""
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr "Alltid primär skärm"
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr "Ställer automatisk glasögon som primär skärm när den är ansluten."
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
#, fuzzy
msgid "Remove virtual displays on disable"
msgstr "Böjd skärm"
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr ""
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr ""
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr ""
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
#, fuzzy
msgid "All displays follow mode"
msgstr "Böjd skärm"
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr ""
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr ""
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr ""
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr ""
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr ""
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr ""
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr ""
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr ""
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr "Rörs förväntning"
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
@ -556,15 +543,15 @@ msgstr ""
"Motverkar ingångsfördröjning genom förutsägelse av huvudrörelser.Behåll "
"standardinställningen om inte skärmen skakar mycket eller rörsig konstigt."
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr "Standard"
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr "Textskalning"
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr "Textskalning under 1.0 kommer att simulera en högre skärmupplösning"
@ -584,27 +571,19 @@ msgstr ""
msgid "Add"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr ""
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr ""
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr ""
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr "Breezy Desktop GNOME ogiltig inställning"
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -624,23 +603,23 @@ msgstr "Begär en token"
msgid "Verify token"
msgstr "Verifiera token"
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr "Licensdetaljer"
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr "Inget enhet ansluten"
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr "Breezy Desktop kunde inte upptäcka enheter som stöder XR."
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
msgid "Auto-enable XR effect"
msgstr "Autoaktivering av XR-effekt"
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
@ -648,11 +627,11 @@ msgstr ""
"Aktivera Breezy Desktop XR-effekten automatiskt när glasögon som stöds är "
"anslutna."
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr "Inget drivrutin köres"
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -672,11 +651,11 @@ msgstr ""
"tråd i #troubleshooting kanal på Discord.\n"
" "
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr "Breezy Desktop GNOME tillägg inte redo"
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
@ -685,11 +664,11 @@ msgstr ""
"använda den. Annars, var god att följa Breezy GNOME inställning "
"instruktioner."
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr "Inget licens fil hittades"
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -717,7 +696,7 @@ msgstr ""
"valt livstidsåtkomst).\n"
" "
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr "Försök igen"
@ -741,7 +720,7 @@ msgstr "Meny"
msgid "Some features expire soon"
msgstr "Vissa funktioner upphör snart"
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr "Se detaljer"
@ -749,39 +728,14 @@ msgstr "Se detaljer"
msgid "Productivity features are disabled"
msgstr "Produktivitets funktioner är inaktiverade"
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr "Tvinga Reset"
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr "Om BreezyDesktop"
#~ msgid "Side-by-side mode (gaming)"
#~ msgstr "Side-by-side läge (spel)"
#~ msgid "Smooth Follow (gaming)"
#~ msgstr "Smidig följning (spel)"
#~ msgid "Breezy Desktop (productivity)"
#~ msgstr "Breezy Desktop (produktivitet)"
#~ msgid "Gaming"
#~ msgstr "Spel"
#~ msgid "Productivity"
#~ msgstr "Produktivitet"
#~ msgid "Fast SBS mode switching"
#~ msgstr "Snabb SBS läge växling"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: 2024-08-17 10:08-0700\n"
"Last-Translator: <wayne@xronlinux.com>\n"
"Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
@ -28,40 +28,52 @@ msgstr "Переключає окуляри в режим «бок о бок»
msgid "This feature is not currently supported for your device."
msgstr "Ця функція наразі не підтримується на вашому пристрої."
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
#, fuzzy
msgid "Set Focused Display Distance"
msgstr "Відстань дисплея"
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr ""
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
#, fuzzy
msgid "Set All Displays Distance"
msgstr "Відстань дисплея"
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr ""
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
msgstr ""
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
#, fuzzy
msgid "Focused display"
msgstr "Відстань дисплея"
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
#, fuzzy
msgid "All displays"
msgstr "Викривлений дисплей"
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr ""
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr ""
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr ""
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr "Статус платного рівня"
@ -71,7 +83,6 @@ msgid "Feature Availability"
msgstr "Статус функцій"
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr "Вимкнено"
@ -88,13 +99,17 @@ msgstr "Увімкнено"
msgid " ({time_remaining} remaining)"
msgstr "({time_remaining} залишилося)"
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
msgstr ""
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr "Режим «бок о бок» (ігровий режим)"
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
msgstr ""
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr "Плавне слідування (ігровий режим)"
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr "Breezy Desktop (продуктивний прежим)"
#: src/licensetierrow.py:24
msgid "Active"
@ -121,6 +136,14 @@ msgstr " для удосконалювання"
msgid "Paid through next renewal period"
msgstr "Оплата до наступного періоду"
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr "Ігровий режим"
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr "Продуктивний режим"
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr " - щомісячне продовження"
@ -216,11 +239,11 @@ msgstr "Викривлений дисплей"
msgid "Switch between flat and curved displays."
msgstr "Переключается між плоскими і викривленими дисплеями."
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr ""
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr ""
@ -265,178 +288,150 @@ msgid "Set how close you want displays to appear."
msgstr ""
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr "Змінити"
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr ""
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr ""
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr ""
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr "Поріг слідування"
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr ""
"Як далеко ви можете відвернути ваш взор, перш ніж дисплей почне слідувати за "
"вами."
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
#, fuzzy
msgid "Display angling"
msgstr "Розмір дисплея"
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr ""
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr ""
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr ""
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr ""
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr ""
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
#, fuzzy
msgid "Display spacing"
msgstr "Розмір дисплея"
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr ""
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr ""
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr ""
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr ""
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr ""
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr ""
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr ""
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr ""
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr ""
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr ""
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr "Сполучення клавіш"
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr ""
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
msgstr ""
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr "Сполучення клавіш для центрування дисплея"
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr "Фіксувати віртуальний дисплей у поточній позиції."
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
#, fuzzy
msgid "Toggle zoom on focus shortcut"
msgstr "Сполучення клавіш для перемикання режиму слідування"
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
#, fuzzy
msgid "Quickly toggle zoom on focus mode."
msgstr "Швидко перемикати режим слідування."
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr "Сполучення клавіш для перемикання режиму слідування"
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr "Швидко перемикати режим слідування."
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr ""
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr ""
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr "Додаткові налаштування"
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr ""
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr ""
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr ""
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr ""
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr "Знайти оптимальну конфігурацію дисплея"
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
@ -444,109 +439,101 @@ msgstr ""
"Автоматично змінює конфігурацію дисплея окулярів для максимальної роздільної "
"здатності і найкращого масштабування при підключенні."
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr "Використовувати найвищу частоту оновлення"
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr ""
"Частота оновлення може вплинути на продуктивність, вимкніть це, щоб "
"встановити її вручну."
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr ""
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
msgstr ""
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr "Завжди основний дисплей"
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr "Автоматично встановлює окуляри як основний дисплей при підключенні."
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
#, fuzzy
msgid "Remove virtual displays on disable"
msgstr "Викривлений дисплей"
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr ""
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr ""
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr ""
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
#, fuzzy
msgid "All displays follow mode"
msgstr "Викривлений дисплей"
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr ""
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr ""
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr ""
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr ""
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr ""
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr ""
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr ""
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr ""
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr "Прогнозування руху"
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
@ -557,15 +544,15 @@ msgstr ""
"віртуальний дисплей відстає від рухів вашої голови, випереджає або дуже "
"тремтить."
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr "За замовчуванням"
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr ""
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr ""
@ -585,27 +572,19 @@ msgstr ""
msgid "Add"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr ""
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr ""
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr ""
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr "Невірна настройка Breezy Desktop GNOME"
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -625,34 +604,34 @@ msgstr "Запитати токен"
msgid "Verify token"
msgstr "Перевірити токен"
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr "Деталі ліцензії"
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr "Жоден пристрій не підключено"
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr "Breezy Desktop не зміг виявити жодного підтримуваного XR пристрою."
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
#, fuzzy
msgid "Auto-enable XR effect"
msgstr "Ефект XR"
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
msgstr ""
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr "Жоден драйвер не запущений"
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -672,11 +651,11 @@ msgstr ""
"каналі #troubleshooting на Discord.\n"
" "
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr "Розширення Breezy Desktop GNOME не готове"
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
@ -685,11 +664,11 @@ msgstr ""
"знову увійти, щоб використовувати його. В іншому випадку, будь ласка, "
"дотримуйтесь інструкцій з налаштування Breezy GNOME."
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr "Жоден файл ліцензії не знайдено"
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -717,7 +696,7 @@ msgstr ""
"якщо ви обрали довічний доступ).\n"
" "
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr "Спробуйте ще раз"
@ -741,7 +720,7 @@ msgstr "Меню"
msgid "Some features expire soon"
msgstr "Деякі функції закінчуються незабаром"
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr "Переглянути деталі"
@ -749,39 +728,14 @@ msgstr "Переглянути деталі"
msgid "Productivity features are disabled"
msgstr "Функції продуктивного режиму відключені"
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr "Скинути"
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr "Про BreezyDesktop"
#~ msgid "Side-by-side mode (gaming)"
#~ msgstr "Режим «бок о бок» (ігровий режим)"
#~ msgid "Smooth Follow (gaming)"
#~ msgstr "Плавне слідування (ігровий режим)"
#~ msgid "Breezy Desktop (productivity)"
#~ msgstr "Breezy Desktop (продуктивний прежим)"
#~ msgid "Gaming"
#~ msgstr "Ігровий режим"
#~ msgid "Productivity"
#~ msgstr "Продуктивний режим"
#~ msgid "Fast SBS mode switching"
#~ msgstr "Швидке перемикання режиму SBS"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-03 12:40-0800\n"
"POT-Creation-Date: 2025-10-03 16:04-0700\n"
"PO-Revision-Date: 2024-08-02 20:55-0700\n"
"Last-Translator: <wayne@xronlinux.com>\n"
"Language-Team: Chinese (simplified) <i18n-zh@googlegroups.com>\n"
@ -26,36 +26,48 @@ msgstr "切换到并排模式,并将显示宽度翻倍。"
msgid "This feature is not currently supported for your device."
msgstr "您的设备目前不支援此功能。"
#: src/connecteddevice.py:160
#: src/connecteddevice.py:151
msgid "Set Focused Display Distance"
msgstr "设定注视中的屏幕的距离"
#: src/connecteddevice.py:161
#: src/connecteddevice.py:152
msgid "Use a closer value so the display zooms in when you look at it."
msgstr "近的数值会将您所看向的屏幕放大"
#: src/connecteddevice.py:168
#: src/connecteddevice.py:159
msgid "Set All Displays Distance"
msgstr "设定所有屏幕的距离"
#: src/connecteddevice.py:169
#: src/connecteddevice.py:160
msgid "Use a farther value so the displays are zoomed out when you look away."
msgstr "远的数值会将您所看向的屏幕缩小"
#: src/connecteddevice.py:309
#: src/connecteddevice.py:283
msgid ""
"Unable to add virtual displays on this machine. Wayland, xdg-desktop-portal, "
"and the pipewire GStreamer plugin are required."
msgstr "无法增加模拟显示。需要安装xdg-desktop-portal和Wayland"
#: src/connecteddevice.py:343
#: src/connecteddevice.py:317
msgid "Focused display"
msgstr "注视中的屏幕"
#: src/connecteddevice.py:349
#: src/connecteddevice.py:323
msgid "All displays"
msgstr "所有的屏幕"
#: src/displaydistancedialogcontent.py:41
msgid "closer"
msgstr "近"
#: src/displaydistancedialogcontent.py:45
msgid "fullscreen"
msgstr "全屏"
#: src/displaydistancedialogcontent.py:48
msgid "farther"
msgstr "远"
#: src/licensedialogcontent.py:63
msgid "Paid Tier Status"
msgstr "订阅状态"
@ -65,7 +77,6 @@ msgid "Feature Availability"
msgstr "功能状态"
#: src/licensefeaturerow.py:15 src/shortcutdialog.py:104
#: src/gtk/connected-device.ui:786
msgid "Disabled"
msgstr "已禁用"
@ -82,13 +93,17 @@ msgstr "已启用"
msgid " ({time_remaining} remaining)"
msgstr " (剩下 {time_remaining})"
#: src/licensefeaturerow.py:30 src/licensetierrow.py:56
msgid "Productivity Basic"
msgstr ""
#: src/licensefeaturerow.py:30
msgid "Side-by-side mode (gaming)"
msgstr "并排模式(游戏)"
#: src/licensefeaturerow.py:31 src/licensetierrow.py:57
msgid "Productivity Pro"
msgstr ""
#: src/licensefeaturerow.py:31
msgid "Smooth Follow (gaming)"
msgstr "平滑跟随(游戏)"
#: src/licensefeaturerow.py:32
msgid "Breezy Desktop (productivity)"
msgstr "Breezy Desktop (生产力)"
#: src/licensetierrow.py:24
msgid "Active"
@ -115,6 +130,14 @@ msgstr "升级"
msgid "Paid through next renewal period"
msgstr "已支付至下个续订期"
#: src/licensetierrow.py:56
msgid "Gaming"
msgstr "游戏"
#: src/licensetierrow.py:57
msgid "Productivity"
msgstr "生产力"
#: src/licensetierrow.py:63
msgid " - renewing monthly"
msgstr " - 每月续订"
@ -211,11 +234,11 @@ msgstr "曲面显示"
msgid "Switch between flat and curved displays."
msgstr "平板和曲面显示模式之间切换。"
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:36
#: src/gtk/connected-device.ui:93 src/gtk/no-device.ui:34
msgid "Disable physical displays"
msgstr "将所有具体屏幕关闭"
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:37
#: src/gtk/connected-device.ui:94 src/gtk/no-device.ui:35
msgid ""
"Automatically disable all physical displays when the XR effect is enabled."
msgstr "XR效果开启时将所有具体屏幕自动关闭"
@ -257,276 +280,240 @@ msgid "Set how close you want displays to appear."
msgstr "设定您所希望屏幕离你的距离有多近"
#: src/gtk/connected-device.ui:200 src/gtk/connected-device.ui:221
#: src/gtk/connected-device.ui:443 src/gtk/connected-device.ui:472
#: src/gtk/connected-device.ui:501 src/gtk/connected-device.ui:530
#: src/gtk/connected-device.ui:559
#: src/gtk/connected-device.ui:413 src/gtk/connected-device.ui:442
#: src/gtk/connected-device.ui:471 src/gtk/connected-device.ui:500
#: src/gtk/connected-device.ui:529
msgid "Change"
msgstr "更改"
#: src/gtk/connected-device.ui:234
msgid "Display size"
msgstr ""
#: src/gtk/connected-device.ui:235
msgid "Set how large you want the display to appear."
msgstr ""
#: src/gtk/connected-device.ui:254
msgid "full"
msgstr ""
#: src/gtk/connected-device.ui:264
msgid "Follow threshold"
msgstr "跟随触发值"
#: src/gtk/connected-device.ui:265
#: src/gtk/connected-device.ui:235
msgid "How far away you can look before the display follows."
msgstr "显示内容开始进行跟随模式前您可以看得多远。"
#: src/gtk/connected-device.ui:288
#: src/gtk/connected-device.ui:258
msgid "Display angling"
msgstr "屏幕角度"
#: src/gtk/connected-device.ui:289
#: src/gtk/connected-device.ui:259
msgid ""
"When there are multiple displays, choose how they should angle towards you."
msgstr "有多屏幕时,选择屏幕向您倾斜的角度"
#: src/gtk/connected-device.ui:303
#: src/gtk/connected-device.ui:273
msgid "Automatic"
msgstr "自动"
#: src/gtk/connected-device.ui:304
#: src/gtk/connected-device.ui:274
msgid "Side-angled"
msgstr "侧边弯曲"
#: src/gtk/connected-device.ui:305
#: src/gtk/connected-device.ui:275
msgid "Top-angled"
msgstr "上下弯曲"
#: src/gtk/connected-device.ui:306
#: src/gtk/connected-device.ui:276
msgid "Flat"
msgstr "平面"
#: src/gtk/connected-device.ui:316
#: src/gtk/connected-device.ui:286
msgid "Display spacing"
msgstr "屏幕之间缝隙的距差"
#: src/gtk/connected-device.ui:317
#: src/gtk/connected-device.ui:287
msgid "Put empty space between displays, when there are multiple."
msgstr "把多屏幕之间插入一个空间"
#: src/gtk/connected-device.ui:347
#: src/gtk/connected-device.ui:317
msgid "Viewport horizontal offset"
msgstr "眼镜视口特定水平偏移"
#: src/gtk/connected-device.ui:348
#: src/gtk/connected-device.ui:318
msgid "Move the viewport to the left or right of its default position."
msgstr "将眼镜视口从默认位置左右移动"
#: src/gtk/connected-device.ui:365
#: src/gtk/connected-device.ui:335
msgid "left"
msgstr "左"
#: src/gtk/connected-device.ui:367 src/gtk/connected-device.ui:397
#: src/gtk/connected-device.ui:337 src/gtk/connected-device.ui:367
msgid "center"
msgstr "中"
#: src/gtk/connected-device.ui:369
#: src/gtk/connected-device.ui:339
msgid "right"
msgstr "右"
#: src/gtk/connected-device.ui:377
#: src/gtk/connected-device.ui:347
msgid "Viewport vertical offset"
msgstr "眼镜视口特定垂直偏移"
#: src/gtk/connected-device.ui:378
#: src/gtk/connected-device.ui:348
msgid "Move the viewport up or down from its default position."
msgstr "将眼镜视口从默认位置上下移动"
#: src/gtk/connected-device.ui:395
#: src/gtk/connected-device.ui:365
msgid "down"
msgstr "下"
#: src/gtk/connected-device.ui:399
#: src/gtk/connected-device.ui:369
msgid "up"
msgstr "上"
#: src/gtk/connected-device.ui:414 src/gtk/connected-device.ui:420
#: src/gtk/connected-device.ui:384 src/gtk/connected-device.ui:390
msgid "Keyboard Shortcuts"
msgstr "键盘快捷键"
#: src/gtk/connected-device.ui:423
#: src/gtk/connected-device.ui:393
msgid "XR Effect on/off shortcut"
msgstr "XR效果 开/关 快捷键"
#: src/gtk/connected-device.ui:424
#: src/gtk/connected-device.ui:394
msgid ""
"Quickly enable or disable the XR Effect. You may need to enable the effect "
"manually once in order to enable the shortcut."
msgstr "快速启用或禁用 XR 效果。您可能需要先手动启用一次该效果,才能设此快捷键"
#: src/gtk/connected-device.ui:452
#: src/gtk/connected-device.ui:422
msgid "Re-center display shortcut"
msgstr "重新居中显示快捷键"
#: src/gtk/connected-device.ui:453
#: src/gtk/connected-device.ui:423
msgid "Pin the virtual display to the current position."
msgstr "将虚拟显示固定在当前位置。"
#: src/gtk/connected-device.ui:481
#: src/gtk/connected-device.ui:451
msgid "Toggle zoom on focus shortcut"
msgstr "切换注视自动放大模式快捷键"
#: src/gtk/connected-device.ui:482
#: src/gtk/connected-device.ui:452
msgid "Quickly toggle zoom on focus mode."
msgstr "快速地切换注视自动放大模式。"
#: src/gtk/connected-device.ui:510
#: src/gtk/connected-device.ui:480
msgid "Toggle follow mode shortcut"
msgstr "切换跟随模式快捷键"
#: src/gtk/connected-device.ui:511
#: src/gtk/connected-device.ui:481
msgid "Quickly toggle follow mode."
msgstr "快速切换跟随模式。"
#: src/gtk/connected-device.ui:539
#: src/gtk/connected-device.ui:509
msgid "Summon mouse cursor shortcut"
msgstr ""
#: src/gtk/connected-device.ui:540
#: src/gtk/connected-device.ui:510
msgid "Bring the mouse cursor to the center of the focused display."
msgstr ""
#: src/gtk/connected-device.ui:575 src/gtk/connected-device.ui:585
#: src/gtk/connected-device.ui:545 src/gtk/connected-device.ui:555
msgid "Advanced Settings"
msgstr "高级设定"
#: src/gtk/connected-device.ui:589
msgid "Units"
msgstr ""
#: src/gtk/connected-device.ui:590
msgid "Choose measurement units for size and distance displays."
msgstr ""
#: src/gtk/connected-device.ui:605
msgid "Centimeters"
msgstr ""
#: src/gtk/connected-device.ui:606
msgid "Inches"
msgstr ""
#: src/gtk/connected-device.ui:618
#: src/gtk/connected-device.ui:559
msgid "Find optimal display config"
msgstr "寻找最佳显示设定"
#: src/gtk/connected-device.ui:619
#: src/gtk/connected-device.ui:560
msgid ""
"Automatically modify the glasses display configuration for maximum "
"resolution and best scaling when plugged in."
msgstr "连接时,可以自动修改眼镜显示设定以表现出最大解析度和最佳的对比。"
#: src/gtk/connected-device.ui:629
#: src/gtk/connected-device.ui:570
msgid "Use highest refresh rate"
msgstr "使用最高刷新率"
#: src/gtk/connected-device.ui:630
#: src/gtk/connected-device.ui:571
msgid "Refresh rate may affect performance, disable this to set it manually."
msgstr "刷新率可能会影响性能,禁用此功能即可手动设置。"
#: src/gtk/connected-device.ui:640
#: src/gtk/connected-device.ui:581
msgid "Center on glasses' display"
msgstr "视口眼镜屏幕固定"
#: src/gtk/connected-device.ui:641
#: src/gtk/connected-device.ui:582
msgid ""
"Center the viewport on the glasses' display, even if the display is not in "
"the middle."
msgstr "将眼镜视口对齐眼镜的主要屏幕, 即便此屏幕不在正中间"
#: src/gtk/connected-device.ui:651
#: src/gtk/connected-device.ui:592
msgid "Always primary display"
msgstr "每次设置为主要显示"
#: src/gtk/connected-device.ui:652
#: src/gtk/connected-device.ui:593
msgid "Automatically set the glasses as the primary display when plugged in."
msgstr "连接时,自动将眼镜设置为主要显示。"
#: src/gtk/connected-device.ui:662
#: src/gtk/connected-device.ui:603
msgid "Remove virtual displays on disable"
msgstr "自动模拟屏幕删除"
#: src/gtk/connected-device.ui:663
#: src/gtk/connected-device.ui:604
msgid "Automatically remove virtual displays when the XR effect is disabled."
msgstr "XR效果关闭时自动删除所有模拟屏幕"
#: src/gtk/connected-device.ui:673
#: src/gtk/connected-device.ui:614
msgid "Enable multi-tap detection"
msgstr "开启多点触控检测"
#: src/gtk/connected-device.ui:674
#: src/gtk/connected-device.ui:615
msgid "Enables double-tap to recenter and triple-tap to recalibrate."
msgstr "打开双击重新定位和三击重新校准手势"
#: src/gtk/connected-device.ui:684
#: src/gtk/connected-device.ui:625
msgid "All displays follow mode"
msgstr "全屏幕跟随模式"
#: src/gtk/connected-device.ui:685
#: src/gtk/connected-device.ui:626
msgid "Follow mode moves all displays, not just the focused one."
msgstr "让跟随模式移动所有的屏幕而不只是注视中的屏幕"
#: src/gtk/connected-device.ui:701
#: src/gtk/connected-device.ui:642
msgid "Neck-saver horizontal multiplier"
msgstr ""
#: src/gtk/connected-device.ui:702
#: src/gtk/connected-device.ui:643
msgid "Higher values require smaller horizontal head movements."
msgstr ""
#: src/gtk/connected-device.ui:734
#: src/gtk/connected-device.ui:675
msgid "Neck-saver vertical multiplier"
msgstr ""
#: src/gtk/connected-device.ui:735
#: src/gtk/connected-device.ui:676
msgid "Higher values require smaller vertical head movements."
msgstr ""
#: src/gtk/connected-device.ui:767
msgid "Dead-zone threshold (degrees)"
msgstr ""
#: src/gtk/connected-device.ui:768
msgid "Stabilize movements below this angle."
msgstr ""
#: src/gtk/connected-device.ui:799
#: src/gtk/connected-device.ui:708
msgid "Follow mode movement tracking"
msgstr "跟随模式感应"
#: src/gtk/connected-device.ui:800
#: src/gtk/connected-device.ui:709
msgid "Choose which movements should be tracked in follow mode."
msgstr "选择那一些动作会被感应到"
#: src/gtk/connected-device.ui:815
#: src/gtk/connected-device.ui:724
msgid "Horizontal"
msgstr "水平动作"
#: src/gtk/connected-device.ui:835
#: src/gtk/connected-device.ui:744
msgid "Vertical"
msgstr "垂直动作"
#: src/gtk/connected-device.ui:855
#: src/gtk/connected-device.ui:764
msgid "Tilt/roll"
msgstr "倾斜及滚转动作"
#: src/gtk/connected-device.ui:873
#: src/gtk/connected-device.ui:782
msgid "Movement look-ahead"
msgstr "移动预测"
#: src/gtk/connected-device.ui:874
#: src/gtk/connected-device.ui:783
msgid ""
"Counteracts input lag by predicting head-tracking position ahead of render "
"time. Stick with default unless virtual display drags behind your head "
@ -535,15 +522,15 @@ msgstr ""
"透过预测头部追踪位置,提前于渲染时间进行预测来抵消输入延迟。除非虚拟显示滞后"
"于头部,提前跳动或非常抖动,请尽量使用默认设置。"
#: src/gtk/connected-device.ui:892
#: src/gtk/connected-device.ui:801
msgid "Default"
msgstr "默认"
#: src/gtk/connected-device.ui:904
#: src/gtk/connected-device.ui:813
msgid "Text Scaling"
msgstr "字体大小比例"
#: src/gtk/connected-device.ui:905
#: src/gtk/connected-device.ui:814
msgid "Scaling text below 1.0 will simulate a higher resolution display"
msgstr "字体缩放小于1.0,将模拟解析度更高的显示效果"
@ -563,27 +550,19 @@ msgstr "增加客制化解析度"
msgid "Add"
msgstr "增加"
#: src/gtk/display-distance-dialog-content.ui:35
msgid "closer"
msgstr "近"
#: src/gtk/display-distance-dialog-content.ui:36
msgid "default"
msgstr ""
#: src/gtk/display-distance-dialog-content.ui:37
msgid "farther"
msgstr "远"
#: src/gtk/display-distance-dialog.ui:9
msgid "Show full range"
msgstr "显示全范围"
#: src/gtk/display-distance-dialog.ui:18
msgid "Done"
msgstr "完成"
#: src/gtk/failed-verification.ui:15
#: src/gtk/failed-verification.ui:13
msgid "Breezy Desktop GNOME invalid setup"
msgstr "Breezy Desktop GNOME 无效设置"
#: src/gtk/failed-verification.ui:16
#: src/gtk/failed-verification.ui:14
msgid ""
"Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup "
"script. Report this issue if it persists."
@ -603,33 +582,33 @@ msgstr "申请令牌"
msgid "Verify token"
msgstr "令牌验证"
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:139
#: src/gtk/license-dialog.ui:5 src/gtk/window.ui:91
msgid "License Details"
msgstr "许可证详细信息"
#: src/gtk/no-device.ui:15
#: src/gtk/no-device.ui:13
msgid "No device connected"
msgstr "未连接设备"
#: src/gtk/no-device.ui:16
#: src/gtk/no-device.ui:14
msgid "Breezy Desktop was unable to detect any supported XR devices."
msgstr "Breezy Desktop 无法检测到任何支援的 XR 设备。"
#: src/gtk/no-device.ui:25
#: src/gtk/no-device.ui:23
msgid "Auto-enable XR effect"
msgstr "自动启动XR效果"
#: src/gtk/no-device.ui:26
#: src/gtk/no-device.ui:24
msgid ""
"Automatically enable the Breezy Desktop XR effect when supported glasses are "
"connected."
msgstr "当支援的设备已连接将BREEZY DESKTOP XR效果自动启动"
#: src/gtk/no-driver.ui:15
#: src/gtk/no-driver.ui:13
msgid "No driver running"
msgstr "未运行驱动程序"
#: src/gtk/no-driver.ui:16
#: src/gtk/no-driver.ui:14
msgid ""
"\n"
" If you installed via AUR, make sure you ran the recommended post-"
@ -648,11 +627,11 @@ msgstr ""
"主题。\n"
" "
#: src/gtk/no-extension.ui:15
#: src/gtk/no-extension.ui:13
msgid "Breezy Desktop GNOME extension not ready"
msgstr "Breezy Desktop GNOME 扩展尚未启用"
#: src/gtk/no-extension.ui:16
#: src/gtk/no-extension.ui:14
msgid ""
"If you have just run the setup, then you may need to log out and back in to "
"use it. Otherwise, please follow the Breezy GNOME setup instructions."
@ -660,11 +639,11 @@ msgstr ""
"如果您刚运行设置,则可能需要注销并重新登录才能使用它。否则,请按照 Breezy "
"GNOME 设置说明进行操作。"
#: src/gtk/no-license.ui:15
#: src/gtk/no-license.ui:13
msgid "No license file was found"
msgstr "未找到许可证文件"
#: src/gtk/no-license.ui:16
#: src/gtk/no-license.ui:14
msgid ""
"\n"
" The first time you use Breezy Desktop, an internet connection is "
@ -689,7 +668,7 @@ msgstr ""
"过期,如果您选择了终身访问,则可以无限期使用)。\n"
" "
#: src/gtk/no-license.ui:29
#: src/gtk/no-license.ui:27
msgid "Try Again"
msgstr "重新尝试"
@ -713,7 +692,7 @@ msgstr "菜单"
msgid "Some features expire soon"
msgstr "某些功能即将过期"
#: src/gtk/window.ui:51 src/gtk/window.ui:76 src/gtk/window.ui:102
#: src/gtk/window.ui:51 src/gtk/window.ui:76
msgid "View details"
msgstr "查看详细信息"
@ -721,45 +700,14 @@ msgstr "查看详细信息"
msgid "Productivity features are disabled"
msgstr "生产模式功能被禁用"
#: src/gtk/window.ui:93
msgid ""
"Productivity Pro license is inactive — 6DoF features will be unavailable"
msgstr ""
#: src/gtk/window.ui:119
msgid ""
"A newer version is available. To update, rerun the breezy_gnome_setup script."
msgstr ""
#: src/gtk/window.ui:143
#: src/gtk/window.ui:95
msgid "Force Reset"
msgstr "强制重置"
#: src/gtk/window.ui:147
#: src/gtk/window.ui:99
msgid "About BreezyDesktop"
msgstr "关于 Breezy Desktop"
#~ msgid "Side-by-side mode (gaming)"
#~ msgstr "并排模式(游戏)"
#~ msgid "Smooth Follow (gaming)"
#~ msgstr "平滑跟随(游戏)"
#~ msgid "Breezy Desktop (productivity)"
#~ msgstr "Breezy Desktop (生产力)"
#~ msgid "Gaming"
#~ msgstr "游戏"
#~ msgid "Productivity"
#~ msgstr "生产力"
#~ msgid "fullscreen"
#~ msgstr "全屏"
#~ msgid "Show full range"
#~ msgstr "显示全范围"
#~ msgid ""
#~ "Unable to add virtual displays on this machine. Wayland and xdg-desktop-"
#~ "portal are required."

View File

@ -1,5 +1,6 @@
import sys
from gi.repository import GObject, GLib
import threading
from gi.repository import GObject
from .xrdriveripc import XRDriverIPC
class ConfigManager(GObject.GObject):
@ -9,13 +10,6 @@ class ConfigManager(GObject.GObject):
'follow-track-roll': (bool, 'Follow Track Roll', 'Whether to follow on the roll axis', False, GObject.ParamFlags.READWRITE),
'follow-track-pitch': (bool, 'Follow Track Pitch', 'Whether to follow on the pitch axis', True, GObject.ParamFlags.READWRITE),
'follow-track-yaw': (bool, 'Follow Track Yaw', 'Whether to follow on the yaw axis', True, GObject.ParamFlags.READWRITE),
'dead-zone-threshold-deg': (
float,
'Dead Zone Threshold (deg)',
'IMU dead-zone threshold in degrees (0.0 disables)',
0.0, 5.0, 0.0,
GObject.ParamFlags.READWRITE,
),
'neck-saver-horizontal-multiplier': (
float,
'Neck Saver Horizontal Multiplier',
@ -55,19 +49,13 @@ class ConfigManager(GObject.GObject):
self.follow_track_roll = None
self.follow_track_pitch = None
self.follow_track_yaw = None
self.dead_zone_threshold_deg = None
self.neck_saver_horizontal_multiplier = None
self.neck_saver_vertical_multiplier = None
self._running = True
self._refresh_source_id = None
self._refresh_config()
self._refresh_source_id = GLib.timeout_add_seconds(1, self._refresh_config)
def stop(self):
self._running = False
if self._refresh_source_id is not None:
GLib.source_remove(self._refresh_source_id)
self._refresh_source_id = None
def _refresh_config(self):
self.config = self.ipc.retrieve_config(False)
@ -86,16 +74,13 @@ class ConfigManager(GObject.GObject):
if self.config['smooth_follow_track_yaw'] != self.follow_track_yaw:
self.set_property('follow-track-yaw', self.config['smooth_follow_track_yaw'])
if self.config['dead_zone_threshold_deg'] != self.dead_zone_threshold_deg:
self.set_property('dead-zone-threshold-deg', self.config['dead_zone_threshold_deg'])
if self.config['neck_saver_horizontal_multiplier'] != self.neck_saver_horizontal_multiplier:
self.set_property('neck-saver-horizontal-multiplier', self.config['neck_saver_horizontal_multiplier'])
if self.config['neck_saver_vertical_multiplier'] != self.neck_saver_vertical_multiplier:
self.set_property('neck-saver-vertical-multiplier', self.config['neck_saver_vertical_multiplier'])
return self._running
if self._running: threading.Timer(1.0, self._refresh_config).start()
def _is_breezy_desktop_enabled(self):
return self.config.get('disabled') == False and 'breezy_desktop' in self.config.get('external_mode', [])
@ -135,13 +120,6 @@ class ConfigManager(GObject.GObject):
self.ipc.write_config(self.config)
self.follow_track_yaw = value
def _set_dead_zone_threshold_deg(self, value):
value = round(min(5.0, max(0.0, float(value))), 2)
if self.dead_zone_threshold_deg != value:
self.config['dead_zone_threshold_deg'] = value
self.ipc.write_config(self.config)
self.dead_zone_threshold_deg = value
def _set_neck_saver_horizontal_multiplier(self, value):
value = round(min(2.5, max(1.0, float(value))), 2)
if self.neck_saver_horizontal_multiplier != value:
@ -167,8 +145,6 @@ class ConfigManager(GObject.GObject):
self._set_follow_track_pitch(value)
elif prop.name == 'follow-track-yaw':
self._set_follow_track_yaw(value)
elif prop.name == 'dead-zone-threshold-deg':
self._set_dead_zone_threshold_deg(value)
elif prop.name == 'neck-saver-horizontal-multiplier':
self._set_neck_saver_horizontal_multiplier(value)
elif prop.name == 'neck-saver-vertical-multiplier':
@ -185,8 +161,6 @@ class ConfigManager(GObject.GObject):
return self.follow_track_pitch
elif prop.name == 'follow-track-yaw':
return self.follow_track_yaw
elif prop.name == 'dead-zone-threshold-deg':
return self.dead_zone_threshold_deg
elif prop.name == 'neck-saver-horizontal-multiplier':
return self.neck_saver_horizontal_multiplier
elif prop.name == 'neck-saver-vertical-multiplier':

View File

@ -33,8 +33,6 @@ class ConnectedDevice(Gtk.Box):
effect_enable_switch = Gtk.Template.Child()
disable_physical_displays_switch = Gtk.Template.Child()
display_zoom_on_focus_switch = Gtk.Template.Child()
display_size_scale = Gtk.Template.Child()
display_size_adjustment = Gtk.Template.Child()
follow_threshold_scale = Gtk.Template.Child()
follow_threshold_adjustment = Gtk.Template.Child()
follow_mode_switch = Gtk.Template.Child()
@ -73,8 +71,6 @@ class ConnectedDevice(Gtk.Box):
neck_saver_horizontal_adjustment = Gtk.Template.Child()
neck_saver_vertical_scale = Gtk.Template.Child()
neck_saver_vertical_adjustment = Gtk.Template.Child()
dead_zone_threshold_scale = Gtk.Template.Child()
dead_zone_threshold_adjustment = Gtk.Template.Child()
enable_multi_tap_switch = Gtk.Template.Child()
legacy_follow_mode_switch = Gtk.Template.Child()
follow_track_yaw_switch = Gtk.Template.Child()
@ -87,7 +83,6 @@ class ConnectedDevice(Gtk.Box):
viewport_offset_x_adjustment = Gtk.Template.Child()
viewport_offset_y_scale = Gtk.Template.Child()
viewport_offset_y_adjustment = Gtk.Template.Child()
units_menu = Gtk.Template.Child()
def __init__(self):
super(Gtk.Box, self).__init__()
@ -95,7 +90,7 @@ class ConnectedDevice(Gtk.Box):
self.active = True
self.all_enabled_state_inputs = [
self.display_zoom_on_focus_switch,
self.display_size_scale,
# self.display_size_scale,
self.follow_mode_switch,
self.follow_threshold_scale,
self.curved_display_switch,
@ -120,7 +115,7 @@ class ConnectedDevice(Gtk.Box):
self.settings.bind('disable-physical-displays', self.disable_physical_displays_switch, 'active', Gio.SettingsBindFlags.DEFAULT)
self.settings.connect('changed::display-distance', self._handle_display_distance)
self.settings.bind('display-size', self.display_size_adjustment, 'value', Gio.SettingsBindFlags.DEFAULT)
# self.settings.bind('display-size', self.display_size_adjustment, 'value', Gio.SettingsBindFlags.DEFAULT)
self.settings.bind('follow-threshold', self.follow_threshold_adjustment, 'value', Gio.SettingsBindFlags.DEFAULT)
# self.settings.bind('widescreen-mode', self.widescreen_mode_switch, 'active', Gio.SettingsBindFlags.DEFAULT)
self.settings.bind('curved-display', self.curved_display_switch, 'active', Gio.SettingsBindFlags.DEFAULT)
@ -141,10 +136,6 @@ class ConnectedDevice(Gtk.Box):
self.monitor_wrapping_scheme_menu.connect('changed', self._handle_monitor_wrapping_scheme_menu_changed)
self._handle_monitor_wrapping_scheme_setting_changed(self.settings, self.settings.get_string('monitor-wrapping-scheme'))
current_units = self.settings.get_string('units')
self.units_menu.set_active_id(current_units)
self.units_menu.connect('changed', self._handle_units_menu_changed)
bind_shortcut_settings(self.get_parent(), [
[self.reassign_toggle_xr_effect_shortcut_button, self.toggle_xr_effect_shortcut_label],
[self.reassign_recenter_display_shortcut_button, self.recenter_display_shortcut_label],
@ -185,17 +176,12 @@ class ConnectedDevice(Gtk.Box):
self.follow_mode_switch.connect('notify::active', self._refresh_follow_mode)
self.effect_enable_switch.connect('notify::active', self._handle_switch_enabled_state)
self.state_manager.connect('notify::connected-device-full-size-cm', self._handle_metric_change)
self.state_manager.connect('notify::connected-device-full-distance-cm', self._handle_metric_change)
self.settings.connect('changed::units', self._handle_units_changed)
self.config_manager = ConfigManager.get_instance()
self.config_manager.connect('notify::breezy-desktop-enabled', self._handle_enabled_config)
self._bind_switch_to_config(self.enable_multi_tap_switch, 'multi-tap-enabled')
self._bind_switch_to_config(self.follow_track_roll_switch, 'follow-track-roll')
self._bind_switch_to_config(self.follow_track_pitch_switch, 'follow-track-pitch')
self._bind_switch_to_config(self.follow_track_yaw_switch, 'follow-track-yaw')
self._bind_scale_to_config(self.dead_zone_threshold_adjustment, 'dead-zone-threshold-deg')
self._bind_scale_to_config(self.neck_saver_horizontal_adjustment, 'neck-saver-horizontal-multiplier')
self._bind_scale_to_config(self.neck_saver_vertical_adjustment, 'neck-saver-vertical-multiplier')
@ -252,18 +238,6 @@ class ConnectedDevice(Gtk.Box):
elif not widget.get_active() and is_zoom_on_focus_already_enabled:
self.settings.set_double('display-distance', toggle_display_distance_end)
def _handle_units_menu_changed(self, widget):
active_id = widget.get_active_id() or 'cm'
self.settings.set_string('units', active_id)
def _handle_units_changed(self, *args):
self._set_all_displays_distance(self.settings.get_double('toggle-display-distance-end'))
self._set_focused_display_distance(self.settings.get_double('toggle-display-distance-start'))
def _handle_metric_change(self, *args):
self._set_all_displays_distance(self.settings.get_double('toggle-display-distance-end'))
self._set_focused_display_distance(self.settings.get_double('toggle-display-distance-start'))
def _handle_monitor_wrapping_scheme_setting_changed(self, settings, val):
self.monitor_wrapping_scheme_menu.set_active_id(val)
@ -340,33 +314,17 @@ class ConnectedDevice(Gtk.Box):
self.display_zoom_on_focus_switch.set_active(should_zoom_on_focus_be_enabled)
def _set_focused_display_distance(self, distance):
self.focused_display_distance_label.set_markup(f"{_('Focused display')}: <b>{self._format_distance(distance)}</b>")
self.focused_display_distance_label.set_markup(f"{_('Focused display')}: <b>{distance}</b>")
self.settings.set_double('toggle-display-distance-start', distance)
self.display_zoom_on_focus_switch.set_sensitive(distance != self.settings.get_double('toggle-display-distance-end'))
def _set_all_displays_distance(self, distance):
self.all_displays_distance_label.set_markup(f"{_('All displays')}: <b>{self._format_distance(distance)}</b>")
self.all_displays_distance_label.set_markup(f"{_('All displays')}: <b>{distance}</b>")
self.settings.set_double('toggle-display-distance-end', distance)
self.display_zoom_on_focus_switch.set_active(False)
self.display_zoom_on_focus_switch.set_sensitive(distance != self.settings.get_double('toggle-display-distance-start'))
def _get_units(self):
units = self.settings.get_string('units')
return units if units in ['cm', 'in'] else 'cm'
def _format_distance(self, normalized):
sm = getattr(self, 'state_manager', None) or StateManager.get_instance()
full_cm = float(sm.get_property('connected-device-full-distance-cm') or 0.0)
if full_cm <= 0:
# Fallback to normalized display if metric unknown
return f"{round(normalized, 2)}"
cm = normalized * full_cm
if self._get_units() == 'in':
inches = cm / 2.54
return f"{inches:.2f} in"
return f"{cm:.1f} cm"
def _on_display_distance_preset_change_button_clicked(self, widget, settings_key, on_save_callback, title, subtitle, lower_limit, upper_limit):
dialog = DisplayDistanceDialog(settings_key, on_save_callback, title, subtitle, lower_limit, upper_limit)
dialog.set_transient_for(widget.get_ancestor(Gtk.Window))
@ -374,28 +332,23 @@ class ConnectedDevice(Gtk.Box):
def _on_set_all_displays_distance(self, prev_distance, distance):
focused_display_distance = self.settings.get_double('toggle-display-distance-start')
all_displays_distance = self.settings.get_double('toggle-display-distance-end')
if (distance < focused_display_distance):
self._set_focused_display_distance(distance)
all_displays_distance = self.settings.get_double('toggle-display-distance-end')
self._set_all_displays_distance(distance)
# if we were at the unfocused distance, put us at the new unfocused distance
if prev_distance == all_displays_distance:
self.settings.set_double('display-distance', distance)
if prev_distance == focused_display_distance:
self.settings.set_double('display-distance', prev_distance)
def _on_set_focused_display_distance(self, prev_distance, distance):
focused_display_distance = self.settings.get_double('toggle-display-distance-start')
all_displays_distance = self.settings.get_double('toggle-display-distance-end')
if (distance > all_displays_distance):
self._set_all_displays_distance(distance)
focused_display_distance = self.settings.get_double('toggle-display-distance-start')
self._set_focused_display_distance(distance)
# if we were at the focused distance, put us at the new focused distance
if prev_distance == focused_display_distance:
self.settings.set_double('display-distance', distance)
def _save_custom_resolutions(self):
with open(self._custom_resolutions_file_path, 'w') as f:
json.dump(self._custom_resolution_options, f)

View File

@ -5,6 +5,7 @@ from .displaydistancedialogcontent import DisplayDistanceDialogContent
class DisplayDistanceDialog(Gtk.Dialog):
__gtype_name__ = 'DisplayDistanceDialog'
show_full_scale_button = Gtk.Template.Child()
save_button = Gtk.Template.Child()
def __init__(self, settings_key, on_save_callback, title, subtitle, lower_limit, upper_limit):
@ -14,9 +15,14 @@ class DisplayDistanceDialog(Gtk.Dialog):
self.on_save_callback = on_save_callback
self.set_title(title)
self.content = DisplayDistanceDialogContent(settings_key, self.save_button, self._on_save_callback, subtitle, lower_limit, upper_limit)
self.content = DisplayDistanceDialogContent(settings_key, self.show_full_scale_button, self.save_button, self._on_save_callback, subtitle, lower_limit, upper_limit)
self.get_content_area().append(self.content)
self.show_full_scale_button.connect('clicked', self._on_show_full_scale_button_clicked)
def _on_show_full_scale_button_clicked(self, button):
self.show_full_scale_button.set_visible(False)
def _on_save_callback(self, prev_distance, distance):
self.on_save_callback(prev_distance, distance)
self.close()

View File

@ -1,6 +1,5 @@
from gi.repository import Gtk, Gio
from .settingsmanager import SettingsManager
from .statemanager import StateManager
import gettext
@ -15,7 +14,7 @@ class DisplayDistanceDialogContent(Gtk.Box):
display_distance_scale = Gtk.Template.Child()
display_distance_adjustment = Gtk.Template.Child()
def __init__(self, settings_key, save_button, on_save_callback, subtitle, lower_limit, upper_limit):
def __init__(self, settings_key, show_full_scale_button, save_button, on_save_callback, subtitle, lower_limit, upper_limit):
super(Gtk.Box, self).__init__()
self.init_template()
@ -23,28 +22,37 @@ class DisplayDistanceDialogContent(Gtk.Box):
self.on_save_callback = on_save_callback
self.settings = SettingsManager.get_instance().settings
self.state_manager = StateManager.get_instance()
self.prev_distance = self.settings.get_double('display-distance')
self.display_distance_adjustment.set_value(self.settings.get_double(settings_key))
self.display_distance_scale.set_format_value_func(lambda scale, val: self._format_distance(val))
self.state_manager.connect('notify::connected-device-full-distance-cm', lambda *args: self.display_distance_scale.queue_draw())
self.settings.connect('changed::units', lambda *args: self.display_distance_scale.queue_draw())
self.lower_limit_orig = self.display_distance_adjustment.get_lower()
self.upper_limit_orig = self.display_distance_adjustment.get_upper()
self._add_marks(lower_limit, upper_limit)
self.settings.bind('display-distance', self.display_distance_adjustment, 'value', Gio.SettingsBindFlags.DEFAULT)
show_full_scale_button.connect('clicked', self._on_show_full_scale_button_clicked)
save_button.connect('clicked', self._on_save_button_clicked)
def _add_marks(self, lower_limit, upper_limit):
self.display_distance_scale.clear_marks()
if self.lower_limit_orig == lower_limit:
self.display_distance_scale.add_mark(self.lower_limit_orig, Gtk.PositionType.BOTTOM, _("closer"))
else:
self.display_distance_adjustment.set_lower(lower_limit)
self.display_distance_scale.add_mark(1.0, Gtk.PositionType.BOTTOM, _("fullscreen"))
if self.upper_limit_orig == upper_limit:
self.display_distance_scale.add_mark(self.upper_limit_orig, Gtk.PositionType.BOTTOM, _("farther"))
else:
self.display_distance_adjustment.set_upper(upper_limit)
def _on_show_full_scale_button_clicked(self, button):
self._add_marks(self.lower_limit_orig, self.upper_limit_orig)
self.display_distance_adjustment.set_lower(self.lower_limit_orig)
self.display_distance_adjustment.set_upper(self.upper_limit_orig)
def _on_save_button_clicked(self, button):
self.on_save_callback(self.prev_distance, self.display_distance_adjustment.get_value())
def _get_units(self):
units = self.settings.get_string('units')
return units if units in ['cm', 'in'] else 'cm'
def _format_distance(self, normalized):
full_cm = float(self.state_manager.get_property('connected-device-full-distance-cm') or 0.0)
if full_cm <= 0:
return f"{round(normalized, 2)}"
cm = normalized * full_cm
if self._get_units() == 'in':
inches = cm / 2.54
return f"{inches:.2f} in"
return f"{cm:.1f} cm"
self.on_save_callback(self.prev_distance, self.display_distance_adjustment.get_value())

View File

@ -229,36 +229,6 @@
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="display_size_row">
<property name="title" translatable="yes"><!-- adjustment slider -->Display size</property>
<property name="subtitle" translatable="yes">Set how large you want the display to appear.</property>
<child>
<object class="GtkScale" id="display_size_scale">
<property name="valign">3</property>
<property name="draw-value">true</property>
<property name="value-pos">0</property>
<property name="digits">2</property>
<property name="width-request">350</property>
<property name="has-origin">false</property>
<property name="adjustment">
<object class="GtkAdjustment" id="display_size_adjustment">
<property name="lower">0.1</property>
<property name="upper">2.5</property>
<property name="step-increment">0.01</property>
<property name="value">1.0</property>
</object>
</property>
<marks>
<mark value="0.5" position="bottom">0.5×</mark>
<mark value="1.0" position="bottom" translatable="yes">full</mark>
<mark value="1.5" position="bottom">1.5×</mark>
<mark value="2.0" position="bottom">2.0×</mark>
</marks>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes"><!-- adjustment slider -->Follow threshold</property>
@ -584,35 +554,6 @@
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes"><!-- section heading for the advanced settings -->Advanced Settings</property>
<property name="width-request">450</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Units</property>
<property name="subtitle" translatable="yes">Choose measurement units for size and distance displays.</property>
<child>
<object class="GtkBox">
<property name="spacing">30</property>
<property name="width-request">150</property>
<property name="margin-start">30</property>
<child>
<object class="GtkBox">
<property name="valign">3</property>
<style>
<class name="flat"/>
</style>
<child>
<object class="GtkComboBoxText" id="units_menu">
<items>
<item translatable="yes" id="cm">Centimeters</item>
<item translatable="yes" id="in">Inches</item>
</items>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes"><!-- feature that tries to the find best-fit monitor config -->Find optimal display config</property>
@ -762,38 +703,6 @@
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Dead-zone threshold (degrees)</property>
<property name="subtitle" translatable="yes">Stabilize movements below this angle.</property>
<child>
<object class="GtkScale" id="dead_zone_threshold_scale">
<property name="valign">3</property>
<property name="draw-value">true</property>
<property name="value-pos">0</property>
<property name="digits">1</property>
<property name="width-request">350</property>
<property name="has-origin">false</property>
<property name="adjustment">
<object class="GtkAdjustment" id="dead_zone_threshold_adjustment">
<property name="lower">0.0</property>
<property name="upper">5.0</property>
<property name="step-increment">0.1</property>
<property name="value">0.0</property>
</object>
</property>
<marks>
<mark value="0.0" position="bottom" translatable="yes">Disabled</mark>
<mark value="1.0" position="bottom">1.0</mark>
<mark value="2.0" position="bottom">2.0</mark>
<mark value="3.0" position="bottom">3.0</mark>
<mark value="4.0" position="bottom">4.0</mark>
<mark value="5.0" position="bottom">5.0</mark>
</marks>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Follow mode movement tracking</property>

View File

@ -25,17 +25,12 @@
<property name="has-origin">false</property>
<property name="adjustment">
<object class="GtkAdjustment" id="display_distance_adjustment">
<property name="lower">0.1</property>
<property name="upper">1.5</property>
<property name="lower">0.2</property>
<property name="upper">2.5</property>
<property name="step-increment">0.01</property>
<property name="value">1.05</property>
</object>
</property>
<marks>
<mark value="0.1" position="bottom" translatable="yes">closer</mark>
<mark value="1.0" position="bottom" translatable="yes">default</mark>
<mark value="1.5" position="bottom" translatable="yes">farther</mark>
</marks>
</object>
</child>
</template>

View File

@ -4,6 +4,15 @@
<template class="DisplayDistanceDialog" parent="GtkDialog">
<property name="modal">1</property>
<property name="use-header-bar">1</property>
<child type="action">
<object class="GtkButton" id="show_full_scale_button">
<property name="label" translatable="yes">Show full range</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="margin-start">10</property>
<property name="margin-end">10</property>
</object>
</child>
<child type="action">
<object class="GtkButton" id="save_button">
<property name="label" translatable="yes">Done</property>

View File

@ -3,7 +3,6 @@
<requires lib="gtk" version="4.0"/>
<template class="FailedVerification" parent="GtkBox">
<property name="orientation">1</property>
<property name="vexpand">True</property>
<property name="margin-top">20</property>
<property name="margin-bottom">20</property>
<property name="margin-start">20</property>
@ -11,11 +10,9 @@
<property name="spacing">20</property>
<child>
<object class="AdwStatusPage">
<property name="vexpand">True</property>
<property name="title" translatable="yes">Breezy Desktop GNOME invalid setup</property>
<property name="description" translatable="yes">Your Breezy GNOME setup is invalid or incomplete. Please re-run the setup script. Report this issue if it persists.</property>
<property name="width-request">650</property>
<property name="height-request">250</property>
</object>
</child>
</template>

View File

@ -3,7 +3,6 @@
<requires lib="gtk" version="4.0"/>
<template class="NoDevice" parent="GtkBox">
<property name="orientation">1</property>
<property name="vexpand">True</property>
<property name="margin-top">20</property>
<property name="margin-bottom">20</property>
<property name="margin-start">20</property>
@ -11,7 +10,6 @@
<property name="spacing">20</property>
<child>
<object class="AdwStatusPage">
<property name="vexpand">True</property>
<property name="title" translatable="yes">No device connected</property>
<property name="description" translatable="yes">Breezy Desktop was unable to detect any supported XR devices.</property>
<property name="width-request">800</property>

View File

@ -3,7 +3,6 @@
<requires lib="gtk" version="4.0"/>
<template class="NoDriver" parent="GtkBox">
<property name="orientation">1</property>
<property name="vexpand">True</property>
<property name="margin-top">20</property>
<property name="margin-bottom">20</property>
<property name="margin-start">20</property>
@ -11,7 +10,6 @@
<property name="spacing">20</property>
<child>
<object class="AdwStatusPage">
<property name="vexpand">True</property>
<property name="title" translatable="yes">No driver running</property>
<property name="description" translatable="yes">
If you installed via AUR, make sure you ran the recommended post-install command:
@ -20,7 +18,6 @@
Otherwise, please file an issue on GitHub, or create a new thread in the #troubleshooting channel on Discord.
</property>
<property name="width-request">800</property>
<property name="height-request">300</property>
</object>
</child>
</template>

View File

@ -3,7 +3,6 @@
<requires lib="gtk" version="4.0"/>
<template class="NoExtension" parent="GtkBox">
<property name="orientation">1</property>
<property name="vexpand">True</property>
<property name="margin-top">20</property>
<property name="margin-bottom">20</property>
<property name="margin-start">20</property>
@ -11,11 +10,9 @@
<property name="spacing">20</property>
<child>
<object class="AdwStatusPage">
<property name="vexpand">True</property>
<property name="title" translatable="yes">Breezy Desktop GNOME extension not ready</property>
<property name="description" translatable="yes">If you have just run the setup, then you may need to log out and back in to use it. Otherwise, please follow the Breezy GNOME setup instructions.</property>
<property name="width-request">800</property>
<property name="height-request">250</property>
</object>
</child>
</template>

View File

@ -3,7 +3,6 @@
<requires lib="gtk" version="4.0"/>
<template class="NoLicense" parent="GtkBox">
<property name="orientation">1</property>
<property name="vexpand">True</property>
<property name="margin-top">20</property>
<property name="margin-bottom">20</property>
<property name="margin-start">20</property>
@ -11,7 +10,6 @@
<property name="spacing">20</property>
<child>
<object class="AdwStatusPage">
<property name="vexpand">True</property>
<property name="title" translatable="yes">No license file was found</property>
<property name="description" translatable="yes">
The first time you use Breezy Desktop, an internet connection is required to retrieve your device's license.

View File

@ -80,55 +80,7 @@
</object>
</child>
<child>
<object class="GtkInfoBar" id="pose_position_needs_pro_banner">
<property name="revealed">0</property>
<property name="show-close-button">False</property>
<property name="message-type">warning</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Productivity Pro license is inactive — 6DoF features will be unavailable</property>
<property name="hexpand">True</property>
<property name="wrap">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkButton" id="pose_position_needs_pro_button">
<property name="label" translatable="yes">View details</property>
<property name="visible">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkInfoBar" id="update_available_banner">
<property name="revealed">0</property>
<property name="show-close-button">False</property>
<property name="message-type">info</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">A newer version is available. To update, rerun the breezy_gnome_setup script.</property>
<property name="hexpand">True</property>
<property name="wrap">True</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="main_content">
<property name="vexpand">True</property>
</object>
<object class="GtkBox" id="main_content" />
</child>
</object>
</property>

View File

@ -1,2 +1 @@
BREEZY_GNOME_FEATURES = ['productivity', 'productivity_pro']
BREEZY_GNOME_TIERS = ['productivity', 'productivity_pro']
BREEZY_GNOME_FEATURES = ['productivity_basic', 'productivity_pro']

View File

@ -3,7 +3,6 @@ from .nolicense import NoLicense
from .statemanager import StateManager
from .licensetierrow import LicenseTierRow
from .licensefeaturerow import LicenseFeatureRow
from .license import BREEZY_GNOME_FEATURES, BREEZY_GNOME_TIERS
from .xrdriveripc import XRDriverIPC
import gettext
@ -61,28 +60,19 @@ class LicenseDialogContent(Gtk.Box):
self.features.remove(child)
if license_view:
allowed_tiers = set(BREEZY_GNOME_TIERS)
allowed_features = set(BREEZY_GNOME_FEATURES)
tiers_group = Adw.PreferencesGroup(title=_("Paid Tier Status"), margin_top=20)
has_any_tier = False
for tier_name, tier_details in license_view.get('tiers', {}).items():
if tier_name not in allowed_tiers:
continue
tiers_group.add(LicenseTierRow(tier_name, tier_details))
has_any_tier = True
if has_any_tier:
self.tiers.append(tiers_group)
self.tiers.append(tiers_group)
for tier_name, tier_details in license_view['tiers'].items():
row = LicenseTierRow(tier_name, tier_details)
if row.get_title() != "":
tiers_group.add(row)
features_group = Adw.PreferencesGroup(title=_("Feature Availability"), margin_top=20)
has_any_feature = False
for feature_name, feature_details in license_view.get('features', {}).items():
if feature_name not in allowed_features:
continue
self.features.append(features_group)
for feature_name, feature_details in license_view['features'].items():
features_group.add(LicenseFeatureRow(feature_name, feature_details))
has_any_feature = True
if has_any_feature:
self.features.append(features_group)
else:
self.tiers.append(self.no_license)

View File

@ -27,7 +27,8 @@ class LicenseFeatureRow(Adw.ActionRow):
def _feature_name(self, feature):
feature_names = {
'productivity': lambda: _('Productivity Basic'),
'productivity_pro': lambda: _('Productivity Pro'),
'sbs': lambda: _('Side-by-side mode (gaming)'),
'smooth_follow': lambda: _('Smooth Follow (gaming)'),
'productivity_basic': lambda: _('Breezy Desktop (productivity)')
}
return feature_names[feature]()

View File

@ -53,8 +53,8 @@ class LicenseTierRow(Adw.ExpanderRow):
def _tier_name(self, tier):
tier_names = {
'productivity': _('Productivity Basic'),
'productivity_pro': _('Productivity Pro')
'supporter': _('Gaming'),
'subscriber': _('Productivity')
}
return tier_names.get(tier) or ""

View File

@ -1,3 +1,22 @@
# main.py
#
# Copyright 2024 Unknown
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
import os
import sys
import gi
@ -61,7 +80,7 @@ class BreezydesktopApplication(Adw.Application):
# always do this on start-up since the driver sometimes fails to update the license on boot,
# prevent showing a license warning unnecessarily
XRDriverIPC.get_instance().write_control_flags({'request_features': ['productivity', 'productivity_pro']})
XRDriverIPC.get_instance().write_control_flags({'refresh_device_license': True})
def do_activate(self):
"""Called when the application is activated.
@ -71,7 +90,7 @@ class BreezydesktopApplication(Adw.Application):
"""
win = self.props.active_window
if not win:
win = BreezydesktopWindow(self.version, self._skip_verification, application=self)
win = BreezydesktopWindow(self._skip_verification, application=self)
win.connect('close-request', lambda *_: self.on_quit_action())
win.connect('destroy', lambda *_: self.on_quit_action())
win.present()
@ -84,7 +103,7 @@ class BreezydesktopApplication(Adw.Application):
logo_icon_name='com.xronlinux.BreezyDesktop',
version=self.version,
authors=['Wayne Heaney'],
copyright='© 2026 Wayne Heaney',
copyright='© 2025 Wayne Heaney',
license_type=Gtk.License.GPL_3_0,
wrap_license=True)
about.present()
@ -95,7 +114,9 @@ class BreezydesktopApplication(Adw.Application):
dialog.present()
def on_reset_driver_action(self, widget, _):
XRDriverIPC.get_instance().reset_driver(as_user=None)
XRDriverIPC.get_instance().write_control_flags({
'force_quit': True
})
def create_action(self, name, callback, shortcuts=None):
"""Add an application action.

View File

@ -61,7 +61,6 @@ breezydesktop_sources = [
'shortcutdialog.py',
'statemanager.py',
'time.py',
'updatechecker.py',
'virtualdisplay.py',
'virtualdisplaymanager.py',
'verify.py',

View File

@ -1,5 +1,6 @@
import sys
from gi.repository import GObject, GLib
import threading
from gi.repository import GObject
from .time import LICENSE_WARN_SECONDS
from .xrdriveripc import XRDriverIPC
@ -20,9 +21,6 @@ class StateManager(GObject.GObject):
'license-present': (bool, 'License Present', 'Whether a license is present', False, GObject.ParamFlags.READWRITE),
'enabled-features-list': (object, 'Enabled Features List', 'A list of the enabled features', GObject.ParamFlags.READWRITE),
'device-supports-sbs': (bool, 'Device Supports SBS', 'Whether the connected device supports SBS', False, GObject.ParamFlags.READWRITE),
'connected-device-pose-has-position': (bool, 'Pose Has Position', 'Whether the connected device provides position tracking (6DoF)', False, GObject.ParamFlags.READWRITE),
'connected-device-full-distance-cm': (float, 'Full Distance (cm)', 'Device full distance in cm', 0.0, 10000.0, 0.0, GObject.ParamFlags.READWRITE),
'connected-device-full-size-cm': (float, 'Full Size (cm)', 'Device full display size in cm', 0.0, 10000.0, 0.0, GObject.ParamFlags.READWRITE),
}
_instance = None
@ -61,25 +59,15 @@ class StateManager(GObject.GObject):
self.license_present = False
self.enabled_features = []
self.device_supports_sbs = False
self.connected_device_pose_has_position = False
self.connected_device_full_distance_cm = 0.0
self.connected_device_full_size_cm = 0.0
self._running = True
self._refresh_source_id = None
self._refresh_state()
self._refresh_source_id = GLib.timeout_add_seconds(1, self._refresh_state)
def stop(self):
self._running = False
if self._refresh_source_id is not None:
GLib.source_remove(self._refresh_source_id)
self._refresh_source_id = None
def _refresh_state(self):
self.state = self.ipc.retrieve_driver_state()
driver_running = self.state['ui_view'].get('driver_running')
if driver_running != self.driver_running:
self.set_property('driver-running', driver_running)
self.set_property('driver-running', self.state['ui_view'].get('driver_running'))
new_device_name = StateManager.device_name(self.state)
if self.connected_device_name != new_device_name:
@ -106,31 +94,11 @@ class StateManager(GObject.GObject):
# only update these properties if a device is still connected
if (self.connected_device_name):
follow_mode = self.state.get('breezy_desktop_smooth_follow_enabled', False)
if follow_mode != self.follow_mode:
self.set_property('follow-mode', follow_mode)
self.set_property('follow-mode', self.state.get('breezy_desktop_smooth_follow_enabled', False))
self.set_property('device-supports-sbs', self.state.get('sbs_mode_supported', False))
self.set_property('widescreen-mode', self.state.get('sbs_mode_enabled', False))
device_supports_sbs = self.state.get('sbs_mode_supported', False)
if device_supports_sbs != self.device_supports_sbs:
self.set_property('device-supports-sbs', device_supports_sbs)
widescreen_mode = self.state.get('sbs_mode_enabled', False)
if widescreen_mode != self.widescreen_mode:
self.set_property('widescreen-mode', widescreen_mode)
pose_has_position = (self.state.get('connected_device_pose_has_position', False) == True)
if pose_has_position != self.connected_device_pose_has_position:
self.set_property('connected-device-pose-has-position', pose_has_position)
full_distance = self.state.get('connected_device_full_distance_cm') or 0.0
if full_distance != self.connected_device_full_distance_cm:
self.set_property('connected-device-full-distance-cm', full_distance)
full_size = self.state.get('connected_device_full_size_cm') or 0.0
if full_size != self.connected_device_full_size_cm:
self.set_property('connected-device-full-size-cm', full_size)
return self._running
if self._running: threading.Timer(1.0, self._refresh_state).start()
def do_set_property(self, prop, value):
if prop.name == 'driver-running':
@ -147,12 +115,6 @@ class StateManager(GObject.GObject):
self.enabled_features = value
if prop.name == 'device-supports-sbs':
self.device_supports_sbs = value
if prop.name == 'connected-device-pose-has-position':
self.connected_device_pose_has_position = value
if prop.name == 'connected-device-full-distance-cm':
self.connected_device_full_distance_cm = value
if prop.name == 'connected-device-full-size-cm':
self.connected_device_full_size_cm = value
def do_get_property(self, prop):
if prop.name == 'driver-running':
@ -168,10 +130,4 @@ class StateManager(GObject.GObject):
if prop.name == 'enabled-features-list':
return self.enabled_features
if prop.name == 'device-supports-sbs':
return self.device_supports_sbs
if prop.name == 'connected-device-pose-has-position':
return self.connected_device_pose_has_position
if prop.name == 'connected-device-full-distance-cm':
return self.connected_device_full_distance_cm
if prop.name == 'connected-device-full-size-cm':
return self.connected_device_full_size_cm
return self.device_supports_sbs

View File

@ -1,63 +0,0 @@
import json
import logging
import os
import sys
import threading
from urllib.request import urlopen, Request
from urllib.error import URLError
logger = logging.getLogger('breezy_ui')
GITHUB_RELEASES_URL = 'https://api.github.com/repos/wheaney/breezy-desktop/releases/latest'
def _is_user_local_install():
"""Return True if the app is running from a user-local installation.
Scripted installs put the binary under the user's home directory (e.g.
~/.local/bin/breezydesktop). System-wide package manager installs (e.g.
AUR) put the binary in a system path like /usr/bin and don't need a
version-update prompt because the package manager handles updates.
"""
home = os.path.expanduser('~')
script_path = os.path.realpath(sys.argv[0])
return script_path.startswith(home + os.sep)
def _parse_version(version_str):
"""Parse a version string like '2.8.10' or 'v2.8.9' into a tuple of ints."""
v = version_str.strip().lstrip('v')
try:
return tuple(int(x) for x in v.split('.'))
except (ValueError, AttributeError):
return None
def check_for_update(current_version, callback):
"""
Asynchronously check for a newer version on GitHub.
Calls callback(latest_version_str) on the calling thread's GLib main loop
if a newer version is found, or callback(None) if no update is available
or if the check fails. Does nothing (no callback) when not running from a
user-local installation (e.g. installed via AUR).
"""
if not _is_user_local_install():
return
def _check():
latest_version = None
try:
req = Request(GITHUB_RELEASES_URL, headers={'User-Agent': 'breezy-desktop-ui'})
with urlopen(req, timeout=10) as response:
data = json.loads(response.read().decode())
latest_tag = data.get('tag_name', '')
latest = _parse_version(latest_tag)
current = _parse_version(current_version)
if latest and current and latest > current:
latest_version = latest_tag.lstrip('v')
except (URLError, json.JSONDecodeError, ValueError, OSError) as e:
logger.debug('Update check failed: %s', e)
callback(latest_version)
threading.Thread(target=_check, daemon=True).start()

View File

@ -1,3 +1,22 @@
# window.py
#
# Copyright 2024 Unknown
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
from gi.repository import Gtk, GLib
from .extensionsmanager import ExtensionsManager
from .license import BREEZY_GNOME_FEATURES
@ -10,7 +29,6 @@ from .nodevice import NoDevice
from .nodriver import NoDriver
from .noextension import NoExtension
from .nolicense import NoLicense
from .updatechecker import check_for_update
from .verify import verify_installation
@Gtk.Template(resource_path='/com/xronlinux/BreezyDesktop/gtk/window.ui')
@ -22,11 +40,8 @@ class BreezydesktopWindow(Gtk.ApplicationWindow):
license_action_needed_button = Gtk.Template.Child()
missing_breezy_features_banner = Gtk.Template.Child()
missing_breezy_features_button = Gtk.Template.Child()
pose_position_needs_pro_banner = Gtk.Template.Child()
pose_position_needs_pro_button = Gtk.Template.Child()
update_available_banner = Gtk.Template.Child()
def __init__(self, version, skip_verification, **kwargs):
def __init__(self, skip_verification, **kwargs):
super().__init__(**kwargs)
self.connected_device = ConnectedDevice()
@ -44,12 +59,10 @@ class BreezydesktopWindow(Gtk.ApplicationWindow):
self.state_manager.connect('notify::license-action-needed', self._handle_state_update)
self.state_manager.connect('notify::license-present', self._handle_state_update)
self.state_manager.connect('notify::enabled-features-list', self._handle_state_update)
self.state_manager.connect('notify::connected-device-pose-has-position', self._handle_state_update)
self.settings.connect('changed::debug-no-device', self._handle_settings_update)
self.license_action_needed_button.connect('clicked', self._on_license_button_clicked)
self.missing_breezy_features_button.connect('clicked', self._on_license_button_clicked)
self.pose_position_needs_pro_button.connect('clicked', self._on_license_button_clicked)
self._handle_state_update(self.state_manager, None)
@ -57,8 +70,6 @@ class BreezydesktopWindow(Gtk.ApplicationWindow):
self.connect("destroy", self._on_window_destroy)
check_for_update(version, self._on_update_check_result)
def _handle_settings_update(self, settings_manager, key):
self._handle_state_update(self.state_manager, None)
@ -66,16 +77,11 @@ class BreezydesktopWindow(Gtk.ApplicationWindow):
GLib.idle_add(self._handle_state_update_gui, state_manager)
def _handle_state_update_gui(self, state_manager):
enabled_features_list = state_manager.get_property('enabled-features-list') or []
enabled_breezy_features = [feature for feature in enabled_features_list if feature in BREEZY_GNOME_FEATURES]
enabled_breezy_features = [feature for feature in state_manager.get_property('enabled-features-list') if feature in BREEZY_GNOME_FEATURES]
breezy_features_granted = len(enabled_breezy_features) > 0
self.missing_breezy_features_banner.set_revealed(not breezy_features_granted)
self.license_action_needed_banner.set_revealed(state_manager.get_property('license-action-needed') == True)
pose_has_position = state_manager.get_property('connected-device-pose-has-position') == True
pro_enabled = 'productivity_pro' in enabled_features_list
self.pose_position_needs_pro_banner.set_revealed(state_manager.connected_device_name and pose_has_position and breezy_features_granted and not pro_enabled)
for child in self.main_content:
self.main_content.remove(child)
@ -106,8 +112,5 @@ class BreezydesktopWindow(Gtk.ApplicationWindow):
dialog.set_transient_for(widget.get_ancestor(Gtk.Window))
dialog.present()
def _on_update_check_result(self, latest_version):
GLib.idle_add(self.update_available_banner.set_revealed, latest_version is not None)
def _on_window_destroy(self, widget):
self.state_manager.disconnect_by_func(self._handle_state_update)

Some files were not shown because too many files have changed in this diff Show More