You are not logged in.

#61 2017-07-10 09:10:28

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: My tint2 config

johnraff wrote:
damo wrote:

Anyone want a shutdown button?

Candidate for the default tint2 maybe?

# Panel
# with shutdown button
panel_items = T:S:C:P
# without shutdown button
#panel_items = T:S:C

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#62 2017-07-10 09:55:49

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: My tint2 config

damo wrote:

^ But if there is no associated icon, for a script my case, it won't work:

button_icon = bl-exit

I notice that the full filepath does work though...and button_max_icon_size is a real help smile

Please explain "won't work", I don't understand what's going on.

If the icon does not exist, a dummy one should be shown. Is that happening?

Is the icon really missing from the theme, or is tint2 failing to find it?

Offline

#63 2017-07-10 10:22:17

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: My tint2 config

^ It isn't present in a "theme", but bl-exit is a script, without an associated icon. The dummy icon does show, but I want it to be "poweroff.png". I guess I could set up a desktop file for it (does tint2 look there?),or put symlinks in a theme but the full filepath is working fine.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#64 2017-07-10 12:54:43

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: My tint2 config

I used file path

/usr/share/icons/Faenza-Dark/actions/24/system-shutdown-panel.png

For the icon button to use for bl-exit.

Confirmed working, thankyou 09000 and all involved. Cheers.

Screenshot-100717-224817.th.png

Offline

#65 2017-07-10 13:02:54

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: My tint2 config

Now to see if i can make a "show desktop" button.

Edit: That one is tricky, best off using keybind W-d

How does this keybind execute though?

Managed to find a way with this script from here: http://bbs.archbang.org/viewtopic.php?id=2867

#!/bin/sh
if wmctrl -m | grep "mode: ON"; then
exec wmctrl -k off
else
exec wmctrl -k on
fi

Cant find appropriate button icon at the moment but used the debian logo / faenza dark icon.

/usr/share/icons/Faenza-Dark/places/24/start-here-debian.png

Left click command:

/home/sc/bin/show_desktop

Screenshot-100717-234303.png

Another edit: Just realised this script interferes with conky and so does keybind W-d. May need some tweaking...will look into that tommorow.

Last edited by Steve (2017-07-10 13:59:00)

Offline

#66 2017-07-10 16:17:06

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,611

Re: My tint2 config

o9000 wrote:

There is now a button plugin: https://gitlab.com/o9000/tint2/blob/mas … .md#button . For this the icon name does not require a full path nor extension (it is searched in the theme).

Example:

button = new
button_icon = tint2conf
button_text =
button_tooltip = Configure panel
button_lclick_command = tint2conf
button_rclick_command =
button_mclick_command =
button_uwheel_command =
button_dwheel_command =
button_font_color = #ffffff 100
button_padding = 2 2
button_background_id = 0
button_centered = 1
button_max_icon_size = 24

Interesting. Any advantage/disadvantage to using buttons instead of launchers? Looks like buttons have more flexability by using all the mouse buttons.


You must unlearn what you have learned.
    -- yoda

Online

#67 2017-07-10 17:05:30

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: My tint2 config

@Steve: I think using just

button_icon = system-shutdown-panel

should be enough when Faenza-Dark is your icon theme. If tint2 cannot find the icon, it's a bug.

@PackRat:

Positioning: All launchers stay together in a grid (depending on the panel size and orientation, this may be a button row, column or a matrix); buttons can be placed anywhere.

Ease of use: Launchers work well for applications with already available desktop files. But for custom commands, they are a bit harder to create and manage: the user needs to create a .desktop file, place it in some reasonable location, remember to copy it when transferring the config to another computer etc. Buttons are easy to configure: run this command, show this icon and/or text, and you're done.

But the reason of existence of buttons is because there have been repeated requests for a start menu in tint2. This is not a trivial task, and other teams can do a much better job than I can (Openbox, jgmenu etc.), so I've decided not to implement a menu, and instead created the button element as a easy to use link between tint2 and an external menu. It is easy to start jgmenu for example.

I was planning to add an option to turn left clicks (or any clicks) into right clicks forwarded to the desktop, to open the Openbox start menu. It feels more natural to have a start button that reacts on left click. Also the current behavior of forwarding right click from the taskbar gets awkward when the panel is full, and you try to find an empty spot that still forwards it.

But of course, buttons can be used as general shortcuts. I use a couple myself.

Last edited by o9000 (2017-07-10 17:07:34)

Offline

#68 2017-07-10 18:38:17

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: My tint2 config

o9000 wrote:

...
I was planning to add an option to turn left clicks (or any clicks) into right clicks forwarded to the desktop, to open the Openbox start menu. It feels more natural to have a start button that reacts on left click. Also the current behavior of forwarding right click from the taskbar gets awkward when the panel is full, and you try to find an empty spot that still forwards it.
....

Start the root-menu, assuming the default keybind in rc.xml...

button_lclick_command = xdotool key super+space

wink


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#69 2017-07-10 19:18:39

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: My tint2 config

"BunsenLabs Start Menu" button: it runs the root-menu
tint-menu.md.png

# Root Menu
button = new
button_icon = bunsenlabs-button.svg
button_text =
button_tooltip = Menu
button_lclick_command = xdotool key super+space
button_rclick_command =
button_mclick_command =
button_uwheel_command =
button_dwheel_command =
button_font_color = #ffffff 100
button_padding = 2 2
button_background_id = 0
button_centered = 1
button_max_icon_size = 32

I suppose that to do it properly, the command should be something like...

if type xdotool &>/dev/null;then xdotool key super+space;else notify-send "You need to install xdotool!";fi

Last edited by damo (2017-07-10 19:34:40)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#70 2017-07-11 19:45:53

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: My tint2 config

o9000 wrote:

This is not a trivial task, and other teams can do a much better job than I can (Openbox, jgmenu etc.), so I've decided not to implement a menu, and instead created the button element as a easy to use link between tint2 and an external menu. It is easy to start jgmenu for example.

Wise decision. Although I'm convinced that your work would have been terrific on a menu too, separating the two elements leaves more space for future creativity. I've been using jgmenu for quite a while now and I'm very satisfied with it already.


o9000 wrote:

I was planning to add an option to turn left clicks (or any clicks) into right clicks forwarded to the desktop, to open the Openbox start menu. It feels more natural to have a start button that reacts on left click. Also the current behavior of forwarding right click from the taskbar gets awkward when the panel is full, and you try to find an empty spot that still forwards it.
But of course, buttons can be used as general shortcuts. I use a couple myself.

I mentioned it already in the bl-obmenu-generator thread what I've just discovered accidentally: It might be indeed a nuisance to find the right spot to open the start menu if the panel is full and there is a window opened full size covering the screen. However: Creating a two-three pixel wide edge on the screen solves the issue (it's not noticeable otherwise)!

I just discovered this edge after putting tint2 to the vertical position. It's comfortable: Just pulling up the mouse pointer to the edge and using a right click works everywhere, even if something like the browser is opened full size.

Offline

#71 2017-07-11 20:01:41

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: My tint2 config

^ #! shipped with a default 1px OB margin, for that very reason.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#72 2017-07-11 20:04:29

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: My tint2 config

True, but it's not obvious smile

Offline

#73 2017-07-12 11:30:39

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: My tint2 config

o9000 wrote:

@Steve: I think using just

button_icon = system-shutdown-panel

should be enough when Faenza-Dark is your icon theme. If tint2 cannot find the icon, it's a bug.

Not using that theme, but could not find a similiar icon in feanza-dark-bunsen so used full path to feanza-dark.

Offline

#74 2017-07-12 17:05:09

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,611

Re: My tint2 config

o9000 wrote:

@Steve: I think using just

button_icon = system-shutdown-panel

should be enough when Faenza-Dark is your icon theme. If tint2 cannot find the icon, it's a bug.

@PackRat:

But of course, buttons can be used as general shortcuts. I use a couple myself.

I'm liking these buttons - similar to the way FvwmButtons handles launchers:

tint2_buttons.th.png

button = new
button_icon = /usr/share/pixmaps/void-logo.png
button_text = Menu
button_tooltip = Application Menu
button_font = Sans Regular 8
button_font_color = #000000 60
button_background_id = 0
button_centered = 0
# horiz vert space icon/text
button_padding = 1 1 2
button_max_icon_size = 28
button_lclick_command = pmenu.py
button_rclick_command = session-exit

button = new
button_icon = /usr/share/pixmaps/gksu-root-terminal.png
button_text = Terminal
button_tooltip = Terminal
button_font = Sans Regular 8
button_font_color = #000000 60
button_background_id = 0
button_centered = 0
# horiz vert space icon/text
button_padding = 1 1 2
button_max_icon_size = 28
button_lclick_command = xfce4-terminal
button_rclick_command = xfce4-terminal -x tmux
button_mclick_command = `gksudo xfce4-terminal`

Last edited by PackRat (2017-07-12 18:58:14)


You must unlearn what you have learned.
    -- yoda

Online

#75 2017-07-16 09:20:28

DustyB
Member
Registered: 2017-07-02
Posts: 61

Re: My tint2 config

Does anyone know how to identify a systray icon that is being used by a particular application... without manually searching for it in the icon theme folder?

Offline

#76 2017-07-16 09:52:19

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: My tint2 config

Should probably be broken into a different thread.

The best I can think of is:

strace -e open REPLACE-WITH-APPLICATION-HERE 2>&1 | grep -E '\.(png|xpm|svg)"'

But you will have to figure out which one is the tray icon.

If the icon is embedded in the executable (as it is for vlc) or it is generated programatically (as it might be for a graph icon), it won't show up.

Offline

#77 2017-07-16 13:18:08

DustyB
Member
Registered: 2017-07-02
Posts: 61

Re: My tint2 config

here is mine ...



# Tint2 config file - D Brahmi

# Background definitions
# ID 1 - panel
rounded = 2
border_width = 0
background_color = #000000 80
border_color = #000000 40

# ID 2 - task
rounded = 2
border_width = 0
background_color = #000000 60
border_color = #686868 40

# ID 3 - task active
rounded = 2
border_width = 1
background_color = #000000 60
border_color = #355564 60

# ID 4 - task urgent
rounded = 2
border_width = 1
background_color = #FF7900 10
border_color = #FF7900 30

# ID 5 - task iconified
rounded = 2
border_width = 0
background_color = #000000 50
border_color = #000000 40

# ID 6 - taskbar
rounded = 2
border_width = 0
background_color = #000000 0
border_color = #000000 0

# ID 7 - active taskbar
rounded = 2
border_width = 0
background_color = #000000 0
border_color = #000000 0

# ID 8 - tooltip
rounded = 2
border_width = 0
background_color = #EBF1F2 60
border_color = #EBF1F2 60

# ID 9 - clock
rounded = 2
border_width = 0
background_color = #000000 0
border_color = #FFFFFF 0

# Panel
panel_monitor = all
panel_position = top center horizontal
panel_size = 99% 20
panel_margin = 1 0
panel_padding = 1 1 1
panel_dock = 0
panel_items = LTSC
wm_menu = 0
panel_layer = top
panel_background_id = 1

# Panel Autohide
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 2
strut_policy = follow_size

# Launcher
launcher_padding = 1 1 1
launcher_background_id = 1
launcher_icon_size = 16
launcher_icon_theme = Moka
launcher_item_app = /usr/share/applications/exo-web-browser.desktop
launcher_item_app = /usr/share/applications/bl-file-manager.desktop 
launcher_item_app = /usr/share/applications/bl-text-editor.desktop
launcher_item_app = /usr/share/applications/bl-terminal-emulator.desktop
launcher_item_app = /usr/share/applications/deluge.desktop
launcher_icon_asb = 70 0 0

# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 0 0 2
taskbar_background_id = 6
taskbar_active_background_id = 7

# Tasks
urgent_nb_of_blink = 10
task_icon = 0
task_text = 1
task_centered = 1
task_maximum_size = 100 19
task_padding = 2 2
task_background_id = 2
task_active_background_id = 3
task_urgent_background_id = 4
task_iconified_background_id = 5

# Task Icons
task_icon_asb = 70 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 70 0 0

# Fonts
task_font = Droid Sans 8
task_font_color = #999999 60
task_active_font_color = #E6E6E6 100
task_urgent_font_color = #0066FD 80
task_iconified_font_color = #6E6E6E 60
font_shadow = 0

# System Tray
systray = 1
systray_padding = 1 0 1
systray_sort = ascending
systray_background_id = 0
systray_icon_theme = Faenza-Bunsen
systray_icon_size = 16
systray_icon_asb = 70 0 100

# Clock
time1_format = %A %d %b | %H:%M
time1_font = Droid Sans 8
clock_font_color = #FFFFFF 80
clock_padding = 2 0
clock_background_id = 9
clock_lclick_command = gsimplecal
clock_rclick_command = xpad

# Tooltips
tooltip = 0
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 8
tooltip_font = sans 10
tooltip_font_color = #000000 80

# Mouse
mouse_middle = none
mouse_right = close
mouse_scroll_up = none
mouse_scroll_down = none

# Battery
battery = 0
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_hide = 98
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #FFFFFF 64
battery_padding = 1 0
battery_background_id = 0

# End of config

Offline

#78 2017-09-30 23:43:06

obscurant
Member
Registered: 2017-08-06
Posts: 150

Re: My tint2 config

Controls for audacious. Could this be adapted to be used on tint2?

Offline

#79 2017-10-01 05:47:49

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: My tint2 config

^ easily.
multiple executors and/or launcher buttons to accomodate some or maybe even all (!) of audacious' command line functions.

maybe currently playing song added to tint2 panel.

i did something similar for mocp, but it is in sore need of an overhaul ... :-(

Last edited by ohnonot (2021-07-02 07:18:32)

Offline

#80 2017-10-02 00:44:29

obscurant
Member
Registered: 2017-08-06
Posts: 150

Re: My tint2 config

ohnonot wrote:

^ easily.
multiple executors and/or launcher buttons to accomodate some or maybe even all (!) of audacious' command line functions.

maybe currently playing song added to tint2 panel.

i did something similar for mocp, but it is in sore
need of an overhaul ... :-(

I'll try that, though my bash scripting is embarrassingly hacky.

Offline

Board footer

Powered by FluxBB