SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-03-16 19:51:55

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

[SOLVED] Battery icon in tint2

In my jessie system using version 1.4.1-1 of XFCE4-power-manager, the battery icon no longer shows up in the tint2 systray and the option to enable it has been removed from XFCE4-power-manager-settings

The icon still shows with version 1.2.0-1 in my SlackBang desktop (#! clone on a Slackware-current base).

The only choice with jessie is to use the native tint2 text readout.

I much prefer the #! battery icon -- the #! systray appearance was one of the best around IMO and it would be a shame if BunsenLabs lost this.

Last edited by Head_on_a_Stick (2015-05-20 18:24:30)

Offline

Help fund CrunchBang, donate to the project!

#2 2015-03-16 20:28:29

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: [SOLVED] Battery icon in tint2

^ A quick Google search for "Debian Jessie systray battery" tells me that xfce4-power-manager has been having trouble with not updating the battery status in the systray icon (lots of bug reports for this); perhaps the icon option was removed because of this?

I would prefer that the XFCE4 development team would opt to fix the bug rather than let the feature vanish, because a fixed feature can't be added back in once it has been removed due to the freeze. sad

Offline

#3 2015-03-16 21:02:53

nicholasalipaz
#! Member
Registered: 2015-02-05
Posts: 72

Re: [SOLVED] Battery icon in tint2

I too had been looking into that last week, this is what I found:
https://bugs.debian.org/cgi-bin/bugrepo … =755551#10

Seems it was removed and is now only supported if you used xfce panel, which is a shame.  But reading that thread I also found that the op requested that they bring it back in xfce issue queue:
https://bugzilla.xfce.org/show_bug.cgi?id=11054

There is a patch for it and it works a bit differently, but it is not yet released from what I can see.

So the issue is not in bl, or cb.  The issue is in xfce4 on Jessie.

Offline

#4 2015-03-16 21:26:35

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] Battery icon in tint2

nicholasalipaz wrote:

I too had been looking into that last week, this is what I found:
https://bugs.debian.org/cgi-bin/bugrepo … =755551#10

Seems it was removed and is now only supported if you used xfce panel, which is a shame.  But reading that thread I also found that the op requested that they bring it back in xfce issue queue:
https://bugzilla.xfce.org/show_bug.cgi?id=11054

There is a patch for it and it works a bit differently, but it is not yet released from what I can see.

So the issue is not in bl, or cb.  The issue is in xfce4 on Jessie.

Thanks for this -- I'll try applying the patch when I have time.

Offline

#5 2015-03-16 21:42:22

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: [SOLVED] Battery icon in tint2

Perhaps try mate-power-manager instead?  Its interface isn't as robust as xfce4-power-manager, but it does include a systray icon option.

Last edited by pvsage (2015-03-16 22:24:24)

Offline

#6 2015-03-16 21:46:32

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] Battery icon in tint2

pvsage wrote:

Perhaps try mate-power-manager instead?

Thank you!
2015_03_16_214458_1920x1080_scrot.jpg
BunsenLabs should use that instead IMO.

Offline

#7 2015-03-17 00:51:55

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: [SOLVED] Battery icon in tint2

Or keep xfce4-power-manager (and access it from a menu for configuration) and use a separate battery monitor for the systray? (There are such things I understand, though haven't researched it.)


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
#! forum moderator    BunsenLabs

Offline

#8 2015-03-17 00:57:18

nicholasalipaz
#! Member
Registered: 2015-02-05
Posts: 72

Re: [SOLVED] Battery icon in tint2

I am for johnraff's suggestion if we can find a working battery monitor.

Offline

#9 2015-03-17 07:45:19

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] Battery icon in tint2

johnraff wrote:

Or keep xfce4-power-manager (and access it from a menu for configuration) and use a separate battery monitor for the systray? (There are such things I understand, though haven't researched it.)

I was using cbatticon but it has it's own icon theme:
batticon.png
Unlike mate/xfce4-power-manager, which uses the battery icon from whichever GTK theme is in use and thus produces a much more cohesive systray appearance.

Offline

#10 2015-03-17 17:26:41

nicholasalipaz
#! Member
Registered: 2015-02-05
Posts: 72

Re: [SOLVED] Battery icon in tint2

Head_on_a_Stick wrote:
johnraff wrote:

Or keep xfce4-power-manager (and access it from a menu for configuration) and use a separate battery monitor for the systray? (There are such things I understand, though haven't researched it.)

I was using cbatticon but it has it's own icon theme:
http://s30.postimg.org/5dpxoyfst/batticon.png
Unlike mate/xfce4-power-manager, which uses the battery icon from whichever GTK theme is in use and thus produces a much more cohesive systray appearance.

I just compiled cbatticon to try it out.  I did the following if anyone else wants it:

git clone git@github.com:valr/cbatticon.git
cd cbatticon
sudo make WITH_GTK3=0 WITH_NOTIFY=0
sudo make install

Remove WITH_NOTIFY=0 if you have libnotify and want to use it.  You might also need libnotify-dev to build with libnotify.

Seems there a good number of options here:

$ cbatticon --help
Usage:
  cbatticon [OPTION...] [BATTERY ID]

Help Options:
  -h, --help                       Show help options
  --help-all                       Show all help options
  --help-gtk                       Show GTK+ Options

Application Options:
  -v, --version                    Display the version of cbatticon
  -d, --debug                      Display debug information
  -u, --update-interval            Set update interval (in seconds)
  -i, --icon-type                  Set icon type ('standard', 'notification' or 'symbolic')
  -l, --low-level                  Set low battery level (in percent)
  -r, --critical-level             Set critical battery level (in percent)
  -c, --command-critical-level     Command to execute when critical battery level is reached
  -x, --command-left-click         Command to execute when left clicking on tray icon
  -t, --list-icon-types            List available icon types
  -p, --list-power-supplies        List available power supplies (battery and AC)
  --display=DISPLAY                X display to use

I ran the following:

$ cbatticon --list-icon-types
List of available icon types:
standard	available
notification	available
symbolic	available

For me,

cbatticon -i notification

gets me the icon we had in xfce4-power-manager before battery icon was removed.  I haven't tested functionality out yet but it seems like it will work a treat.

Here is command I am using to launch it:

cbatticon -u 20 -i notification -c "systemctl poweroff" -l 15 -r 3 -x xfce4-power-manager-settings &

Last edited by nicholasalipaz (2015-03-17 17:57:19)

Offline

#11 2015-03-17 20:00:20

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] Battery icon in tint2

@nicholasalipaz -- outstanding!

Thank you very much for this!

I have been using cbatticon for a while (it's in [community] in Arch) and I never even thought to check the `--help` options...

Offline

#12 2015-03-18 00:02:28

bjmuirhead
#! Member
Registered: 2013-11-26
Posts: 57
Website

Re: [SOLVED] Battery icon in tint2

I tried mate-power-manager, as mentioned above. Easy, and it also gives the status of the battery in the wireless mouse. (Don't need it, but it amuses me to have it.) Two cents.

Offline

#13 2015-03-18 04:45:22

Inodoro Pereyra
#! Die Hard
From: Back in Buenos Aires
Registered: 2013-07-01
Posts: 844

Re: [SOLVED] Battery icon in tint2

nicholasalipaz wrote:

I am for johnraff's suggestion if we can find a working battery monitor.

There is one, right at your fingertips.

18_03_2015_01_42_scrot.jpg

It's called "conky". cool

Offline

#14 2015-03-19 18:41:17

nicholasalipaz
#! Member
Registered: 2015-02-05
Posts: 72

Re: [SOLVED] Battery icon in tint2

bjmuirhead wrote:

I tried mate-power-manager, as mentioned above. Easy, and it also gives the status of the battery in the wireless mouse. (Don't need it, but it amuses me to have it.) Two cents.

mate-power-manager just didn't have all the features I wanted, so I did the xfce4-power-manager and cbatticon to see my level in the status area.  Works great.

Offline

#15 2015-03-20 00:42:52

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: [SOLVED] Battery icon in tint2

Unfortunately cbatticon's not in the Jessie repositories. neutral


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
#! forum moderator    BunsenLabs

Offline

#16 2015-03-24 02:55:23

spacex
ew
From: Norway
Registered: 2015-01-17
Posts: 385
Website

Re: [SOLVED] Battery icon in tint2

What's wrong with simply using the battery display functionality that already is in tint2rc?


Regards,
spacex/ew
http://tweaklinux.org

Offline

#17 2015-03-24 04:32:40

nore
>2^9
From: Lakeland
Registered: 2009-11-28
Posts: 740

Re: [SOLVED] Battery icon in tint2

spacex wrote:

What's wrong with simply using the battery display functionality that already is in tint2rc?

Head_on_a_Stick wrote:

The only choice with jessie is to use the native tint2 text readout.

Nothing wrong, it's a matter of personal taste and usability. An icon takes a few pixels less space and you can change settings by clicking it.

edit: The matter in this thread is restoring functionality formerly provided by xfce4-power-manager icon.

Last edited by nore (2015-03-24 04:35:10)

Offline

#18 2015-03-24 07:47:55

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] Battery icon in tint2

I dislike the native text readout in tint2 because my laptop doesn't supply acpi with any discharge rate information so the "time remaining" section is always "0:00" and if I try to remove this section (by setting the font size to "0") the main battery percentage is offset by a pixel or two.

My OCD tendencies simply will not allow this...

Offline

#19 2015-03-24 09:32:55

heart1010
Member
Registered: 2015-03-13
Posts: 16

Re: [SOLVED] Battery icon in tint2

spacex wrote:

What's wrong with simply using the battery display functionality that already is in tint2rc?

How to display that "default tint2" battery data?

Offline

#20 2015-03-24 11:02:29

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: [SOLVED] Battery icon in tint2

heart1010 wrote:
spacex wrote:

What's wrong with simply using the battery display functionality that already is in tint2rc?

How to display that "default tint2" battery data?

Read the manual - Tint2 wiki


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

#21 2015-03-24 12:46:32

spacex
ew
From: Norway
Registered: 2015-01-17
Posts: 385
Website

Re: [SOLVED] Battery icon in tint2

Head_on_a_Stick wrote:

I dislike the native text readout in tint2 because my laptop doesn't supply acpi with any discharge rate information so the "time remaining" section is always "0:00" and if I try to remove this section (by setting the font size to "0") the main battery percentage is offset by a pixel or two.

My OCD tendencies simply will not allow this...

OK, then I understand. I'm a bit OCD myself, so I wouldn't be able to allow that myself.

Last edited by spacex (2015-03-24 12:48:11)


Regards,
spacex/ew
http://tweaklinux.org

Offline

#22 2015-03-24 20:23:13

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: [SOLVED] Battery icon in tint2

johnraff wrote:

Or keep xfce4-power-manager (and access it from a menu for configuration) and use a separate battery monitor for the systray?

this.
i've been using tidybattery on my arch laptop.
it's so fucking simple! i counted 55 lines of actual code.
it follows the current icon theme.

Offline

#23 2015-03-24 20:31:33

heart1010
Member
Registered: 2015-03-13
Posts: 16

Re: [SOLVED] Battery icon in tint2

ohnonot wrote:
johnraff wrote:

Or keep xfce4-power-manager (and access it from a menu for configuration) and use a separate battery monitor for the systray?

this.
i've been using tidybattery on my arch laptop.
it's so fucking simple! i counted 55 lines of actual code.
it follows the current icon theme.

I've installed tidybattery and I also get an "icon" which shows on mouse hover the needed data but this icon looks like a monitor/terminal and not like power/accu icon  cool (did I something false)!?

s_1427229016_7335940_5dbf1b9eec.png

Offline

#24 2015-03-24 20:46:07

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] Battery icon in tint2

ohnonot wrote:

i've been using tidybattery on my arch laptop.
it's so [redacted] simple! i counted 55 lines of actual code.
it follows the current icon theme.

Thank you for this -- very nice!

Offline

Help fund CrunchBang, donate to the project!

#25 2015-03-24 22:57:57

nicholasalipaz
#! Member
Registered: 2015-02-05
Posts: 72

Re: [SOLVED] Battery icon in tint2

heart1010 wrote:

...
I've installed tidybattery and I also get an "icon" which shows on mouse hover the needed data but this icon looks like a monitor/terminal and not like power/accu icon  cool (did I something false)!?

http://storage4.static.itmages.com/i/15/0324/s_1427229016_7335940_5dbf1b9eec.png

Looks like your icon theme might not have the icons named in the script.  You could try a different icon theme or create your own to add to the theme you are using, assuming that is indeed the issue.  What icon theme are you using?

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo