Krolyxon
Commit 4cb24dd

Branches

Refs →

aurora4cb24dd

aurora: rec records the focused monitor, no area selection

Author
krolyxon
Date
2026-10-17 15:14 +0530
Parent
a1aa759
Commit
4cb24dd4f0f0307c3718fc17d8f857f89edd96f5

+5 −5

3 files changed

  1. M .config/quickshell/aurora/HomePage.qml +3 −3
  2. M .config/quickshell/aurora/Rec.qml +1 −1
  3. M .config/quickshell/aurora/shell.qml +1 −1
M .config/quickshell/aurora/HomePage.qml View
@@ -119,13 +119,13 @@ ColumnLayout {
119119 label: "colour"
120120 onClicked: { page.closeRequested(); Toggles.pickColour() }
121121 }
122− IconBtn { // click: record a region; while recording: stop
122+ IconBtn { // click: record the focused monitor; while recording: stop
123123 Layout.fillWidth: true
124124 visible: Rec.available
125125 icon: Rec.busy ? Theme.iStop : Theme.iRec
126− label: Rec.running ? Theme.fmtClock(Rec.elapsed) : (Rec.selecting ? "cancel" : "rec")
126+ label: Rec.running ? Theme.fmtClock(Rec.elapsed) : "rec"
127127 active: Rec.busy
128− onClicked: { if (!Rec.busy) page.closeRequested(); Rec.toggle("region") }
128+ onClicked: { if (!Rec.busy) page.closeRequested(); Rec.toggle("screen") }
129129 }
130130 }
131131
M .config/quickshell/aurora/Rec.qml View
@@ -16,7 +16,7 @@ Singleton {
1616 property string dir: Quickshell.env("HOME") + "/vids/rec"
1717 property string file: ""
1818 readonly property string log: Quickshell.env("HOME") + "/.cache/aurora/rec.log"
19− property string mode: "region"
19+ property string mode: "screen"
2020 property int elapsed: 0 // seconds
2121
2222 function start(m) { // "region" | "screen"
M .config/quickshell/aurora/shell.qml View
@@ -152,7 +152,7 @@ ShellRoot {
152152 function clip(): void { root.toggleOverlay("clip") }
153153 function wall(): void { root.toggleOverlay("wall") }
154154 function wallrandom(): void { Wall.random() }
155− function rec(mode: string): void { root.close(); Rec.toggle(mode === "screen" ? "screen" : "region") } // region | screen
155+ function rec(mode: string): void { root.close(); Rec.toggle(mode === "region" ? "region" : "screen") } // screen (default) | region
156156 function caffeine(): void { Toggles.caffeine = !Toggles.caffeine }
157157 function bright(dir: string): void { Bright.step(dir === "down" ? -1 : 1) } // up | down
158158 }