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