mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
not attempt to show translated globalshortcut description cuz they can't be changed
This commit is contained in:
@@ -41,7 +41,7 @@ Singleton {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "workspaceNumber"
|
||||
description: Translation.tr("Hold to show workspace numbers, release to show icons")
|
||||
description: "Hold to show workspace numbers, release to show icons"
|
||||
|
||||
onPressed: {
|
||||
workspaceShowNumbersTimer.start()
|
||||
|
||||
@@ -34,6 +34,7 @@ Scope {
|
||||
PanelWindow {
|
||||
id: popup
|
||||
|
||||
exclusiveZone: 0
|
||||
anchors.top: true
|
||||
margins.top: 0
|
||||
|
||||
|
||||
@@ -586,7 +586,7 @@ Scope {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "barToggle"
|
||||
description: Translation.tr("Toggles bar on press")
|
||||
description: "Toggles bar on press"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.barOpen = !GlobalStates.barOpen;
|
||||
@@ -595,7 +595,7 @@ Scope {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "barOpen"
|
||||
description: Translation.tr("Opens bar on press")
|
||||
description: "Opens bar on press"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.barOpen = true;
|
||||
@@ -604,7 +604,7 @@ Scope {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "barClose"
|
||||
description: Translation.tr("Closes bar on press")
|
||||
description: "Closes bar on press"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.barOpen = false;
|
||||
|
||||
@@ -212,7 +212,7 @@ Scope { // Scope
|
||||
|
||||
GlobalShortcut {
|
||||
name: "cheatsheetToggle"
|
||||
description: Translation.tr("Toggles cheatsheet on press")
|
||||
description: "Toggles cheatsheet on press"
|
||||
|
||||
onPressed: {
|
||||
cheatsheetLoader.active = !cheatsheetLoader.active;
|
||||
@@ -221,7 +221,7 @@ Scope { // Scope
|
||||
|
||||
GlobalShortcut {
|
||||
name: "cheatsheetOpen"
|
||||
description: Translation.tr("Opens cheatsheet on press")
|
||||
description: "Opens cheatsheet on press"
|
||||
|
||||
onPressed: {
|
||||
cheatsheetLoader.active = true;
|
||||
@@ -230,7 +230,7 @@ Scope { // Scope
|
||||
|
||||
GlobalShortcut {
|
||||
name: "cheatsheetClose"
|
||||
description: Translation.tr("Closes cheatsheet on press")
|
||||
description: "Closes cheatsheet on press"
|
||||
|
||||
onPressed: {
|
||||
cheatsheetLoader.active = false;
|
||||
|
||||
@@ -161,7 +161,7 @@ Scope {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "mediaControlsToggle"
|
||||
description: Translation.tr("Toggles media controls on press")
|
||||
description: "Toggles media controls on press"
|
||||
|
||||
onPressed: {
|
||||
if (!mediaControlsLoader.active && Mpris.players.values.filter(player => isRealPlayer(player)).length === 0) {
|
||||
@@ -173,7 +173,7 @@ Scope {
|
||||
}
|
||||
GlobalShortcut {
|
||||
name: "mediaControlsOpen"
|
||||
description: Translation.tr("Opens media controls on press")
|
||||
description: "Opens media controls on press"
|
||||
|
||||
onPressed: {
|
||||
mediaControlsLoader.active = true;
|
||||
@@ -182,7 +182,7 @@ Scope {
|
||||
}
|
||||
GlobalShortcut {
|
||||
name: "mediaControlsClose"
|
||||
description: Translation.tr("Closes media controls on press")
|
||||
description: "Closes media controls on press"
|
||||
|
||||
onPressed: {
|
||||
mediaControlsLoader.active = false;
|
||||
|
||||
@@ -135,7 +135,7 @@ Scope {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "osdBrightnessTrigger"
|
||||
description: Translation.tr("Triggers brightness OSD on press")
|
||||
description: "Triggers brightness OSD on press"
|
||||
|
||||
onPressed: {
|
||||
root.triggerOsd()
|
||||
@@ -143,7 +143,7 @@ Scope {
|
||||
}
|
||||
GlobalShortcut {
|
||||
name: "osdBrightnessHide"
|
||||
description: Translation.tr("Hides brightness OSD on press")
|
||||
description: "Hides brightness OSD on press"
|
||||
|
||||
onPressed: {
|
||||
root.showOsdValues = false
|
||||
|
||||
@@ -186,7 +186,7 @@ Scope {
|
||||
}
|
||||
GlobalShortcut {
|
||||
name: "osdVolumeTrigger"
|
||||
description: Translation.tr("Triggers volume OSD on press")
|
||||
description: "Triggers volume OSD on press"
|
||||
|
||||
onPressed: {
|
||||
root.triggerOsd()
|
||||
@@ -194,7 +194,7 @@ Scope {
|
||||
}
|
||||
GlobalShortcut {
|
||||
name: "osdVolumeHide"
|
||||
description: Translation.tr("Hides volume OSD on press")
|
||||
description: "Hides volume OSD on press"
|
||||
|
||||
onPressed: {
|
||||
root.showOsdValues = false
|
||||
|
||||
@@ -141,7 +141,7 @@ Scope { // Scope
|
||||
|
||||
GlobalShortcut {
|
||||
name: "oskToggle"
|
||||
description: Translation.tr("Toggles on screen keyboard on press")
|
||||
description: "Toggles on screen keyboard on press"
|
||||
|
||||
onPressed: {
|
||||
oskLoader.active = !oskLoader.active;
|
||||
@@ -150,7 +150,7 @@ Scope { // Scope
|
||||
|
||||
GlobalShortcut {
|
||||
name: "oskOpen"
|
||||
description: Translation.tr("Opens on screen keyboard on press")
|
||||
description: "Opens on screen keyboard on press"
|
||||
|
||||
onPressed: {
|
||||
oskLoader.active = true;
|
||||
@@ -159,7 +159,7 @@ Scope { // Scope
|
||||
|
||||
GlobalShortcut {
|
||||
name: "oskClose"
|
||||
description: Translation.tr("Closes on screen keyboard on press")
|
||||
description: "Closes on screen keyboard on press"
|
||||
|
||||
onPressed: {
|
||||
oskLoader.active = false;
|
||||
|
||||
@@ -148,7 +148,7 @@ Scope {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "overviewToggle"
|
||||
description: Translation.tr("Toggles overview on press")
|
||||
description: "Toggles overview on press"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.overviewOpen = !GlobalStates.overviewOpen
|
||||
@@ -156,7 +156,7 @@ Scope {
|
||||
}
|
||||
GlobalShortcut {
|
||||
name: "overviewClose"
|
||||
description: Translation.tr("Closes overview")
|
||||
description: "Closes overview"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.overviewOpen = false
|
||||
@@ -164,7 +164,7 @@ Scope {
|
||||
}
|
||||
GlobalShortcut {
|
||||
name: "overviewToggleRelease"
|
||||
description: Translation.tr("Toggles overview on release")
|
||||
description: "Toggles overview on release"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.superReleaseMightTrigger = true
|
||||
@@ -180,9 +180,9 @@ Scope {
|
||||
}
|
||||
GlobalShortcut {
|
||||
name: "overviewToggleReleaseInterrupt"
|
||||
description: Translation.tr("Interrupts possibility of overview being toggled on release. ") +
|
||||
Translation.tr("This is necessary because GlobalShortcut.onReleased in quickshell triggers whether or not you press something else while holding the key. ") +
|
||||
Translation.tr("To make sure this works consistently, use binditn = MODKEYS, catchall in an automatically triggered submap that includes everything.")
|
||||
description: "Interrupts possibility of overview being toggled on release. " +
|
||||
"This is necessary because GlobalShortcut.onReleased in quickshell triggers whether or not you press something else while holding the key. " +
|
||||
"To make sure this works consistently, use binditn = MODKEYS, catchall in an automatically triggered submap that includes everything."
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.superReleaseMightTrigger = false
|
||||
@@ -190,7 +190,7 @@ Scope {
|
||||
}
|
||||
GlobalShortcut {
|
||||
name: "overviewClipboardToggle"
|
||||
description: Translation.tr("Toggle clipboard query on overview widget")
|
||||
description: "Toggle clipboard query on overview widget"
|
||||
|
||||
onPressed: {
|
||||
if (GlobalStates.overviewOpen && overviewScope.dontAutoCancelSearch) {
|
||||
@@ -213,7 +213,7 @@ Scope {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "overviewEmojiToggle"
|
||||
description: Translation.tr("Toggle emoji query on overview widget")
|
||||
description: "Toggle emoji query on overview widget"
|
||||
|
||||
onPressed: {
|
||||
if (GlobalStates.overviewOpen && overviewScope.dontAutoCancelSearch) {
|
||||
|
||||
@@ -210,7 +210,7 @@ Scope {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "sessionToggle"
|
||||
description: Translation.tr("Toggles session screen on press")
|
||||
description: "Toggles session screen on press"
|
||||
|
||||
onPressed: {
|
||||
sessionLoader.active = !sessionLoader.active;
|
||||
@@ -219,7 +219,7 @@ Scope {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "sessionOpen"
|
||||
description: Translation.tr("Opens session screen on press")
|
||||
description: "Opens session screen on press"
|
||||
|
||||
onPressed: {
|
||||
sessionLoader.active = true;
|
||||
|
||||
@@ -170,7 +170,7 @@ Scope { // Scope
|
||||
|
||||
GlobalShortcut {
|
||||
name: "sidebarLeftToggle"
|
||||
description: Translation.tr("Toggles left sidebar on press")
|
||||
description: "Toggles left sidebar on press"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.sidebarLeftOpen = !GlobalStates.sidebarLeftOpen;
|
||||
@@ -179,7 +179,7 @@ Scope { // Scope
|
||||
|
||||
GlobalShortcut {
|
||||
name: "sidebarLeftOpen"
|
||||
description: Translation.tr("Opens left sidebar on press")
|
||||
description: "Opens left sidebar on press"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.sidebarLeftOpen = true;
|
||||
@@ -188,7 +188,7 @@ Scope { // Scope
|
||||
|
||||
GlobalShortcut {
|
||||
name: "sidebarLeftClose"
|
||||
description: Translation.tr("Closes left sidebar on press")
|
||||
description: "Closes left sidebar on press"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.sidebarLeftOpen = false;
|
||||
@@ -197,7 +197,7 @@ Scope { // Scope
|
||||
|
||||
GlobalShortcut {
|
||||
name: "sidebarLeftToggleDetach"
|
||||
description: Translation.tr("Detach left sidebar into a window/Attach it back")
|
||||
description: "Detach left sidebar into a window/Attach it back"
|
||||
|
||||
onPressed: {
|
||||
root.detach = !root.detach;
|
||||
|
||||
@@ -224,7 +224,7 @@ Scope {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "sidebarRightToggle"
|
||||
description: Translation.tr("Toggles right sidebar on press")
|
||||
description: "Toggles right sidebar on press"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
||||
@@ -233,7 +233,7 @@ Scope {
|
||||
}
|
||||
GlobalShortcut {
|
||||
name: "sidebarRightOpen"
|
||||
description: Translation.tr("Opens right sidebar on press")
|
||||
description: "Opens right sidebar on press"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.sidebarRightOpen = true;
|
||||
@@ -242,7 +242,7 @@ Scope {
|
||||
}
|
||||
GlobalShortcut {
|
||||
name: "sidebarRightClose"
|
||||
description: Translation.tr("Closes right sidebar on press")
|
||||
description: "Closes right sidebar on press"
|
||||
|
||||
onPressed: {
|
||||
GlobalStates.sidebarRightOpen = false;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import "root:/modules/common"
|
||||
import "root:/modules/common/widgets"
|
||||
import "../"
|
||||
import "root:/"
|
||||
import QtQuick
|
||||
import Quickshell.Io
|
||||
import Quickshell
|
||||
|
||||
@@ -141,13 +141,13 @@ Singleton {
|
||||
|
||||
GlobalShortcut {
|
||||
name: "brightnessIncrease"
|
||||
description: Translation.tr("Increase brightness")
|
||||
description: "Increase brightness"
|
||||
onPressed: root.increaseBrightness()
|
||||
}
|
||||
|
||||
GlobalShortcut {
|
||||
name: "brightnessDecrease"
|
||||
description: Translation.tr("Decrease brightness")
|
||||
description: "Decrease brightness"
|
||||
onPressed: root.decreaseBrightness()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user