mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
allow update-text toggle without command + disable update-text toggle in
text stream mode
This commit is contained in:
@@ -213,20 +213,24 @@ Item {
|
||||
if (leftClickExec) {
|
||||
Quickshell.execDetached(["sh", "-c", leftClickExec])
|
||||
Logger.i("CustomButton", `Executing command: ${leftClickExec}`)
|
||||
if (leftClickUpdateText) runTextCommand()
|
||||
} else if (!hasExec) {
|
||||
// No script was defined, open settings
|
||||
var settingsPanel = PanelService.getPanel("settingsPanel", screen)
|
||||
settingsPanel.requestedTab = SettingsPanel.Tab.Bar
|
||||
settingsPanel.open()
|
||||
}
|
||||
if (!textStream && leftClickUpdateText) {
|
||||
runTextCommand()
|
||||
}
|
||||
}
|
||||
|
||||
function onRightClicked() {
|
||||
if (rightClickExec) {
|
||||
Quickshell.execDetached(["sh", "-c", rightClickExec])
|
||||
Logger.i("CustomButton", `Executing command: ${rightClickExec}`)
|
||||
if (rightClickUpdateText) runTextCommand()
|
||||
}
|
||||
if (!textStream && rightClickUpdateText) {
|
||||
runTextCommand()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -234,7 +238,9 @@ Item {
|
||||
if (middleClickExec) {
|
||||
Quickshell.execDetached(["sh", "-c", middleClickExec])
|
||||
Logger.i("CustomButton", `Executing command: ${middleClickExec}`)
|
||||
if (middleClickUpdateText) runTextCommand()
|
||||
}
|
||||
if (!textStream && middleClickUpdateText) {
|
||||
runTextCommand()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user