aanatoly / fbpanel Goto Github PK
View Code? Open in Web Editor NEWlightweight X11 desktop panel
Home Page: http://aanatoly.github.io/fbpanel/
License: Other
lightweight X11 desktop panel
Home Page: http://aanatoly.github.io/fbpanel/
License: Other
I'm using a second monitor with nvidia's twinview, it create one desktop with the bounding box of the two monitor attached.
fbpanel show the correct size/ratio in the thumbs, but if I turn off the second monitor (xrandr -s1
) the thumbs size remain the same.
I believe twinview is compatible with xinerama (surely is with xrandr).
The environment is openbox.
net.c.diff.txt
Please find attached a patch to fix showing receive rates and graph when reaching 4Gib+ numbers
Hi I have a 60 px width sidebar with but the task Icons are just 28 PX hight witch create tiny floating icons in a large side bar.
I did this dirty fix to fill my needs FredericGuilbault@e52e17d?diff=split
But that would be great to have something clean.
Currently it's a GtkWindow
with connected signals that try to overtake normal flow. It become messy.
Create project home page using Github Pages. I guess it's enough to move www/
to gh-pages
branch
The issue is: 'margin' setting is not respected and panel at left edge will overlap panel at top edge in 7.0-4 (unexpected), however in 6.1-6 left panel will respect it's fixed 'margin' and will be placed lower at left edge - will not overlap panel at top (expected and configured in configuration file).
Issue exist in fbpanel 7.0-4 amd64 Ubuntu 18.04
Issue do not exist and all fine in 6.1-6 Ubuntu 16.04
In configurations top panel's height is 66, left panel's margin is 66. This should allow them do not overlap each other. Below are configurations for screen 1024x768.
Please find subj configurations in attachment (named as .txt in order to make them to be a files of a type known to GitHub issue posting interface).
Is there a way to change the background color of the buttons in the taskbar? I tried to force them with gtk_widget_modify_bg ()
immediately after gtk_button_new ()
in taskbar.c
for active
, selected
(also normal
) but I don't see any changes. With the style I'm using I find it hard to distinguish the active task from the others (the one selected has a slightly darker background color), it would be good to just set the label text to bold, or a different border, anything to distinguish that active.
Plugin {
type = genmon
config {
Command = /usr/sbin/getsysload
PollingTime = 1
}
}
I get a lot of errors like
/usr/sbin/getsysload: line 37: echo: write error: Broken pipe
/usr/sbin/getsysload: line 19: echo: write error: Broken pipe
/usr/sbin/getsysload: line 39: echo: write error: Broken pipe
/usr/sbin/getsysload: line 19: echo: write error: Broken pipe
/usr/sbin/getsysload: line 49: echo: write error: Broken pipe
/usr/sbin/getsysload: line 64: echo: write error: Broken pipe
/usr/sbin/getsysload: line 72: echo: write error: Broken pipe
/usr/sbin/getsysload: line 79: echo: write error: Broken pipe
/usr/sbin/getsysload: line 87: echo: write error: Broken pipe
/usr/sbin/getsysload: line 92: echo: write error: Broken pipe
/usr/sbin/getsysload: line 102: echo: write error: Broken pipe
/usr/sbin/getsysload: line 103: echo: write error: Broken pipe
sed: couldn't flush stdout: Broken pipe
/usr/sbin/getsysload: line 117: echo: write error: Broken pipe
/usr/sbin/getsysload: line 129: echo: write error: Broken pipe
/usr/sbin/getsysload: line 130: echo: write error: Broken pipe
/usr/sbin/getsysload: line 131: echo: write error: Broken pipe
/usr/sbin/getsysload: line 132: echo: write error: Broken pipe
/usr/sbin/getsysload: line 133: echo: write error: Broken pipe
/usr/sbin/getsysload: line 134: echo: write error: Broken pipe
/usr/sbin/getsysload: line 135: echo: write error: Broken pipe
each time this script is run. The same script works well in genmon plugin for xfce4-panel.
fbpanel 7.0-4+b1 on Debian GNU/Linux 11
current code uses deprecated /proc/acpi interface
The patch with /sys
code was sent by Bubak [email protected]
See original bug report at sf.net https://sourceforge.net/p/fbpanel/bugs/109/
Trying to add a local custom downloaded icon for fbpanel button. Like the following
button {
icon = /path/to/icon.png
tooltip =
action =
}
Tried ways around it like using svg ,.ico or few other things fbpanel can't seem to view the icon.
Hello Anatoly and thanks for this great soft.
wpa_supplicant has a optional qt interface, attached to a tray-icon.
Somehow, when I launch wpa_gui, it seems like tray makes room for it, but not blank.
Rather with a copy of imediatly precedent tray-icon.
So in the end, wpa_gui's icon, which is transparent has the previous tray-icon for background.
Here is an image: https://imgur.com/a/hgwqV
Reprodicible: always.
I am not sure if this is fbpanel related. wpa_supplicant maybe?
Hi there,
Is there any possibility of creating the development branch for future relase (e.g. gtk+3, wayland, etc.) ?
Cheers,
-berte.
Thanks so much for your quick work at resolving issues so far :)
Would it be possible to extend the volume plugin to allow for pulseaudio support?
You might be able to merge the volume plugin code from lxpanel back in which does support pulseaudio...
A right-click option like you have for the tclock plugin could allow the user to open a mixer of their choice eg pavucontrol
Also, it would be ideal if the volume slider would disappear when you click off it rather than having to click back on the icon to close it (same for calendar/tclock plugin) - this maybe a separate issue.
Thanks!
hi i recenlty backorted fbpanel, but seems depends are not well specificied, that-s the case:
in my home i have several packages installed so i build fbpanel and builds perfectly.. BUT at the server (when only required packages to build are installed) doe not compiles unless i installed lot of packages.. and i cannot determine the right dependence.. the error are:
[ 75s] CC usrsrcpackagesBUILDpluginsbatterypower_supply.o
[ 75s] cc -O3 -fomit-frame-pointer -falign-functions=0 -falign-jumps=0 -falign-loops=0 -march=i586 -mtune=pentium -mmmx -I../.. -I../../panel -DPLUGIN -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fPIC -c -o power_supply.o power_supply.c -MMD
[ 75s] power_supply.c:157:22: error: invalid suffix "d" on floating constant
[ 75s] power_supply.c:209:32: error: invalid suffix "d" on floating constant
[ 75s] power_supply.c:213:52: error: invalid suffix "d" on floating constant
[ 75s] power_supply.c:214:71: error: invalid suffix "d" on floating constant
[ 75s] power_supply.c:222:56: error: invalid suffix "d" on floating constant
[ 75s] power_supply.c:223:75: error: invalid suffix "d" on floating constant
[ 75s] power_supply.c:330:34: error: invalid suffix "d" on floating constant
[ 75s] power_supply.c:338:37: error: invalid suffix "d" on floating constant
why?
On devel branch...
Whatever is set after the battery plugin in the config isn't shown on the panel. So if I put the systray after the battery plugin, the systray doesn't appear.
Is it possible to give the taskbar buttons a transparent background instead of the raised button style? It would be cool if the button labels could be styled similar to the tclock widget.
On small screen, the configuration window does not have a scroll bar and a good part of the window is inacessible.
I know you can Ctrl and right-click the panel to open the config GUI (would a simple right-click make more sense?) Anyway, I wanted to be able to create a .desktop file and a menu entry to launch the config dialog. If I set the command as fbpanel -C I get another new panel on top of the existing one as well as the config GUI.
What is the correct command to open the config GUI for an already running panel? At the moment, I am having to resort to:
killall fbpanel && fbpanel -C
If you set the widthtype=request sizing option and roundcorners=true then the panel does not appear at all. Round corners do work if I specify the width in pixels or percent.
This is with the devel branch on Ubuntu 14.04.
Here is my simple config:
Global {
edge = bottom
allign = right
xmargin = 12
ymargin = 5
widthtype = request
width = 15
height = 35
transparent = true
tintcolor = #000000
alpha = 160
setdocktype = true
setpartialstrut = true
autohide = false
heightWhenHidden = 2
roundcorners = true
roundcornersradius = 7
layer = above
MaxElemHeight = 24
setlayer = false
}
Plugin {
type = space
config {
size = 2
}
}
Plugin {
type = tclock
config {
foreground = "#ffffff"
ClockFmt = <span font="Roboto 10" color="white"><b>%H:%M</b></span>
TooltipFmt = %A%n%d %B %G
ShowCalendar = true
ShowTooltip = true
}
}
Plugin {
type = space
config {
size = 13
}
}
Plugin {
type = tray
}
Plugin {
type = space
config {
size = 5
}
}
COPYING
is similar to MIT, but not 100% exact text. Please do not invent new licensessee also https://bugs.gentoo.org/795591
Lightdm is the display manager used by Ubuntu and many other distributions.
If the downloaded Gravatar (or G+) profile pic is downloaded to ~/.face then it will also be displayed by the login manager.
Also it would be useful if the tooltip could be customized to display eg $USER is logged in.
Hi.
Are you still around, because I see that PRs aren't merged or commented on and there hasn't been activity in the repo in the past 6 years.
I would like to work on the panel. If you don't mind someone else working on it, perhaps if you can add me as a contributor with write access or if I can adopt the project from you if you are no longer interested?
Anyway, let me know if you see this.
Don't know if this is an issue, or how to solve it, but I'm using fbpanel with Xfce, and when opening the menu, it shows duplicates of every menu item. I've looked in the rc and tried substituting different values for systemmenu, but doing so makes the panel unusable.
I like this panel a lot and would like to fix this single issue if I could.
Thanks.
amerigena
Requirements:
menu
pluginWhen I accidentally scroll mouse wheel on the panel, it switches virtual desktops.
How can I disable this before it drives me crazy ?
Seriously, whoever thought this was a good idea ?
Who switches desktops with his mouse wheel ?
Would you consider allowing for a Google profile pic as well as Gravatar? I've been looking into it and you can get it by querying this web address with your Google username:
http://picasaweb.google.com/data/entry/api/user/${GUSERNAME}?alt=json
eg: http://picasaweb.google.com/data/entry/api/user/chromixium?alt=json
Then the website displays the full path to the logo as follows:
"gphoto$thumbnail":{"$t":"http://lh3.googleusercontent.com/-wGDIB6oPy0w/AAAAAAAAAAI/AAAAAAAAAAA/kb8-My-IGTI/s64-c/101947769087707595037.jpg"}}}
There's more info here:
http://stackoverflow.com/questions/9128700/getting-google-profile-picture-url-with-user-id
I tried to compile on debian buster :
Created config.mk
Created config.h
Configuration:
Sound plugin: no
TEXT default
TEXT pager
TEXT fbpanel.1
TEXT make_profile
CC panel/bg.o
CC panel/ev.o
CC panel/gconf.o
CC panel/gconf_panel.o
CC panel/gconf_plugins.o
CC panel/gtkbar.o
CC panel/gtkbgbox.o
make[1]: *** [../.config/rules.mk:276: gtkbgbox.o] Error 1
make: *** [.config/rules.mk:46: panel] Error 2
SVN r515 was fine, but since the new build system was introduced (in SVN r516), localization is broken and fbpanel displays with the C locale.
This of course isn't noticeable to English-language users.
It would be nice to be able to limit fbpanel to single monitor, when using several monitors
Currently, fbpanel is spread along all of them
I'm running fbpanel
with openbox
on a minimal debian/unstable installation, I used to run fbpanel
in a very similar environment until few weeks ago without problems, but it was a 32bit arch and I needed to switch to 64.
I'm not sure this is a fbpanel
issue but fbpanel
is where it show up.
fbpanel
is launched from ~/.config/openbox/autostart
(a shell script), it works almost fine but can't get it to run .desktop/terminal applications from the menu (mc
for instance), here's fbpanel
stderr:
The TERM environment variable is unset!
If I wrapp fbpanel in a script (exporting TERM=xterm
) and launch it using gmrun
, the error become:
Cannot get terminal settings: Inappropriate ioctl for device (25)
Failed to open terminal.SLang_getkey returned SLANG_GETKEY_ERROR
Assuming EOF on stdin and exiting
That's the strace
log:
3627 fstat(0, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
3627 ioctl(0, TCGETS, 0x7ffd575d5870) = -1 ENOTTY (Inappropriate ioctl for device)
3627 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f41e63a1000
3627 read(0, "", 4096) = 0
3627 write(2, "SLang_getkey returned SLANG_GETK"..., 75) = 75
3627 exit_group(1) = ?
3627 +++ exited with 1 +++
If I launch fbpanel
from a terminal the menu terminal applications are executed within the terminal.
x-terminal-emulator
is set to terminator
but xterm
is installed.
Any help would be appreciated.
you got a really great panel. I love it! but your install needs major work. one system it installed with out any problems. I like your panel so much I went to install it on my other linux box, and I got nothing but errors and not allowing me to install it. So I gave up and went with something else.
I googled around to see if I cold find a solution. Then found a post on a board of someone getting fed up with your app not installing too. Only to leave a nasty gram as a result of it.
This was a while ago (two maybe three weeks) so I do not remember all of the errors messages. Not that it should matter. Just come up with a better way to install it is all.
again, it is a great looking panel just put more effort in how another is to get it into their system and working.
Greetings!
I enjoy fbpanel and switched to it from lxpanel (which seems to be a derivative of fbpanel).
I want to add maximize to the taskbar context menus as there is only 'raise', 'iconify' and 'close' right now. Looking at panel/panel.c
at function panel_set_wm_strut(panel *p)
right before the first switch you have this test:
if (p->autohide)
return;
Then for each case you have:
if (p->autohide) data[i] = p->height_when_hidden;
Aren't those tests for p->autohide
unneeded since you have that first if (p->autohide) return
?
void
panel_set_wm_strut(panel *p)
{
gulong data[12] = { 0 };
int i = 4;
ENTER;
if (!GTK_WIDGET_MAPPED(p->topgwin))
return;
/* most wm's tend to ignore struts of unmapped windows, and that's how
* fbpanel hides itself. so no reason to set it. */
if (p->autohide) // <<<<<<<<<<<<<<<<<<<< first test
return;
switch (p->edge) {
case EDGE_LEFT:
i = 0;
data[i] = p->aw;
data[4 + i*2] = p->ay;
data[5 + i*2] = p->ay + p->ah;
if (p->autohide) data[i] = p->height_when_hidden; // <<<<< unneeded/dead?
break;
case EDGE_RIGHT:
i = 1;
data[i] = p->aw;
data[4 + i*2] = p->ay;
data[5 + i*2] = p->ay + p->ah;
if (p->autohide) data[i] = p->height_when_hidden; // <<<<< unneeded/dead?
break;
case EDGE_TOP:
i = 2;
data[i] = p->ah;
data[4 + i*2] = p->ax;
data[5 + i*2] = p->ax + p->aw;
if (p->autohide) data[i] = p->height_when_hidden; // <<<<< unneeded/dead?
break;
case EDGE_BOTTOM:
i = 3;
data[i] = p->ah;
data[4 + i*2] = p->ax;
data[5 + i*2] = p->ax + p->aw;
if (p->autohide) data[i] = p->height_when_hidden; // <<<<< unneeded/dead?
break;
default:
ERR("wrong edge %d. strut won't be set\n", p->edge);
RET();
}
DBG("type %d. width %ld. from %ld to %ld\n", i, data[i], data[4 + i*2],
data[5 + i*2]);
/* if wm supports STRUT_PARTIAL it will ignore STRUT */
XChangeProperty(GDK_DISPLAY(), p->topxwin, a_NET_WM_STRUT_PARTIAL,
XA_CARDINAL, 32, PropModeReplace, (unsigned char *) data, 12);
/* old spec, for wms that do not support STRUT_PARTIAL */
XChangeProperty(GDK_DISPLAY(), p->topxwin, a_NET_WM_STRUT,
XA_CARDINAL, 32, PropModeReplace, (unsigned char *) data, 4);
RET();
}
Thanks! ๐
it covers the button itself, must be right below it
As discussed by email, thanks :)
I would like to try to recreate the floating tray area from Chrome OS:
http://www.omgchrome.com/wp-content/uploads/2013/07/chromeos-status-bar.jpg
You have made allowances for a margin, but this only allows me to move the panel in from the left. What I would like to be able to do, is move the panel up from the bottom by about 5-10 pixels.
I guess what would be ideal is an x margin and a y margin feature that moves the panel in the required number of pixels from the screen edge it is attached to. What I don't want is an absolute position feature, as it needs to be able to stay in place even when changing screen resolution.
Eg The panel is aligned bottom/right. The X margin would move the panel to the left, away from the right-edge (the existing margin feature) and the Y margin would move the panel up from the bottom edge.
Hope this makes sense! Thanks for getting the project back up and running!
Todo
As config option with off by-default.
Certain parts of the documentation are sorely lacking, e.g.:
Taskbar
Launchbar
Menu
In particular, it would be nice to know what the systemmenu
property of the menu plugin does, and if it's possible to configure it.
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.