forked from Shinonome/dots-hyprland
quickshell: configPath -> shellPath
This commit is contained in:
@@ -117,7 +117,7 @@ Scope {
|
|||||||
property int contentHeight: 300
|
property int contentHeight: 300
|
||||||
property int horizontalPadding: bgRoot.movableXSpace
|
property int horizontalPadding: bgRoot.movableXSpace
|
||||||
property int verticalPadding: bgRoot.movableYSpace
|
property int verticalPadding: bgRoot.movableYSpace
|
||||||
command: [Quickshell.configPath("scripts/images/least_busy_region.py"),
|
command: [Quickshell.shellPath("scripts/images/least_busy_region.py"),
|
||||||
"--screen-width", bgRoot.screen.width,
|
"--screen-width", bgRoot.screen.width,
|
||||||
"--screen-height", bgRoot.screen.height,
|
"--screen-height", bgRoot.screen.height,
|
||||||
"--width", contentWidth,
|
"--width", contentWidth,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Item {
|
|||||||
visible: Config.options.bar.utilButtons.showScreenSnip
|
visible: Config.options.bar.utilButtons.showScreenSnip
|
||||||
sourceComponent: CircleUtilButton {
|
sourceComponent: CircleUtilButton {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
onClicked: Quickshell.execDetached(["qs", "-p", Quickshell.configPath("screenshot.qml")])
|
onClicked: Quickshell.execDetached(["qs", "-p", Quickshell.shellPath("screenshot.qml")])
|
||||||
MaterialSymbol {
|
MaterialSymbol {
|
||||||
horizontalAlignment: Qt.AlignHCenter
|
horizontalAlignment: Qt.AlignHCenter
|
||||||
fill: 1
|
fill: 1
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ Singleton {
|
|||||||
readonly property string downloads: StandardPaths.standardLocations(StandardPaths.DownloadLocation)[0]
|
readonly property string downloads: StandardPaths.standardLocations(StandardPaths.DownloadLocation)[0]
|
||||||
|
|
||||||
// Other dirs used by the shell, without "file://"
|
// Other dirs used by the shell, without "file://"
|
||||||
property string assetsPath: Quickshell.configPath("assets")
|
property string assetsPath: Quickshell.shellPath("assets")
|
||||||
property string scriptPath: Quickshell.configPath("scripts")
|
property string scriptPath: Quickshell.shellPath("scripts")
|
||||||
property string favicons: FileUtils.trimFileProtocol(`${Directories.cache}/media/favicons`)
|
property string favicons: FileUtils.trimFileProtocol(`${Directories.cache}/media/favicons`)
|
||||||
property string coverArt: FileUtils.trimFileProtocol(`${Directories.cache}/media/coverart`)
|
property string coverArt: FileUtils.trimFileProtocol(`${Directories.cache}/media/coverart`)
|
||||||
property string booruPreviews: FileUtils.trimFileProtocol(`${Directories.cache}/media/boorus`)
|
property string booruPreviews: FileUtils.trimFileProtocol(`${Directories.cache}/media/boorus`)
|
||||||
@@ -32,7 +32,7 @@ Singleton {
|
|||||||
property string cliphistDecode: FileUtils.trimFileProtocol(`/tmp/quickshell/media/cliphist`)
|
property string cliphistDecode: FileUtils.trimFileProtocol(`/tmp/quickshell/media/cliphist`)
|
||||||
property string screenshotTemp: "/tmp/quickshell/media/screenshot"
|
property string screenshotTemp: "/tmp/quickshell/media/screenshot"
|
||||||
property string wallpaperSwitchScriptPath: FileUtils.trimFileProtocol(`${Directories.scriptPath}/colors/switchwall.sh`)
|
property string wallpaperSwitchScriptPath: FileUtils.trimFileProtocol(`${Directories.scriptPath}/colors/switchwall.sh`)
|
||||||
property string defaultAiPrompts: Quickshell.configPath("defaults/ai/prompts")
|
property string defaultAiPrompts: Quickshell.shellPath("defaults/ai/prompts")
|
||||||
property string userAiPrompts: FileUtils.trimFileProtocol(`${Directories.shellConfig}/ai/prompts`)
|
property string userAiPrompts: FileUtils.trimFileProtocol(`${Directories.shellConfig}/ai/prompts`)
|
||||||
property string aiChats: FileUtils.trimFileProtocol(`${Directories.state}/user/ai/chats`)
|
property string aiChats: FileUtils.trimFileProtocol(`${Directories.state}/user/ai/chats`)
|
||||||
// Cleanup on init
|
// Cleanup on init
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Item {
|
|||||||
property bool colorize: false
|
property bool colorize: false
|
||||||
property color color
|
property color color
|
||||||
property string source: ""
|
property string source: ""
|
||||||
property string iconFolder: Qt.resolvedUrl(Quickshell.configPath("assets/icons")) // The folder to check first
|
property string iconFolder: Qt.resolvedUrl(Quickshell.shellPath("assets/icons")) // The folder to check first
|
||||||
width: 30
|
width: 30
|
||||||
height: 30
|
height: 30
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ Item { // Wrapper
|
|||||||
{
|
{
|
||||||
action: "konachanwall",
|
action: "konachanwall",
|
||||||
execute: () => {
|
execute: () => {
|
||||||
Quickshell.execDetached([Quickshell.configPath("scripts/colors/random_konachan_wall.sh")]);
|
Quickshell.execDetached([Quickshell.shellPath("scripts/colors/random_konachan_wall.sh")]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ Mowe uwu wem ipsum!
|
|||||||
### Formatting
|
### Formatting
|
||||||
|
|
||||||
- *Italic*, \`Monospace\`, **Bold**, [Link](https://example.com)
|
- *Italic*, \`Monospace\`, **Bold**, [Link](https://example.com)
|
||||||
- Arch lincox icon <img src="${Quickshell.configPath("assets/icons/arch-symbolic.svg")}" height="${Appearance.font.pixelSize.small}"/>
|
- Arch lincox icon <img src="${Quickshell.shellPath("assets/icons/arch-symbolic.svg")}" height="${Appearance.font.pixelSize.small}"/>
|
||||||
|
|
||||||
### Table
|
### Table
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Scope {
|
|||||||
id: root
|
id: root
|
||||||
property int sidebarWidth: Appearance.sizes.sidebarWidth
|
property int sidebarWidth: Appearance.sizes.sidebarWidth
|
||||||
property int sidebarPadding: 12
|
property int sidebarPadding: 12
|
||||||
property string settingsQmlPath: Quickshell.configPath("settings.qml")
|
property string settingsQmlPath: Quickshell.shellPath("settings.qml")
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: sidebarRoot
|
id: sidebarRoot
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Singleton {
|
|||||||
property string firstRunNotifSummary: "Welcome!"
|
property string firstRunNotifSummary: "Welcome!"
|
||||||
property string firstRunNotifBody: "Hit Super+/ for a list of keybinds"
|
property string firstRunNotifBody: "Hit Super+/ for a list of keybinds"
|
||||||
property string defaultWallpaperPath: FileUtils.trimFileProtocol(`${Directories.assetsPath}/images/default_wallpaper.png`)
|
property string defaultWallpaperPath: FileUtils.trimFileProtocol(`${Directories.assetsPath}/images/default_wallpaper.png`)
|
||||||
property string welcomeQmlPath: FileUtils.trimFileProtocol(Quickshell.configPath("welcome.qml"))
|
property string welcomeQmlPath: FileUtils.trimFileProtocol(Quickshell.shellPath("welcome.qml"))
|
||||||
|
|
||||||
function load() {
|
function load() {
|
||||||
firstRunFileView.reload()
|
firstRunFileView.reload()
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ ApplicationWindow {
|
|||||||
Process {
|
Process {
|
||||||
id: konachanWallProc
|
id: konachanWallProc
|
||||||
property string status: ""
|
property string status: ""
|
||||||
command: ["bash", "-c", Quickshell.configPath("scripts/colors/random_konachan_wall.sh")]
|
command: ["bash", "-c", Quickshell.shellPath("scripts/colors/random_konachan_wall.sh")]
|
||||||
stdout: SplitParser {
|
stdout: SplitParser {
|
||||||
onRead: data => {
|
onRead: data => {
|
||||||
console.log(`Konachan wall proc output: ${data}`);
|
console.log(`Konachan wall proc output: ${data}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user