default apps config entries, revert focus property on root shell
This commit is contained in:
@@ -16,8 +16,12 @@ JsonObject {
|
||||
property string wallpaperPath: Quickshell.env("HOME") + "/Pictures/Wallpapers"
|
||||
|
||||
component Apps: JsonObject {
|
||||
property list<string> archiver: ["ark"]
|
||||
property list<string> audio: ["pavucontrol"]
|
||||
property list<string> document: ["libreoffice"]
|
||||
property list<string> editor: ["kate"]
|
||||
property list<string> explorer: ["dolphin"]
|
||||
property list<string> image: ["imv"]
|
||||
property list<string> playback: ["mpv"]
|
||||
property list<string> terminal: ["kitty"]
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ CustomWindow {
|
||||
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||
// WlrLayershell.keyboardFocus: visibilities.dock || visibilities.launcher || visibilities.sidebar || visibilities.dashboard || visibilities.settings || visibilities.resources ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
|
||||
color: "transparent"
|
||||
contentItem.focus: true
|
||||
mask: visibilities.isDrawing ? null : region
|
||||
name: "Bar"
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ Item {
|
||||
|
||||
property real playerProgress: {
|
||||
const active = Players.active;
|
||||
return active?.length ? active.position / active.length : 0;
|
||||
return active?.length ? (active.position % active.length) / active.length : 0;
|
||||
}
|
||||
property int rowHeight: Appearance.padding.large + Config.dashboard.sizes.mediaProgressThickness + Appearance.spacing.small
|
||||
|
||||
|
||||
@@ -28,26 +28,25 @@ Item {
|
||||
let cmd = [];
|
||||
switch (type) {
|
||||
case "image":
|
||||
cmd = [Config.options.apps.imageViewer, filePath];
|
||||
cmd = [Config.general.apps.image, filePath];
|
||||
break;
|
||||
case "video":
|
||||
cmd = [Config.options.apps.videoPlayer, filePath];
|
||||
cmd = [Config.general.apps.playback, filePath];
|
||||
break;
|
||||
case "audio":
|
||||
cmd = [Config.options.apps.audioPlayer, filePath];
|
||||
cmd = [Config.general.apps.audio, filePath];
|
||||
break;
|
||||
case "archive":
|
||||
cmd = [Config.options.apps.archiveManager, filePath];
|
||||
cmd = [Config.general.apps.archiver, filePath];
|
||||
break;
|
||||
case "directory":
|
||||
cmd = [Config.options.apps.fileManager, filePath];
|
||||
cmd = [Config.general.apps.explorer, filePath];
|
||||
break;
|
||||
case "code":
|
||||
case "text":
|
||||
cmd = [Config.options.apps.textEditor, filePath];
|
||||
cmd = [Config.general.apps.editor, filePath];
|
||||
break;
|
||||
case "document":
|
||||
cmd = [Config.options.apps.documentViewer, filePath];
|
||||
cmd = [Config.general.apps.document, filePath];
|
||||
break;
|
||||
default:
|
||||
cmd = ["xdg-open", filePath];
|
||||
|
||||
@@ -247,6 +247,18 @@ SettingsPage {
|
||||
object: Config.general.color
|
||||
settings: ["scheduleHyprsunset", "scheduleHyprsunsetStart", "scheduleHyprsunsetEnd", "hyprsunsetTemp"]
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
max: 20000
|
||||
min: 1000
|
||||
name: "Hyprsunset temperature"
|
||||
object: Config.general.color
|
||||
setting: "hyprsunsetTemp"
|
||||
step: 200
|
||||
}
|
||||
}
|
||||
|
||||
SettingsSection {
|
||||
|
||||
Reference in New Issue
Block a user