Git Product home page Git Product logo

kde_controlcentre's Introduction

⚠️ Due to upcoming exams, this project will not be maintained for a few months.


Control Centre for KDE

A simple control centre widget for KDE Plasma inspired by MacOS!

GitHub stars GitHub forks GitHub issues

Dependencies

  • KDE Plasma 5.22 and above
  • Packages: plasma-nm, kdeplasma-addons, plasma-pa
  • KDE Connect

Plasma/Qt 6 Notes!

Make sure to have the 'Qt 5 compatibility' package installed for QtGraphicalEffects to work! You can install it on Arch using:

pacman -S qt6-5compat

Installation

KDE Store (Preferred way)

  1. Right click on the desktop
  2. Click on "Add Widgets"
  3. Click on "Get New Widgets"
  4. Click on "Download New Plasma Widgets"
  5. Search for "Control Centre"
  6. Click on "Install" and you're done!

From this repository (Not Stable!)

  1. Clone this repository then 'cd' into the root project directory.
  2. Install it using plasmapkg2 -i package
  3. Or update it with git pull; plasmapkg2 -u package

Notes: You can find the files at ~/.local/share/plasma/plasmoids/. You can remove Control Centre by deleting 'com.github.prayag2.controlcentre' directly, or by using the 'Add Widgets' interface. After updating, make sure to restart plasma using plasmashell --replace to see the changes.

Usage

  1. Right click on the desktop.
  2. Click "Add New Widgets"
  3. Search for "Control Centre"
  4. Drag and drop to your desired place.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to use conventional commits before making a pull request.

License

GPLv3

Contributers

Support Me ♥

If you liked this project, then please consider supporting me!
Donate using Liberapay Buy Me A Coffee Done using PayPal

kde_controlcentre's People

Contributors

denysmb avatar lqmanh avatar onuralpszr avatar prayag2 avatar sadcolourfulhues avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kde_controlcentre's Issues

[FEATURE REQUEST] Code rewrite

Haiii!

So if you look at my repo, you can see that I have changed "a bit". I've rewritten most of your code to suit my needs, mostly my need for a touchscreen. I've added a KDEConnect card, I've rewritten the Components and I've added a drag-n-drop way of setting what is available on the panel's screen. Now each card has a "small" representation, which is visible as soon as the plasmoid is expanded, and a "big" representation, which is shown if you flick the top side of the card upwards or click it with your mouse.

Please let me know if this is interesting to you. I'm tempted to make a clone out of this, but since it was your idea originally, I won't do it unless you tell me to, because e.g. it collides with your own ideas for the plasmoid.

Add option to hide some elements

Hi!
First of all, I wanna thank you and say that you did a very good job on this widget.
Second, I wanna propose one feature: to hide some elements from configuration.
For example, I don't use KDE Connect or the Night Color, so would be good to have an option on configuration to hide it.
The "main problem" would be to "organize" the others button when hiding some.
I think this would be easier if following the design of Gnome control center, with the fixed actions at the top and, on the bottom, all the options that could be hidden, with the same width and height, like in a "grid template".

Won't work without pulseaudio?

Using only alsa for audio management. Controlcentre will fail to launch:

file:///home/m/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/main.qml:62:34: Type FullRepresentation unavailable

file:///home/m/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:89:13: Type Components.Volume unavailable

file:///home/m/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/components/Volume.qml:6:1: module "org.kde.plasma.private.volume" is not installed

I can't be the only one not using pulseaudio. It would be cool if there was something to detect wether running/having pulseaudio (be it programatically or an user option) so it will try to load the audio widget only if pulseaudio is found, and else (and if possible) to run an alsa-based widget or not include it at all.

Sorry!, there was an error loading Control Centre.

This is the error i recieve after I install Control Centre in the KDE Widgets app. EndeavourOS, Plasma

file:///home/klemen/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/main.qml:62:34: Type FullRepresentation unavailable

file:///home/klemen/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:75:21: Type Components.RedShift unavailable

file:///home/klemen/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/components/RedShift.qml:6:1: module "org.kde.plasma.private.nightcolorcontrol" is not installed

The question is, is this a bug or should I set a configuration for myself?

image

[FEATURE REQUEST] Add the option to show some icons in the panel.

I think it would be more interesting, and possibly a good replacement for the current system tray, if instead of being a single icon that doesn't show any information, icons like battery, audio and internet were shown. In this way it could be a good replacement for the current system tray.

[BUG] Sorry! There was an error loading Control Centre.

Describe the bug
Control Centre does not load and rather displays an error message stating that it could not load.

To Reproduce
Steps to reproduce the behavior:

  1. Simply click on the widget's icon.

Expected behavior
The Control Centre appears as shown in the README.

Screenshots
image

Desktop (please complete the following information):

  • KDE Plasma Version: 5.27.9
  • Distribution: Arch Linux x86_64 on 6.5.9-zen2-1-zen kernel
  • Qt Version: 5.15.11
  • KDE Frameworks Version: 5.111.0

Have you installed the following dependencies? (Yes/No)

  • kdeplasma-addons: yes
  • plasma-nm: yes
  • KDE Connect: yes

Upcoming Changes for 0.1.0

This is a list of all changes that will be coming in the next update. You can request for more by opening an issue.

Features

  • Brightness controller
  • Ability to hide/show blocks of your choice
  • Ability to add custom buttons that run your own commands
  • An optional button that lets you switch to light/dark theme in an instant
  • Slider percentages
  • Add an option to customize the control centre icon.

Fixes/Improvements

  • A different page for the "support me" section
  • Layout fixes
  • Refactor code to make it cleaner
  • Fix blurry icons and text

Documentation

  • Better readme
  • A changelog
  • Contributing instructions

[FEATURE REQUEST] Light-/Dark Theme Switcher not mature: give more options

Describe the feature
For being truly beneficial, the light-/dark-switcher should not only switch the color-scheme (border), but also the other relevant variables, esp. the kvantum-theme as well.

Additional context
its as simple as including some more commands when button is triggered while giving more options through reading resp. commands variable-choices and presenting them also as 2nd / 3rd / 4th preference-option

plasma-apply-colorscheme XYZ (color-scheme, already done)
plasma-changeicons XYZ (icons)
kwriteconfig5 --file plasmarc --group Theme --key name XYZ (plasma-theme)

kvantum

kwriteconfig5 --file kdeglobals --group KDE --key widgetStyle XYZ (f.e. kvantum)
kvantummanager --set XYZ (kvantum)

to update screen (without restarting plasma) after changes took place, one should simple add at the end:

dbus-send --session --type=signal /KGlobalSettings org.kde.KGlobalSettings.notifyChange int32:2 int32:0 (refresh screen)

the next step then will be GTK-Theme-change

gsettings set org.gnome.desktop.interface color-scheme 'prefer-[light/dark]'
gsettings set org.gnome.desktop.interface gtk-theme 'XYZ'

But this does currently not work in every situation (esp. if you have a few security-driven measures in the background), plasma-guys should really work on this. help here appreciated also.

[FEATURE REQUEST] Option to change Global Theme

Dark and Bright Mode currently changes the Color Theme.
However, it'd be convenient if it changed optionally(?) the global design between Breeze (Twilight) and Breeze Dark or any other two custom global themes.

[BUG] there was an error loading control centre

the app showing foloving report

file:///home/Charles-Xavier/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/main.qml:63:34: Type FullRepresentation unavailable

file:///home/Charles-Xavier/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:49:13: Type Components.SectionButtons unavailable

file:///home/Charles-Xavier/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/components/SectionButtons.qml:6:1: module "org.kde.bluezqt" is not installed

i've tryed to install bluezqt from "kde unstable" arch repo, but it was still there even after reboot

2023-11-21_10-58

-plasmashell 5.27.9

  • Distribution: archlinux 6.6.1-arch1-1
  • Qt Version:5.15.11
  • KDE Frameworks Version: 5.112.0

Have you installed the following dependencies? (Yes/No)

  • kdeplasma-addons: yes
  • plasma-nm: yes
  • KDE Connect: yes

Additional context
on install i only did plasma-desktop insalation, not the full kde plasma

[BUG] Plasma 6.1 Support

Describe the bug
A clear and concise description of what the bug is.
It says ''Sorry! There was a error loading Control Centre''

file:///home/cortex/.local/share/plasma/plasmoids/com.github.boraerciyas.controlcentre/contents/ui/main.qml:67:25: Type FullRepresentation unavailable
file:///home/cortex/.local/share/plasma/plasmoids/com.github.boraerciyas.controlcentre/contents/ui/FullRepresentation.qml:75:21: Type Components.RedShift unavailable
file:///home/cortex/.local/share/plasma/plasmoids/com.github.boraerciyas.controlcentre/contents/ui/components/RedShift.qml:64:5: NightColorInhibitor is not a type

To Reproduce
Steps to reproduce the behavior:

  1. Open it.
  2. See the error.

Expected behavior
A clear and concise description of what you expected to happen.
To work correctly, on the new plasma version.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • KDE Plasma Version: 6.1.0
  • Distribution: EndeavourOS x86_64
  • Qt Version: 6.7.1
  • KDE Frameworks Version: 6.3

Have you installed the following dependencies? (Yes/No)

  • kdeplasma-addons: Yes
  • plasma-nm: Yes
  • KDE Connect: Yes

Additional context
Add any other context about the problem here.

[BUG] Plasma 6 Support

Describe the bug
Plasmoid does not work on plasma 6

To Reproduce
Steps to reproduce the behavior:

  1. Install on plasma 6

Expected behavior
Works on plasma 6

Desktop (please complete the following information):
Operating System: Garuda Linux
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.6-1-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6700 XT

Have you installed the following dependencies? (Yes/No)

  • kdeplasma-addons: Yes
  • plasma-nm: Yes
  • KDE Connect Yes

Additional context
https://develop.kde.org/docs/plasma/widget/porting_kf6/

[BUG] Control centre does not run after installation

Control centre after installation does not run and show this error :

file:///home/ash/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/main.qml:63:34: Type FullRepresentation unavailable
file:///home/ash/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:75:21: Type Components.RedShift unavailable
file:///home/ash/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/components/RedShift.qml:6:1: module "org.kde.plasma.private.nightcolorcontrol" is not installed

I can access the control centre settings using right click menu .

Steps to reproduce the behavior:

  1. install from kde store
  2. install manually for github

Expected behavior
control centre runs

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • KDE Plasma Version: 5.27.4
  • Distribution: Endeavour OS
  • Qt Version: 5.15.8
  • KDE Frameworks Version: 5.104.0

Have you installed the following dependencies? (Yes/No)

  • kdeplasma-addons: yes
  • plasma-nm: yes
  • KDE Connect: yes

I have had the same error on debian 11 & kde neon also

[Feature Request] Allow adding custom command buttons or replace existing buttons

For example the kde connect button is not too useful for me, so i want to add a toggle script to change my theme in it's place, if possible can you make buttons configurable or replaceable.

Example implementation of custom command button widget: https://www.pling.com/p/1297839
If would be nice to have a button with 2 state and runs command just like this and changes it's icon to the icon for just run command ( Button state is saved across sessions ) !

[BUG] "Enable Transparency" Setting Does Nothing

Describe the bug
Transparency Setting is enabled in the settings, and yet the window isn't transparent (but my panel is), it makes it look ridiculous.

To Reproduce
Steps to reproduce the behavior:

  1. Enable Transparency
  2. Activate the widget
  3. No transparency.

Expected behavior
Transparency works.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • KDE Plasma Version: [e.g. KDE Plasma 5.25.1] 5.27.5
  • Distribution: [e.g. Kubuntu 22.04 LTS] Arch Linux
  • Qt Version: 5.15.10 (Qt6 6.5.1 if that matters)
  • KDE Frameworks Version: 5.107.0

Have you installed the following dependencies? (Yes/No)

  • kdeplasma-addons: Yes
  • plasma-nm: Yes
  • KDE Connect: Yes

Additional context
I think there might should be an actual opacity setting in the widget, or the ability for it to inherit the Plasma Global Theme settings.

[BUG] Cannot change color theme

Describe the bug
Cannot change color theme

To Reproduce
theme button icon is missing as well

Expected behavior
ColorSchemeSwitcher.qml:42: TypeError: Cannot read property 'isDarkTheme' of undefined

Screenshots

Screenshot_20221203_062616

Desktop (please complete the following information):

  • KDE Plasma Version: 5.23.6
  • Distribution: blackPanther OS v22.1
  • Qt Version: 5.15.3
  • KDE Frameworks Version: 5.90

Have you installed the following dependencies? (Yes/No)

  • kdeplasma-addons: yes
  • plasma-nm: yes
  • KDE Connect: yes

Error when launching the control center.

file:///home/l/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/main.qml:31:34: Type FullRepresentation unavailable

file:///home/l/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:14:1: module "org.kde.kdeconnect" is not installed

file:///home/l/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:10:1: module "org.kde.plasma.private.bluetooth" is not installed

file:///home/l/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:14:1: module "org.kde.kdeconnect" is not installed

file:///home/l/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:10:1: module "org.kde.plasma.private.bluetooth" is not installed

[BUG] widget doesnt start

Describe the bug

file:///home/lolzsicka/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/main.qml:62:34: Type FullRepresentation unavailable

file:///home/lolzsicka/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:74:21: Type Components.KDEConnect unavailable

file:///home/lolzsicka/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/components/KDEConnect.qml:5:1: module "org.kde.kdeconnect" is not installed

To Reproduce
Steps to reproduce the behavior:

  1. install void first then install kde plasma via octoxbps
  2. install widget and put into panel
  3. install kdeconnect (im not excactly sure if ive done this part right)
  4. see the thing not run

Expected behavior
for the widget to look just like the one in the screenshot provided by the widget previews

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • KDE Plasma Version: 5.27.6
  • Distribution: Void linux (kernel is on 6.3.8_1)
  • Qt Version: 5.15.7
  • KDE Frameworks Version: 5.108.0

Have you installed the following dependencies? (Yes/No)

  • kdeplasma-addons: yes
  • plasma-nm: yes
  • KDE Connect: yes

Additional context
there is no additional context

Error when installing

I downloaded the widget and when i tried to drag it to my Desktop, it threw me this error

file:///home//.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/main.qml:31:34: Type FullRepresentation unavailable

file:///home/myusername/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:15:1: module "org.kde.plasma.private.nightcolorcontrol" is not installed

file:///home/myusername/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:10:1: module "org.kde.plasma.private.bluetooth" is not installed

file:///home/myusername/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:15:1: module "org.kde.plasma.private.nightcolorcontrol" is not installed

file:///home/myusername/.local/share/plasma/plasmoids/com.github.prayag2.controlcentre/contents/ui/FullRepresentation.qml:10:1: module "org.kde.plasma.private.bluetooth" is not installed

My PC does not support Bluetooth and I uninstalled the KDE tools for it. It would be nice if having this installed is not a requirement.

I do have the Plasma NightColor thingy installed and use it. SO I dont know why it is not recognised.

(Maybe my PC is just cursed, but its a fairly standard Fedora setup, so i think many would/could profit.)

If you have any questions, hit me up!

Specs:

Operating System: Fedora Linux 36 KDE Plasma Version: 5.25.5 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 Kernel Version: 5.19.13-200.fc36.x86_64 (64-bit) Graphics Platform: Wayland

[FEATURE REQUEST] Is there anyway to contribute for add another language?

I have my whole system on spanish, this widget is amazing, but feels pretty much out of place!
I know pretty much all the simple english stuff, so i will love to contribute adding a spanish language option to the widget, so in the future we can also have more languages for the widget, that will be absoluty awesome!

volume media keys don't work

when this widget runs alone, without notification tray or audio widget, volume media keys don't work, hope you can fix it.
-KDE Plasma 5.27

Support Localization

It's nice. But, Can't localizable. I want translate this plasmoid into Korean.

[BUG] Sorry! There was a problem an error while loading Control centre.

Describe the bug
Sorry! There was a problem an error while loading Control centre.

To Reproduce
Steps to reproduce the behavior:

  1. click on icon of control centre.

Expected behavior
Should open normally

Screenshots
ksnip_20231005-172147

Desktop (please complete the following information):

  • KDE Plasma Version: 5.27.4
  • Distribution: Ubuntu23.04
  • Qt Version:5.15.8
  • KDE Frameworks Version:5.104.0

Have you installed the following dependencies? (Yes/No)

  • kdeplasma-addons: no
  • plasma-nm: yes
  • KDE Connect:no

[FEATURE REQUEST] Ability to change layouts

Describe the feature
An option to change the layout of the control centre. For example, an option in the "Appearance" section to choose a MacOS like layout or a GNOME like layout.

[BUG] Control centre is not loading

Describe the bug
when i click on control centre icon it says ''sorry! There was an error loading control centre."

To Reproduce
Steps to reproduce the behavior:

  1. Just click on the icon.

Expected behavior
It should behave normal.

Screenshots

Desktop (please complete the following information):

  • KDE Plasma Version: [e.g. KDE Plasma 5.25.1]
  • Distribution: [e.g. Kubuntu 22.04 LTS]
  • Qt Version:
  • KDE Frameworks Version:

Have you installed the following dependencies? (Yes/No)

  • kdeplasma-addons:
  • plasma-nm:
  • KDE Connect

Additional context
Add any other context about the problem here.

[Feature request] WiFi on/off switch

It'd be good to be able to turn on/off wifi connection from panel. Also turned off devide (Wifi, bluetooth) could change icon color (turned on - color; turned off - black)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.