Compare commits

...

76 Commits
v2.3.1 ... main

Author SHA1 Message Date
Wayne Heaney 595b614bb3
Update README with Breezy Box project info
Added a tip about the Breezy Box project and installation note.
2026-06-25 11:16:08 -07:00
Wayne Heaney f089404b14
Update README.md 2026-06-24 17:14:10 -07:00
Wayne Heaney c914fe7d23
Bump version to 2.9.13
Trigger a CI build to get the SteamOS 3.9 build artifact in the release
2026-05-28 21:11:46 -07:00
wheaney 0df496770c Fix CI release workflow for steamos-3.9 2026-04-27 22:02:18 -07:00
wheaney 01edb1ea58 Attempt to fix mouse summon, v2.9.12 2026-04-27 20:10:16 -07:00
wheaney cf8f4422df Add SteamOS 3.9 build support, lock in docker image hashes 2026-04-27 20:06:07 -07:00
wheaney 3ba62cfaf4 Fix another release workflow failure, v2.9.11 2026-03-20 13:38:30 -07:00
wheaney 3e9e6fed1e Fix release workflow failure, v2.9.10 2026-03-20 13:37:13 -07:00
wheaney 18f44a7b25 Add support for separate SteamOS builds, supporting 3.7 and 3.8 currently, v2.9.9 2026-03-20 13:35:41 -07:00
wheaney 2f165981a9 Add support for GNOME 50, v2.9.8 2026-03-19 10:51:10 -07:00
wheaney 557f450782 Fix missing verify line for breezy_vulkan_logs 2026-03-17 10:43:32 -07:00
wheaney 232c47781e Fix display spacing issue caused by display size adjustments, v2.9.7 2026-03-10 13:08:56 -07:00
wheaney e228d8d47a Update state/config polling in the GNOME UI, fix issue where display resolution dropdown was closing on state refresh, v2.9.6 2026-03-10 12:35:21 -07:00
wheaney b3bd2ccddc Fix vulkan setup so directory creation comes after uninstall, v2.9.5 2026-03-07 22:12:34 -08:00
wheaney 3e654f98c9 Update the GNOME uninstall script so it clears the GTK icon cache,
v2.9.4
2026-03-07 12:59:29 -08:00
wheaney 71dd3d1026 Fix SKIP_SYSTEMD support, improve README and setup instructions, v2.9.3 2026-03-06 09:34:54 -08:00
wheaney ec41f26a59 Pull in updated driver setup with better messaging for missing libs, v2.9.2 2026-03-05 11:57:02 -08:00
Wayne Heaney 0d53d10a43
Add support for Productivity Pro tier, v2.9.1 (#162) 2026-03-03 13:26:47 -08:00
wheaney 7d73625920 v2.8.11 2026-02-28 18:31:18 -08:00
Copilot afb2dd4f4a
Add GitHub release update check to Python GNOME and KDE KCM UIs (#160) 2026-02-28 18:29:27 -08:00
wheaney cc33623aa7 Fix gnome-remote-desktop warning during setup 2026-02-26 15:25:39 -08:00
wheaney 2f7aee30af Pull in latest driver with has_position IPC fix, v2.8.10 2026-02-24 13:44:16 -08:00
wheaney 928a554493 Update breezy vulkan uninstall script to remove the data directory, v2.8.9 2026-02-24 10:06:57 -08:00
wheaney 55ae81f7ff Test release workflow, v2.8.8-1 2026-02-24 09:07:33 -08:00
wheaney 4b381a1552 Break up the Github release workflow 2026-02-24 08:07:49 -08:00
wheaney 8c30e876c1 Update logs scripts, add to packaging and setup, v2.8.8 2026-02-23 15:52:28 -08:00
Copilot 73b4d72140
Add log collection scripts for breezy gnome, kwin, and vulkan (#159) 2026-02-23 14:48:13 -08:00
wheaney ce7a5c378d Fix GNOME UI issues with empty license features, v2.8.7 2026-02-22 17:50:52 -08:00
wheaney 749b7b22e1 Fix GNOME issue where supplemental position double-counts the lens distance, v2.8.6 2026-02-22 08:24:20 -08:00
wheaney 845d1c9a99 Remove GNOME backports 2026-02-20 13:54:46 -08:00
wheaney 743ce40f3c Pull in latest driver with supplemental position fix, v2.8.5 2026-02-19 19:15:29 -08:00
wheaney e52b7f5bb0 Try to prevent sddm from loading the plugin 2026-02-18 13:44:49 -08:00
wheaney e5fded03ef Move request_features call out of KCM 2026-02-18 13:04:24 -08:00
wheaney 9bb523d211 Update KWin setup so it fixes the decky installation to accept the Breezy driver version, v2.8.4 2026-02-17 21:50:38 -08:00
wheaney 3801afaf72 Remove references to legacy/widescreen setup 2026-02-17 13:40:55 -08:00
wheaney 7e9ddd32ba Add XREAL 1S to supported monitors list, v2.8.3 2026-02-17 11:53:12 -08:00
Wayne Heaney effc2435b8
Test release workflow 2026-02-14 14:56:17 -08:00
Copilot 00df9e5953
Install build dependencies in CI workflow (#157) 2026-02-14 14:54:46 -08:00
Wayne Heaney 4633b62067
Test release workflow 2026-02-14 14:36:19 -08:00
Copilot 478fd4d817
Install gnome-extensions CLI in release workflow (#156) 2026-02-14 14:35:26 -08:00
Wayne Heaney 6efc27c749
Test build workflow 2026-02-13 20:03:37 -08:00
Wayne Heaney 933c8244b9
Set UA_API_SECRET in release workflow
Add UA_API_SECRET environment variable for package build.
2026-02-13 17:14:50 -08:00
Wayne Heaney 95c847184f
Test release workflow 2026-02-13 17:00:38 -08:00
Copilot ed5c8eeda0
Add CI workflow for automated releases on VERSION changes (#155) 2026-02-13 16:56:00 -08:00
Wayne Heaney eb0ad035fc
v2.8.x (#154)
* Update all Breezy setup scripts and apps to request the necessary license features
* Fix backwards-incompatible KWin API change in v6.5.90
* Update package and setup to build and utilize separate build and libs archives
2026-02-13 11:37:01 -08:00
IWAI, Masaharu beea5582d8
Update ja.po (#151) 2026-02-10 15:08:16 -08:00
wheaney 7626b4b72e Update translation files 2026-02-10 12:52:23 -08:00
IWAI, Masaharu d72d43a48f
Update ja.po (#148) 2026-02-10 12:51:22 -08:00
wheaney 4fd3b080c6 Pull in full XREAL 1S identifier support 2026-02-06 13:49:42 -08:00
wheaney b2791616b5 Pull in driver with XREAL 1S identifiers, v2.7.2 2026-02-06 13:37:48 -08:00
wheaney 564e51d5d8 Pull in the driver's OpenTrack feedback guard updates, v2.7.1 2026-02-04 14:51:19 -08:00
wheaney eb5d239271 Pull in the latest driver with supplemental 6DoF support 2026-02-03 20:40:35 -08:00
wheaney dde9431fd4 Fix GNOME issue where 6DoF isn't always enabled for 6DoF devices, update KWin setup Fedora instructions, v2.7.0 2026-02-03 09:05:38 -08:00
Wayne Heaney 3c13552198
Add force reset driver action to Breezy Desktop (#147) 2026-01-22 20:42:16 -08:00
Wayne Heaney 35da226988
Remove upcoming features from README 2026-01-21 14:31:34 -08:00
wheaney bd973a404f Fix dead-zone slider in the KCM app 2026-01-21 12:43:08 -08:00
wheaney 3fc4dcefd9 Add dead-zone controls to UI, v2.6.4 2026-01-21 10:59:14 -08:00
Wayne Heaney e96ccc4f0b
Add 6DoF support for KWin (#146), v2.6.3 2026-01-16 21:08:56 -08:00
Wayne Heaney d1e36d02e1
Update upcoming features section in README 2026-01-08 10:40:50 -08:00
Wayne Heaney f4fecdc3e5
Finalize Vulkan and GNOME 6DoF (#144)
* Pull in the latest driver with VITURE SDK and 6DoF improvements
* Add SteamOS vulkan build artifact
* Unifies "display size" setting
2026-01-08 10:30:00 -08:00
wheaney a0388d074c Add distrobox build support 2025-10-29 21:13:46 -07:00
Wayne Heaney be2469ebb0
Add a link to the Distrobox setup 2025-10-29 21:09:49 -07:00
wheaney 8eeb2830cf Update uninstall script so it removes the Breezy scripts on the desktop, v2.5.3 2025-10-29 20:46:42 -07:00
wheaney e463d01be7 Pull in driver with smooth follow fix, v2.5.2 2025-10-28 21:56:03 -07:00
wheaney 7cb50caade Update Breezy Wayland script comments and README 2025-10-27 15:22:40 -07:00
wheaney 044ee4784a Update setup script to install enable/disable Wayland scripts for SteamOS 2025-10-27 15:19:23 -07:00
wheaney 0bce9c9bd3 Add hero image to README 2025-10-27 12:35:11 -07:00
wheaney 50c13863e0 Add Breezy KDE hero image 2025-10-27 12:33:44 -07:00
Wayne Heaney 054296da56
Add support for 6DoF (#138)
* Pull in driver and sombrero updates for 6DoF
* Update Breezy GNOME to support 6DoF position
* Update Breezy KDE to support 6DoF position
2025-10-22 16:13:08 -07:00
Wayne Heaney d9445942c9
Update stabilization feature instructions in README 2025-10-16 10:15:51 -07:00
Wayne Heaney bae0897b93
Update KDE Plasma setup instructions 2025-10-16 09:57:35 -07:00
wheaney 394934bd22 Fix XREAL One Pro support, v2.4.1 2025-10-08 15:53:16 -07:00
Wayne Heaney 2bed5a2436
XREAL One support (#133), v2.4.0
* Add XREAL One model names to the supported monitors list

* Pull in latest driver with XREAL One support, v2.4.0
2025-10-05 08:34:56 -07:00
wheaney 13d5d6bf8e Add neck-saver controls for GNOME and KWin apps 2025-10-03 16:04:34 -07:00
wheaney e1e04b24d5 Pull in the latest driver and IPC modules 2025-10-03 14:18:06 -07:00
wheaney 6575e9e8a8 Add a couple settings recommendations for the best KDE experience 2025-10-03 14:12:06 -07:00
104 changed files with 5607 additions and 2309 deletions

311
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,311 @@
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,11 +11,3 @@
[submodule "ui/modules/PyXRLinuxDriverIPC"] [submodule "ui/modules/PyXRLinuxDriverIPC"]
path = ui/modules/PyXRLinuxDriverIPC path = ui/modules/PyXRLinuxDriverIPC
url = https://github.com/wheaney/PyXRLinuxDriverIPC.git 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

122
README.md
View File

@ -4,8 +4,13 @@
[![Chat](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://discord.gg/azSBTXNXMt) [![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? ## 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). 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.** 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.**
@ -14,87 +19,124 @@ There are two installations available. **Note: Don't manually install either of
## Breezy Desktop ## Breezy Desktop
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). 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.
For the best performance, ensure you have the latest graphics drivers installed for your distro. For the best performance, ensure you have the latest graphics drivers installed for your distro.
### KDE Plasma Setup (Beta) ### KDE Plasma Setup
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. 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:
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) 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` 2. Set the execute flag: `chmod +x ~/Downloads/breezy_kwin_setup`
3. Run the setup script: `~/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, run this: `steamos-session-select plasma-wayland-persistent` 4. If you're on SteamOS and want to use virtual displays, use the `Enable Breezy Wayland` desktop script
* **Important note** - this will prevent you from accessing Game Mode again, until you undo it by running just `steamos-session-select` * **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. 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
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. 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 ### GNOME Setup
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. Breezy Desktop has best compatibility with GNOME versions 45 through 50.
#### GNOME Multi-display **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
**Note: an [AUR installation](#gnome-arch-linux-setup) is also available for Arch users** **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`) 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` 2. Run the setup script: `~/Downloads/breezy_gnome_setup`
3. Log out and back in, then proceed to [usage](#breezy-gnome-usage). 3. Log out and back in, then proceed to [usage](#breezy-gnome-usage).
#### GNOME Arch Linux setup #### GNOME Arch Linux setup
Breezy GNOME is in AUR (but not pacman, yet). To install, run these commands from a terminal: Breezy GNOME is in AUR. To install, run these commands from a terminal with your glasses unplugged:
1. If you've previously installed Breezy GNOME using the setup script, you must uninstall it first with `breezy_gnome_uninstall` 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` 2. `yay -S breezy-desktop-gnome-git`
3. `systemctl --user enable --now xr-driver.service` 3. `systemctl --user enable --now xr-driver.service`
4. Log out and back in, then proceed to [usage](#breezy-gnome-usage). 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 #### 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. 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.** 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.**
### Upcoming Features ### Breezy Desktop Pricing
* Port to KWin Effect (KDE Plasma support)
### Breezy Desktop Pricing (Productivity Tier) 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 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: 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.
| Payment period | Price | Upgrade window \* | | Payment period | Price | Upgrade window \* |
| -------------- | ------------------ | ------------------------------------- | | -------------- | ------------------ | ------------------------------------- |
| Monthly | $5 USD, recurring | Within 7 days to upgrade to yearly | | Yearly | $10 USD, recurring | Within 90 days to upgrade to lifetime |
| Yearly | $50 USD, recurring | Within 90 days to upgrade to lifetime | | Lifetime | $25 USD, one-time | — |
| 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. \* If you pay for a plan and decide to upgrade to a longer-term plan, you may pay the difference within this window.
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. #### Productivity Pro
#### Free Productivity Tier 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.
To make Breezy widely accessible, Productivity Tier is currently free of charge for qualified individuals using it for non-commercial purposes. Eligible groups include: | 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:
* Students * Students
* Public school educators * Public school educators
@ -104,9 +146,9 @@ To make Breezy widely accessible, Productivity Tier 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. If you believe you qualify, please email wayne@xronlinux.com. You may be asked to provide documentation to verify your eligibility.
#### Unlocking Productivity Tier #### Unlocking a Productivity License
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. 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.
If you don't receive a token, you can request one in the `License Details` view by entering your email address. If you don't receive a token, you can request one in the `License Details` view by entering your email address.
@ -144,7 +186,7 @@ I've implemented an experimental multi-tap detection feature for screen **re-cen
### Supporter Tier ### Supporter Tier
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: 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:
| Payment period | Price | Upgrade window \* | | Payment period | Price | Upgrade window \* |
| -------------- | ------------------ | ------------------------------------- | | -------------- | ------------------ | ------------------------------------- |
@ -153,7 +195,7 @@ Breezy Vulkan's Supporter Tier features are enhancments to core functionality, o
\* If you pay for a plan and decide to upgrade to a longer-term plan, you may pay the difference within this window. \* If you pay for a plan and decide to upgrade to a longer-term plan, you may pay the difference within this window.
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. 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.
Features currently offered: Features currently offered:
* Smooth Follow (in Follow mode) * Smooth Follow (in Follow mode)
@ -200,7 +242,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. * 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. * 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, and -- up to version 0.8.7 -- to Google Analytics. * 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.
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. 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.3.1 2.9.13

BIN
assets/breezy-kde.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 KiB

View File

@ -20,9 +20,11 @@ check_command() {
check_command "curl" check_command "curl"
check_command "gnome-shell" check_command "gnome-shell"
check_command "jq"
ARCH=$(uname -m) ARCH=$(uname -m)
FILE_NAME="breezyGNOME-$ARCH.tar.gz" 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) GNOME_VERSION=$(gnome-shell --version | cut -d' ' -f3 | cut -d'.' -f1)
VERSION_SPECIFIC_FILENAME="breezyGNOME-$GNOME_VERSION-$ARCH.tar.gz" VERSION_SPECIFIC_FILENAME="breezyGNOME-$GNOME_VERSION-$ARCH.tar.gz"
LATEST_RELEASE=$(curl -s "https://api.github.com/repos/wheaney/breezy-desktop/releases/latest") LATEST_RELEASE=$(curl -s "https://api.github.com/repos/wheaney/breezy-desktop/releases/latest")
@ -44,35 +46,68 @@ pushd $tmp_dir > /dev/null
echo "Created temp directory: ${tmp_dir}" echo "Created temp directory: ${tmp_dir}"
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/latest/download/$FILE_NAME" 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" ] if [ "$1" = "-v" ]
then then
metrics_version="$2" metrics_version="$2"
binary_path_arg="$3" local_dir_arg="$3"
elif [ "$1" = "--tag" ] && [ -n "$2" ] elif [ "$1" = "--tag" ] && [ -n "$2" ]
then then
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/download/$2/$FILE_NAME" 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 else
binary_path_arg="$1" 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
fi fi
if [ -z "$binary_path_arg" ] if [ -z "$binary_path_arg" ]
then then
# download and unzip the binary # download and unzip the binary
echo "Downloading to: ${tmp_dir}/$FILE_NAME" binary_path_arg="$FILE_NAME"
curl -L "$binary_download_url" > "$FILE_NAME" echo "Downloading to: ${tmp_dir}/$binary_path_arg"
curl -L "$binary_download_url" > "$binary_path_arg"
else else
FILE_NAME=$(basename $binary_path_arg) 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 fi
echo "Extracting to: ${tmp_dir}/breezy_gnome" echo "Extracting to: ${tmp_dir}/breezy_gnome"
tar -xf $FILE_NAME 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/
pushd breezy_gnome > /dev/null pushd breezy_gnome > /dev/null

View File

@ -23,25 +23,38 @@ check_command "curl"
print_missing_dependencies() { print_missing_dependencies() {
echo "" echo ""
printf "\n\033[1;31mMissing required components\033[0m\n" printf "\n\033[1;31mMissing required components\033[0m\n"
if [ -n "${BREEZY_DISTROBOX:-}" ]; then
echo "" echo ""
echo "Install the corresponding packages with your package manager, then rerun this setup:" printf "\033[1;33mFirst, enter your Distrobox container:\033[0m\n"
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)" printf "\tdistrobox enter $BREEZY_DISTROBOX\n"
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" fi
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 "" 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 ""
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\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 $*" printf "\n\tPRINT_FULL_STDERR=1 %s\n" "$0 $*"
exit 1 exit 1
} }
ARCH=$(uname -m) ARCH=$(uname -m)
LIBS_ARCH="$ARCH"
if [ -f /etc/os-release ]; then if [ -f /etc/os-release ]; then
. /etc/os-release . /etc/os-release
if [ "$ID" == "steamos" ]; then if [ "$ID" == "steamos" ]; then
ARCH="steamos" IFS=. read -r steamos_major steamos_minor _ <<< "$VERSION_ID"
ARCH="steamos-${steamos_major}.${steamos_minor}"
fi fi
fi fi
FILE_NAME="breezyKWin-$ARCH.tar.gz" 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") LATEST_RELEASE=$(curl -s "https://api.github.com/repos/wheaney/breezy-desktop/releases/latest")
echo "Performing setup for KWin ($ARCH)" echo "Performing setup for KWin ($ARCH)"
@ -53,15 +66,38 @@ pushd $tmp_dir > /dev/null
echo "Created temp directory: ${tmp_dir}" echo "Created temp directory: ${tmp_dir}"
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/latest/download/$FILE_NAME" 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" ] if [ "$1" = "-v" ]
then then
metrics_version="$2" metrics_version="$2"
binary_path_arg="$3" local_dir_arg="$3"
elif [ "$1" = "--tag" ] && [ -n "$2" ] elif [ "$1" = "--tag" ] && [ -n "$2" ]
then then
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/download/$2/$FILE_NAME" 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 else
binary_path_arg="$1" 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
fi fi
if [ -z "$binary_path_arg" ] if [ -z "$binary_path_arg" ]
@ -71,6 +107,7 @@ then
if [[ "$http_code" =~ ^(2|3) ]]; then if [[ "$http_code" =~ ^(2|3) ]]; then
echo "Downloading to: ${tmp_dir}/$FILE_NAME" echo "Downloading to: ${tmp_dir}/$FILE_NAME"
curl -L "$binary_download_url" -o "$FILE_NAME" curl -L "$binary_download_url" -o "$FILE_NAME"
binary_path_arg="$FILE_NAME"
else else
check_command "git" check_command "git"
check_command "cmake" check_command "cmake"
@ -114,13 +151,23 @@ then
pushd $start_dir > /dev/null pushd $start_dir > /dev/null
fi fi
echo "Building Breezy Desktop from source, this may take a while..."
set +e 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_stderr=$(LOCAL_BUILD_SYSTEM=1 bin/package_kwin --download-driver 2>&1)
pkgkwin_rc=$? pkgkwin_rc=$?
fi
set -e set -e
if [ "$pkgkwin_rc" -ne 0 ]; then if [ "$pkgkwin_rc" -ne 0 ]; then
if echo "$pkgkwin_stderr" | grep -qi "could not find" && [ -z "${PRINT_FULL_STDERR+x}" ]; then if echo "$pkgkwin_stderr" | grep -qiE 'could not find|Please install "cmake"' && [ -z "${PRINT_FULL_STDERR+x}" ]; then
print_missing_dependencies "$*" print_missing_dependencies "$*"
else else
echo "$pkgkwin_stderr" echo "$pkgkwin_stderr"
@ -129,27 +176,35 @@ then
exit $pkgkwin_rc exit $pkgkwin_rc
fi fi
FILE_NAME="breezyKWin-$ARCH.tar.gz" FILE_NAME="breezyKWin-$ARCH.tar.gz"
cp "out/$FILE_NAME" "$tmp_dir" binary_path_arg="$FILE_NAME"
cp "out/$binary_path_arg" "$tmp_dir"
popd > /dev/null popd > /dev/null
fi fi
else else
FILE_NAME=$(basename $binary_path_arg) 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 fi
cp $abs_path $tmp_dir
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"
fi fi
echo "Extracting to: ${tmp_dir}/breezy_kwin" echo "Extracting to: ${tmp_dir}/breezy_kwin"
tar -xf $FILE_NAME 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/
pushd breezy_kwin > /dev/null pushd breezy_kwin > /dev/null
# run the setup script that comes with this release # run the setup script that comes with this release
bin/setup $metrics_version ARCH="$ARCH" bin/setup $metrics_version
echo "Deleting temp directory: ${tmp_dir}" echo "Deleting temp directory: ${tmp_dir}"
rm -rf $tmp_dir rm -rf $tmp_dir

View File

@ -26,36 +26,67 @@ pushd $tmp_dir > /dev/null
echo "Created temp directory: ${tmp_dir}" echo "Created temp directory: ${tmp_dir}"
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/latest/download/breezyVulkan-$ARCH.tar.gz" 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" ] if [ "$1" = "-v" ]
then then
metrics_version="$2" metrics_version="$2"
binary_path_arg="$3" local_dir_arg="$3"
elif [ "$1" = "--tag" ] && [ -n "$2" ] elif [ "$1" = "--tag" ] && [ -n "$2" ]
then then
binary_download_url="https://github.com/wheaney/breezy-desktop/releases/download/$2/breezyVulkan-$ARCH.tar.gz" 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 else
binary_path_arg="$1" 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
fi fi
if [ -z "$binary_path_arg" ] if [ -z "$binary_path_arg" ]
then then
# download and unzip the binary # download and unzip the binary
binary_path_arg="breezyVulkan-$ARCH.tar.gz" binary_path_arg="$FILE_NAME"
echo "Downloading to: ${tmp_dir}/$binary_path_arg" echo "Downloading to: ${tmp_dir}/$binary_path_arg"
curl -L "$binary_download_url" > "$binary_path_arg" curl -L "$binary_download_url" > "$binary_path_arg"
else else
if [[ "$binary_path_arg" = /* ]]; then cp "$binary_path_arg" "$tmp_dir"
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 fi
echo "Extracting to: ${tmp_dir}/breezy_vulkan" echo "Extracting to: ${tmp_dir}/breezy_vulkan"
tar -xf $(basename $binary_path_arg) 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/
pushd breezy_vulkan > /dev/null pushd breezy_vulkan > /dev/null

9
bin/package_all Executable file
View File

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

View File

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

78
bin/package_libs Executable file
View File

@ -0,0 +1,78 @@
#!/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,21 +26,6 @@ else
fi fi
BUILD_FILE_NAME=breezyVulkan-$ARCH.tar.gz 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 # copy Sombrero shader, get ReShade headers
cp modules/sombrero/*.frag $PACKAGE_DIR cp modules/sombrero/*.frag $PACKAGE_DIR
cp modules/sombrero/*.png $PACKAGE_DIR cp modules/sombrero/*.png $PACKAGE_DIR
@ -54,11 +39,12 @@ fi
# copy vulkan setup scripts and configs # copy vulkan setup scripts and configs
mkdir -p $PACKAGE_DIR/bin 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" 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"
cp -r $VULKAN_DIR/config $PACKAGE_DIR cp -r $VULKAN_DIR/config $PACKAGE_DIR
# build XR driver # build XR driver
XR_DRIVER_BINARY=$XR_DRIVER_DIR/out/xrDriver-$ARCH.tar.gz XR_DRIVER_BINARY_NAME=xrDriver-$ARCH.tar.gz
XR_DRIVER_BINARY="$XR_DRIVER_DIR/out/$XR_DRIVER_BINARY_NAME"
if [ ! -e "$XR_DRIVER_BINARY" ] || [ "$1" == "--rebuild-driver" ]; then if [ ! -e "$XR_DRIVER_BINARY" ] || [ "$1" == "--rebuild-driver" ]; then
# if a file exists at custom_banner_config.yml, copy it to the xrealAirLinuxDriver directory # if a file exists at custom_banner_config.yml, copy it to the xrealAirLinuxDriver directory
@ -77,23 +63,23 @@ if [ ! -e "$XR_DRIVER_BINARY" ] || [ "$1" == "--rebuild-driver" ]; then
fi fi
TMP_DIR=$(mktemp -d -t breezy-vulkan-XXXXXXXXXX) TMP_DIR=$(mktemp -d -t breezy-vulkan-XXXXXXXXXX)
cp $XR_DRIVER_BINARY $TMP_DIR/xrDriver.tar.gz cp "$XR_DRIVER_BINARY" "$TMP_DIR/$XR_DRIVER_BINARY_NAME"
pushd $TMP_DIR pushd $TMP_DIR
tar -xf $TMP_DIR/xrDriver.tar.gz tar -xf "$TMP_DIR/$XR_DRIVER_BINARY_NAME"
XR_DRIVER_MANIFEST_LINE=$(sha256sum xr_driver/manifest) XR_DRIVER_MANIFEST_LINE=$(sha256sum xr_driver/manifest)
popd popd
rm -rf $TMP_DIR rm -rf $TMP_DIR
# copy XR driver binary and setup script # copy XR driver binary and setup script
cp $XR_DRIVER_BINARY $PACKAGE_DIR/xrDriver.tar.gz cp "$XR_DRIVER_BINARY" "$PACKAGE_DIR/$XR_DRIVER_BINARY_NAME"
cp $XR_DRIVER_DIR/bin/xr_driver_setup $PACKAGE_DIR/bin cp $XR_DRIVER_DIR/bin/xr_driver_setup $PACKAGE_DIR/bin
# create manifest file for verifying installed file checksums against the originally packaged versions # 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) # include any file that doesn't get modified during setup (e.g. vkBasalt.json files)
pushd $PACKAGE_DIR pushd $PACKAGE_DIR
echo $XR_DRIVER_MANIFEST_LINE > manifest echo $XR_DRIVER_MANIFEST_LINE > manifest
sha256sum bin/breezy_vulkan_uninstall vkBasalt.64/libvkbasalt.so vkBasalt.32/libvkbasalt.so *.frag *.fx* *.png >> manifest sha256sum bin/breezy_vulkan_uninstall bin/breezy_vulkan_logs *.frag *.fx* *.png >> manifest
popd popd
# bundle everything up # bundle everything up

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

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

50
gnome/bin/breezy_gnome_logs Executable file
View File

@ -0,0 +1,50 @@
#!/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,6 +44,9 @@ rm -f $XDG_DATA_HOME/locale/*/LC_MESSAGES/breezydesktop.mo
rm -f $XDG_BIN_HOME/breezydesktop rm -f $XDG_BIN_HOME/breezydesktop
rm -f $XDG_BIN_HOME/virtualdisplay 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 if [ -e "$XDG_BIN_HOME/xr_driver_uninstall" ]; then
[ "$for_install" -eq 0 ] && echo "Uninstalling XRLinuxDriver" [ "$for_install" -eq 0 ] && echo "Uninstalling XRLinuxDriver"
if [ "$for_install" -eq 1 ]; then if [ "$for_install" -eq 1 ]; then
@ -56,6 +59,7 @@ fi
[ "$for_install" -eq 0 ] && echo "Removing the breezy_gnome scripts from ${XDG_BIN_HOME}" [ "$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_verify
rm -f $XDG_BIN_HOME/breezy_gnome_logs
# this script is self-deleting, leave this as the last command # this script is self-deleting, leave this as the last command
rm -f $XDG_BIN_HOME/breezy_gnome_uninstall rm -f $XDG_BIN_HOME/breezy_gnome_uninstall

View File

@ -69,9 +69,18 @@ if [ "$XDG_SESSION_TYPE" != "wayland" ]; then
printf "\033[1;33mWARNING:\033[0m Virtual display functionality requires GNOME on Wayland\n" printf "\033[1;33mWARNING:\033[0m Virtual display functionality requires GNOME on Wayland\n"
fi fi
if ! systemctl --user is-active gnome-remote-desktop &>/dev/null; then # Check the actual dependencies used by the UI for virtual displays.
printf "\033[1;33mWARNING:\033[0m gnome-remote-desktop service is not running\n" if command -v gdbus &>/dev/null; then
printf "\033[1;33mWARNING:\033[0m Virtual display functionality requires the gnome-remote-desktop service running\n" 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"
fi fi
# This script gets packaged with the release and should do the bulk of the setup work. This allows this setup to be tied # This script gets packaged with the release and should do the bulk of the setup work. This allows this setup to be tied
@ -128,6 +137,7 @@ 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}" echo "Copying the breezy_gnome scripts to ${XDG_BIN_HOME}"
mkdir -p $XDG_BIN_HOME mkdir -p $XDG_BIN_HOME
cp bin/breezy_gnome_uninstall $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" \ sed -i -e "s/{bin_dir}/$ESCAPED_XDG_BIN_HOME/g" \
-e "s/{data_dir}/$ESCAPED_BREEZY_GNOME_DATA_DIR/g" \ -e "s/{data_dir}/$ESCAPED_BREEZY_GNOME_DATA_DIR/g" \
-e "s/{xr_driver_data_dir}/$ESCAPED_XR_DRIVER_DATA_DIR/g" \ -e "s/{xr_driver_data_dir}/$ESCAPED_XR_DRIVER_DATA_DIR/g" \
@ -136,8 +146,8 @@ sed -i -e "s/{bin_dir}/$ESCAPED_XDG_BIN_HOME/g" \
cp bin/breezy_gnome_verify $XDG_BIN_HOME cp bin/breezy_gnome_verify $XDG_BIN_HOME
echo "Copying the manifest file to ${BREEZY_GNOME_DATA_DIR}" echo "Copying the manifest file to ${BREEZY_GNOME_DATA_DIR}"
mkdir -p $BREEZY_GNOME_DATA_DIR mkdir -p "$BREEZY_GNOME_DATA_DIR"
cp manifest $BREEZY_GNOME_DATA_DIR cp manifest "$BREEZY_GNOME_DATA_DIR/manifest"
echo "Installing the breezydesktop@xronlinux.com GNOME extension" echo "Installing the breezydesktop@xronlinux.com GNOME extension"
gnome-extensions install --force breezydesktop@xronlinux.com.shell-extension.zip gnome-extensions install --force breezydesktop@xronlinux.com.shell-extension.zip
@ -163,9 +173,12 @@ echo "Installing xrDriver"
echo "BEGIN - xr_driver_setup" echo "BEGIN - xr_driver_setup"
if [ -z "$1" ] if [ -z "$1" ]
then then
sudo bin/xr_driver_setup $(pwd)/xrDriver.tar.gz sudo --preserve-env=SKIP_SYSTEMD bin/xr_driver_setup $(pwd)
else else
sudo bin/xr_driver_setup -v $1 $(pwd)/xrDriver.tar.gz sudo --preserve-env=SKIP_SYSTEMD bin/xr_driver_setup -v $1 $(pwd)
fi fi
echo "END - xr_driver_setup" 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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -28,33 +28,34 @@ function lookAheadMS(imuDateMs, lookAheadCfg, override) {
// Create a mesh of vertices in a pattern suitable for TRIANGLE_STRIP // Create a mesh of vertices in a pattern suitable for TRIANGLE_STRIP
function createVertexMesh(fovDetails, monitorDetails, positionVectorNWU) { function createVertexMesh(fovDetails, monitorDetails, positionVectorNWU) {
let fovConversions = fovDetails.curvedDisplay ? fovConversionFns.curved : fovConversionFns.flat; let horizontalWrap = fovDetails.monitorWrappingScheme === 'horizontal';
const sideEdgeDistancePixels = fovConversions.centerToFovEdgeDistance( const horizontalConversions = fovDetails.curvedDisplay && horizontalWrap ? fovConversionFns.curved : fovConversionFns.flat;
const sideEdgeDistancePixels = horizontalConversions.centerToFovEdgeDistance(
fovDetails.completeScreenDistancePixels, fovDetails.completeScreenDistancePixels,
fovDetails.widthPixels fovDetails.sizeAdjustedWidthPixels
); );
const horizontalRadians = fovConversions.lengthToRadians( const horizontalRadians = horizontalConversions.lengthToRadians(
fovDetails.defaultDistanceHorizontalRadians, fovDetails.defaultDistanceHorizontalRadians,
fovDetails.widthPixels, fovDetails.widthPixels,
sideEdgeDistancePixels, sideEdgeDistancePixels,
monitorDetails.width monitorDetails.width
); );
const topEdgeDistancePixels = fovConversions.centerToFovEdgeDistance( let verticalWrap = fovDetails.monitorWrappingScheme === 'vertical';
const verticalConversions = fovDetails.curvedDisplay && verticalWrap ? fovConversionFns.curved : fovConversionFns.flat;
const topEdgeDistancePixels = verticalConversions.centerToFovEdgeDistance(
fovDetails.completeScreenDistancePixels, fovDetails.completeScreenDistancePixels,
fovDetails.heightPixels fovDetails.sizeAdjustedHeightPixels
); );
const verticalRadians = fovConversions.lengthToRadians( const verticalRadians = verticalConversions.lengthToRadians(
fovDetails.defaultDistanceVerticalRadians, fovDetails.defaultDistanceVerticalRadians,
fovDetails.heightPixels, fovDetails.heightPixels,
topEdgeDistancePixels, topEdgeDistancePixels,
monitorDetails.height monitorDetails.height
); );
let horizontalWrap = fovDetails.monitorWrappingScheme === 'horizontal'; const xSegments = horizontalConversions.radiansToSegments(horizontalRadians);
let verticalWrap = fovDetails.monitorWrappingScheme === 'vertical'; const ySegments = verticalConversions.radiansToSegments(verticalRadians);
const xSegments = horizontalWrap ? fovConversions.radiansToSegments(horizontalRadians) : 1;
const ySegments = verticalWrap ? fovConversions.radiansToSegments(verticalRadians) : 1;
const texXLeft = 0; const texXLeft = 0;
const texYTop = 0; const texYTop = 0;
@ -148,6 +149,13 @@ export const VirtualDisplayEffect = GObject.registerClass({
'Latest IMU quaternion snapshots and epoch timestamp for when it was collected', 'Latest IMU quaternion snapshots and epoch timestamp for when it was collected',
GObject.ParamFlags.READWRITE 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': GObject.ParamSpec.boolean(
'smooth-follow-enabled', 'smooth-follow-enabled',
'Smooth follow enabled', 'Smooth follow enabled',
@ -176,12 +184,21 @@ export const VirtualDisplayEffect = GObject.registerClass({
GObject.ParamFlags.READWRITE, GObject.ParamFlags.READWRITE,
true 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': GObject.ParamSpec.double(
'display-distance', 'display-distance',
'Display Distance', 'Display Distance',
'Distance of the display from the camera', 'Distance of the display from the camera',
GObject.ParamFlags.READWRITE, GObject.ParamFlags.READWRITE,
0.0, 0.1,
2.5, 2.5,
1.0 1.0
), ),
@ -190,7 +207,7 @@ export const VirtualDisplayEffect = GObject.registerClass({
'Display distance default', 'Display distance default',
'Distance to use when not explicitly set, or when reset', 'Distance to use when not explicitly set, or when reset',
GObject.ParamFlags.READWRITE, GObject.ParamFlags.READWRITE,
0.2, 0.1,
2.5, 2.5,
1.0 1.0
), ),
@ -253,6 +270,8 @@ export const VirtualDisplayEffect = GObject.registerClass({
this._use_smooth_follow_origin = false; this._use_smooth_follow_origin = false;
this.connect('notify::display-distance', this._update_display_distance.bind(this)); 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::focused-monitor-index', this._update_display_distance.bind(this));
this.connect('notify::monitor-placements', this._update_display_position.bind(this)); this.connect('notify::monitor-placements', this._update_display_position.bind(this));
this.connect('notify::show-banner', this._handle_banner_update.bind(this)); this.connect('notify::show-banner', this._handle_banner_update.bind(this));
@ -389,7 +408,11 @@ export const VirtualDisplayEffect = GObject.registerClass({
finalPositionVector = noRotationVector.map(coord => coord * inverse_follow_ease); finalPositionVector = noRotationVector.map(coord => coord * inverse_follow_ease);
finalPositionVector[0] = noRotationVector[0]; finalPositionVector[0] = noRotationVector[0];
} }
this._vertices = createVertexMesh(this.fov_details, this.monitor_details, finalPositionVector); 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);
const rotation_radians = this.monitor_placements[this.monitor_index].rotationAngleRadians; const rotation_radians = this.monitor_placements[this.monitor_index].rotationAngleRadians;
if (this._initialized) { if (this._initialized) {
@ -402,8 +425,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]); this.set_uniform_float(this.get_uniform_location("u_show_banner"), 1, [this.show_banner ? 1.0 : 0.0]);
} }
perspective(fovHorizontalRadians, aspect, near, far) { perspective(widthUnitDistance, aspect, near, far) {
const f = 1.0 / Math.tan(fovHorizontalRadians / 2.0); const f = 2.0 / widthUnitDistance;
const range = far - near; const range = far - near;
return [ return [
@ -417,7 +440,8 @@ export const VirtualDisplayEffect = GObject.registerClass({
vfunc_build_pipeline() { vfunc_build_pipeline() {
const declarations = ` const declarations = `
uniform bool u_show_banner; uniform bool u_show_banner;
uniform mat4 u_imu_data; uniform mat4 u_pose_orientation;
uniform vec3 u_pose_position;
uniform float u_look_ahead_ms; uniform float u_look_ahead_ms;
uniform vec4 u_look_ahead_cfg; uniform vec4 u_look_ahead_cfg;
uniform mat4 u_projection_matrix; uniform mat4 u_projection_matrix;
@ -457,10 +481,14 @@ export const VirtualDisplayEffect = GObject.registerClass({
return vec3(v.x * c + v.z * s, v.y, v.z * c - v.x * s); return vec3(v.x * c + v.z * s, v.y, v.z * c - v.x * s);
} }
vec4 nwuToESU(vec4 v) { vec4 nwuToEUS(vec4 v) {
return vec4(-v.y, v.z, -v.x, v.w); 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 // 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" // 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) { vec3 rateOfChange(vec3 v1, vec3 v2, float delta_time) {
@ -487,14 +515,23 @@ export const VirtualDisplayEffect = GObject.registerClass({
if (!u_show_banner) { if (!u_show_banner) {
float aspect_ratio = u_display_resolution.x / u_display_resolution.y; 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); vec3 complete_vector = applyXRotationToVector(world_pos.xyz, u_rotation_x_radians);
complete_vector = applyYRotationToVector(complete_vector, u_rotation_y_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_t0 = applyQuaternionToVector(complete_vector, quat_t0);
vec3 rotated_vector_t1 = applyQuaternionToVector(complete_vector, nwuToESU(quatConjugate(u_imu_data[1]))); vec3 rotated_vector_t1 = applyQuaternionToVector(complete_vector, nwuToEUS(quatConjugate(u_pose_orientation[1])));
float delta_time_t0 = u_imu_data[3][0] - u_imu_data[3][1]; float delta_time_t0 = u_pose_orientation[3][0] - u_pose_orientation[3][1];
vec3 velocity_t0 = rateOfChange(rotated_vector_t0, rotated_vector_t1, delta_time_t0);
// 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
);
// compute the capped look ahead with scanline adjustments // 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]; 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];
@ -502,7 +539,7 @@ export const VirtualDisplayEffect = GObject.registerClass({
vec3 look_ahead_vector = applyLookAhead(rotated_vector_t0, velocity_t0, effective_look_ahead_ms); vec3 look_ahead_vector = applyLookAhead(rotated_vector_t0, velocity_t0, effective_look_ahead_ms);
world_pos = vec4(look_ahead_vector - u_lens_vector, world_pos.w); world_pos = vec4(look_ahead_vector - final_lens_position, world_pos.w);
world_pos.z /= aspect_ratio / u_actor_to_display_ratios.y; world_pos.z /= aspect_ratio / u_actor_to_display_ratios.y;
@ -531,23 +568,23 @@ export const VirtualDisplayEffect = GObject.registerClass({
this._initialized = true; this._initialized = true;
const aspect = this.target_monitor.width / this.target_monitor.height; const aspect = this.target_monitor.width / this.target_monitor.height;
const fovRadians = diagonalToCrossFOVs(degreeToRadian(Globals.data_stream.device_data.displayFov), aspect); const fovLengths = diagonalToCrossFOVs(degreeToRadian(Globals.data_stream.device_data.displayFov), aspect);
const projection_matrix = this.perspective( const projection_matrix = this.perspective(
fovRadians.horizontal, fovLengths.widthUnitDistance,
aspect, aspect,
1.0, 1.0,
10000.0 10000.0
); );
this.set_uniform_matrix(this.get_uniform_location("u_projection_matrix"), false, 4, projection_matrix); 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, [fovRadians.vertical]); this.set_uniform_float(this.get_uniform_location("u_fov_vertical_radians"), 1, [fovLengths.verticalRadians]);
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_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_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_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_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._update_display_position();
this._handle_banner_update(); 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) { if (this.imu_snapshots && !this.show_banner) {
let lookAheadSet = false; let lookAheadSet = false;
@ -557,10 +594,17 @@ export const VirtualDisplayEffect = GObject.registerClass({
this.set_uniform_float(this.get_uniform_location('u_look_ahead_ms'), 1, [0.0]); this.set_uniform_float(this.get_uniform_location('u_look_ahead_ms'), 1, [0.0]);
lookAheadSet = true; lookAheadSet = true;
} }
this.set_uniform_matrix(this.get_uniform_location("u_imu_data"), false, 4, this.imu_snapshots.imu_data); this.set_uniform_matrix(this.get_uniform_location("u_pose_orientation"), false, 4, this.imu_snapshots.pose_orientation);
} else { } else {
this.set_uniform_matrix(this.get_uniform_location("u_imu_data"), false, 4, this.imu_snapshots.smooth_follow_origin); this.set_uniform_matrix(this.get_uniform_location("u_pose_orientation"), 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) { 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)]); 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 St from 'gi://St';
import { VirtualDisplayEffect, SMOOTH_FOLLOW_SLERP_TIMELINE_MS } from './virtualdisplayeffect.js'; import { VirtualDisplayEffect, SMOOTH_FOLLOW_SLERP_TIMELINE_MS } from './virtualdisplayeffect.js';
import { applyQuaternionToVector, degreeToRadian, diagonalToCrossFOVs, fovConversionFns, normalizeVector } from './math.js'; import { applyQuaternionToVector, degreeToRadian, diagonalToCrossFOVs, fovConversionFns, vectorMagnitude } from './math.js';
import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import * as Main from 'resource:///org/gnome/shell/ui/main.js';
@ -19,38 +19,40 @@ const FOCUS_THRESHOLD = 0.95 / 2.0;
// if we leave the monitor with some margin, unfocus even if no other monitor is in focus // if we leave the monitor with some margin, unfocus even if no other monitor is in focus
const UNFOCUS_THRESHOLD = 1.1 / 2.0; 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 width // 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) { function getMonitorDistance(fovDetails, lookUpPixels, lookWestPixels, monitorVector, monitorDetails, upAngleToLength, westAngleToLength) {
const monitorAspectRatio = monitorDetails.width / monitorDetails.height; // 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;
// weight the up distance by the aspect ratio
const vectorUpPixels = upAngleToLength( const vectorUpPixels = upAngleToLength(
fovDetails.defaultDistanceVerticalRadians, fovDetails.defaultDistanceVerticalRadians,
fovDetails.heightPixels, fovDetails.heightPixels,
fovDetails.completeScreenDistancePixels, monitorDistance,
monitorVector[2], monitorVector[2],
monitorVector[0] monitorVector[0]
); ) * distanceAdjustment;
const upDeltaPixels = (lookUpPixels - vectorUpPixels) * monitorAspectRatio; const upPercentage = Math.abs(lookUpPixels * distanceAdjustment - vectorUpPixels) / monitorDetails.height;
const vectorWestPixels = westAngleToLength( const vectorWestPixels = westAngleToLength(
fovDetails.defaultDistanceHorizontalRadians, fovDetails.defaultDistanceHorizontalRadians,
fovDetails.widthPixels, fovDetails.widthPixels,
fovDetails.completeScreenDistancePixels, monitorDistance,
monitorVector[1], monitorVector[1],
monitorVector[0] monitorVector[0]
); ) * distanceAdjustment;
const westDeltaPixels = lookWestPixels - vectorWestPixels; const westPercentage = Math.abs(lookWestPixels * distanceAdjustment - vectorWestPixels) / monitorDetails.width;
const totalDeltaPixels = Math.sqrt(upDeltaPixels * upDeltaPixels + westDeltaPixels * westDeltaPixels);
// threshold is a percentage of width, and height was already properly weighted // how close we are to any edge is the largest of the two percentages
return totalDeltaPixels / monitorDetails.width; return Math.max(upPercentage, westPercentage);
} }
/** /**
* Find the vector in the array that's closest to the quaternion rotation * Find the vector in the array that's closest to the quaternion rotation
* *
* @param {number[]} quaternion - Reference quaternion [x, y, z, w] * @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[][]} monitorVectors - Array of monitor vectors [x, y, z] to search from
* @param {number} currentFocusedIndex - Index of the currently focused monitor * @param {number} currentFocusedIndex - Index of the currently focused monitor
* @param {number} focusedMonitorDistance - Distance to the focused monitor, < 1.0 if zoomed in * @param {number} focusedMonitorDistance - Distance to the focused monitor, < 1.0 if zoomed in
@ -59,7 +61,9 @@ function getMonitorDistance(fovDetails, lookUpPixels, lookWestPixels, monitorVec
* @param {Object[]} monitorsDetails - Contains x, y, width, height (coordinates from top-left) for each monitor * @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 * @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, monitorVectors, currentFocusedIndex, focusedMonitorDistance, smoothFollowEnabled, fovDetails, monitorsDetails) { function findFocusedMonitor(quaternion, position, monitorVectors, currentFocusedIndex, focusedMonitorDistance, smoothFollowEnabled, fovDetails, monitorsDetails) {
if (currentFocusedIndex !== -1 && smoothFollowEnabled) return currentFocusedIndex;
const lookVector = [1.0, 0.0, 0.0]; // NWU vector pointing to the center of the screen const lookVector = [1.0, 0.0, 0.0]; // NWU vector pointing to the center of the screen
const rotatedLookVector = applyQuaternionToVector(lookVector, quaternion); const rotatedLookVector = applyQuaternionToVector(lookVector, quaternion);
@ -82,8 +86,13 @@ function findFocusedMonitor(quaternion, monitorVectors, currentFocusedIndex, foc
rotatedLookVector[0] rotatedLookVector[0]
); );
let closestIndex = -1; function vectorRelativeToLensPosition(vector) {
let closestDistance = Infinity; return [
vector[0] - position[0],
vector[1] - position[1],
vector[2] - position[2]
]
}
// the currently focused monitor is the most likely to be the closest, check it first and exit early if it is // the currently focused monitor is the most likely to be the closest, check it first and exit early if it is
if (currentFocusedIndex !== -1) { if (currentFocusedIndex !== -1) {
@ -91,15 +100,18 @@ function findFocusedMonitor(quaternion, monitorVectors, currentFocusedIndex, foc
fovDetails, fovDetails,
lookUpPixels, lookUpPixels,
lookWestPixels, lookWestPixels,
monitorVectors[currentFocusedIndex], vectorRelativeToLensPosition(monitorVectors[currentFocusedIndex]),
monitorsDetails[currentFocusedIndex], monitorsDetails[currentFocusedIndex],
upConversionFns.angleToLength, upConversionFns.angleToLength,
westConversionFns.angleToLength westConversionFns.angleToLength
) * focusedMonitorDistance; ) * focusedMonitorDistance;
if (smoothFollowEnabled || focusedDistance < UNFOCUS_THRESHOLD) return currentFocusedIndex; if (focusedDistance < UNFOCUS_THRESHOLD) return currentFocusedIndex;
} }
let closestIndex = -1;
let closestDistance = Infinity;
// find the vector closest to the rotated look vector // find the vector closest to the rotated look vector
monitorVectors.forEach((monitorVector, index) => { monitorVectors.forEach((monitorVector, index) => {
if (index === currentFocusedIndex) return; if (index === currentFocusedIndex) return;
@ -108,7 +120,7 @@ function findFocusedMonitor(quaternion, monitorVectors, currentFocusedIndex, foc
fovDetails, fovDetails,
lookUpPixels, lookUpPixels,
lookWestPixels, lookWestPixels,
monitorVector, vectorRelativeToLensPosition(monitorVector),
monitorsDetails[index], monitorsDetails[index],
upConversionFns.angleToLength, upConversionFns.angleToLength,
westConversionFns.angleToLength westConversionFns.angleToLength
@ -130,8 +142,14 @@ function findFocusedMonitor(quaternion, monitorVectors, currentFocusedIndex, foc
* @returns {Object} - containing `begin`, `center`, and `end` radians for rotating the given monitor * @returns {Object} - containing `begin`, `center`, and `end` radians for rotating the given monitor
*/ */
function monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorBeginPixel, monitorLengthPixels, lengthToRadianFn) { function monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorBeginPixel, monitorLengthPixels, lengthToRadianFn) {
let closestWrapPixel = monitorBeginPixel; // Monitor coordinates can become fractional due to size adjustment.
let closestWrap = cachedMonitorRadians[monitorBeginPixel]; // 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];
if (closestWrap === undefined) { if (closestWrap === undefined) {
closestWrapPixel = Object.keys(cachedMonitorRadians).reduce((previousPixel, currentPixel) => { closestWrapPixel = Object.keys(cachedMonitorRadians).reduce((previousPixel, currentPixel) => {
if (previousPixel === undefined) return currentPixel; if (previousPixel === undefined) return currentPixel;
@ -155,10 +173,16 @@ function monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorBeginPix
closestWrap = cachedMonitorRadians[closestWrapPixel]; closestWrap = cachedMonitorRadians[closestWrapPixel];
} }
const closestWrapPixelNumber = Number(closestWrapPixel);
if (Number.isFinite(closestWrapPixelNumber) && Math.abs(closestWrapPixelNumber - beginPixel) < pixelEpsilon) {
beginPixel = closestWrapPixelNumber;
closestWrapPixel = closestWrapPixelNumber;
}
const spacingRadians = lengthToRadianFn(monitorSpacingPixels); const spacingRadians = lengthToRadianFn(monitorSpacingPixels);
if (closestWrapPixel !== monitorBeginPixel) { if (closestWrapPixel !== beginPixel) {
// there's a gap between the cached wrap value and this one // there's a gap between the cached wrap value and this one
const gapPixels = monitorBeginPixel - closestWrapPixel; const gapPixels = beginPixel - closestWrapPixel;
const gapRadians = lengthToRadianFn(gapPixels); 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 // use Math.floor so if it's negative (this monitor is to the left of or above the closest) it will always
@ -167,7 +191,7 @@ function monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorBeginPix
// update the closestWrap value and cache it // update the closestWrap value and cache it
closestWrap = closestWrap + gapRadians + appliedSpacingRadians; closestWrap = closestWrap + gapRadians + appliedSpacingRadians;
closestWrapPixel = monitorBeginPixel; closestWrapPixel = beginPixel;
cachedMonitorRadians[closestWrapPixel] = closestWrap; cachedMonitorRadians[closestWrapPixel] = closestWrap;
} }
@ -176,7 +200,7 @@ function monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorBeginPix
const endRadians = closestWrap + monitorRadians; 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 // since we're computing the end values for this monitor, cache them too in case they line up with a future monitor
const nextMonitorPixel = monitorBeginPixel + monitorLengthPixels; const nextMonitorPixel = beginPixel + monitorLengthPixels;
if (cachedMonitorRadians[nextMonitorPixel] === undefined) if (cachedMonitorRadians[nextMonitorPixel] === undefined)
cachedMonitorRadians[nextMonitorPixel] = endRadians + spacingRadians; cachedMonitorRadians[nextMonitorPixel] = endRadians + spacingRadians;
@ -208,8 +232,10 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
if (fovDetails.monitorWrappingScheme === 'horizontal') { if (fovDetails.monitorWrappingScheme === 'horizontal') {
// monitors wrap around us horizontally // monitors wrap around us horizontally
const sideEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.widthPixels); const sideEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.sizeAdjustedWidthPixels);
const monitorSpacingPixels = monitorSpacing * fovDetails.widthPixels; const monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedWidthPixels;
// targetWidth is assumed to aleady be size adjusted
const lengthToRadianFn = (targetWidth) => conversionFns.lengthToRadians( const lengthToRadianFn = (targetWidth) => conversionFns.lengthToRadians(
fovDetails.defaultDistanceHorizontalRadians, fovDetails.defaultDistanceHorizontalRadians,
fovDetails.widthPixels, fovDetails.widthPixels,
@ -217,14 +243,14 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
targetWidth targetWidth
); );
cachedMonitorRadians[0] = -fovDetails.defaultDistanceHorizontalRadians / 2; cachedMonitorRadians[0] = -lengthToRadianFn(fovDetails.sizeAdjustedWidthPixels) / 2;
horizontalMonitorSort(monitorDetailsList).forEach(({monitorDetails, originalIndex}) => { horizontalMonitorSort(monitorDetailsList).forEach(({monitorDetails, originalIndex}) => {
const monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.x, monitorDetails.width, lengthToRadianFn); const monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.x, monitorDetails.width, lengthToRadianFn);
const monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(sideEdgeRadius, monitorDetails.width); const monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(sideEdgeRadius, monitorDetails.width);
const upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.heightPixels) * monitorSpacingPixels; const upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.sizeAdjustedHeightPixels) * monitorSpacingPixels;
// offset for aligning this monitor's center with the fov-sized viewport's center // offset for aligning this monitor's center with the fov-sized viewport's center
const upCenterOffsetPixels = (monitorDetails.height - fovDetails.heightPixels) / 2; const upCenterOffsetPixels = (monitorDetails.height - fovDetails.sizeAdjustedHeightPixels) / 2;
// this is where our monitor's center is in relation to an fov-sized viewport centered about (0, 0) // this is where our monitor's center is in relation to an fov-sized viewport centered about (0, 0)
const upCenterPixels = upTopPixels - upCenterOffsetPixels; const upCenterPixels = upTopPixels - upCenterOffsetPixels;
@ -240,7 +266,7 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
// up is flat when wrapping horizontally // up is flat when wrapping horizontally
upCenterPixels upCenterPixels
], ],
centerLook: normalizeVector([ centerLook: [
// north is adjacent where radius is the hypotenuse, using monitorWrapDetails.center as the radians // north is adjacent where radius is the hypotenuse, using monitorWrapDetails.center as the radians
monitorCenterRadius * Math.cos(monitorWrapDetails.center), monitorCenterRadius * Math.cos(monitorWrapDetails.center),
@ -249,7 +275,7 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
// up is flat when wrapping horizontally // up is flat when wrapping horizontally
upCenterPixels upCenterPixels
]), ],
rotationAngleRadians: { rotationAngleRadians: {
x: 0, x: 0,
y: -monitorWrapDetails.center y: -monitorWrapDetails.center
@ -259,8 +285,10 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
} else if (fovDetails.monitorWrappingScheme === 'vertical') { } else if (fovDetails.monitorWrappingScheme === 'vertical') {
// monitors wrap around us vertically // monitors wrap around us vertically
const topEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.heightPixels); const topEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.sizeAdjustedHeightPixels);
const monitorSpacingPixels = monitorSpacing * fovDetails.heightPixels; const monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedHeightPixels;
// targetHeight is assumed to aleady be size adjusted
const lengthToRadianFn = (targetHeight) => conversionFns.lengthToRadians( const lengthToRadianFn = (targetHeight) => conversionFns.lengthToRadians(
fovDetails.defaultDistanceVerticalRadians, fovDetails.defaultDistanceVerticalRadians,
fovDetails.heightPixels, fovDetails.heightPixels,
@ -268,14 +296,14 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
targetHeight targetHeight
); );
cachedMonitorRadians[0] = -fovDetails.defaultDistanceVerticalRadians / 2; cachedMonitorRadians[0] = -lengthToRadianFn(fovDetails.sizeAdjustedHeightPixels) / 2;
verticalMonitorSort(monitorDetailsList).forEach(({monitorDetails, originalIndex}) => { verticalMonitorSort(monitorDetailsList).forEach(({monitorDetails, originalIndex}) => {
const monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.y, monitorDetails.height, lengthToRadianFn); const monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.y, monitorDetails.height, lengthToRadianFn);
const monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(topEdgeRadius, monitorDetails.height); const monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(topEdgeRadius, monitorDetails.height);
const westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.widthPixels) * monitorSpacingPixels; const westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.sizeAdjustedWidthPixels) * monitorSpacingPixels;
// offset for aligning this monitor's center with the fov-sized viewport's center // offset for aligning this monitor's center with the fov-sized viewport's center
const westCenterOffsetPixels = (monitorDetails.width - fovDetails.widthPixels) / 2; const westCenterOffsetPixels = (monitorDetails.width - fovDetails.sizeAdjustedWidthPixels) / 2;
// this is where our monitor's center is in relation to an fov-sized viewport centered about (0, 0) // this is where our monitor's center is in relation to an fov-sized viewport centered about (0, 0)
const westCenterPixels = westLeftPixels - westCenterOffsetPixels; const westCenterPixels = westLeftPixels - westCenterOffsetPixels;
@ -285,13 +313,13 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
centerNoRotate: [ centerNoRotate: [
monitorCenterRadius, monitorCenterRadius,
// west is flat when wrapping horizontally // west is flat when wrapping vertically
westCenterPixels, westCenterPixels,
// up is centered about the FOV center // up is centered about the FOV center
0 0
], ],
centerLook: normalizeVector([ centerLook: [
// north is adjacent where radius is the hypotenuse, using monitorWrapDetails.center as the radians // north is adjacent where radius is the hypotenuse, using monitorWrapDetails.center as the radians
monitorCenterRadius * Math.cos(monitorWrapDetails.center), monitorCenterRadius * Math.cos(monitorWrapDetails.center),
@ -300,7 +328,7 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
// up is opposite where radius is the hypotenuse, using monitorWrapDetails.center as the radians // up is opposite where radius is the hypotenuse, using monitorWrapDetails.center as the radians
-monitorCenterRadius * Math.sin(monitorWrapDetails.center) -monitorCenterRadius * Math.sin(monitorWrapDetails.center)
]), ],
rotationAngleRadians: { rotationAngleRadians: {
x: -monitorWrapDetails.center, x: -monitorWrapDetails.center,
y: 0 y: 0
@ -308,17 +336,16 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
}); });
}); });
} else { } else {
const monitorSpacingPixels = monitorSpacing * fovDetails.widthPixels; const monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedWidthPixels;
// monitors make a flat wall in front of us, no wrapping // monitors make a flat wall in front of us, no wrapping
monitorDetailsList.forEach((monitorDetails, index) => { monitorDetailsList.forEach((monitorDetails, index) => {
const upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.heightPixels) * monitorSpacingPixels; const upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.sizeAdjustedHeightPixels) * monitorSpacingPixels;
const westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.widthPixels) * monitorSpacingPixels; const westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.sizeAdjustedWidthPixels) * monitorSpacingPixels;
// offsets for aligning this monitor's center with the fov-sized viewport's center // offsets for aligning this monitor's center with the fov-sized viewport's center
const westCenterOffsetPixels = (monitorDetails.width - fovDetails.widthPixels) / 2; const westCenterOffsetPixels = (monitorDetails.width - fovDetails.sizeAdjustedWidthPixels) / 2;
const upCenterOffsetPixels = (monitorDetails.height - fovDetails.heightPixels) / 2; const upCenterOffsetPixels = (monitorDetails.height - fovDetails.sizeAdjustedHeightPixels) / 2;
const westCenterPixels = westLeftPixels - westCenterOffsetPixels; const westCenterPixels = westLeftPixels - westCenterOffsetPixels;
const upCenterPixels = upTopPixels - upCenterOffsetPixels; const upCenterPixels = upTopPixels - upCenterOffsetPixels;
@ -329,11 +356,11 @@ function monitorsToPlacements(fovDetails, monitorDetailsList, monitorSpacing) {
westCenterPixels, westCenterPixels,
upCenterPixels upCenterPixels
], ],
centerLook: normalizeVector([ centerLook: [
fovDetails.completeScreenDistancePixels, fovDetails.completeScreenDistancePixels,
westCenterPixels, westCenterPixels,
upCenterPixels upCenterPixels
]), ],
rotationAngleRadians: { rotationAngleRadians: {
x: 0, x: 0,
y: 0 y: 0
@ -446,6 +473,13 @@ export const VirtualDisplaysActor = GObject.registerClass({
'Latest IMU quaternion snapshots and epoch timestamp for when it was collected', 'Latest IMU quaternion snapshots and epoch timestamp for when it was collected',
GObject.ParamFlags.READWRITE 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': GObject.ParamSpec.boolean(
'curved-display', 'curved-display',
'Curved Display', 'Curved Display',
@ -499,7 +533,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
'Display size', 'Display size',
'Size of the display', 'Size of the display',
GObject.ParamFlags.READWRITE, GObject.ParamFlags.READWRITE,
0.2, 0.1,
2.5, 2.5,
1.0 1.0
), ),
@ -515,7 +549,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
'Display Distance', 'Display Distance',
'Distance of the display from the camera', 'Distance of the display from the camera',
GObject.ParamFlags.READWRITE, GObject.ParamFlags.READWRITE,
0.2, 0.1,
2.5, 2.5,
1.05 1.05
), ),
@ -537,7 +571,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
'Display distance start', 'Display distance start',
'Start distance when using the "change distance" shortcut.', 'Start distance when using the "change distance" shortcut.',
GObject.ParamFlags.READWRITE, GObject.ParamFlags.READWRITE,
0.2, 0.1,
2.5, 2.5,
1.05 1.05
), ),
@ -546,7 +580,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
'Display distance end', 'Display distance end',
'End distance when using the "change distance" shortcut.', 'End distance when using the "change distance" shortcut.',
GObject.ParamFlags.READWRITE, GObject.ParamFlags.READWRITE,
0.2, 0.1,
2.5, 2.5,
1.05 1.05
), ),
@ -578,7 +612,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
constructor(params = {}) { constructor(params = {}) {
super(params); super(params);
this._all_monitors = [ this._all_monitors_unmodified = [
this.target_monitor, this.target_monitor,
...this.virtual_monitors ...this.virtual_monitors
]; ];
@ -649,10 +683,10 @@ export const VirtualDisplaysActor = GObject.registerClass({
this._property_connections.push(this.connect(`notify::${property}`, fn.bind(this))); this._property_connections.push(this.connect(`notify::${property}`, fn.bind(this)));
}).bind(this); }).bind(this);
this._distance_ease_timeline = null; notifyToFunction('toggle-display-distance-start', this._handle_display_size_distance_change);
notifyToFunction('toggle-display-distance-start', this._handle_display_distance_properties_change); notifyToFunction('toggle-display-distance-end', this._handle_display_size_distance_change);
notifyToFunction('toggle-display-distance-end', this._handle_display_distance_properties_change); notifyToFunction('display-distance', this._handle_display_size_distance_change);
notifyToFunction('display-distance', this._handle_display_distance_properties_change); notifyToFunction('display-size', this._handle_display_size_distance_change);
notifyToFunction('monitor-wrapping-scheme', this._update_monitor_placements); notifyToFunction('monitor-wrapping-scheme', this._update_monitor_placements);
notifyToFunction('monitor-spacing', this._update_monitor_placements); notifyToFunction('monitor-spacing', this._update_monitor_placements);
notifyToFunction('headset-display-as-viewport-center', this._update_monitor_placements); notifyToFunction('headset-display-as-viewport-center', this._update_monitor_placements);
@ -663,7 +697,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
notifyToFunction('custom-banner-enabled', this._handle_banner_update); notifyToFunction('custom-banner-enabled', this._handle_banner_update);
notifyToFunction('framerate-cap', this._handle_frame_rate_cap_change); notifyToFunction('framerate-cap', this._handle_frame_rate_cap_change);
notifyToFunction('smooth-follow-enabled', this._handle_smooth_follow_enabled_change); notifyToFunction('smooth-follow-enabled', this._handle_smooth_follow_enabled_change);
this._handle_display_distance_properties_change(); this._handle_display_size_distance_change();
this._handle_frame_rate_cap_change(); this._handle_frame_rate_cap_change();
const actorToDisplayRatios = [ const actorToDisplayRatios = [
@ -681,7 +715,7 @@ export const VirtualDisplaysActor = GObject.registerClass({
Globals.logger.log_debug(`\t\t\tActor to display ratios: ${actorToDisplayRatios}, offsets: ${actorToDisplayOffsets}`); Globals.logger.log_debug(`\t\t\tActor to display ratios: ${actorToDisplayRatios}, offsets: ${actorToDisplayOffsets}`);
this._all_monitors.forEach(((monitor, index) => { this._all_monitors_unmodified.forEach(((monitor, index) => {
Globals.logger.log_debug(`\t\t\tMonitor ${index}: ${monitor.x}, ${monitor.y}, ${monitor.width}, ${monitor.height}`); Globals.logger.log_debug(`\t\t\tMonitor ${index}: ${monitor.x}, ${monitor.y}, ${monitor.width}, ${monitor.height}`);
const containerActor = new Clutter.Actor({ const containerActor = new Clutter.Actor({
@ -706,11 +740,13 @@ export const VirtualDisplaysActor = GObject.registerClass({
const effect = new VirtualDisplayEffect({ const effect = new VirtualDisplayEffect({
focused_monitor_index: this.focused_monitor_index, focused_monitor_index: this.focused_monitor_index,
imu_snapshots: this.imu_snapshots, imu_snapshots: this.imu_snapshots,
pose_has_position: this.pose_has_position,
monitor_index: index, monitor_index: index,
monitor_details: monitor, monitor_details: monitor,
monitor_placements: this.monitor_placements, monitor_placements: this.monitor_placements,
fov_details: this.fov_details, fov_details: this.fov_details,
target_monitor: this.target_monitor, target_monitor: this.target_monitor,
display_size: this.display_size,
display_distance: this.display_distance, display_distance: this.display_distance,
display_distance_default: this._display_distance_default(), display_distance_default: this._display_distance_default(),
actor_to_display_ratios: actorToDisplayRatios, actor_to_display_ratios: actorToDisplayRatios,
@ -735,8 +771,10 @@ export const VirtualDisplaysActor = GObject.registerClass({
[ [
'monitor-placements', 'monitor-placements',
'display-size',
'fov-details', 'fov-details',
'imu-snapshots', 'imu-snapshots',
'pose-has-position',
'smooth-follow-enabled', 'smooth-follow-enabled',
'smooth-follow-toggle-epoch-ms', 'smooth-follow-toggle-epoch-ms',
'focused-monitor-index', 'focused-monitor-index',
@ -785,12 +823,17 @@ export const VirtualDisplaysActor = GObject.registerClass({
(!this._smooth_follow_slerping || this.focused_monitor_index === -1)) { (!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 // 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 // since it reflects where the user is looking in relation to the original monitor positions
const currentPoseQuat = this.smooth_follow_enabled ? const currentOrientationQuat = this.smooth_follow_enabled ?
this.imu_snapshots.smooth_follow_origin.splice(0, 4) : this.imu_snapshots.smooth_follow_origin.splice(0, 4) :
this.imu_snapshots.imu_data.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];
const focusedMonitorIndex = findFocusedMonitor( const focusedMonitorIndex = findFocusedMonitor(
currentPoseQuat, currentOrientationQuat,
currentPosition,
this.monitor_placements.map(monitorVectors => monitorVectors.centerLook), this.monitor_placements.map(monitorVectors => monitorVectors.centerLook),
this.focused_monitor_index, this.focused_monitor_index,
this.display_distance / this._display_distance_default(), this.display_distance / this._display_distance_default(),
@ -827,34 +870,61 @@ export const VirtualDisplaysActor = GObject.registerClass({
this._redraw_timeline.start(); this._redraw_timeline.start();
} }
_size_adjusted_target_monitor() {
return this._all_monitors[0];
}
_display_distance_default() { _display_distance_default() {
return Math.max(this.display_distance, this.toggle_display_distance_start, this.toggle_display_distance_end); return Math.max(this.display_distance, this.toggle_display_distance_start, this.toggle_display_distance_end);
} }
_fov_details() { _fov_details() {
const aspect = this.target_monitor.width / this.target_monitor.height; const aspect = this.target_monitor.width / this.target_monitor.height;
const fovRadians = diagonalToCrossFOVs(degreeToRadian(Globals.data_stream.device_data.displayFov), aspect); 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;
// adjusted angles based on how far away the screens are e.g. a closer screen takes up a larger slice of our FOV // adjust FOV to a new focal point distance while keeping screens the same size
const defaultDistanceVerticalRadians = 2 * Math.atan(Math.tan(fovRadians.vertical / 2) / this._display_distance_default()); // i.e. focus from pivot point to new screen distance, adjusted from lens at unit distance
const defaultDistanceHorizontalRadians = 2 * Math.atan(Math.tan(fovRadians.horizontal / 2) / this._display_distance_default()); const defaultDistanceVerticalRadians = verticalConversions.fovRadiansAtDistance(
fovLengths.verticalRadians,
fovLengths.heightUnitDistance,
defaultDistance
);
const defaultDistanceHorizontalRadians = horizontalConversions.fovRadiansAtDistance(
fovLengths.horizontalRadians,
fovLengths.widthUnitDistance,
defaultDistance
);
// distance needed for the FOV-sized monitor to fill up the screen // distance needed for the FOV-sized monitor to fill up the screen, as measured from the lenses
const fullScreenDistance = this.target_monitor.height / 2 / Math.tan(fovRadians.vertical / 2); const lensToUnitDistancePixels = this.target_monitor.width / fovLengths.widthUnitDistance;
const lensDistancePixels = fullScreenDistance / (1.0 - Globals.data_stream.device_data.lensDistanceRatio) - fullScreenDistance;
// distance of a display at the default (most zoomed out) distance, plus the lens distance constant // distance from pivot point to lens
const lensToScreenDistance = this.target_monitor.height / 2 / Math.tan(defaultDistanceVerticalRadians / 2); const lensDistancePixels = lensToUnitDistancePixels * lensDistanceFactor;
const completeScreenDistancePixels = lensToScreenDistance + lensDistancePixels;
// 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;
return { return {
widthPixels: this.target_monitor.width, widthPixels: this.target_monitor.width,
distanceAdjustedSize: this._distance_adjusted_size,
sizeAdjustedWidthPixels: this.target_monitor.width * this._distance_adjusted_size,
heightPixels: this.target_monitor.height, heightPixels: this.target_monitor.height,
sizeAdjustedHeightPixels: this.target_monitor.height * this._distance_adjusted_size,
defaultDistanceVerticalRadians, defaultDistanceVerticalRadians,
defaultDistanceHorizontalRadians, defaultDistanceHorizontalRadians,
lensDistancePixels, lensDistancePixels,
fullScreenDistancePixels,
completeScreenDistancePixels, completeScreenDistancePixels,
monitorWrappingScheme: this._actual_wrap_scheme(), monitorWrappingScheme,
curvedDisplay: this.curved_display curvedDisplay: this.curved_display
}; };
} }
@ -869,7 +939,8 @@ export const VirtualDisplaysActor = GObject.registerClass({
const minY = Math.min(...this._all_monitors.map(monitor => monitor.y)); 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 maxY = Math.max(...this._all_monitors.map(monitor => monitor.y + monitor.height));
if ((maxX - minX) / this.target_monitor.width >= (maxY - minY) / this.target_monitor.height) { const targetMonitor = this._size_adjusted_target_monitor();
if ((maxX - minX) / targetMonitor.width >= (maxY - minY) / targetMonitor.height) {
return 'horizontal'; return 'horizontal';
} else { } else {
return 'vertical'; return 'vertical';
@ -878,27 +949,29 @@ export const VirtualDisplaysActor = GObject.registerClass({
_update_monitor_placements() { _update_monitor_placements() {
try { try {
const targetMonitor = this._size_adjusted_target_monitor();
const minX = Math.min(...this._all_monitors.map(monitor => monitor.x)); 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 maxX = Math.max(...this._all_monitors.map(monitor => monitor.x + monitor.width));
const minY = Math.min(...this._all_monitors.map(monitor => monitor.y)); 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 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 // the beginning edges of the viewport if it's centered on all displays
const allDisplaysCenterXBegin = (minX + maxX) / 2 - this.target_monitor.width / 2; const allDisplaysCenterXBegin = (minX + maxX) / 2 - targetMonitor.width / 2;
const allDisplaysCenterYBegin = (minY + maxY) / 2 - this.target_monitor.height / 2; const allDisplaysCenterYBegin = (minY + maxY) / 2 - targetMonitor.height / 2;
const viewportXBegin = this.headset_display_as_viewport_center ? this.target_monitor.x : allDisplaysCenterXBegin; const viewportXBegin = this.headset_display_as_viewport_center ? targetMonitor.x : allDisplaysCenterXBegin;
const viewportYBegin = this.headset_display_as_viewport_center ? this.target_monitor.y : allDisplaysCenterYBegin; const viewportYBegin = this.headset_display_as_viewport_center ? targetMonitor.y : allDisplaysCenterYBegin;
this.fov_details = this._fov_details(); this.fov_details = this._fov_details();
this.lens_vector = [0.0, 0.0, -this.fov_details.lensDistancePixels]; this.lens_vector = [this.fov_details.lensDistancePixels, 0.0, 0.0];
this.monitor_placements = monitorsToPlacements( this.monitor_placements = monitorsToPlacements(
this.fov_details, this.fov_details,
// shift all monitors so they center around the viewport center, then adjusted by the offsets // shift all monitors so they center around the viewport center, then adjusted by the offsets
this._all_monitors.map(monitor => ({ this._all_monitors.map(monitor => ({
x: monitor.x - viewportXBegin - this.viewport_offset_x * this.target_monitor.width, x: monitor.x - viewportXBegin - this.viewport_offset_x * targetMonitor.width,
y: monitor.y - viewportYBegin + this.viewport_offset_y * this.target_monitor.height, y: monitor.y - viewportYBegin + this.viewport_offset_y * targetMonitor.height,
width: monitor.width, width: monitor.width,
height: monitor.height height: monitor.height
})), })),
@ -909,10 +982,22 @@ export const VirtualDisplaysActor = GObject.registerClass({
} }
} }
_handle_display_distance_properties_change() { _handle_display_size_distance_change() {
this._distance_adjusted_size = (this._display_distance_default() - Globals.data_stream.device_data.lensDistanceRatio) * this.display_size;
const distance_from_end = Math.abs(this.display_distance - this.toggle_display_distance_end); 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); 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; 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(); this._update_monitor_placements();
} }

View File

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

32
kwin/bin/breezy_kwin_logs Executable file
View File

@ -0,0 +1,32 @@
#!/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,35 +46,69 @@ DESKTOP_FILE_PATH="$XDG_DATA_HOME/applications/breezy_desktop.desktop"
PLUGIN_SO="$LIB_HOME/qt6/plugins/kwin/effects/plugins/${EFFECT_ID}.so" PLUGIN_SO="$LIB_HOME/qt6/plugins/kwin/effects/plugins/${EFFECT_ID}.so"
CONFIG_SO="$LIB_HOME/qt6/plugins/plasma/kcms/${EFFECT_ID}_config.so" CONFIG_SO="$LIB_HOME/qt6/plugins/plasma/kcms/${EFFECT_ID}_config.so"
BREEZY_LIBRARY_DIR="$LIB_HOME/breezy_kwin" 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 if [[ -d "$EFFECT_DIR" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $EFFECT_DIR and its contents" [ "$for_install" -eq 0 ] && echo "Removing $EFFECT_DIR and its contents"
$SUDO rm -rf "$EFFECT_DIR" rm -rf "$EFFECT_DIR"
fi fi
if [[ -f "$ICON_PATH" ]]; then if [[ -f "$ICON_PATH" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $ICON_PATH" [ "$for_install" -eq 0 ] && echo "Removing $ICON_PATH"
$SUDO rm -f "$ICON_PATH" rm -f "$ICON_PATH"
fi fi
if [[ -f "$DESKTOP_FILE_PATH" ]]; then if [[ -f "$DESKTOP_FILE_PATH" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $DESKTOP_FILE_PATH" [ "$for_install" -eq 0 ] && echo "Removing $DESKTOP_FILE_PATH"
$SUDO rm -f "$DESKTOP_FILE_PATH" rm -f "$DESKTOP_FILE_PATH"
fi fi
if [[ -f "$PLUGIN_SO" ]]; then if [[ -f "$PLUGIN_SO" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $PLUGIN_SO" [ "$for_install" -eq 0 ] && echo "Removing $PLUGIN_SO"
$SUDO rm -f "$PLUGIN_SO" rm -f "$PLUGIN_SO"
fi fi
if [[ -f "$CONFIG_SO" ]]; then if [[ -f "$CONFIG_SO" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $CONFIG_SO" [ "$for_install" -eq 0 ] && echo "Removing $CONFIG_SO"
$SUDO rm -f "$CONFIG_SO" rm -f "$CONFIG_SO"
fi fi
if [[ -d "$BREEZY_LIBRARY_DIR" ]]; then if [[ -d "$BREEZY_LIBRARY_DIR" ]]; then
[ "$for_install" -eq 0 ] && echo "Removing $BREEZY_LIBRARY_DIR and its contents" [ "$for_install" -eq 0 ] && echo "Removing $BREEZY_LIBRARY_DIR and its contents"
$SUDO rm -rf "$BREEZY_LIBRARY_DIR" 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"
fi fi
if [[ -e "$XDG_BIN_HOME/xr_driver_uninstall" && "$for_install" -eq 0 ]]; then if [[ -e "$XDG_BIN_HOME/xr_driver_uninstall" && "$for_install" -eq 0 ]]; then
@ -82,5 +116,11 @@ if [[ -e "$XDG_BIN_HOME/xr_driver_uninstall" && "$for_install" -eq 0 ]]; then
sudo "$XDG_BIN_HOME/xr_driver_uninstall" sudo "$XDG_BIN_HOME/xr_driver_uninstall"
fi 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 # this script is self-deleting, leave this as the last command
rm -f $XDG_BIN_HOME/breezy_kwin_uninstall rm -f $XDG_BIN_HOME/breezy_kwin_uninstall

View File

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

View File

@ -7,8 +7,166 @@ if [ "$XDG_SESSION_TYPE" != "wayland" ]; then
printf "\033[1;33mWARNING:\033[0m Virtual display functionality requires Wayland\n" printf "\033[1;33mWARNING:\033[0m Virtual display functionality requires Wayland\n"
fi 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 ~) 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 if [ -z "$XDG_BIN_HOME" ]; then
XDG_BIN_HOME="$USER_HOME/.local/bin" XDG_BIN_HOME="$USER_HOME/.local/bin"
fi fi
@ -61,6 +219,9 @@ popd > /dev/null
mkdir -p $XDG_BIN_HOME mkdir -p $XDG_BIN_HOME
cp bin/breezy_kwin_uninstall $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 # Install QT_PLUGIN_PATH snippet into ~/.bash_profile if not present
BASH_PROFILE="$HOME/.bash_profile" BASH_PROFILE="$HOME/.bash_profile"
@ -92,11 +253,16 @@ echo "Installing xrDriver (requires sudo)"
echo "BEGIN - xr_driver_setup" echo "BEGIN - xr_driver_setup"
if [ -z "$1" ] if [ -z "$1" ]
then then
sudo bin/xr_driver_setup $(pwd)/xrDriver.tar.gz sudo --preserve-env=SKIP_SYSTEMD bin/xr_driver_setup $(pwd)
else else
sudo bin/xr_driver_setup -v $1 $(pwd)/xrDriver.tar.gz sudo --preserve-env=SKIP_SYSTEMD bin/xr_driver_setup -v $1 $(pwd)
fi fi
echo "END - xr_driver_setup" 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" 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: # To run the build from the package root:
# docker buildx build --platform linux/amd64,linux/arm64 -f ./docker-build/Dockerfile -t "breezy-kwin" . # 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:amd64" # docker run --rm -t -v ./:/source -v --platform linux/amd64 "breezy-kwin-steamos-3.7:amd64"
# docker run --rm -t -v ./:/source -v --platform linux/arm64 "breezy-kwin:arm64"
FROM --platform=$TARGETPLATFORM archlinux:base-20250817.0.405639@sha256:31f0749bdb81517dc8f379feac0a3860b097f1da1f53c8315c1bae0817d6c0a1 FROM --platform=$TARGETPLATFORM ghcr.io/wheaney/holo-base:3.7.20@sha256:1478200c51b8b287e294de6e98a1ab0fb79333503a5cc5681b58dfd209f17851
ARG TARGETPLATFORM ARG TARGETPLATFORM
RUN echo "Target platform: $TARGETPLATFORM" ENV STEAMOS=3.7
RUN echo "SteamOS 3.7 build - target platform: $TARGETPLATFORM"
RUN pacman -Sy --noconfirm --needed \ RUN pacman -Sy --noconfirm --needed \
ca-certificates \ ca-certificates \

View File

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

View File

@ -0,0 +1,37 @@
# 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"
FROM --platform=$TARGETPLATFORM ghcr.io/wheaney/holo-base:main-3.9@sha256:a9e2c59fb1274cf31d544229134e6bc653f050661dd9b64b05795b964468fcbf
ARG TARGETPLATFORM
ENV STEAMOS=3.9
RUN echo "SteamOS 3.9 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 fi
echo "Building docker image" echo "Building docker image"
# docker buildx build --platform linux/amd64 -f ./docker-build/Dockerfile -t "breezy-kwin:amd64" --load . 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/arm64 -f ./docker-build/Dockerfile -t "breezy-kwin:arm64" --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 -t "breezy-kwin-steamos:amd64" --load . docker buildx build --platform linux/amd64 -f ./docker-build/Dockerfile.steamos-3.9 -t "breezy-kwin-steamos-3.9:amd64" --load .

View File

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

View File

@ -6,17 +6,22 @@
<kcfgfile name="kwinrc"/> <kcfgfile name="kwinrc"/>
<group name="Effect-breezy_desktop"> <group name="Effect-breezy_desktop">
<entry name="FocusedDisplayDistance" type="Int"> <entry name="FocusedDisplayDistance" type="Int">
<default>85</default> <default>22</default>
<min>20</min> <min>10</min>
<max>230</max> <max>250</max>
<label>Focused Display Distance</label> <label>Focused Display Distance</label>
</entry> </entry>
<entry name="AllDisplaysDistance" type="Int"> <entry name="AllDisplaysDistance" type="Int">
<default>105</default> <default>25</default>
<min>20</min> <min>10</min>
<max>230</max> <max>250</max>
<label>All Displays Distance</label> <label>All Displays Distance</label>
</entry> </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"> <entry name="ZoomOnFocusEnabled" type="Bool">
<default>false</default> <default>false</default>
<label>Zoom on Focus Enabled</label> <label>Zoom on Focus Enabled</label>
@ -29,6 +34,13 @@
<label>Display Spacing</label> <label>Display Spacing</label>
<description>How far apart the displays are visually (not logically)</description> <description>How far apart the displays are visually (not logically)</description>
</entry> </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"> <entry name="DisplayHorizontalOffset" type="Int">
<default>0</default> <default>0</default>
<min>-250</min> <min>-250</min>
@ -91,5 +103,9 @@
<label>Curved display</label> <label>Curved display</label>
<description>Curve the displays around you</description> <description>Curve the displays around you</description>
</entry> </entry>
<entry name="DeveloperMode" type="Bool">
<default>false</default>
</entry>
</group> </group>
</kcfg> </kcfg>

View File

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

View File

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

View File

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

View File

@ -48,6 +48,13 @@
#include <QFile> #include <QFile>
#include <QDir> #include <QDir>
#include <QJsonDocument> #include <QJsonDocument>
#include <QDebug>
#include <QLocale>
#include <QSignalBlocker>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <cmath>
#include <algorithm>
Q_LOGGING_CATEGORY(KWIN_XR, "kwin.xr") Q_LOGGING_CATEGORY(KWIN_XR, "kwin.xr")
@ -199,9 +206,43 @@ BreezyDesktopEffectConfig::BreezyDesktopEffectConfig(QObject *parent, const KPlu
ui.setupUi(widget()); ui.setupUi(widget());
addConfig(BreezyDesktopConfig::self(), 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. // One-time check if the KWin effect backend is actually loaded. If not, disable UI early.
checkEffectLoaded(); checkEffectLoaded();
// Asynchronously check GitHub for a newer release.
checkForUpdates();
// Show/enable Virtual Display controls only when we're on Wayland // Show/enable Virtual Display controls only when we're on Wayland
const bool isWaylandSession = QGuiApplication::platformName().contains(QStringLiteral("wayland"), Qt::CaseInsensitive) const bool isWaylandSession = QGuiApplication::platformName().contains(QStringLiteral("wayland"), Qt::CaseInsensitive)
|| qEnvironmentVariable("XDG_SESSION_TYPE").compare(QStringLiteral("wayland"), Qt::CaseInsensitive) == 0; || qEnvironmentVariable("XDG_SESSION_TYPE").compare(QStringLiteral("wayland"), Qt::CaseInsensitive) == 0;
@ -328,6 +369,7 @@ BreezyDesktopEffectConfig::BreezyDesktopEffectConfig(QObject *parent, const KPlu
connect(ui.kcfg_ZoomOnFocusEnabled, &QCheckBox::toggled, this, &BreezyDesktopEffectConfig::save); connect(ui.kcfg_ZoomOnFocusEnabled, &QCheckBox::toggled, this, &BreezyDesktopEffectConfig::save);
connect(ui.kcfg_FocusedDisplayDistance, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save); connect(ui.kcfg_FocusedDisplayDistance, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save);
connect(ui.kcfg_AllDisplaysDistance, &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_DisplaySpacing, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save);
connect(ui.kcfg_SmoothFollowThreshold, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save); connect(ui.kcfg_SmoothFollowThreshold, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save);
connect(ui.kcfg_DisplayHorizontalOffset, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save); connect(ui.kcfg_DisplayHorizontalOffset, &QSlider::valueChanged, this, &BreezyDesktopEffectConfig::save);
@ -343,6 +385,14 @@ BreezyDesktopEffectConfig::BreezyDesktopEffectConfig(QObject *parent, const KPlu
connect(ui.SmoothFollowTrackYaw, &QCheckBox::toggled, this, &BreezyDesktopEffectConfig::updateSmoothFollowTrackYaw); connect(ui.SmoothFollowTrackYaw, &QCheckBox::toggled, this, &BreezyDesktopEffectConfig::updateSmoothFollowTrackYaw);
connect(ui.SmoothFollowTrackPitch, &QCheckBox::toggled, this, &BreezyDesktopEffectConfig::updateSmoothFollowTrackPitch); connect(ui.SmoothFollowTrackPitch, &QCheckBox::toggled, this, &BreezyDesktopEffectConfig::updateSmoothFollowTrackPitch);
connect(ui.SmoothFollowTrackRoll, &QCheckBox::toggled, this, &BreezyDesktopEffectConfig::updateSmoothFollowTrackRoll); 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")) { if (auto label = widget()->findChild<QLabel*>("labelAppNameVersion")) {
label->setText(QStringLiteral("Breezy Desktop - v%1").arg(QLatin1String(BREEZY_DESKTOP_VERSION_STR))); label->setText(QStringLiteral("Breezy Desktop - v%1").arg(QLatin1String(BREEZY_DESKTOP_VERSION_STR)));
@ -389,6 +439,8 @@ BreezyDesktopEffectConfig::BreezyDesktopEffectConfig(QObject *parent, const KPlu
lookAheadOverrideSlider->setValueText(-1, i18n("Default")); lookAheadOverrideSlider->setValueText(-1, i18n("Default"));
} }
applyDistanceLabelFormatters();
renderVirtualDisplays(dbusListVirtualDisplays()); renderVirtualDisplays(dbusListVirtualDisplays());
m_virtualDisplayPollTimer.setInterval(15000); m_virtualDisplayPollTimer.setInterval(15000);
@ -407,6 +459,27 @@ 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() BreezyDesktopEffectConfig::~BreezyDesktopEffectConfig()
@ -426,6 +499,14 @@ void BreezyDesktopEffectConfig::save()
m_updatingFromConfig = true; m_updatingFromConfig = true;
updateConfigFromUi(); updateConfigFromUi();
BreezyDesktopConfig::self()->save(); 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(); KCModule::save();
ui.kcfg_FocusedDisplayDistance->setEnabled( ui.kcfg_FocusedDisplayDistance->setEnabled(
ui.kcfg_ZoomOnFocusEnabled->isChecked() || ui.SmoothFollowEnabled->isChecked()); ui.kcfg_ZoomOnFocusEnabled->isChecked() || ui.SmoothFollowEnabled->isChecked());
@ -452,6 +533,7 @@ void BreezyDesktopEffectConfig::updateUiFromConfig()
{ {
ui.kcfg_FocusedDisplayDistance->setValue(BreezyDesktopConfig::self()->focusedDisplayDistance()); ui.kcfg_FocusedDisplayDistance->setValue(BreezyDesktopConfig::self()->focusedDisplayDistance());
ui.kcfg_AllDisplaysDistance->setValue(BreezyDesktopConfig::self()->allDisplaysDistance()); ui.kcfg_AllDisplaysDistance->setValue(BreezyDesktopConfig::self()->allDisplaysDistance());
ui.kcfg_DisplaySize->setValue(BreezyDesktopConfig::self()->displaySize());
ui.kcfg_DisplaySpacing->setValue(BreezyDesktopConfig::self()->displaySpacing()); ui.kcfg_DisplaySpacing->setValue(BreezyDesktopConfig::self()->displaySpacing());
ui.kcfg_DisplayHorizontalOffset->setValue(BreezyDesktopConfig::self()->displayHorizontalOffset()); ui.kcfg_DisplayHorizontalOffset->setValue(BreezyDesktopConfig::self()->displayHorizontalOffset());
ui.kcfg_DisplayVerticalOffset->setValue(BreezyDesktopConfig::self()->displayVerticalOffset()); ui.kcfg_DisplayVerticalOffset->setValue(BreezyDesktopConfig::self()->displayVerticalOffset());
@ -466,11 +548,29 @@ void BreezyDesktopEffectConfig::updateUiFromConfig()
ui.kcfg_FocusedDisplayDistance->setEnabled( ui.kcfg_FocusedDisplayDistance->setEnabled(
ui.kcfg_ZoomOnFocusEnabled->isChecked() || ui.SmoothFollowEnabled->isChecked()); ui.kcfg_ZoomOnFocusEnabled->isChecked() || ui.SmoothFollowEnabled->isChecked());
ui.kcfg_SmoothFollowThreshold->setValue(BreezyDesktopConfig::self()->smoothFollowThreshold()); 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() void BreezyDesktopEffectConfig::updateUiFromDefaultConfig()
{ {
ui.shortcutsEditor->allDefault(); 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() void BreezyDesktopEffectConfig::updateUnmanagedState()
@ -488,12 +588,78 @@ void BreezyDesktopEffectConfig::checkEffectLoaded() {
QPalette pal = warn->palette(); QPalette pal = warn->palette();
pal.setColor(QPalette::WindowText, QColor(Qt::red)); pal.setColor(QPalette::WindowText, QColor(Qt::red));
warn->setPalette(pal); warn->setPalette(pal);
warn->setText(tr("The Breezy Desktop KWin effect is not loaded. Please log out and back in to enable it.")); 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->setVisible(true); 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() { static QDBusInterface makeVDInterface() {
return QDBusInterface( return QDBusInterface(
QStringLiteral("org.kde.KWin"), QStringLiteral("org.kde.KWin"),
@ -640,8 +806,14 @@ void BreezyDesktopEffectConfig::pollDriverState()
auto configJsonOpt = XRDriverIPC::instance().retrieveConfig(); auto configJsonOpt = XRDriverIPC::instance().retrieveConfig();
if (!stateJsonOpt || !configJsonOpt) return; if (!stateJsonOpt || !configJsonOpt) return;
auto stateJson = stateJsonOpt.value(); auto stateJson = stateJsonOpt.value();
m_connectedDeviceBrand = stateJson.value(QStringLiteral("connected_device_brand")).toString(); m_connectedDeviceBrand = stateJson.value(QStringLiteral("connected_device_brand")).toString();
m_connectedDeviceModel = stateJson.value(QStringLiteral("connected_device_model")).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); const bool smoothFollow = smoothFollowEnabled(stateJsonOpt);
if (ui.SmoothFollowEnabled->isChecked() != smoothFollow) { if (ui.SmoothFollowEnabled->isChecked() != smoothFollow) {
@ -689,11 +861,151 @@ void BreezyDesktopEffectConfig::pollDriverState()
if (ui.SmoothFollowTrackRoll->isChecked() != trackRoll) if (ui.SmoothFollowTrackRoll->isChecked() != trackRoll)
ui.SmoothFollowTrackRoll->setChecked(trackRoll); ui.SmoothFollowTrackRoll->setChecked(trackRoll);
const double horiz = neckSaverHorizontalMultiplier(configJsonOpt);
const int horizInt = static_cast<int>(std::round(horiz * 100.0));
if (ui.NeckSaverHorizontalMultiplier->value() != horizInt) {
ui.NeckSaverHorizontalMultiplier->setValue(horizInt);
}
const double vert = neckSaverVerticalMultiplier(configJsonOpt);
const int vertInt = static_cast<int>(std::round(vert * 100.0));
if (ui.NeckSaverVerticalMultiplier->value() != vertInt) {
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); refreshLicenseUi(stateJson);
m_driverStateInitialized = true; 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;
const QJsonValue jv = configJsonOpt->value(QStringLiteral("neck_saver_horizontal_multiplier"));
const double v = jv.isDouble() ? jv.toDouble() : 1.0;
if (v < 1.0) return 1.0;
if (v > 2.5) return 2.5;
return v;
}
double BreezyDesktopEffectConfig::neckSaverVerticalMultiplier(std::optional<QJsonObject> configJsonOpt)
{
if (!configJsonOpt) return 1.0;
const QJsonValue jv = configJsonOpt->value(QStringLiteral("neck_saver_vertical_multiplier"));
const double v = jv.isDouble() ? jv.toDouble() : 1.0;
if (v < 1.0) return 1.0;
if (v > 2.5) return 2.5;
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();
double val = ui.NeckSaverHorizontalMultiplier->value() / 100.0;
if (neckSaverHorizontalMultiplier(configJsonOpt) == val) return;
QJsonObject newConfig = configJsonOpt ? configJsonOpt.value() : QJsonObject();
newConfig.insert(QStringLiteral("neck_saver_horizontal_multiplier"), val);
XRDriverIPC::instance().writeConfig(newConfig);
}
void BreezyDesktopEffectConfig::updateNeckSaverVertical()
{
auto configJsonOpt = XRDriverIPC::instance().retrieveConfig();
double val = ui.NeckSaverVerticalMultiplier->value() / 100.0;
if (neckSaverVerticalMultiplier(configJsonOpt) == val) return;
QJsonObject newConfig = configJsonOpt ? configJsonOpt.value() : QJsonObject();
newConfig.insert(QStringLiteral("neck_saver_vertical_multiplier"), val);
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) bool BreezyDesktopEffectConfig::multitapEnabled(std::optional<QJsonObject> configJsonOpt)
{ {
if (!configJsonOpt) return false; if (!configJsonOpt) return false;
@ -858,80 +1170,144 @@ void BreezyDesktopEffectConfig::refreshLicenseUi(const QJsonObject &rootObj) {
if (!labelSummary) return; if (!labelSummary) return;
auto donate = tab->findChild<QLabel*>("labelDonateLink"); auto donate = tab->findChild<QLabel*>("labelDonateLink");
auto globalWarn = widget()->findChild<QLabel*>("labelGlobalWarning"); auto globalWarn = widget()->findChild<QLabel*>("labelGlobalWarning");
auto poseProWarn = widget()->findChild<QLabel*>("labelPoseProWarning");
QString status = tr("disabled"); struct TierUiState {
QString renewalDescriptor = QStringLiteral(""); QString status = BreezyDesktopEffectConfig::tr("disabled");
auto uiView = rootObj.value(QStringLiteral("ui_view")).toObject(); QString renewalDescriptor;
auto license = uiView.value(QStringLiteral("license")).toObject();
bool warningState = false; bool warningState = false;
bool expired = false; bool isActive = false;
if (!license.isEmpty()) { bool isTrial = false;
auto tiers = license.value(QStringLiteral("tiers")).toObject(); bool entitled = false;
QJsonValue prodTier = tiers.value(QStringLiteral("subscriber")); };
QJsonObject prodTierObj = prodTier.isUndefined() ? QJsonObject() : prodTier.toObject();
auto computeTierState = [](const QJsonObject &tierObj, const QJsonObject &featureObj) -> TierUiState {
TierUiState out;
// 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();
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) { if (isActive) {
status = tr("active"); out.status = BreezyDesktopEffectConfig::tr("active");
out.isActive = true;
out.entitled = true;
QString periodDescriptor = activePeriod.contains(QStringLiteral("lifetime"), Qt::CaseInsensitive) ? const QString periodDescriptor = activePeriod.contains(QStringLiteral("lifetime"), Qt::CaseInsensitive)
tr("lifetime") : ? BreezyDesktopEffectConfig::tr("lifetime")
tr("%1 license").arg(activePeriod); : BreezyDesktopEffectConfig::tr("%1 license").arg(activePeriod);
QString timeDescriptor; QString timeDescriptor;
auto secsVal = prodTierObj.value(QStringLiteral("funds_needed_in_seconds")); const QJsonValue secsVal = tierObj.value(QStringLiteral("funds_needed_in_seconds"));
if (secsVal.isDouble()) { if (secsVal.isDouble()) {
qint64 secs = static_cast<qint64>(secsVal.toDouble()); const qint64 secs = static_cast<qint64>(secsVal.toDouble());
QString remaining = secondsToRemainingString(secs); const QString remaining = secondsToRemainingString(secs);
if (!remaining.isEmpty()) { if (!remaining.isEmpty()) {
timeDescriptor = tr("%1 remaining").arg(remaining); timeDescriptor = BreezyDesktopEffectConfig::tr("%1 remaining").arg(remaining);
} }
} }
renewalDescriptor = tr(" (%1)").arg(periodDescriptor);
warningState = !timeDescriptor.isEmpty(); out.renewalDescriptor = BreezyDesktopEffectConfig::tr(" (%1)").arg(periodDescriptor);
if (warningState) { out.warningState = !timeDescriptor.isEmpty();
auto fundsNeeded = prodTierObj.value(QStringLiteral("funds_needed_by_period")).toObject().value(activePeriod).toDouble(); if (out.warningState) {
const double fundsNeeded = tierObj.value(QStringLiteral("funds_needed_by_period"))
.toObject()
.value(activePeriod)
.toDouble();
if (fundsNeeded > 0.0) { if (fundsNeeded > 0.0) {
QString fundsNeededDescriptor = tr("$%1 USD to renew").arg(fundsNeeded); const QString fundsNeededDescriptor = BreezyDesktopEffectConfig::tr("$%1 USD to renew").arg(fundsNeeded);
renewalDescriptor = tr(" (%1, %2, %3)").arg(periodDescriptor, fundsNeededDescriptor, timeDescriptor); out.renewalDescriptor = BreezyDesktopEffectConfig::tr(" (%1, %2, %3)").arg(periodDescriptor, fundsNeededDescriptor, timeDescriptor);
} }
} }
} else { return out;
QJsonValue isEnabled = prodFeatureObj.value(QStringLiteral("is_enabled")); }
QJsonValue isTrial = prodFeatureObj.value(QStringLiteral("is_trial"));
if (isEnabled.toBool()) { // Not active: interpret feature flags.
if (isTrial.toBool()) { if (!featureObj.isEmpty()) {
status = tr("in trial"); const bool isEnabled = featureObj.value(QStringLiteral("is_enabled")).toBool();
auto secsVal = prodFeatureObj.value(QStringLiteral("funds_needed_in_seconds")); 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()) { if (secsVal.isDouble()) {
qint64 secs = static_cast<qint64>(secsVal.toDouble()); const qint64 secs = static_cast<qint64>(secsVal.toDouble());
QString remaining = secondsToRemainingString(secs); const QString remaining = secondsToRemainingString(secs);
warningState = !remaining.isEmpty(); out.warningState = !remaining.isEmpty();
if (warningState) { if (out.warningState) {
QString timeDescriptor = tr("%1 remaining").arg(remaining); const QString timeDescriptor = BreezyDesktopEffectConfig::tr("%1 remaining").arg(remaining);
renewalDescriptor = tr(" (%1)").arg(timeDescriptor); out.renewalDescriptor = BreezyDesktopEffectConfig::tr(" (%1)").arg(timeDescriptor);
}
} }
} }
} else { } else {
expired = true; out.status = BreezyDesktopEffectConfig::tr("enabled");
out.entitled = 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 QString message = tr("Productivity Tier features are %1%2").arg(status, renewalDescriptor);
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"));
labelSummary->setText(message); labelSummary->setText(message);
if (donate) donate->setVisible(warningState || expired); if (donate) donate->setVisible(donateVisible);
if (globalWarn && !globalWarn->isVisible()) { if (globalWarn && !globalWarn->isVisible()) {
if (warningState || expired) { if (donateVisible) {
globalWarn->setText(message + (expired ? tr(" — effect disabled") : QString())); globalWarn->setText(message + (effectDisabled ? tr(" — effect disabled") : QString()));
globalWarn->setVisible(true); globalWarn->setVisible(true);
} else { } else {
globalWarn->clear(); globalWarn->clear();
@ -939,12 +1315,23 @@ void BreezyDesktopEffectConfig::refreshLicenseUi(const QJsonObject &rootObj) {
} }
} }
if (expired) { if (effectDisabled) {
ui.EffectEnabled->setChecked(false); ui.EffectEnabled->setChecked(false);
ui.EffectEnabled->setEnabled(false); ui.EffectEnabled->setEnabled(false);
} else { } else {
ui.EffectEnabled->setEnabled(true); 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" #include "breezydesktopeffectkcm.moc"

View File

@ -4,6 +4,7 @@
#include <KConfigWatcher> #include <KConfigWatcher>
#include <memory> #include <memory>
#include <QNetworkAccessManager>
#include <QTimer> #include <QTimer>
#include <QVariant> #include <QVariant>
#include <QVariantList> #include <QVariantList>
@ -28,12 +29,18 @@ public Q_SLOTS:
void defaults() override; void defaults() override;
private: private:
QString measurementUnitsFromUi() const;
void applyDistanceLabelFormatters();
void updateDriverEnabled(); void updateDriverEnabled();
void updateMultitapEnabled(); void updateMultitapEnabled();
void updateSmoothFollowEnabled(); void updateSmoothFollowEnabled();
void updateSmoothFollowTrackYaw(); void updateSmoothFollowTrackYaw();
void updateSmoothFollowTrackPitch(); void updateSmoothFollowTrackPitch();
void updateSmoothFollowTrackRoll(); void updateSmoothFollowTrackRoll();
void updateNeckSaverHorizontal();
void updateNeckSaverVertical();
void updateDeadZoneThresholdDeg();
void updateUiFromConfig(); void updateUiFromConfig();
void updateUiFromDefaultConfig(); void updateUiFromDefaultConfig();
void updateConfigFromUi(); void updateConfigFromUi();
@ -44,9 +51,13 @@ private:
bool smoothFollowTrackYawEnabled(std::optional<QJsonObject> configJsonOpt); bool smoothFollowTrackYawEnabled(std::optional<QJsonObject> configJsonOpt);
bool smoothFollowTrackPitchEnabled(std::optional<QJsonObject> configJsonOpt); bool smoothFollowTrackPitchEnabled(std::optional<QJsonObject> configJsonOpt);
bool smoothFollowTrackRollEnabled(std::optional<QJsonObject> configJsonOpt); 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 pollDriverState();
void refreshLicenseUi(const QJsonObject &rootObj); void refreshLicenseUi(const QJsonObject &rootObj);
void checkEffectLoaded(); void checkEffectLoaded();
void checkForUpdates();
void showStatus(QLabel *label, bool success, const QString &message); void showStatus(QLabel *label, bool success, const QString &message);
void setRequestInProgress(std::initializer_list<QObject*> widgets, bool inProgress); void setRequestInProgress(std::initializer_list<QObject*> widgets, bool inProgress);
bool eventFilter(QObject *watched, QEvent *event) override; bool eventFilter(QObject *watched, QEvent *event) override;
@ -62,6 +73,7 @@ private:
::Ui::BreezyDesktopEffectConfig ui; ::Ui::BreezyDesktopEffectConfig ui;
KConfigWatcher::Ptr m_configWatcher; KConfigWatcher::Ptr m_configWatcher;
QNetworkAccessManager *m_networkManager = nullptr;
bool m_updatingFromConfig = false; bool m_updatingFromConfig = false;
bool m_driverStateInitialized = false; bool m_driverStateInitialized = false;
bool m_deviceConnected = false; bool m_deviceConnected = false;
@ -69,6 +81,9 @@ private:
int m_smoothFollowThreshold = 1; int m_smoothFollowThreshold = 1;
QString m_connectedDeviceBrand; QString m_connectedDeviceBrand;
QString m_connectedDeviceModel; 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_statePollTimer; // periodic driver state polling
QTimer m_virtualDisplayPollTimer; // periodic virtual display list polling QTimer m_virtualDisplayPollTimer; // periodic virtual display list polling
bool m_licenseLoading = false; bool m_licenseLoading = false;

View File

@ -39,6 +39,44 @@
</property> </property>
</widget> </widget>
</item> </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> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="tabPosition"> <property name="tabPosition">
@ -53,6 +91,15 @@
</attribute> </attribute>
<layout class="QFormLayout" name="formLayout"> <layout class="QFormLayout" name="formLayout">
<item row="0" column="0" colspan="2"> <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">
<widget class="QCheckBox" name="EffectEnabled"> <widget class="QCheckBox" name="EffectEnabled">
<property name="text"> <property name="text">
<string>XR Effect enabled</string> <string>XR Effect enabled</string>
@ -62,7 +109,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2"> <item row="0" column="1">
<widget class="QCheckBox" name="kcfg_ZoomOnFocusEnabled"> <widget class="QCheckBox" name="kcfg_ZoomOnFocusEnabled">
<property name="text"> <property name="text">
<string>Zoom on Focus</string> <string>Zoom on Focus</string>
@ -72,7 +119,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="2"> <item row="1" column="0">
<widget class="QCheckBox" name="kcfg_CurvedDisplay"> <widget class="QCheckBox" name="kcfg_CurvedDisplay">
<property name="text"> <property name="text">
<string>Curved display</string> <string>Curved display</string>
@ -82,7 +129,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0" colspan="2"> <item row="1" column="1">
<widget class="QCheckBox" name="SmoothFollowEnabled"> <widget class="QCheckBox" name="SmoothFollowEnabled">
<property name="text"> <property name="text">
<string>Follow mode</string> <string>Follow mode</string>
@ -92,14 +139,17 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0"> </layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelFocusedDisplayDistance"> <widget class="QLabel" name="labelFocusedDisplayDistance">
<property name="text"> <property name="text">
<string>Focused Display Distance:</string> <string>Focused Display Distance:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="1" column="1">
<widget class="LabeledSlider" name="kcfg_FocusedDisplayDistance"> <widget class="LabeledSlider" name="kcfg_FocusedDisplayDistance">
<property name="decimalShift"> <property name="decimalShift">
<double>2</double> <double>2</double>
@ -108,10 +158,10 @@
<enum>QSlider::NoTicks</enum> <enum>QSlider::NoTicks</enum>
</property> </property>
<property name="tickStartOffset"> <property name="tickStartOffset">
<double>5</double> <double>15</double>
</property> </property>
<property name="tickInterval"> <property name="tickInterval">
<double>25</double> <double>50</double>
</property> </property>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
@ -121,14 +171,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="2" column="0">
<widget class="QLabel" name="labelAllDisplaysDistance"> <widget class="QLabel" name="labelAllDisplaysDistance">
<property name="text"> <property name="text">
<string>All Displays Distance:</string> <string>All Displays Distance:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="2" column="1">
<widget class="LabeledSlider" name="kcfg_AllDisplaysDistance"> <widget class="LabeledSlider" name="kcfg_AllDisplaysDistance">
<property name="decimalShift"> <property name="decimalShift">
<double>2</double> <double>2</double>
@ -137,10 +187,85 @@
<enum>QSlider::NoTicks</enum> <enum>QSlider::NoTicks</enum>
</property> </property>
<property name="tickStartOffset"> <property name="tickStartOffset">
<double>5</double> <double>15</double>
</property> </property>
<property name="tickInterval"> <property name="tickInterval">
<double>25</double> <double>50</double>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tracking">
<bool>true</bool>
</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">
<widget class="QLabel" name="labelDisplaySpacing">
<property name="text">
<string>Display Spacing:</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QSlider" name="kcfg_DisplaySpacing">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tracking">
<bool>true</bool>
</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>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
@ -151,14 +276,26 @@
</widget> </widget>
</item> </item>
<item row="6" column="0"> <item row="6" column="0">
<widget class="QLabel" name="labelDisplaySpacing"> <widget class="QLabel" name="labelDisplayVerticalOffset">
<property name="text"> <property name="text">
<string>Display Spacing:</string> <string>Display Vertical Offset:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="1"> <item row="6" column="1">
<widget class="QSlider" name="kcfg_DisplaySpacing"> <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"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
@ -285,7 +422,14 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="10" column="0" colspan="2"> </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"> <widget class="KShortcutsEditor" name="shortcutsEditor" native="true">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
@ -421,62 +565,34 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="4" column="0" colspan="2">
<widget class="QLabel" name="labelDisplayHorizontalOffset"> <widget class="QCheckBox" name="kcfg_RemoveVirtualDisplaysOnDisable">
<property name="visible">
<bool>false</bool>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text"> <property name="text">
<string>Display Horizontal Offset:</string> <string>Remove virtual displays on disable</string>
</property> </property>
<property name="checked"><bool>true</bool></property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="5" column="0" colspan="2">
<widget class="LabeledSlider" name="kcfg_DisplayHorizontalOffset"> <widget class="QCheckBox" name="kcfg_MirrorPhysicalDisplays">
<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"> <property name="text">
<string>Display Vertical Offset:</string> <string>Mirror physical displays (may impact performance)</string>
</property> </property>
<property name="checked"><bool>false</bool></property>
</widget> </widget>
</item> </item>
<item row="6" column="1"> <item row="6" column="0" colspan="2">
<widget class="LabeledSlider" name="kcfg_DisplayVerticalOffset"> <widget class="QCheckBox" name="EnableMultitap">
<property name="decimalShift"> <property name="text">
<double>2</double> <string>Enable multi-tap detection</string>
</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> </property>
<property name="checked"><bool>false</bool></property>
</widget> </widget>
</item> </item>
<item row="7" column="0"> <item row="7" column="0">
@ -505,34 +621,146 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="0" colspan="2"> <item row="8" column="0">
<widget class="QCheckBox" name="kcfg_RemoveVirtualDisplaysOnDisable"> <widget class="QLabel" name="labelNeckSaverHorizontal">
<property name="text">
<string>Neck-saver horizontal:</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="LabeledSlider" name="NeckSaverHorizontalMultiplier">
<property name="decimalShift">
<double>2</double>
</property>
<property name="minimum">
<number>100</number>
</property>
<property name="maximum">
<number>250</number>
</property>
<property name="tickStartOffset">
<double>25</double>
</property>
<property name="tickInterval">
<double>50</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="9" column="0">
<widget class="QLabel" name="labelNeckSaverVertical">
<property name="text">
<string>Neck-saver vertical:</string>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="LabeledSlider" name="NeckSaverVerticalMultiplier">
<property name="decimalShift">
<double>2</double>
</property>
<property name="minimum">
<number>100</number>
</property>
<property name="maximum">
<number>250</number>
</property>
<property name="tickStartOffset">
<double>25</double>
</property>
<property name="tickInterval">
<double>50</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="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"> <property name="visible">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="enabled"> <property name="wordWrap">
<bool>false</bool> <bool>true</bool>
</property> </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> </widget>
</item> </item>
</layout> </layout>

View File

@ -5,6 +5,7 @@
#include <QPainterPath> #include <QPainterPath>
#include <QStyleOptionSlider> #include <QStyleOptionSlider>
#include <algorithm> // for std::max #include <algorithm> // for std::max
#include <functional>
#include <QtCore/QMap> #include <QtCore/QMap>
#include <QtCore/QString> #include <QtCore/QString>
#include <QStringList> #include <QStringList>
@ -32,7 +33,12 @@ class LabeledSlider : public QSlider {
// tickStartOffset: starting offset for label positions relative to minimum(). // tickStartOffset: starting offset for label positions relative to minimum().
// Example: minimum=0, tickInterval=20, tickStartOffset=10 -> labels at 10,30,50,... // Example: minimum=0, tickInterval=20, tickStartOffset=10 -> labels at 10,30,50,...
Q_PROPERTY(int tickStartOffset READ tickStartOffset WRITE setTickStartOffset) 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: public:
using ValueToDisplayStringFn = std::function<QString(int)>;
explicit LabeledSlider(QWidget *parent = nullptr) explicit LabeledSlider(QWidget *parent = nullptr)
: QSlider(Qt::Horizontal, parent) : QSlider(Qt::Horizontal, parent)
{ {
@ -74,6 +80,32 @@ public:
QMap<int, QString> valueTexts() const { return m_valueTexts; } 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; } int decimalShift() const { return m_decimalShift; }
void setDecimalShift(int shift) { void setDecimalShift(int shift) {
// clamp to sensible range // clamp to sensible range
@ -141,7 +173,7 @@ protected:
optPos.sliderValue = v; optPos.sliderValue = v;
QRect handleAtVal = style()->subControlRect(QStyle::CC_Slider, &optPos, QStyle::SC_SliderHandle, this); QRect handleAtVal = style()->subControlRect(QStyle::CC_Slider, &optPos, QStyle::SC_SliderHandle, this);
int x = handleAtVal.center().x(); int x = handleAtVal.center().x();
QString text = valueToDisplayString(v); QString text = valueToDisplayString(v, /*forValueBubble=*/false);
int halfW = fm.horizontalAdvance(text) / 2; int halfW = fm.horizontalAdvance(text) / 2;
QRect r(x - halfW, baselineY - fm.ascent(), fm.horizontalAdvance(text), fm.height()); QRect r(x - halfW, baselineY - fm.ascent(), fm.horizontalAdvance(text), fm.height());
p.drawText(r, Qt::AlignCenter, text); p.drawText(r, Qt::AlignCenter, text);
@ -152,7 +184,7 @@ protected:
if (m_showValueBubble) { if (m_showValueBubble) {
// Handle rect // Handle rect
const QRect handle = style()->subControlRect(QStyle::CC_Slider, &opt, QStyle::SC_SliderHandle, this); const QRect handle = style()->subControlRect(QStyle::CC_Slider, &opt, QStyle::SC_SliderHandle, this);
QString valText = valueToDisplayString(value()); QString valText = valueToDisplayString(value(), /*forValueBubble=*/true);
QFontMetrics fm(font()); QFontMetrics fm(font());
QRect textRect = fm.boundingRect(valText); QRect textRect = fm.boundingRect(valText);
textRect.adjust(-6, -4, 6, 4); textRect.adjust(-6, -4, 6, 4);
@ -187,29 +219,57 @@ protected:
} }
private: private:
QString valueToDisplayString(int raw) const { QString valueToDisplayString(int raw, bool forValueBubble) const {
// Use custom text if provided for this exact integer value // Use custom text if provided for this exact integer value
auto it = m_valueTexts.constFind(raw); auto it = m_valueTexts.constFind(raw);
if (it != m_valueTexts.constEnd()) { if (it != m_valueTexts.constEnd()) {
return *it; return *it;
} }
auto decimalShiftString = [this](int r) -> QString {
if (m_decimalShift == 0) { if (m_decimalShift == 0) {
return QString::number(raw); return QString::number(r);
} }
int divisor = 1; int divisor = 1;
for (int i = 0; i < m_decimalShift; ++i) divisor *= 10; for (int i = 0; i < m_decimalShift; ++i) divisor *= 10;
int whole = raw / divisor; int whole = r / divisor;
int frac = std::abs(raw % divisor); int frac = std::abs(r % divisor);
QString fracStr = QString::number(frac).rightJustified(m_decimalShift, QLatin1Char('0')); QString fracStr = QString::number(frac).rightJustified(m_decimalShift, QLatin1Char('0'));
QString result = QString::number(std::abs(whole)) + QLatin1Char('.') + fracStr; QString result = QString::number(std::abs(whole)) + QLatin1Char('.') + fracStr;
if (raw < 0) result.prepend(QLatin1Char('-')); if (r < 0) result.prepend(QLatin1Char('-'));
return result; return result;
};
QString base;
if (m_valueToDisplayStringFn) {
base = m_valueToDisplayStringFn(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;
} }
bool m_showValueBubble = true; bool m_showValueBubble = true;
int m_decimalShift = 0; // display-only decimal shift int m_decimalShift = 0; // display-only decimal shift
int m_tickStartOffset = 0; // label positions start offset relative to minimum int m_tickStartOffset = 0; // label positions start offset relative to minimum
QMap<int, QString> m_valueTexts; // optional text overrides for specific values 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: private:
int labelInterval() const { int labelInterval() const {
int ti = tickInterval(); int ti = tickInterval();

View File

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

View File

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

View File

@ -17,22 +17,24 @@ Item {
property bool customBannerEnabled: effect.customBannerEnabled property bool customBannerEnabled: effect.customBannerEnabled
property bool smoothFollowEnabled: effect.smoothFollowEnabled property bool smoothFollowEnabled: effect.smoothFollowEnabled
property real lookAheadScanlineMs: effect.lookAheadConfig[2] property real lookAheadScanlineMs: effect.lookAheadConfig[2]
property var crossFovs: displays.diagonalToCrossFOVs( property var fovLengths: displays.diagonalToCrossFOVs(
displays.degreeToRadian(effect.diagonalFOV), displays.degreeToRadian(effect.diagonalFOV),
aspectRatio aspectRatio
); );
property real fovHalfVerticalTangent: fovLengths.heightUnitDistance / 2.0;
property real fovHalfHorizontalTangent: fovLengths.widthUnitDistance / 2.0;
// if true, then smoothFollowEnabled just cleared and the IMU data is slerping back, // if true, then smoothFollowEnabled just cleared and the orientation data is slerping back,
// continue to use the origin data for the duration of the Timer // continue to use the origin data for the duration of the Timer
property bool smoothFollowDisabling: false property bool smoothFollowDisabling: false
property real clipNear: 10.0 property real clipNear: 10.0
property real clipFar: 10000.0 property real clipFar: 10000.0
function ratesOfChange(rotations) { function ratesOfChange(orientations) {
const e0 = rotations[0].toEulerAngles(); const e0 = orientations[0].toEulerAngles();
const e1 = rotations[1].toEulerAngles(); const e1 = orientations[1].toEulerAngles();
const dt = effect.imuTimeElapsedMs; const dt = effect.poseTimeElapsedMs;
const yawDegrees = (e0.y - e1.y) / dt; const yawDegrees = (e0.y - e1.y) / dt;
const pitchDegrees = (e0.x - e1.x) / dt; const pitchDegrees = (e0.x - e1.x) / dt;
const rollDegrees = (e0.z - e1.z) / dt; const rollDegrees = (e0.z - e1.z) / dt;
@ -49,22 +51,28 @@ Item {
}; };
} }
function updateCamera(rotations, rates) { function updateCamera(orientations, position, rates) {
camera.eulerRotation = applyLookAhead( camera.eulerRotation = applyLookAhead(
rates, rates,
lookAheadMS( lookAheadMS(
effect.imuTimestamp, effect.poseTimestamp,
effect.lookAheadConfig, effect.lookAheadConfig,
effect.lookAheadOverride effect.lookAheadOverride
) )
); );
camera.position = rotations[0].times(Qt.vector3d(0, 0, -fovDetails.lensDistancePixels)); 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);
} }
// 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 // 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(imuDateMs, lookAheadConfig, override) { function lookAheadMS(poseDateMs, lookAheadConfig, override) {
// how stale the imu data is // how stale the pose data is
const dataAge = Date.now() - imuDateMs; const dataAge = Date.now() - poseDateMs;
const lookAheadConstant = lookAheadConfig[0]; const lookAheadConstant = lookAheadConfig[0];
const lookAheadMultiplier = lookAheadConfig[1]; const lookAheadMultiplier = lookAheadConfig[1];
@ -84,7 +92,7 @@ Item {
} }
function buildPerspectiveMatrix() { function buildPerspectiveMatrix() {
const f = 1.0 / crossFovs.verticalTangent; const f = 1.0 / fovHalfVerticalTangent;
const nf = 1.0 / (clipNear - clipFar); const nf = 1.0 / (clipNear - clipFar);
const m00 = f / aspectRatio; const m00 = f / aspectRatio;
const m11 = f; const m11 = f;
@ -102,13 +110,13 @@ Item {
function applyRollingShutterShear(rates) { function applyRollingShutterShear(rates) {
// Convert to maximum shift at bottom of frame // Convert to maximum shift at bottom of frame
const maxDxNdc = (rates.yaw * lookAheadScanlineMs) / crossFovs.horizontalTangent; const maxDxNdc = (rates.yaw * lookAheadScanlineMs) / fovHalfHorizontalTangent;
const maxDyNdc = -(rates.pitch * lookAheadScanlineMs) / crossFovs.verticalTangent; const maxDyNdc = -(rates.pitch * lookAheadScanlineMs) / fovHalfVerticalTangent;
let shx = maxDxNdc / 2.0; let shx = maxDxNdc / 2.0;
let shy = maxDyNdc / 2.0; let shy = maxDyNdc / 2.0;
const f = 1.0 / crossFovs.verticalTangent; const f = 1.0 / fovHalfVerticalTangent;
const nf = 1.0 / (clipNear - clipFar); const nf = 1.0 / (clipNear - clipFar);
const m00 = f / aspectRatio; const m00 = f / aspectRatio;
const m11 = f; const m11 = f;
@ -148,10 +156,10 @@ Item {
FrameAnimation { FrameAnimation {
running: true running: true
onTriggered: { onTriggered: {
const rotations = (effect.smoothFollowEnabled || smoothFollowDisabling) ? effect.smoothFollowOrigin : effect.imuRotations; const orientations = (effect.smoothFollowEnabled || smoothFollowDisabling) ? effect.smoothFollowOrigin : effect.poseOrientations;
if (rotations && rotations.length > 0) { if (orientations && orientations.length > 0) {
const rates = ratesOfChange(rotations); const rates = ratesOfChange(orientations);
updateCamera(rotations, rates); updateCamera(orientations, effect.posePosition, rates);
applyRollingShutterShear(rates); applyRollingShutterShear(rates);
} }
} }

View File

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

View File

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

View File

@ -18,22 +18,35 @@ QtObject {
return Qt.vector3d(-vector.y, vector.z, -vector.x); 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) { function eusToNwuQuat(quaternion) {
// Converts EUS quaternion to NWU quaternion // Converts EUS quaternion to NWU quaternion
return Qt.quaternion(quaternion.scalar, -quaternion.z, -quaternion.x, quaternion.y); return Qt.quaternion(quaternion.scalar, -quaternion.z, -quaternion.x, quaternion.y);
} }
// Converts diagonal FOV in radians and aspect ratio to horizontal and vertical FOVs // Converts diagonal FOV in radians and aspect ratio to horizontal and vertical FOV measurements
function diagonalToCrossFOVs(diagonalFOVRadians, aspectRatio) { function diagonalToCrossFOVs(diagonalFOVRadians, aspectRatio) {
var diagonalTangent = Math.tan(diagonalFOVRadians / 2); // first convert from a spherical FOV to a diagonal FOV on a flat plane at a unit distance of 1.0
var verticalTangent = diagonalTangent / Math.sqrt(1 + aspectRatio * aspectRatio); const diagonalLengthUnitDistance = 2 * Math.tan(diagonalFOVRadians / 2);
var horizontalTangent = verticalTangent * aspectRatio;
// then convert to flat plane horizontal and vertical FOVs
const heightUnitDistance = diagonalLengthUnitDistance / Math.sqrt(1 + aspectRatio * aspectRatio);
const widthUnitDistance = heightUnitDistance * aspectRatio;
return { return {
diagonal: diagonalFOVRadians, // then convert back to spherical FOV
horizontal: 2 * Math.atan(horizontalTangent), diagonalRadians: diagonalFOVRadians,
horizontalTangent: horizontalTangent, horizontalRadians: 2 * Math.atan(widthUnitDistance / 2),
vertical: 2 * Math.atan(verticalTangent), verticalRadians: 2 * Math.atan(heightUnitDistance / 2),
verticalTangent: verticalTangent
// flat values are relative to a unit distance of 1.0
diagonalLengthUnitDistance,
widthUnitDistance,
heightUnitDistance
} }
} }
@ -50,33 +63,55 @@ QtObject {
} }
} }
function buildFovDetails(screens, viewportWidth, viewportHeight, viewportDiagonalFOV, lensDistanceRatio, defaultDisplayDistance, wrappingChoice) { function buildFovDetails(screens, viewportWidth, viewportHeight, viewportDiagonalFOV, lensDistanceRatio, defaultDisplayDistance, wrappingChoice, distanceAdjustedSize) {
const aspect = viewportWidth / viewportHeight; const aspect = viewportWidth / viewportHeight;
const crossFovs = diagonalToCrossFOVs(degreeToRadian(viewportDiagonalFOV), aspect); const fovLengths = 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); let monitorWrappingScheme = actualWrapScheme(screens, viewportWidth, viewportHeight);
if (wrappingChoice === 1) monitorWrappingScheme = 'horizontal'; if (wrappingChoice === 1) monitorWrappingScheme = 'horizontal';
else if (wrappingChoice === 2) monitorWrappingScheme = 'vertical'; else if (wrappingChoice === 2) monitorWrappingScheme = 'vertical';
else if (wrappingChoice === 3) monitorWrappingScheme = 'flat'; 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 { return {
widthPixels: viewportWidth, widthPixels: viewportWidth,
distanceAdjustedSize,
sizeAdjustedWidthPixels: viewportWidth * distanceAdjustedSize,
heightPixels: viewportHeight, heightPixels: viewportHeight,
sizeAdjustedHeightPixels: viewportHeight * distanceAdjustedSize,
defaultDistanceVerticalRadians, defaultDistanceVerticalRadians,
defaultDistanceHorizontalRadians, defaultDistanceHorizontalRadians,
lensDistancePixels, lensDistancePixels,
fullScreenDistancePixels,
completeScreenDistancePixels, completeScreenDistancePixels,
monitorWrappingScheme: monitorWrappingScheme, monitorWrappingScheme,
curvedDisplay: effect.curvedDisplay curvedDisplay: effect.curvedDisplay
}; };
} }
@ -99,6 +134,9 @@ QtObject {
angleToLength: function(fovRadians, fovLength, screenDistance, toAngleOpposite, toAngleAdjacent) { angleToLength: function(fovRadians, fovLength, screenDistance, toAngleOpposite, toAngleAdjacent) {
return toAngleOpposite / toAngleAdjacent * screenDistance; return toAngleOpposite / toAngleAdjacent * screenDistance;
}, },
fovRadiansAtDistance: function(fovRadians, unitLength, newScreenDistance) {
return 2 * Math.atan(unitLength / 2 / newScreenDistance);
},
radiansToSegments: function(screenRadians) { return 1; } radiansToSegments: function(screenRadians) { return 1; }
}, },
curved: { curved: {
@ -114,6 +152,9 @@ QtObject {
angleToLength: function(fovRadians, fovLength, screenDistance, toAngleOpposite, toAngleAdjacent) { angleToLength: function(fovRadians, fovLength, screenDistance, toAngleOpposite, toAngleAdjacent) {
return fovLength / fovRadians * Math.atan2(toAngleOpposite, toAngleAdjacent); return fovLength / fovRadians * Math.atan2(toAngleOpposite, toAngleAdjacent);
}, },
fovRadiansAtDistance: function(fovRadians, unitLength, newScreenDistance) {
return fovRadians / newScreenDistance;
},
radiansToSegments: function(screenRadians) { radiansToSegments: function(screenRadians) {
return Math.ceil(screenRadians * segmentsPerRadian); return Math.ceil(screenRadians * segmentsPerRadian);
} }
@ -198,8 +239,12 @@ QtObject {
var conversionFns = fovDetails.curvedDisplay ? fovConversionFns.curved : fovConversionFns.flat; var conversionFns = fovDetails.curvedDisplay ? fovConversionFns.curved : fovConversionFns.flat;
if (fovDetails.monitorWrappingScheme === 'horizontal') { if (fovDetails.monitorWrappingScheme === 'horizontal') {
var sideEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.widthPixels); // monitors wrap around us horizontally
var monitorSpacingPixels = monitorSpacing * fovDetails.widthPixels;
var sideEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.sizeAdjustedWidthPixels);
var monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedWidthPixels;
// targetWidth is assumed to aleady be size adjusted
var lengthToRadianFn = function(targetWidth) { var lengthToRadianFn = function(targetWidth) {
return conversionFns.lengthToRadians( return conversionFns.lengthToRadians(
fovDetails.defaultDistanceHorizontalRadians, fovDetails.defaultDistanceHorizontalRadians,
@ -209,14 +254,14 @@ QtObject {
); );
}; };
cachedMonitorRadians[0] = -fovDetails.defaultDistanceHorizontalRadians / 2; cachedMonitorRadians[0] = -lengthToRadianFn(fovDetails.sizeAdjustedWidthPixels) / 2;
horizontalMonitorSort(monitorDetailsList).forEach(function(obj) { horizontalMonitorSort(monitorDetailsList).forEach(function(obj) {
var monitorDetails = obj.monitorDetails; var monitorDetails = obj.monitorDetails;
var originalIndex = obj.originalIndex; var originalIndex = obj.originalIndex;
var monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.x, monitorDetails.width, lengthToRadianFn); var monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.x, monitorDetails.width, lengthToRadianFn);
var monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(sideEdgeRadius, monitorDetails.width); var monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(sideEdgeRadius, monitorDetails.width);
var upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.heightPixels) * monitorSpacingPixels; var upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.sizeAdjustedHeightPixels) * monitorSpacingPixels;
var upCenterOffsetPixels = (monitorDetails.height - fovDetails.heightPixels) / 2; var upCenterOffsetPixels = (monitorDetails.height - fovDetails.sizeAdjustedHeightPixels) / 2;
var upCenterPixels = upTopPixels - upCenterOffsetPixels; var upCenterPixels = upTopPixels - upCenterOffsetPixels;
monitorPlacements.push({ monitorPlacements.push({
@ -231,7 +276,7 @@ QtObject {
monitorCenterRadius * Math.cos(monitorWrapDetails.center), monitorCenterRadius * Math.cos(monitorWrapDetails.center),
-monitorCenterRadius * Math.sin(monitorWrapDetails.center), -monitorCenterRadius * Math.sin(monitorWrapDetails.center),
upCenterPixels upCenterPixels
).normalized(), ),
rotationAngleRadians: { rotationAngleRadians: {
x: 0, x: 0,
y: -monitorWrapDetails.center y: -monitorWrapDetails.center
@ -239,8 +284,8 @@ QtObject {
}); });
}); });
} else if (fovDetails.monitorWrappingScheme === 'vertical') { } else if (fovDetails.monitorWrappingScheme === 'vertical') {
var topEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.heightPixels); var topEdgeRadius = conversionFns.centerToFovEdgeDistance(fovDetails.completeScreenDistancePixels, fovDetails.sizeAdjustedHeightPixels);
var monitorSpacingPixels = monitorSpacing * fovDetails.heightPixels; var monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedHeightPixels;
var lengthToRadianFn = function(targetHeight) { var lengthToRadianFn = function(targetHeight) {
return conversionFns.lengthToRadians( return conversionFns.lengthToRadians(
fovDetails.defaultDistanceVerticalRadians, fovDetails.defaultDistanceVerticalRadians,
@ -250,14 +295,14 @@ QtObject {
); );
}; };
cachedMonitorRadians[0] = -fovDetails.defaultDistanceVerticalRadians / 2; cachedMonitorRadians[0] = -lengthToRadianFn(fovDetails.sizeAdjustedHeightPixels) / 2;
verticalMonitorSort(monitorDetailsList).forEach(function(obj) { verticalMonitorSort(monitorDetailsList).forEach(function(obj) {
var monitorDetails = obj.monitorDetails; var monitorDetails = obj.monitorDetails;
var originalIndex = obj.originalIndex; var originalIndex = obj.originalIndex;
var monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.y, monitorDetails.height, lengthToRadianFn); var monitorWrapDetails = monitorWrap(cachedMonitorRadians, monitorSpacingPixels, monitorDetails.y, monitorDetails.height, lengthToRadianFn);
var monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(topEdgeRadius, monitorDetails.height); var monitorCenterRadius = conversionFns.fovEdgeToScreenCenterDistance(topEdgeRadius, monitorDetails.height);
var westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.widthPixels) * monitorSpacingPixels; var westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.sizeAdjustedWidthPixels) * monitorSpacingPixels;
var westCenterOffsetPixels = (monitorDetails.width - fovDetails.widthPixels) / 2; var westCenterOffsetPixels = (monitorDetails.width - fovDetails.sizeAdjustedWidthPixels) / 2;
var westCenterPixels = westLeftPixels - westCenterOffsetPixels; var westCenterPixels = westLeftPixels - westCenterOffsetPixels;
monitorPlacements.push({ monitorPlacements.push({
@ -272,7 +317,7 @@ QtObject {
monitorCenterRadius * Math.cos(monitorWrapDetails.center), monitorCenterRadius * Math.cos(monitorWrapDetails.center),
westCenterPixels, westCenterPixels,
-monitorCenterRadius * Math.sin(monitorWrapDetails.center) -monitorCenterRadius * Math.sin(monitorWrapDetails.center)
).normalized(), ),
rotationAngleRadians: { rotationAngleRadians: {
x: -monitorWrapDetails.center, x: -monitorWrapDetails.center,
y: 0 y: 0
@ -280,12 +325,12 @@ QtObject {
}); });
}); });
} else { } else {
var monitorSpacingPixels = monitorSpacing * fovDetails.widthPixels; var monitorSpacingPixels = monitorSpacing * fovDetails.sizeAdjustedWidthPixels;
monitorDetailsList.forEach(function(monitorDetails, index) { monitorDetailsList.forEach(function(monitorDetails, index) {
var upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.heightPixels) * monitorSpacingPixels; var upTopPixels = -monitorDetails.y - (monitorDetails.y / fovDetails.sizeAdjustedHeightPixels) * monitorSpacingPixels;
var westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.widthPixels) * monitorSpacingPixels; var westLeftPixels = -monitorDetails.x - (monitorDetails.x / fovDetails.sizeAdjustedWidthPixels) * monitorSpacingPixels;
var westCenterOffsetPixels = (monitorDetails.width - fovDetails.widthPixels) / 2; var westCenterOffsetPixels = (monitorDetails.width - fovDetails.sizeAdjustedWidthPixels) / 2;
var upCenterOffsetPixels = (monitorDetails.height - fovDetails.heightPixels) / 2; var upCenterOffsetPixels = (monitorDetails.height - fovDetails.sizeAdjustedHeightPixels) / 2;
var westCenterPixels = westLeftPixels - westCenterOffsetPixels; var westCenterPixels = westLeftPixels - westCenterOffsetPixels;
var upCenterPixels = upTopPixels - upCenterOffsetPixels; var upCenterPixels = upTopPixels - upCenterOffsetPixels;
@ -301,7 +346,7 @@ QtObject {
fovDetails.completeScreenDistancePixels, fovDetails.completeScreenDistancePixels,
westCenterPixels, westCenterPixels,
upCenterPixels upCenterPixels
).normalized(), ),
rotationAngleRadians: { rotationAngleRadians: {
x: 0, x: 0,
y: 0 y: 0
@ -318,35 +363,41 @@ QtObject {
// 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 dimensions
function getMonitorDistance(fovDetails, lookUpPixels, lookWestPixels, monitorVector, monitorDetails, upAngleToLength, westAngleToLength) { 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( var vectorUpPixels = upAngleToLength(
fovDetails.defaultDistanceVerticalRadians, fovDetails.defaultDistanceVerticalRadians,
fovDetails.heightPixels, fovDetails.heightPixels,
fovDetails.completeScreenDistancePixels, monitorDistance,
monitorVector.z, monitorVector.z,
monitorVector.x monitorVector.x
); ) * distanceAdjustment;
var upPercentage = Math.abs(lookUpPixels - vectorUpPixels) / monitorDetails.height; var upPercentage = Math.abs(lookUpPixels * distanceAdjustment - vectorUpPixels) / monitorDetails.height;
var vectorWestPixels = westAngleToLength( var vectorWestPixels = westAngleToLength(
fovDetails.defaultDistanceHorizontalRadians, fovDetails.defaultDistanceHorizontalRadians,
fovDetails.widthPixels, fovDetails.widthPixels,
fovDetails.completeScreenDistancePixels, monitorDistance,
monitorVector.y, monitorVector.y,
monitorVector.x monitorVector.x
); ) * distanceAdjustment;
var westPercentage = Math.abs(lookWestPixels - vectorWestPixels) / monitorDetails.width; var westPercentage = Math.abs(lookWestPixels * distanceAdjustment - vectorWestPixels) / monitorDetails.width;
// how close we are to any edge is the largest of the two percentages // how close we are to any edge is the largest of the two percentages
return Math.max(upPercentage, westPercentage); return Math.max(upPercentage, westPercentage);
} }
function findFocusedMonitor(quaternion, monitorVectors, currentFocusedIndex, smoothFollowEnabled, fovDetails, monitorsDetails) { function findFocusedMonitor(quaternion, position, monitorVectors, currentFocusedIndex, smoothFollowEnabled, fovDetails, monitorsDetails) {
if (currentFocusedIndex !== -1 && smoothFollowEnabled) return currentFocusedIndex; 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 lookVector = Qt.vector3d(1.0, 0.0, 0.0); // NWU vector pointing to the center of the screen
var rotatedLookVector = quaternion.times(lookVector); var rotatedLookVector = quaternion.times(lookVector);
// Use curved or flat conversion functions depending on wrapping scheme // 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
var upConversionFns = fovDetails.monitorWrappingScheme === "vertical" ? fovConversionFns.curved : fovConversionFns.flat; var upConversionFns = fovDetails.monitorWrappingScheme === "vertical" ? fovConversionFns.curved : fovConversionFns.flat;
var lookUpPixels = upConversionFns.angleToLength( var lookUpPixels = upConversionFns.angleToLength(
fovDetails.defaultDistanceVerticalRadians, fovDetails.defaultDistanceVerticalRadians,
@ -364,13 +415,17 @@ QtObject {
rotatedLookVector.x rotatedLookVector.x
); );
function vectorRelativeToPosition(vector) {
return vector.minus(position);
}
// Check current focused monitor first // Check current focused monitor first
if (currentFocusedIndex !== -1) { if (currentFocusedIndex !== -1) {
var focusedDistance = getMonitorDistance( var focusedDistance = getMonitorDistance(
fovDetails, fovDetails,
lookUpPixels, lookUpPixels,
lookWestPixels, lookWestPixels,
monitorVectors[currentFocusedIndex], vectorRelativeToPosition(monitorVectors[currentFocusedIndex]),
monitorsDetails[currentFocusedIndex], monitorsDetails[currentFocusedIndex],
upConversionFns.angleToLength, upConversionFns.angleToLength,
westConversionFns.angleToLength westConversionFns.angleToLength
@ -390,7 +445,7 @@ QtObject {
fovDetails, fovDetails,
lookUpPixels, lookUpPixels,
lookWestPixels, lookWestPixels,
monitorVectors[i], vectorRelativeToPosition(monitorVectors[i]),
monitorsDetails[i], monitorsDetails[i],
upConversionFns.angleToLength, upConversionFns.angleToLength,
westConversionFns.angleToLength westConversionFns.angleToLength

View File

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

View File

@ -108,3 +108,10 @@ bool XRDriverIPC::verifyToken(const std::string &token) {
QString result = QString::fromUtf8(out).trimmed().toLower(); QString result = QString::fromUtf8(out).trimmed().toLower();
return result == QStringLiteral("true"); 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,6 +85,7 @@ public:
bool writeControlFlags(const QJsonObject &flags); bool writeControlFlags(const QJsonObject &flags);
bool requestToken(const std::string &email); bool requestToken(const std::string &email);
bool verifyToken(const std::string &token); bool verifyToken(const std::string &token);
bool resetDriver();
private: private:

@ -1 +1 @@
Subproject commit 48273140edeb74982bb07628eba602fabf61f6bb Subproject commit 33f15b0e15b141e7664afcc4c09d2c19b62716c0

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

View File

@ -100,6 +100,15 @@
The size of the display The size of the display
</description> </description>
</key> </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"> <key name="viewport-offset-x" type="d">
<default> <default>
0.0 0.0

@ -1 +1 @@
Subproject commit d047bdf7b7300751a09464b6f62d67cb3e291031 Subproject commit 40c9979d7e79d31047cb474c154018ce43afb63a

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,5 @@
import sys import sys
import threading from gi.repository import GObject, GLib
from gi.repository import GObject
from .xrdriveripc import XRDriverIPC from .xrdriveripc import XRDriverIPC
class ConfigManager(GObject.GObject): class ConfigManager(GObject.GObject):
@ -9,7 +8,28 @@ class ConfigManager(GObject.GObject):
'multi-tap-enabled': (bool, 'Multi-Tap Enabled', 'Whether Multi-Tap is enabled', False, GObject.ParamFlags.READWRITE), 'multi-tap-enabled': (bool, 'Multi-Tap Enabled', 'Whether Multi-Tap is enabled', False, GObject.ParamFlags.READWRITE),
'follow-track-roll': (bool, 'Follow Track Roll', 'Whether to follow on the roll axis', False, GObject.ParamFlags.READWRITE), '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-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) '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',
'Multiplier to reduce horizontal head movement',
1.0, 2.5, 1.0,
GObject.ParamFlags.READWRITE,
),
'neck-saver-vertical-multiplier': (
float,
'Neck Saver Vertical Multiplier',
'Multiplier to reduce vertical head movement',
1.0, 2.5, 1.0,
GObject.ParamFlags.READWRITE,
)
} }
_instance = None _instance = None
@ -35,11 +55,19 @@ class ConfigManager(GObject.GObject):
self.follow_track_roll = None self.follow_track_roll = None
self.follow_track_pitch = None self.follow_track_pitch = None
self.follow_track_yaw = 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._running = True
self._refresh_source_id = None
self._refresh_config() self._refresh_config()
self._refresh_source_id = GLib.timeout_add_seconds(1, self._refresh_config)
def stop(self): def stop(self):
self._running = False 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): def _refresh_config(self):
self.config = self.ipc.retrieve_config(False) self.config = self.ipc.retrieve_config(False)
@ -58,7 +86,16 @@ class ConfigManager(GObject.GObject):
if self.config['smooth_follow_track_yaw'] != self.follow_track_yaw: if self.config['smooth_follow_track_yaw'] != self.follow_track_yaw:
self.set_property('follow-track-yaw', self.config['smooth_follow_track_yaw']) self.set_property('follow-track-yaw', self.config['smooth_follow_track_yaw'])
if self._running: threading.Timer(1.0, self._refresh_config).start() 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
def _is_breezy_desktop_enabled(self): def _is_breezy_desktop_enabled(self):
return self.config.get('disabled') == False and 'breezy_desktop' in self.config.get('external_mode', []) return self.config.get('disabled') == False and 'breezy_desktop' in self.config.get('external_mode', [])
@ -98,6 +135,27 @@ class ConfigManager(GObject.GObject):
self.ipc.write_config(self.config) self.ipc.write_config(self.config)
self.follow_track_yaw = value 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:
self.config['neck_saver_horizontal_multiplier'] = value
self.ipc.write_config(self.config)
self.neck_saver_horizontal_multiplier = value
def _set_neck_saver_vertical_multiplier(self, value):
value = round(min(2.5, max(1.0, float(value))), 2)
if self.neck_saver_vertical_multiplier != value:
self.config['neck_saver_vertical_multiplier'] = value
self.ipc.write_config(self.config)
self.neck_saver_vertical_multiplier = value
def do_set_property(self, prop, value): def do_set_property(self, prop, value):
if prop.name == 'breezy-desktop-enabled': if prop.name == 'breezy-desktop-enabled':
self._set_breezy_desktop_enabled(value) self._set_breezy_desktop_enabled(value)
@ -109,6 +167,12 @@ class ConfigManager(GObject.GObject):
self._set_follow_track_pitch(value) self._set_follow_track_pitch(value)
elif prop.name == 'follow-track-yaw': elif prop.name == 'follow-track-yaw':
self._set_follow_track_yaw(value) 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':
self._set_neck_saver_vertical_multiplier(value)
def do_get_property(self, prop): def do_get_property(self, prop):
if prop.name == 'breezy-desktop-enabled': if prop.name == 'breezy-desktop-enabled':
@ -121,3 +185,9 @@ class ConfigManager(GObject.GObject):
return self.follow_track_pitch return self.follow_track_pitch
elif prop.name == 'follow-track-yaw': elif prop.name == 'follow-track-yaw':
return self.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':
return self.neck_saver_vertical_multiplier

View File

@ -33,6 +33,8 @@ class ConnectedDevice(Gtk.Box):
effect_enable_switch = Gtk.Template.Child() effect_enable_switch = Gtk.Template.Child()
disable_physical_displays_switch = Gtk.Template.Child() disable_physical_displays_switch = Gtk.Template.Child()
display_zoom_on_focus_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_scale = Gtk.Template.Child()
follow_threshold_adjustment = Gtk.Template.Child() follow_threshold_adjustment = Gtk.Template.Child()
follow_mode_switch = Gtk.Template.Child() follow_mode_switch = Gtk.Template.Child()
@ -67,6 +69,12 @@ class ConnectedDevice(Gtk.Box):
movement_look_ahead_adjustment = Gtk.Template.Child() movement_look_ahead_adjustment = Gtk.Template.Child()
text_scaling_scale = Gtk.Template.Child() text_scaling_scale = Gtk.Template.Child()
text_scaling_adjustment = Gtk.Template.Child() text_scaling_adjustment = Gtk.Template.Child()
neck_saver_horizontal_scale = Gtk.Template.Child()
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() enable_multi_tap_switch = Gtk.Template.Child()
legacy_follow_mode_switch = Gtk.Template.Child() legacy_follow_mode_switch = Gtk.Template.Child()
follow_track_yaw_switch = Gtk.Template.Child() follow_track_yaw_switch = Gtk.Template.Child()
@ -79,6 +87,7 @@ class ConnectedDevice(Gtk.Box):
viewport_offset_x_adjustment = Gtk.Template.Child() viewport_offset_x_adjustment = Gtk.Template.Child()
viewport_offset_y_scale = Gtk.Template.Child() viewport_offset_y_scale = Gtk.Template.Child()
viewport_offset_y_adjustment = Gtk.Template.Child() viewport_offset_y_adjustment = Gtk.Template.Child()
units_menu = Gtk.Template.Child()
def __init__(self): def __init__(self):
super(Gtk.Box, self).__init__() super(Gtk.Box, self).__init__()
@ -86,7 +95,7 @@ class ConnectedDevice(Gtk.Box):
self.active = True self.active = True
self.all_enabled_state_inputs = [ self.all_enabled_state_inputs = [
self.display_zoom_on_focus_switch, self.display_zoom_on_focus_switch,
# self.display_size_scale, self.display_size_scale,
self.follow_mode_switch, self.follow_mode_switch,
self.follow_threshold_scale, self.follow_threshold_scale,
self.curved_display_switch, self.curved_display_switch,
@ -98,7 +107,9 @@ class ConnectedDevice(Gtk.Box):
self.monitor_wrapping_scheme_menu, self.monitor_wrapping_scheme_menu,
self.monitor_spacing_scale, self.monitor_spacing_scale,
self.viewport_offset_x_scale, self.viewport_offset_x_scale,
self.viewport_offset_y_scale self.viewport_offset_y_scale,
self.neck_saver_horizontal_scale,
self.neck_saver_vertical_scale
] ]
self.settings = SettingsManager.get_instance().settings self.settings = SettingsManager.get_instance().settings
@ -109,7 +120,7 @@ class ConnectedDevice(Gtk.Box):
self.settings.bind('disable-physical-displays', self.disable_physical_displays_switch, 'active', Gio.SettingsBindFlags.DEFAULT) 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.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('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('widescreen-mode', self.widescreen_mode_switch, 'active', Gio.SettingsBindFlags.DEFAULT)
self.settings.bind('curved-display', self.curved_display_switch, 'active', Gio.SettingsBindFlags.DEFAULT) self.settings.bind('curved-display', self.curved_display_switch, 'active', Gio.SettingsBindFlags.DEFAULT)
@ -130,6 +141,10 @@ class ConnectedDevice(Gtk.Box):
self.monitor_wrapping_scheme_menu.connect('changed', self._handle_monitor_wrapping_scheme_menu_changed) 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')) 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(), [ bind_shortcut_settings(self.get_parent(), [
[self.reassign_toggle_xr_effect_shortcut_button, self.toggle_xr_effect_shortcut_label], [self.reassign_toggle_xr_effect_shortcut_button, self.toggle_xr_effect_shortcut_label],
[self.reassign_recenter_display_shortcut_button, self.recenter_display_shortcut_label], [self.reassign_recenter_display_shortcut_button, self.recenter_display_shortcut_label],
@ -170,12 +185,19 @@ class ConnectedDevice(Gtk.Box):
self.follow_mode_switch.connect('notify::active', self._refresh_follow_mode) self.follow_mode_switch.connect('notify::active', self._refresh_follow_mode)
self.effect_enable_switch.connect('notify::active', self._handle_switch_enabled_state) 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 = ConfigManager.get_instance()
self.config_manager.connect('notify::breezy-desktop-enabled', self._handle_enabled_config) 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.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_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_pitch_switch, 'follow-track-pitch')
self._bind_switch_to_config(self.follow_track_yaw_switch, 'follow-track-yaw') 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')
self.use_optimal_monitor_config_switch.connect('notify::active', self._refresh_use_optimal_monitor_config) self.use_optimal_monitor_config_switch.connect('notify::active', self._refresh_use_optimal_monitor_config)
@ -210,6 +232,11 @@ class ConnectedDevice(Gtk.Box):
# wayland is required to create virtual displays # wayland is required to create virtual displays
self.is_wayland = "WAYLAND_DISPLAY" in os.environ self.is_wayland = "WAYLAND_DISPLAY" in os.environ
def _bind_scale_to_config(self, scale, config_key):
self.config_manager.bind_property(config_key, scale, 'value', Gio.SettingsBindFlags.DEFAULT)
scale.set_value(self.config_manager.get_property(config_key))
scale.connect('value-changed', lambda widget: self.config_manager.set_property(config_key, widget.get_value()))
def _bind_switch_to_config(self, switch, config_key): def _bind_switch_to_config(self, switch, config_key):
self.config_manager.bind_property(config_key, switch, 'active', Gio.SettingsBindFlags.DEFAULT) self.config_manager.bind_property(config_key, switch, 'active', Gio.SettingsBindFlags.DEFAULT)
switch.set_active(self.config_manager.get_property(config_key)) switch.set_active(self.config_manager.get_property(config_key))
@ -225,6 +252,18 @@ class ConnectedDevice(Gtk.Box):
elif not widget.get_active() and is_zoom_on_focus_already_enabled: elif not widget.get_active() and is_zoom_on_focus_already_enabled:
self.settings.set_double('display-distance', toggle_display_distance_end) 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): def _handle_monitor_wrapping_scheme_setting_changed(self, settings, val):
self.monitor_wrapping_scheme_menu.set_active_id(val) self.monitor_wrapping_scheme_menu.set_active_id(val)
@ -301,17 +340,33 @@ class ConnectedDevice(Gtk.Box):
self.display_zoom_on_focus_switch.set_active(should_zoom_on_focus_be_enabled) self.display_zoom_on_focus_switch.set_active(should_zoom_on_focus_be_enabled)
def _set_focused_display_distance(self, distance): def _set_focused_display_distance(self, distance):
self.focused_display_distance_label.set_markup(f"{_('Focused display')}: <b>{distance}</b>") self.focused_display_distance_label.set_markup(f"{_('Focused display')}: <b>{self._format_distance(distance)}</b>")
self.settings.set_double('toggle-display-distance-start', distance) 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')) self.display_zoom_on_focus_switch.set_sensitive(distance != self.settings.get_double('toggle-display-distance-end'))
def _set_all_displays_distance(self, distance): def _set_all_displays_distance(self, distance):
self.all_displays_distance_label.set_markup(f"{_('All displays')}: <b>{distance}</b>") self.all_displays_distance_label.set_markup(f"{_('All displays')}: <b>{self._format_distance(distance)}</b>")
self.settings.set_double('toggle-display-distance-end', distance) 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_active(False)
self.display_zoom_on_focus_switch.set_sensitive(distance != self.settings.get_double('toggle-display-distance-start')) 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): 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 = DisplayDistanceDialog(settings_key, on_save_callback, title, subtitle, lower_limit, upper_limit)
dialog.set_transient_for(widget.get_ancestor(Gtk.Window)) dialog.set_transient_for(widget.get_ancestor(Gtk.Window))
@ -319,23 +374,28 @@ class ConnectedDevice(Gtk.Box):
def _on_set_all_displays_distance(self, prev_distance, distance): def _on_set_all_displays_distance(self, prev_distance, distance):
focused_display_distance = self.settings.get_double('toggle-display-distance-start') 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): if (distance < focused_display_distance):
self._set_focused_display_distance(distance) self._set_focused_display_distance(distance)
all_displays_distance = self.settings.get_double('toggle-display-distance-end')
self._set_all_displays_distance(distance) self._set_all_displays_distance(distance)
if prev_distance == focused_display_distance: # if we were at the unfocused distance, put us at the new unfocused distance
self.settings.set_double('display-distance', prev_distance) if prev_distance == all_displays_distance:
self.settings.set_double('display-distance', distance)
def _on_set_focused_display_distance(self, prev_distance, 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') all_displays_distance = self.settings.get_double('toggle-display-distance-end')
if (distance > all_displays_distance): if (distance > all_displays_distance):
self._set_all_displays_distance(distance) self._set_all_displays_distance(distance)
focused_display_distance = self.settings.get_double('toggle-display-distance-start')
self._set_focused_display_distance(distance) 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): def _save_custom_resolutions(self):
with open(self._custom_resolutions_file_path, 'w') as f: with open(self._custom_resolutions_file_path, 'w') as f:
json.dump(self._custom_resolution_options, f) json.dump(self._custom_resolution_options, f)

View File

@ -5,7 +5,6 @@ from .displaydistancedialogcontent import DisplayDistanceDialogContent
class DisplayDistanceDialog(Gtk.Dialog): class DisplayDistanceDialog(Gtk.Dialog):
__gtype_name__ = 'DisplayDistanceDialog' __gtype_name__ = 'DisplayDistanceDialog'
show_full_scale_button = Gtk.Template.Child()
save_button = Gtk.Template.Child() save_button = Gtk.Template.Child()
def __init__(self, settings_key, on_save_callback, title, subtitle, lower_limit, upper_limit): def __init__(self, settings_key, on_save_callback, title, subtitle, lower_limit, upper_limit):
@ -15,14 +14,9 @@ class DisplayDistanceDialog(Gtk.Dialog):
self.on_save_callback = on_save_callback self.on_save_callback = on_save_callback
self.set_title(title) self.set_title(title)
self.content = DisplayDistanceDialogContent(settings_key, self.show_full_scale_button, self.save_button, self._on_save_callback, subtitle, lower_limit, upper_limit) self.content = DisplayDistanceDialogContent(settings_key, self.save_button, self._on_save_callback, subtitle, lower_limit, upper_limit)
self.get_content_area().append(self.content) 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): def _on_save_callback(self, prev_distance, distance):
self.on_save_callback(prev_distance, distance) self.on_save_callback(prev_distance, distance)
self.close() self.close()

View File

@ -1,5 +1,6 @@
from gi.repository import Gtk, Gio from gi.repository import Gtk, Gio
from .settingsmanager import SettingsManager from .settingsmanager import SettingsManager
from .statemanager import StateManager
import gettext import gettext
@ -14,7 +15,7 @@ class DisplayDistanceDialogContent(Gtk.Box):
display_distance_scale = Gtk.Template.Child() display_distance_scale = Gtk.Template.Child()
display_distance_adjustment = Gtk.Template.Child() display_distance_adjustment = Gtk.Template.Child()
def __init__(self, settings_key, show_full_scale_button, save_button, on_save_callback, subtitle, lower_limit, upper_limit): def __init__(self, settings_key, save_button, on_save_callback, subtitle, lower_limit, upper_limit):
super(Gtk.Box, self).__init__() super(Gtk.Box, self).__init__()
self.init_template() self.init_template()
@ -22,37 +23,28 @@ class DisplayDistanceDialogContent(Gtk.Box):
self.on_save_callback = on_save_callback self.on_save_callback = on_save_callback
self.settings = SettingsManager.get_instance().settings self.settings = SettingsManager.get_instance().settings
self.state_manager = StateManager.get_instance()
self.prev_distance = self.settings.get_double('display-distance') self.prev_distance = self.settings.get_double('display-distance')
self.display_distance_adjustment.set_value(self.settings.get_double(settings_key))
self.lower_limit_orig = self.display_distance_adjustment.get_lower() self.display_distance_scale.set_format_value_func(lambda scale, val: self._format_distance(val))
self.upper_limit_orig = self.display_distance_adjustment.get_upper() 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._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) 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): def _on_save_button_clicked(self, button):
self.on_save_callback(self.prev_distance, self.display_distance_adjustment.get_value()) 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"

View File

@ -229,6 +229,36 @@
</child> </child>
</object> </object>
</child> </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> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes"><!-- adjustment slider -->Follow threshold</property> <property name="title" translatable="yes"><!-- adjustment slider -->Follow threshold</property>
@ -554,6 +584,35 @@
<object class="AdwPreferencesGroup"> <object class="AdwPreferencesGroup">
<property name="title" translatable="yes"><!-- section heading for the advanced settings -->Advanced Settings</property> <property name="title" translatable="yes"><!-- section heading for the advanced settings -->Advanced Settings</property>
<property name="width-request">450</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> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes"><!-- feature that tries to the find best-fit monitor config -->Find optimal display config</property> <property name="title" translatable="yes"><!-- feature that tries to the find best-fit monitor config -->Find optimal display config</property>
@ -637,6 +696,104 @@
<object class="AdwPreferencesGroup"> <object class="AdwPreferencesGroup">
<property name="title"> </property> <property name="title"> </property>
<property name="width-request">700</property> <property name="width-request">700</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Neck-saver horizontal multiplier</property>
<property name="subtitle" translatable="yes">Higher values require smaller horizontal head movements.</property>
<child>
<object class="GtkScale" id="neck_saver_horizontal_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="neck_saver_horizontal_adjustment">
<property name="lower">1.0</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="1.0" position="bottom">1.0</mark>
<mark value="1.25" position="bottom">1.25</mark>
<mark value="1.5" position="bottom">1.5</mark>
<mark value="1.75" position="bottom">1.75</mark>
<mark value="2.0" position="bottom">2.0</mark>
<mark value="2.25" position="bottom">2.25</mark>
<mark value="2.5" position="bottom">2.5</mark>
</marks>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Neck-saver vertical multiplier</property>
<property name="subtitle" translatable="yes">Higher values require smaller vertical head movements.</property>
<child>
<object class="GtkScale" id="neck_saver_vertical_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="neck_saver_vertical_adjustment">
<property name="lower">1.0</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="1.0" position="bottom">1.0</mark>
<mark value="1.25" position="bottom">1.25</mark>
<mark value="1.5" position="bottom">1.5</mark>
<mark value="1.75" position="bottom">1.75</mark>
<mark value="2.0" position="bottom">2.0</mark>
<mark value="2.25" position="bottom">2.25</mark>
<mark value="2.5" position="bottom">2.5</mark>
</marks>
</object>
</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> <child>
<object class="AdwActionRow"> <object class="AdwActionRow">
<property name="title" translatable="yes">Follow mode movement tracking</property> <property name="title" translatable="yes">Follow mode movement tracking</property>

View File

@ -25,12 +25,17 @@
<property name="has-origin">false</property> <property name="has-origin">false</property>
<property name="adjustment"> <property name="adjustment">
<object class="GtkAdjustment" id="display_distance_adjustment"> <object class="GtkAdjustment" id="display_distance_adjustment">
<property name="lower">0.2</property> <property name="lower">0.1</property>
<property name="upper">2.5</property> <property name="upper">1.5</property>
<property name="step-increment">0.01</property> <property name="step-increment">0.01</property>
<property name="value">1.05</property> <property name="value">1.05</property>
</object> </object>
</property> </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> </object>
</child> </child>
</template> </template>

View File

@ -4,15 +4,6 @@
<template class="DisplayDistanceDialog" parent="GtkDialog"> <template class="DisplayDistanceDialog" parent="GtkDialog">
<property name="modal">1</property> <property name="modal">1</property>
<property name="use-header-bar">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"> <child type="action">
<object class="GtkButton" id="save_button"> <object class="GtkButton" id="save_button">
<property name="label" translatable="yes">Done</property> <property name="label" translatable="yes">Done</property>

View File

@ -3,6 +3,7 @@
<requires lib="gtk" version="4.0"/> <requires lib="gtk" version="4.0"/>
<template class="FailedVerification" parent="GtkBox"> <template class="FailedVerification" parent="GtkBox">
<property name="orientation">1</property> <property name="orientation">1</property>
<property name="vexpand">True</property>
<property name="margin-top">20</property> <property name="margin-top">20</property>
<property name="margin-bottom">20</property> <property name="margin-bottom">20</property>
<property name="margin-start">20</property> <property name="margin-start">20</property>
@ -10,9 +11,11 @@
<property name="spacing">20</property> <property name="spacing">20</property>
<child> <child>
<object class="AdwStatusPage"> <object class="AdwStatusPage">
<property name="vexpand">True</property>
<property name="title" translatable="yes">Breezy Desktop GNOME invalid setup</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="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="width-request">650</property>
<property name="height-request">250</property>
</object> </object>
</child> </child>
</template> </template>

View File

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

View File

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

View File

@ -3,6 +3,7 @@
<requires lib="gtk" version="4.0"/> <requires lib="gtk" version="4.0"/>
<template class="NoExtension" parent="GtkBox"> <template class="NoExtension" parent="GtkBox">
<property name="orientation">1</property> <property name="orientation">1</property>
<property name="vexpand">True</property>
<property name="margin-top">20</property> <property name="margin-top">20</property>
<property name="margin-bottom">20</property> <property name="margin-bottom">20</property>
<property name="margin-start">20</property> <property name="margin-start">20</property>
@ -10,9 +11,11 @@
<property name="spacing">20</property> <property name="spacing">20</property>
<child> <child>
<object class="AdwStatusPage"> <object class="AdwStatusPage">
<property name="vexpand">True</property>
<property name="title" translatable="yes">Breezy Desktop GNOME extension not ready</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="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="width-request">800</property>
<property name="height-request">250</property>
</object> </object>
</child> </child>
</template> </template>

View File

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

View File

@ -80,7 +80,55 @@
</object> </object>
</child> </child>
<child> <child>
<object class="GtkBox" id="main_content" /> <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>
</child> </child>
</object> </object>
</property> </property>

View File

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

View File

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

View File

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

View File

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

View File

@ -1,22 +1,3 @@
# 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 os
import sys import sys
import gi import gi
@ -80,7 +61,7 @@ class BreezydesktopApplication(Adw.Application):
# always do this on start-up since the driver sometimes fails to update the license on boot, # always do this on start-up since the driver sometimes fails to update the license on boot,
# prevent showing a license warning unnecessarily # prevent showing a license warning unnecessarily
XRDriverIPC.get_instance().write_control_flags({'refresh_device_license': True}) XRDriverIPC.get_instance().write_control_flags({'request_features': ['productivity', 'productivity_pro']})
def do_activate(self): def do_activate(self):
"""Called when the application is activated. """Called when the application is activated.
@ -90,7 +71,7 @@ class BreezydesktopApplication(Adw.Application):
""" """
win = self.props.active_window win = self.props.active_window
if not win: if not win:
win = BreezydesktopWindow(self._skip_verification, application=self) win = BreezydesktopWindow(self.version, self._skip_verification, application=self)
win.connect('close-request', lambda *_: self.on_quit_action()) win.connect('close-request', lambda *_: self.on_quit_action())
win.connect('destroy', lambda *_: self.on_quit_action()) win.connect('destroy', lambda *_: self.on_quit_action())
win.present() win.present()
@ -103,7 +84,7 @@ class BreezydesktopApplication(Adw.Application):
logo_icon_name='com.xronlinux.BreezyDesktop', logo_icon_name='com.xronlinux.BreezyDesktop',
version=self.version, version=self.version,
authors=['Wayne Heaney'], authors=['Wayne Heaney'],
copyright='© 2025 Wayne Heaney', copyright='© 2026 Wayne Heaney',
license_type=Gtk.License.GPL_3_0, license_type=Gtk.License.GPL_3_0,
wrap_license=True) wrap_license=True)
about.present() about.present()
@ -114,9 +95,7 @@ class BreezydesktopApplication(Adw.Application):
dialog.present() dialog.present()
def on_reset_driver_action(self, widget, _): def on_reset_driver_action(self, widget, _):
XRDriverIPC.get_instance().write_control_flags({ XRDriverIPC.get_instance().reset_driver(as_user=None)
'force_quit': True
})
def create_action(self, name, callback, shortcuts=None): def create_action(self, name, callback, shortcuts=None):
"""Add an application action. """Add an application action.

View File

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

View File

@ -1,6 +1,5 @@
import sys import sys
import threading from gi.repository import GObject, GLib
from gi.repository import GObject
from .time import LICENSE_WARN_SECONDS from .time import LICENSE_WARN_SECONDS
from .xrdriveripc import XRDriverIPC from .xrdriveripc import XRDriverIPC
@ -21,6 +20,9 @@ class StateManager(GObject.GObject):
'license-present': (bool, 'License Present', 'Whether a license is present', False, GObject.ParamFlags.READWRITE), '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), '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), '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 _instance = None
@ -59,15 +61,25 @@ class StateManager(GObject.GObject):
self.license_present = False self.license_present = False
self.enabled_features = [] self.enabled_features = []
self.device_supports_sbs = False 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._running = True
self._refresh_source_id = None
self._refresh_state() self._refresh_state()
self._refresh_source_id = GLib.timeout_add_seconds(1, self._refresh_state)
def stop(self): def stop(self):
self._running = False 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): def _refresh_state(self):
self.state = self.ipc.retrieve_driver_state() self.state = self.ipc.retrieve_driver_state()
self.set_property('driver-running', self.state['ui_view'].get('driver_running')) driver_running = self.state['ui_view'].get('driver_running')
if driver_running != self.driver_running:
self.set_property('driver-running', driver_running)
new_device_name = StateManager.device_name(self.state) new_device_name = StateManager.device_name(self.state)
if self.connected_device_name != new_device_name: if self.connected_device_name != new_device_name:
@ -94,11 +106,31 @@ class StateManager(GObject.GObject):
# only update these properties if a device is still connected # only update these properties if a device is still connected
if (self.connected_device_name): if (self.connected_device_name):
self.set_property('follow-mode', self.state.get('breezy_desktop_smooth_follow_enabled', False)) follow_mode = self.state.get('breezy_desktop_smooth_follow_enabled', False)
self.set_property('device-supports-sbs', self.state.get('sbs_mode_supported', False)) if follow_mode != self.follow_mode:
self.set_property('widescreen-mode', self.state.get('sbs_mode_enabled', False)) self.set_property('follow-mode', follow_mode)
if self._running: threading.Timer(1.0, self._refresh_state).start() 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
def do_set_property(self, prop, value): def do_set_property(self, prop, value):
if prop.name == 'driver-running': if prop.name == 'driver-running':
@ -115,6 +147,12 @@ class StateManager(GObject.GObject):
self.enabled_features = value self.enabled_features = value
if prop.name == 'device-supports-sbs': if prop.name == 'device-supports-sbs':
self.device_supports_sbs = value 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): def do_get_property(self, prop):
if prop.name == 'driver-running': if prop.name == 'driver-running':
@ -131,3 +169,9 @@ class StateManager(GObject.GObject):
return self.enabled_features return self.enabled_features
if prop.name == 'device-supports-sbs': if prop.name == 'device-supports-sbs':
return self.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

63
ui/src/updatechecker.py Normal file
View File

@ -0,0 +1,63 @@
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,22 +1,3 @@
# 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 gi.repository import Gtk, GLib
from .extensionsmanager import ExtensionsManager from .extensionsmanager import ExtensionsManager
from .license import BREEZY_GNOME_FEATURES from .license import BREEZY_GNOME_FEATURES
@ -29,6 +10,7 @@ from .nodevice import NoDevice
from .nodriver import NoDriver from .nodriver import NoDriver
from .noextension import NoExtension from .noextension import NoExtension
from .nolicense import NoLicense from .nolicense import NoLicense
from .updatechecker import check_for_update
from .verify import verify_installation from .verify import verify_installation
@Gtk.Template(resource_path='/com/xronlinux/BreezyDesktop/gtk/window.ui') @Gtk.Template(resource_path='/com/xronlinux/BreezyDesktop/gtk/window.ui')
@ -40,8 +22,11 @@ class BreezydesktopWindow(Gtk.ApplicationWindow):
license_action_needed_button = Gtk.Template.Child() license_action_needed_button = Gtk.Template.Child()
missing_breezy_features_banner = Gtk.Template.Child() missing_breezy_features_banner = Gtk.Template.Child()
missing_breezy_features_button = 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, skip_verification, **kwargs): def __init__(self, version, skip_verification, **kwargs):
super().__init__(**kwargs) super().__init__(**kwargs)
self.connected_device = ConnectedDevice() self.connected_device = ConnectedDevice()
@ -59,10 +44,12 @@ class BreezydesktopWindow(Gtk.ApplicationWindow):
self.state_manager.connect('notify::license-action-needed', self._handle_state_update) 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::license-present', self._handle_state_update)
self.state_manager.connect('notify::enabled-features-list', 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.settings.connect('changed::debug-no-device', self._handle_settings_update)
self.license_action_needed_button.connect('clicked', self._on_license_button_clicked) 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.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) self._handle_state_update(self.state_manager, None)
@ -70,6 +57,8 @@ class BreezydesktopWindow(Gtk.ApplicationWindow):
self.connect("destroy", self._on_window_destroy) self.connect("destroy", self._on_window_destroy)
check_for_update(version, self._on_update_check_result)
def _handle_settings_update(self, settings_manager, key): def _handle_settings_update(self, settings_manager, key):
self._handle_state_update(self.state_manager, None) self._handle_state_update(self.state_manager, None)
@ -77,11 +66,16 @@ class BreezydesktopWindow(Gtk.ApplicationWindow):
GLib.idle_add(self._handle_state_update_gui, state_manager) GLib.idle_add(self._handle_state_update_gui, state_manager)
def _handle_state_update_gui(self, state_manager): def _handle_state_update_gui(self, state_manager):
enabled_breezy_features = [feature for feature in state_manager.get_property('enabled-features-list') if feature in BREEZY_GNOME_FEATURES] 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]
breezy_features_granted = len(enabled_breezy_features) > 0 breezy_features_granted = len(enabled_breezy_features) > 0
self.missing_breezy_features_banner.set_revealed(not breezy_features_granted) 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) 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: for child in self.main_content:
self.main_content.remove(child) self.main_content.remove(child)
@ -112,5 +106,8 @@ class BreezydesktopWindow(Gtk.ApplicationWindow):
dialog.set_transient_for(widget.get_ancestor(Gtk.Window)) dialog.set_transient_for(widget.get_ancestor(Gtk.Window))
dialog.present() 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): def _on_window_destroy(self, widget):
self.state_manager.disconnect_by_func(self._handle_state_update) 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