aurora4cb24dd
aurora: rec records the focused monitor, no area selection
+5 −5
3 files changed
- M .config/quickshell/aurora/HomePage.qml +3 −3
- M .config/quickshell/aurora/Rec.qml +1 −1
- M .config/quickshell/aurora/shell.qml +1 −1
| @@ -119,13 +119,13 @@ ColumnLayout { | |||
| 119 | 119 | label: "colour" | |
| 120 | 120 | onClicked: { page.closeRequested(); Toggles.pickColour() } | |
| 121 | 121 | } | |
| 122 | − | IconBtn { // click: record a region; while recording: stop | |
| 122 | + | IconBtn { // click: record the focused monitor; while recording: stop | |
| 123 | 123 | Layout.fillWidth: true | |
| 124 | 124 | visible: Rec.available | |
| 125 | 125 | 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" | |
| 127 | 127 | active: Rec.busy | |
| 128 | − | onClicked: { if (!Rec.busy) page.closeRequested(); Rec.toggle("region") } | |
| 128 | + | onClicked: { if (!Rec.busy) page.closeRequested(); Rec.toggle("screen") } | |
| 129 | 129 | } | |
| 130 | 130 | } | |
| 131 | 131 | ||
| @@ -16,7 +16,7 @@ Singleton { | |||
| 16 | 16 | property string dir: Quickshell.env("HOME") + "/vids/rec" | |
| 17 | 17 | property string file: "" | |
| 18 | 18 | readonly property string log: Quickshell.env("HOME") + "/.cache/aurora/rec.log" | |
| 19 | − | property string mode: "region" | |
| 19 | + | property string mode: "screen" | |
| 20 | 20 | property int elapsed: 0 // seconds | |
| 21 | 21 | ||
| 22 | 22 | function start(m) { // "region" | "screen" | |
| @@ -152,7 +152,7 @@ ShellRoot { | |||
| 152 | 152 | function clip(): void { root.toggleOverlay("clip") } | |
| 153 | 153 | function wall(): void { root.toggleOverlay("wall") } | |
| 154 | 154 | 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 | |
| 156 | 156 | function caffeine(): void { Toggles.caffeine = !Toggles.caffeine } | |
| 157 | 157 | function bright(dir: string): void { Bright.step(dir === "down" ? -1 : 1) } // up | down | |
| 158 | 158 | } | |