forked from Shinonome/dots-hyprland
Add screen recording button and config toggle
This commit is contained in:
@@ -36,6 +36,22 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loader {
|
||||||
|
active: Config.options.bar.utilButtons.showScreenRecord
|
||||||
|
visible: Config.options.bar.utilButtons.showScreenRecord
|
||||||
|
sourceComponent: CircleUtilButton {
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
onClicked: Quickshell.execDetached(["/bin/bash", "/home/cleboost/.config/hypr/hyprland/scripts/record.sh", "--fullscreen-sound"])
|
||||||
|
MaterialSymbol {
|
||||||
|
horizontalAlignment: Qt.AlignHCenter
|
||||||
|
fill: 1
|
||||||
|
text: "videocam"
|
||||||
|
iconSize: Appearance.font.pixelSize.large
|
||||||
|
color: Appearance.colors.colOnLayer2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
active: Config.options.bar.utilButtons.showColorPicker
|
active: Config.options.bar.utilButtons.showColorPicker
|
||||||
visible: Config.options.bar.utilButtons.showColorPicker
|
visible: Config.options.bar.utilButtons.showColorPicker
|
||||||
|
|||||||
@@ -211,6 +211,7 @@ Singleton {
|
|||||||
property bool showKeyboardToggle: true
|
property bool showKeyboardToggle: true
|
||||||
property bool showDarkModeToggle: true
|
property bool showDarkModeToggle: true
|
||||||
property bool showPerformanceProfileToggle: false
|
property bool showPerformanceProfileToggle: false
|
||||||
|
property bool showScreenRecord: true
|
||||||
}
|
}
|
||||||
property JsonObject tray: JsonObject {
|
property JsonObject tray: JsonObject {
|
||||||
property bool monochromeIcons: true
|
property bool monochromeIcons: true
|
||||||
|
|||||||
@@ -225,6 +225,17 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ConfigRow {
|
||||||
|
uniform: true
|
||||||
|
ConfigSwitch {
|
||||||
|
buttonIcon: "videocam"
|
||||||
|
text: Translation.tr("Screen recording")
|
||||||
|
checked: Config.options.bar.utilButtons.showScreenRecord
|
||||||
|
onCheckedChanged: {
|
||||||
|
Config.options.bar.utilButtons.showScreenRecord = checked;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ContentSection {
|
ContentSection {
|
||||||
|
|||||||
Reference in New Issue
Block a user