SEARCH

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

You are not logged in.

#1 2013-10-16 11:32:39

tamikan
#! Die Hard
Registered: 2012-09-20
Posts: 777

No system tray ftw :P

Replaced tint2 with pypanel with the following config in ~/.pypanelrc

#------------------------------------------------------------------------------
#
#                         PyPanel v2.4 Configuration
#
# This configuration file is a Python script that will be executed when
# PyPanel is started.  In order for PyPanel to start properly, make sure that
# this file contains proper Python formatting and no syntax errors.
#------------------------------------------------------------------------------
VERSION         = 2.4           # Config file version

#------------------------------------------------------------------------------
# Colors: Format is hex triplet - 0xrrggbb
#------------------------------------------------------------------------------
BG_COLOR        = "0x000000"    # Panel background and tinting color
TASK_COLOR      = "0xc0c0c0"    # Normal task name color 
FOCUSED_COLOR   = "0xc0c0c0"    # Focused task name color
SHADED_COLOR    = "0x808080"    # Shaded task name color 
MINIMIZED_COLOR = "0x808080"    # Minimized task name color 
DESKTOP_COLOR   = "0x000000"    # Desktop name color
CLOCK_COLOR     = "0xadff2f"    # Clock text color
LINE_COLOR      = "0x000000"    # Vertical line color

# Text Shadow Colors
TASK_SHADOW_COLOR      = "0xffffff"
FOCUSED_SHADOW_COLOR   = "0xffffff"
SHADED_SHADOW_COLOR    = "0xffffff"
MINIMIZED_SHADOW_COLOR = "0xffffff" 
DESKTOP_SHADOW_COLOR   = "0xffffff"
CLOCK_SHADOW_COLOR     = "0xffffff"

#------------------------------------------------------------------------------
# Panel Spacing and Location Options: Measured in pixels
#------------------------------------------------------------------------------
P_LOCATION      = 1             # Panel placement: 0 = top, 1 = bottom
P_WIDTH         = 0             # Panel width: 0 = Use full screen width
P_START         = 0             # Starting X coordinate of the panel
P_SPACER        = 6             # Spacing between panel objects
P_HEIGHT        = 24            # Panel height

#------------------------------------------------------------------------------
# Icon Size Options: Measured in pixels
#------------------------------------------------------------------------------
I_HEIGHT        = 16            # Panel application icon height
I_WIDTH         = 16            # Panel application icon Width 
APPL_I_HEIGHT   = 24            # Application launcher icon height
APPL_I_WIDTH    = 24            # Application launcher icon width
TRAY_I_HEIGHT   = 24            # System tray icon height (usually 16 or 24)
TRAY_I_WIDTH    = 24            # System tray icon width  (usually 16 or 24)
                                # If TRAY_I_WIDTH is set to 0, then the
                                # width specified by the tray app will be used
                                
#------------------------------------------------------------------------------
# Panel Clock Format: 'man strftime' for detailed formatting options and help
#------------------------------------------------------------------------------
CLOCK_FORMAT    = "%Y-%m-%d %H:%M"    # Ex: 2004-09-25 17:45 

#------------------------------------------------------------------------------
# Clock Delay: Seconds between each clock update during periods of inactivity
#------------------------------------------------------------------------------
CLOCK_DELAY     = 20

#------------------------------------------------------------------------------
# Hidden Application List: Apps listed here will not be display on the panel
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
# Ex: ["xmms", "xine", "gDesklets"]
#------------------------------------------------------------------------------
HIDE_LIST       = []            
                   
#------------------------------------------------------------------------------
# Hidden Panel Size: Size of the panel when it's hidden/minimized
#------------------------------------------------------------------------------
HIDDEN_SIZE     = 2

#------------------------------------------------------------------------------
# Panel Text Font: This option takes either a traditional or Xft font string 
# Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
#     "aquafont-8" 
#------------------------------------------------------------------------------
FONT            = "bitstream vera sans-8"

#------------------------------------------------------------------------------
# Show All Applications: Show apps from all desktops or just the current
# 0: Disabled - Only applications on the current desktop will be displayed
# 1: Enabled  - Selected apps are moved to the current desktop
# 2: Enabled  - Current desktop is changed to the selected apps desktop
#------------------------------------------------------------------------------
SHOWALL         = 0             # 0, 1 or 2 - see descriptions above

#------------------------------------------------------------------------------
# Show Minimized/Iconified Applications: Show only minimized apps or all apps
# 0: Disabled - Show all applications on the panel
# 1: Enabled  - Show only minimized apps on the panel
#------------------------------------------------------------------------------
SHOWMINIMIZED   = 0

#------------------------------------------------------------------------------
# Application Icon List: List of custom icons for specific applications
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
#
# The "default" entry is used for applications with no icon.  If left "",
# PyPanel will use the default icon distributed with the source.
#
# Add entries using the following format -
#     "<application name>" : "<full path to icon>",
#------------------------------------------------------------------------------
ICON_LIST       = {
                   "default" : "",
                   "example" : "/usr/share/imlib2/data/images/audio.png",
                  }
                  
#------------------------------------------------------------------------------
# Application Launch List: Ordered list of icons and applications for the
#                          application launcher.
# 
# Add entries using the following format -
#     ("<executable>", "<full path to icon>")
#------------------------------------------------------------------------------
LAUNCH_LIST     = [
                   ("gimp-2.2", "/usr/share/imlib2/data/images/paper.png"), 
                  ]

#------------------------------------------------------------------------------
# Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
# BG_COLOR is used for tinting
#------------------------------------------------------------------------------
SHADE           = 50

#------------------------------------------------------------------------------
# Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
#------------------------------------------------------------------------------
ABOVE           = 1             # Panel is always above other apps
APPICONS        = 1             # Show application icons
AUTOHIDE        = 0             # Autohide uses the CLOCK_DELAY timer above
SHADOWS         = 0             # Show text shadows
SHOWLINES       = 0             # Show object seperation lines
SHOWBORDER      = 0             # Show a border around the panel

#------------------------------------------------------------------------------
# Desktop Names: Configure the names of your desktops
# If the option is [], PyPanel will attempt to use the desktop name specified
# by the XServer, if that fails it will use the desktop number as its name
# Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
#------------------------------------------------------------------------------
DESKTOP_NAMES   = []

#------------------------------------------------------------------------------
# Panel Layout:       -----------------------------------
#                     [  1  ][  2  ][  3  ][  4  ][  5  ]
#                     -----------------------------------
#
# The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
# in the diagram above.  Each of the following objects can be enabled by
# assigning it a section number or disabled by assigning it 0:
#------------------------------------------------------------------------------
DESKTOP         = 0             # Desktop name section
TASKS           = 1             # Task names section 
TRAY            = 0             # System tray section
CLOCK           = 0             # Clock section
LAUNCHER        = 0             # Application launcher section

#------------------------------------------------------------------------------
#                       Button Event Function Definitions
#------------------------------------------------------------------------------
# Left click   - button 1 
# Middle click - button 2
# Right click  - button 3
# Wheel up     - button 4
# Wheel down   - button 5 
#
# changeDesktop(x)
# - Change Desktop: Increase or decrease the current desktop by 'x' amount
# 
# toggleShade(task)
# - Shade or Unshade an application
#
# toggleHidden()
# - Minimize the panel to the top or bottom depending on its start location
#
# toggleMinimize(task, traise=1)
# - Minimize or Unminimize an application and optionally raise it
#
# taskRaise(task, focus=1)
# - Raise an application to the top of the window list and optionally focus it 
#
# taskLower(task, focus=0)
# - Lower an app to the bottom of the window list and optionally focus it
#
# taskFocus(task)
# - Give focus to the selected application, if it has focus then minimize it
#
# showDesktop()
# - Toggle between hiding and unhiding ALL applications
#------------------------------------------------------------------------------

#----------------------------------
def desktopButtonEvent(pp, button):
#----------------------------------
    """ Button event handler for the panel's desktop object """
        
    if button == 1:
        pp.changeDesktop(-1)
    elif button == 2:
        pp.changeDesktop(2)
    elif button == 3:
        pp.changeDesktop(1)
    elif button == 4:
        pp.changeDesktop(1)
    elif button == 5:
        pp.changeDesktop(-1)
        
#--------------------------------
def clockButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel's clock object """
    
    if button == 1:
        os.system("gsimplecal &")
    elif button == 2:
        pass
    elif button == 3:
        pp.toggleHidden()  
    elif button == 4:
        pp.showDesktop()
    elif button == 5:
        pp.showDesktop()
        
#--------------------------------
def panelButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel with no active tasks """
    
    if button == 1:
        pass
    elif button == 2:
        pass
    elif button == 3:
        pass
    elif button == 4:
        pass
    elif button == 5:
        pass
        
#-------------------------------------
def taskButtonEvent(pp, button, task):
#-------------------------------------
    """ Button event handler for the panel's tasks """
    
    if button == 1:
        pp.taskFocus(task)
    elif button == 2:
        # Destroy the application
        task.obj.destroy()
    elif button == 3:
        # Ex. - XMMS doesn't shade, so we want to minimize it instead and
        #       still use button 3 to shade other applications
        #       task.tclass is the tasks class name (WM_CLASS)
        if "xmms" in task.tclass:
            pp.toggleMinimize(task)
        else:
            pp.toggleShade(task)
    elif button == 4:
        pp.taskRaise(task, focus=1)
    elif button == 5:
        pp.taskLower(task, focus=0)
        

-Replaced NetworkManager with wicd (to use the awesome wicd-curses)
-For Time, Date and battery status, added those lines at the end of ~/.bashrc

date
echo "===================================="
echo "    Battery->"
upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep -E "state|to\ full|percentage"
echo "===================================="

And now I can live without a system tray smile

Last edited by tamikan (2013-10-16 11:33:40)


Top things devil
dwb | Firefox Nightly | sakura | emacs | moc | #! | Arch | Doing 1 thing @ the time | Music from the 90s

Offline

Help fund CrunchBang, donate to the project!

#2 2013-10-16 12:22:37

iMBeCil
WAAAAT?
From: Zgb, Croatia
Registered: 2012-03-22
Posts: 662

Re: No system tray ftw :P

Now, ditch the pypanel and use Alt+Tab instead, and  .... live without panel AND with larger real-estate!

That's what I did, and got used to it very quickly. And then, I ditched windows decoration (apart from 1px border), too ... voila, I live with quite large monitor-estate. Of course, nobody necessarily is gonig to love such an 'anemic' setup ...

Last edited by iMBeCil (2013-10-16 12:23:04)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#3 2013-10-16 13:36:32

tamikan
#! Die Hard
Registered: 2012-09-20
Posts: 777

Re: No system tray ftw :P

lol true pypanel is kinda useless thanks for the idea
my autostart now has 2 lines:

hsetroot -fill ~/Pictures/wallpaper.jpg &
numlockx &

Last edited by tamikan (2013-10-16 13:44:27)


Top things devil
dwb | Firefox Nightly | sakura | emacs | moc | #! | Arch | Doing 1 thing @ the time | Music from the 90s

Offline

#4 2013-10-16 16:45:11

iMBeCil
WAAAAT?
From: Zgb, Croatia
Registered: 2012-03-22
Posts: 662

Re: No system tray ftw :P

Wat? No conkies?  wink

Seriously, I find conkies quite useful ... for example, I tend to forget rarely used Mod4 key combos, and static conky is prefect for this.

Also, a little almost-static calendar is handy too ... and number of emails ...

But, it is up to you to configure system to your liking ...


Postpone all your duties; if you die, you won't have to do them ..

Offline

#5 2013-10-16 17:13:32

tamikan
#! Die Hard
Registered: 2012-09-20
Posts: 777

Re: No system tray ftw :P

-For my emails, calendar & weather needs -> my Android device stole the fun

-It was stil nice to check cpu & mem usage with my previous laptop but with this new Dell Latitude E5530 that comes with 8gb of ram ddr3 & a core i7 cpu there's not much action to monitor T.T

Conky and a task manager/panel would be mostly for appearance.


Top things devil
dwb | Firefox Nightly | sakura | emacs | moc | #! | Arch | Doing 1 thing @ the time | Music from the 90s

Offline

#6 2013-10-16 20:19:34

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,077
Website

Re: No system tray ftw :P

tamikan wrote:

Conky and a task manager/panel would be mostly for appearance.

Yes yes -- Conky · · · appearance is a good thing.  Riiiiiight??? cool

Although I find I'm opening them when needed and closing them when done more an more:

Remove undecorated:
own_window_hints below,sticky,skip_taskbar,skip_pager

Or starting them on different desktops keeping one desktop 'semi' clean (email - exchange rate desktop) is on all --- snipped a lot:
Note the difference:

own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky

part of the bash script:

# on all desktops | sticky
	(sleep 7s && wmctrl -s 0 && conky -c /media/5/Conky/S11_Email_1.conky) &

# Increase sleep as desktop lowers to insure the conky is running before changing desktops.
# on desktop 4 only | no sticky
	(sleep 1s && wmctrl -s 3 && conky -c /media/5/Conky/time_L.conky) &
# on desktop 3 only | no sticky  ## nothing here the semi clean spot
	(sleep 2s && wmctrl -s 2) &
# on desktop 2 only | no sticky
	(sleep 4s && wmctrl -s 1 && conky -c /media/5/Conky/S11_Rem_Cal.conky) &

# on desktop 1 only | no sticky
	(sleep 7s && wmctrl -s 0 && conky -c /media/5/Conky/S11_all-text.conky) &
  exit

Gotta have my conkys ... {shdder at the though of no conkys}


#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Online

#7 2013-10-24 19:44:34

tamikan
#! Die Hard
Registered: 2012-09-20
Posts: 777

Re: No system tray ftw :P

Sharing a prettier version of my .bashrc that gives me the time/date and battery status

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
echo -e "\033[00;36m`date +"%T"|figlet`"
echo -e "====================================="
cal
echo -e "====================================="
echo -e "    Battery->"
echo -e "`upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep -E "state|to\ full|percentage"`"
echo -e "=====================================\033[0m"

~/.bashrc output

Last edited by tamikan (2013-10-24 20:26:08)


Top things devil
dwb | Firefox Nightly | sakura | emacs | moc | #! | Arch | Doing 1 thing @ the time | Music from the 90s

Offline

#8 2013-10-25 08:25:24

Resident Bot
#! Die Hard
From: The Netherlands
Registered: 2012-02-17
Posts: 573

Re: No system tray ftw :P

hmm, no panel so system tray - where is this going?
how abt no computer just a nice plain white piece of paper and write notes to friends and post them lol


Troll = not a fanatic
slave of #!  and arch

Offline

#9 2013-10-25 13:09:35

tamikan
#! Die Hard
Registered: 2012-09-20
Posts: 777

Re: No system tray ftw :P

My bedroom has been influenced too by this minimalism lol: no drawers...


Top things devil
dwb | Firefox Nightly | sakura | emacs | moc | #! | Arch | Doing 1 thing @ the time | Music from the 90s

Offline

#10 2013-10-25 14:20:15

sorcerer's_apprentice
#! Junkie
From: oblivion
Registered: 2013-02-09
Posts: 293

Re: No system tray ftw :P

Thanks for the inspiration!

Had to do a reset of my system and adopted these changes.

Purged tint2, edited OB-autostart to auto-max all windows w/o deco and adjusted some key-bindings for a more convenient navigation.

Edit:

But I still have a little problem: I want terminator to have a certain fixed window-size so that I can assign a whole desktop to it and have a conky at the side. If I lay terminator with transparent background over the conky things get overlayed when I have a lot of I/O going. And now I am looking for a way to keep the convenience to automax all other applications while assigning a fixed size to the terminator-window.

I adjusted "size = xxx, xxx" in ~/.config/terminator/config but that doesn't yield the expected effect...

Any ideas on how to do this?

Last edited by sorcerer's_apprentice (2013-10-25 14:26:29)

Offline

#11 2013-10-25 15:48:03

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,077
Website

Re: No system tray ftw :P

sorcerer's_apprentice wrote:

I adjusted "size = xxx, xxx" in ~/.config/terminator/config but that doesn't yield the expected effect...

Any ideas on how to do this?

man terminator
terminator --geometry=950x600+500+30 -b

2013_10_25_12_38_13_1920x1080_Sector11.jpg

terminator -mb

2013_10_25_12_38_57_1920x1080_Sector11.jpg

Conky on the side:

terminator --geometry=1730x1080+0+0 -b

2013_10_25_12_44_18_1920x1080_Sector11.jpg

I don't use [Alt]+[Tab] - I'm a mouse user - [Center Click] --» My Panel  2013_10_25_12_48_31_1920x1080_Sector11.jpg

Last edited by Sector11 (2013-10-25 15:54:38)


#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Online

#12 2013-10-25 15:52:39

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,077
Website

Re: No system tray ftw :P

ChickenPie4Tea wrote:

hmm, no panel so system tray - where is this going?
how abt no computer just a nice plain white piece of paper and write notes to friends and post them lol

More space for conkys.   lol  lol  lol  lol  lol


#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Online

#13 2013-10-25 17:40:30

sorcerer's_apprentice
#! Junkie
From: oblivion
Registered: 2013-02-09
Posts: 293

Re: No system tray ftw :P

Sector11 wrote:
sorcerer's_apprentice wrote:

I adjusted "size = xxx, xxx" in ~/.config/terminator/config but that doesn't yield the expected effect...

Any ideas on how to do this?

man terminator

Thanks for RTFM'ing me... tongue

Regarding the commands you provided:

Thanks, but they unfortunately lead to the same result as my editing of the config-file, i.e. they don't work with the <maximize> function of OB in rc.xml:

<application class="*">
    <decor>no</decor>
    <maximized>yes</maximized>
</application>

So I switched that back to "no" again in order to be able to have the desired window-size... I assume that the hierarchy of these settings is such that first the application specific ones apply and then OB renders its setting on top of them which would explain that my intended setup doesn't work. I guess, I would have to specify the automax-function for each application separately.

But thanks anyway.

Last edited by sorcerer's_apprentice (2013-10-25 17:44:24)

Offline

#14 2013-10-25 17:52:49

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,077
Website

Re: No system tray ftw :P

sorcerer's_apprentice wrote:

But thanks anyway.

Sorry ... I quoted man page for the "--geometry=" function, since I saw you using 'size=' ... I'll have to read things more carefully next time, I didn't see that you meant to use it in the OB rc file


#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Online

#15 2013-10-25 18:03:58

sorcerer's_apprentice
#! Junkie
From: oblivion
Registered: 2013-02-09
Posts: 293

Re: No system tray ftw :P

Sector11 wrote:
sorcerer's_apprentice wrote:

But thanks anyway.

Sorry ... I quoted man page for the "--geometry=" function, since I saw you using 'size=' ... I'll have to read things more carefully next time, I didn't see that you meant to use it in the OB rc file

big_smile Indeed. Because now you have confused two things... big_smile

The size-thing is from ~/.config/terminator/config - and the maximize-thing is in OB's rc.xml. wink

Offline

#16 2013-10-25 18:38:52

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,077
Website

Re: No system tray ftw :P

Aaaaaaaaaaaaa ---> https://www.youtube.com/watch?v=oU_rqm7WPPI

Is the end result that you want that terminaror @ size=wxh on desktop X and opens as such when  you boot up?

If that is what you want, and still want terminator to act normally with other uses: "wmctrl"

In OB autostart bash script:
(sleep 1s && wmctrl -s 2 && terminator --geometry=1700x1080+0+0 -b) &

where sleep is what you want|need and wmctrl starts at 0 so desktop 3 is "wmctrl -s 2"

If that's not it'll quietly leave by the back door.


#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Online

#17 2013-10-26 14:41:33

sorcerer's_apprentice
#! Junkie
From: oblivion
Registered: 2013-02-09
Posts: 293

Re: No system tray ftw :P

Sector11 wrote:
(sleep 1s && wmctrl -s 2 && terminator --geometry=1700x1080+0+0 -b) &

That did the trick (after a little adjustment). Thanks!

Offline

#18 2013-10-26 15:35:51

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,077
Website

Re: No system tray ftw :P

sorcerer's_apprentice wrote:
Sector11 wrote:
(sleep 1s && wmctrl -s 2 && terminator --geometry=1700x1080+0+0 -b) &

That did the trick (after a little adjustment). Thanks!

You're welcome.
Had my hand on the back doorknob for a quick getaway ...  smile

Now to relax and have a coffee.


#! Conky = 13 Threads & the Conky Archives | Conky PitStop | OHCG'er
#! Forum Moderator   |   StartPage -  protect your privacy   |   BBQ Linux

Online

#19 2013-10-27 07:08:35

Resident Bot
#! Die Hard
From: The Netherlands
Registered: 2012-02-17
Posts: 573

Re: No system tray ftw :P

Sector11 wrote:
ChickenPie4Tea wrote:

hmm, no panel so system tray - where is this going?
how abt no computer just a nice plain white piece of paper and write notes to friends and post them lol

More space for conkys.   lol  lol  lol  lol  lol

LOL, I can understand that - conky is amazing and I just clicked on the link in your sig to that conky-pit stop site - WOW  yikes


Troll = not a fanatic
slave of #!  and arch

Offline

#20 2013-10-30 13:42:55

sysaxed
#! Member
Registered: 2013-03-25
Posts: 61

Re: No system tray ftw :P

My decorations are turned off as well, but I cannot live without a taskbar. How else would you close many windows without it?

tint2:

mouse_right = close

Last edited by sysaxed (2013-10-30 13:43:48)

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.

Debian Logo