aurorad48166e
aurora: updates only in the control panel, not the bar
+1 −15
3 files changed
- M .config/quickshell/aurora/Bar.qml +0 −11
- M .config/quickshell/aurora/SetShell.qml +0 −1
- M .config/quickshell/aurora/Settings.qml +1 −3
| @@ -128,17 +128,6 @@ PanelWindow { | |||
| 128 | 128 | underline: Theme.err | |
| 129 | 129 | } | |
| 130 | 130 | ||
| 131 | − | BarPill { // left click: list in the sys tab, right click: upgrade in foot | |
| 132 | − | visible: bar.monFocused && Settings.updatesPill && Updates.count > 0 | |
| 133 | − | icon: Theme.iUpdate | |
| 134 | − | text: String(Updates.count) | |
| 135 | − | tint: Updates.upgrading ? Theme.dim : Theme.fg | |
| 136 | − | onActivated: button => { | |
| 137 | − | if (button === Qt.RightButton) Updates.upgrade() | |
| 138 | − | else bar.togglePanel("sys", bar.modelData) | |
| 139 | − | } | |
| 140 | − | } | |
| 141 | − | ||
| 142 | 131 | BarPill { | |
| 143 | 132 | visible: Toggles.caffeine || Toggles.airplane | |
| 144 | 133 | icon: (Toggles.caffeine ? Theme.iCoffee : "") + (Toggles.caffeine && Toggles.airplane ? " " : "") | |
| @@ -51,7 +51,6 @@ Flickable { | |||
| 51 | 51 | ||
| 52 | 52 | SectionLabel { text: "bar" } | |
| 53 | 53 | Switch { label: "privacy indicators"; hint: "show in the bar when an app records the mic, uses the camera or shares the screen"; checked: Settings.privacyIndicators; onToggled: on => Settings.privacyIndicators = on } | |
| 54 | − | Switch { label: "pending updates"; hint: "show the pacman + AUR update count in the bar"; checked: Settings.updatesPill; onToggled: on => Settings.updatesPill = on } | |
| 55 | 54 | ||
| 56 | 55 | SectionLabel { text: "notifications" } | |
| 57 | 56 | Switch { label: "do not disturb"; hint: "hide popups and mute the sound (critical ones still show)"; checked: Notifs.dnd; onToggled: on => Notifs.dnd = on } | |
| @@ -17,7 +17,7 @@ Singleton { | |||
| 17 | 17 | notifSound: true, notifVolume: 0.7, | |
| 18 | 18 | idleDim: 150, idleOff: 330, idleLock: 600, idleSuspend: 0, charTone: 0, portalAutoOpen: true, | |
| 19 | 19 | chargeMode: "off", batLow: 15, batCritical: 5, batCriticalAction: "none", | |
| 20 | − | privacyIndicators: true, updatesPill: true | |
| 20 | + | privacyIndicators: true | |
| 21 | 21 | }) | |
| 22 | 22 | ||
| 23 | 23 | property alias fontSize: a.fontSize | |
| @@ -46,7 +46,6 @@ Singleton { | |||
| 46 | 46 | property alias batCritical: a.batCritical | |
| 47 | 47 | property alias batCriticalAction: a.batCriticalAction | |
| 48 | 48 | property alias privacyIndicators: a.privacyIndicators | |
| 49 | − | property alias updatesPill: a.updatesPill | |
| 50 | 49 | ||
| 51 | 50 | function reset() { | |
| 52 | 51 | for (var k in defaults) a[k] = defaults[k] | |
| @@ -97,7 +96,6 @@ Singleton { | |||
| 97 | 96 | property int batCritical: 5 | |
| 98 | 97 | property string batCriticalAction: "none" // none | suspend | poweroff | |
| 99 | 98 | property bool privacyIndicators: true // mic/camera/screen-share icons in the bar (Privacy.qml) | |
| 100 | − | property bool updatesPill: true // pending package updates in the bar (Updates.qml) | |
| 101 | 99 | } | |
| 102 | 100 | } | |
| 103 | 101 | // first run: create the file once the directory exists | |