mirror of
https://github.com/RustyRaptor/deckrotate.git
synced 2026-12-03 15:55:20 -07:00
Go daemon reads the controller's accelerometer from hidraw (re-enabling the IMU that Steam switches off), debounces it into an orientation and rotates eDP-1 through kscreen-doctor in auto mode, or offers a layer-shell tap-to-rotate button in manual mode, with a persistent lock. Includes a D-Bus service, a CLI for global shortcuts (kglobalaccel service file), a Plasma system tray applet, a systemd user unit and hardware notes from probing the Deck OLED. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
60 lines
1.5 KiB
Desktop File
60 lines
1.5 KiB
Desktop File
[Desktop Entry]
|
|
Type=Application
|
|
Name=Screen Rotation
|
|
Comment=Rotate, auto-rotate and lock the Steam Deck screen
|
|
Icon=transform-rotate
|
|
NoDisplay=true
|
|
StartupNotify=false
|
|
X-KDE-GlobalShortcutType=Service
|
|
Actions=ToggleLock;RotateCW;RotateCCW;Flip;ToggleMode;Accept;Landscape;PortraitCW;PortraitCCW;LandscapeFlipped;
|
|
|
|
[Desktop Action ToggleLock]
|
|
Name=Lock/Unlock Screen Rotation
|
|
Exec=@BINDIR@/deckrotate toggle-lock
|
|
X-KDE-Shortcuts=
|
|
|
|
[Desktop Action RotateCW]
|
|
Name=Rotate Screen Right
|
|
Exec=@BINDIR@/deckrotate rotate cw
|
|
X-KDE-Shortcuts=
|
|
|
|
[Desktop Action RotateCCW]
|
|
Name=Rotate Screen Left
|
|
Exec=@BINDIR@/deckrotate rotate ccw
|
|
X-KDE-Shortcuts=
|
|
|
|
[Desktop Action Flip]
|
|
Name=Flip Screen Upside Down
|
|
Exec=@BINDIR@/deckrotate rotate flip
|
|
X-KDE-Shortcuts=
|
|
|
|
[Desktop Action ToggleMode]
|
|
Name=Switch Auto/Manual Rotation
|
|
Exec=@BINDIR@/deckrotate mode toggle
|
|
X-KDE-Shortcuts=
|
|
|
|
[Desktop Action Accept]
|
|
Name=Rotate to Match the Deck
|
|
Exec=@BINDIR@/deckrotate accept
|
|
X-KDE-Shortcuts=
|
|
|
|
[Desktop Action Landscape]
|
|
Name=Screen Orientation: Landscape
|
|
Exec=@BINDIR@/deckrotate rotate landscape
|
|
X-KDE-Shortcuts=
|
|
|
|
[Desktop Action PortraitCW]
|
|
Name=Screen Orientation: Portrait (right grip down)
|
|
Exec=@BINDIR@/deckrotate rotate portrait-cw
|
|
X-KDE-Shortcuts=
|
|
|
|
[Desktop Action PortraitCCW]
|
|
Name=Screen Orientation: Portrait (left grip down)
|
|
Exec=@BINDIR@/deckrotate rotate portrait-ccw
|
|
X-KDE-Shortcuts=
|
|
|
|
[Desktop Action LandscapeFlipped]
|
|
Name=Screen Orientation: Landscape (flipped)
|
|
Exec=@BINDIR@/deckrotate rotate landscape-flipped
|
|
X-KDE-Shortcuts=
|