lipido / kargos Goto Github PK
View Code? Open in Web Editor NEWKDE Plasma port of GNOME Argos and OSX BitBar
License: GNU General Public License v3.0
KDE Plasma port of GNOME Argos and OSX BitBar
License: GNU General Public License v3.0
Error loading QML file: file:///home/lipido/git/kargos/plasmoid/contents/ui/main.qml:261:25: Expected token `)'.
I run 3 script use kargos
. This is great.
But the margin on the right is wide.
Sorry that I can't make a screenshot for popup on KDE(don't know why).
Is ther a way to align the content show in popup or cut the right margin?
The longest part of writing kargos scripts personally has been coming up with a decent looking icon, sizing it correctly and adding it somewhere I can easy reference it from my script.
There's over 7000 cool, high quality icons as part of Font Awesome. If Kargos already had them already integrated a script just needed to reference it, that would make the process much nicer.
Of course, Material Design Icons should also be a consideration.
About the buttons effect, can you make it like this:
Support for the color=
option, as it doesn't seem to work at the moment.
Example:
echo "test | size=11 color=#ff0000"
prints test
with font size 11 in normal color, instead of the given color.
Hi.
Just realized, that even I call plasmoid with hotkey its impossible to select items via keyboard, with mouse only.
It would be useful feature, i believe )
Follow the instructions in #22 , I can let kargos show two rows on taskbar. But even I set Monospace
font by face
in tag, seems the face
setting not work. Like 1
is thin than other numbers which makes stuff shows on kargos floating left to right, right to left.
Any examples of how html tags such as table can be used? I basically want table rows having coloured background based on condition of data retrieved.
Thanks!
Every time it is started at a large size, looks random, sometimes bigger than before....I guess it is influencied by othes widgets and position on screen.
Anyway, After it is started, I resize it back to an usuable size, big enought to display the fixed content without scrollbars.
Next time plasma shell is started, kargos start with a large size.
Hi,
Thanks for this great project. I noticed that the 0.6.0
supports spaces in attributes by using single quotes, but I have been unable to get it to use a font style "Iosevka Light," trying as follows:
fmt = " | font='Iosevka Light' size=24"
Iosevka (regular) works without problem.
$ fc-match "iosevka light"
iosevka-custom-light.ttf: "Iosevka" "Light"
Per bitbar API:
refresh=..
to make the item refresh the plugin it belongs to. If the item runs a script, refresh is performed after the script finishes. eg.refresh=true
This make sense for some use cases like a Trello todo list. When a "done" submenu item is clicked, it runs a script that make an HTTP PUT request to move the item to a designated list for done items, then the whole widget refreshes to remove the done item.
However, I think such behaviour is currently not possible for kargos, either for the "IconifiableButton" (the button you get without onclick defined) or for direct clicking of the item when . I have looked at the source code (sorry not familiar with qml), and it seems that the "IconifiableButton" does not honor any refresh attribute. onclick=bash
And for the case when onclick is defined, the widget is updated before running bash
It would be nice if you could implement such behaviour. Thanks a lot!
Edit: after testing it seems that refresh works when onclick=bash
. Therefore this problem only applies to the "IconifiableButton".
Is there a way to show two rows on the taskbar, such as first row is date, second row is time?
I wanted to start the discussion regarding our procedure for adding new arguments (hopefully without minimizing BitBar/Argos compatibility).
This came up when I started thinking about what argument/key to use when implementing #31. My two initial ideas were as follows:
kargos
. E.g. kargos.fa_icon=bug
icon=fa:bug
What do people think? I'll update the readme once we settle on this.
Greetings and thank You for great plasmoid.
I wonder, would it be possibe in architecture of concept to implement multiple lines in main item at least?
for example a clock with date below:
9:20
02/08/2017
or for media info:
Band
Songname
The URLs don't show in the drop down box at all. Even the example rssnews.30m.sh
doesn't show clickable link for google.com, for instance.
KDE Plasma 5.13.3
KDE Frameworks 5.48.0
Kargos latest from Github
I've never used BitBar and don't know if I'm breaking compatibility by doing this, but here's how I think arguments should be parsed.
| arg1=value1 arg2=value\ 2 "arg3=value 3" arg4="value 4" and arg5=value" 5" 'arg 6=value 6'
Should all break down into argN=value N
, kind of like how a shell would do. (I don't plan to have any keys with spaces in them, but the argument parser shouldn't care).
Gathering some feedback before I take a crack at implementing it.
kargos 0.6.0
latte-dock 0.6.0.r316.g85eae84
plasma-desktop 5.10.0
qt5-base 5.8.0
With "Dropdown always visible" unchecked, the following behaviors are observed:
I know (2) is not as intended, but I'm not sure about (1).
echo "| bash='$base_dir/ibus_switch.sh' onclick=bash imageURL=$icon size=5"
I want to create a non-title instance of kargos like this one (without a title before |
). But in this case clicking on the image cause nothing to happen.
Please add support for this.
Hello, i tried to use "nvidia-smi" with this widget and it for some reason displays just a blank window. Its similar to a program that doesnt return a value straight away (such as htop) being used but this command runs and stops similar to top.
Panel space is precious, so I would prefer not to take up extra space just for the dropdown button, which is a visual cue but acts the same as any other part of the my applet when clicked.
The current hidden-mode behavior of showing the dropdown icon whenever the dropdown is shown and hiding again when the dropdown is hidden makes the entire panel resize with each click, which is really jarring and unpleasant and affects many other applets.
It would be a nice addition to an already great plasmoid.
Below is an example and code of gradient text. I am not that knowledgeable in QML to figure out how to add it to the project. Thanks for all the great work.
import QtQuick 2.0
import org.kde.plasma.components 2.0 as PlasmaComponents
import QtQuick.Window 2.2
import QtGraphicalEffects 1.0
PlasmaComponents.Label {
Rectangle {
id: gradientRect;
width: 10
height: 10
gradient: Gradient {
GradientStop { position: 0; color: "red" }
GradientStop { position: 1; color: "orange" }
}
visible: false;
layer.enabled: true;
layer.smooth: true
}
Text {
id: txt
anchors.centerIn: parent
text: "Hello, world"
font.pixelSize: 16
layer.enabled: true
layer.samplerName: "maskSource"
layer.effect: ShaderEffect {
property var colorSource: gradientRect;
fragmentShader: "
uniform lowp sampler2D colorSource;
uniform lowp sampler2D maskSource;
uniform lowp float qt_Opacity;
varying highp vec2 qt_TexCoord0;
void main() {
gl_FragColor =
texture2D(colorSource, qt_TexCoord0)
* texture2D(maskSource, qt_TexCoord0).a
* qt_Opacity;
}
"
}
}
}
How can I pass kdialog --msgbox Test
to bash
attribute?
Tried the below echo
but nothing works:
echo "This bash doesn't run | bash='kdialog --msgbox Test'"
cmd="kdialog --msgbox Test"
echo "This bash doesn't run too | bash=$cmd"
I could create another .sh
file to place into the bash
attribute. But could you improve the parser of kargos in this case?
Hi
How can I execute a script or refresh the current one when I click on the title of the widget?
In Gnome ARGOS, you can know if you were clicked with the condition:
"if [" $ ARGOS_MENU_OPEN "==" true "]; then", is there something equivalent in KARGOS?
I would like to write plugins that are compatible with kargos as well as other BitBar implementations like Argos, xbar, or SwiftBar. As such it would be nice to have an environment variable to be able to identify the app running the plugin as kargos, ideally with version info, e.g. KARGOS_VERSION=x.y.z
. That way I would be able to make full use of the features available in the given implementation and version, with graceful fallbacks for unsupported features.
Hey @lipido,
It looks like this project hasn't had any activity in about 2 years. If your priorities have changed and don't have time for this anymore, please make me a maintainer. I'd like to revive this project (I have a few improvements in mind).
Cheers,
Lasath
Kargos doesn't seem to be able to load images correctly.
in the plugin demo (rotating items) only image I see is the "dialog-ok" icon.
I see lot of these in item labels: (href, icon, onclick=href), which I think should be replaced with proper variables, and not showing on screen?
also, I seem to be unable to put any icons on title bar.. it's just text that shows up even if I add |iconName=dialog-ok forexample in the first echoed line.
I'm using Kargos from git.
this is Kubuntu 17.04
I once started using this to display a series of icons with counts (that were pretty easy to fetch from various sources in bash scripts) and the (second) most time consuming thing was adding the widget and choosing the script.
It would be nice if there was a version of this applet that takes a directory, and executes all the scripts in it as they were separate instances of Kargos.
Like the title says, could you add this mode to kargos?
If the label is too long, you could truncate it in order to fit the fixed width. And the tooltip would support to display the full text, with a picture, for example...
// Thank you for good listening. Have a nice weekend!
$ plasmapkg2 -t plasmoid --install .plasmoid
produces the following error:
Error: Installation of failed: No such file:
How to compile the .plasmoid file?
Edit: it works with kpackagetool5 -t Plasma/Applet --install plasmoid
. If it's right please update the README
Currently Kargos displays only in a single line, would be nice to have it display in user configurable ammount of lines
Have made a pull request to cut right margin of dropdown if no icon, image, submenus to show #26 .
And thougt it will be better use Dynamic QML Object Creation from JavaScript to create icon, image as needed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.