You are not logged in.

#1 2019-05-31 10:47:44

ghorvath
Member
Registered: 2015-10-01
Posts: 137

Porting the openbox feel of BL to xfce4

The history of the idea (for me at least) came from this thread:
https://forums.bunsenlabs.org/viewtopic.php?id=5814

In short, I installed xfce4, because it provides one functionality about multi-monitor setup that openbox doesn't, see above thread if you are curious about the details.

However, a lot of things doesn't work in xfce (out of the box) as they used to in the old openbox. I care less about the look and background (though I very much like the BL style), I am more annoyed by missing the menu, the keyboard shortcuts and that ~/.config/openbox/autostart doesn't run automatically. Also, double tapping on my laptop was recognized automatically in openbox, even without running syndaemon, and that is gone.

I am wondering if anyone has any (reasonably fast) suggestions on how to make the xfce4 desktop as close to the openbox BL feel as possible?

Thanks.

Offline

#2 2019-05-31 16:34:22

ohnonot
...again
Registered: 2015-09-29
Posts: 3,741
Website

Re: Porting the openbox feel of BL to xfce4

xfce4-settings should have all the answers.
no, there's no central autostart script, but it's all there via GUI settings, you can add apps & commands to startup.
you can disable xfce4-panel and use tint2 instead.
xfce has its own keyboard shortcuts system (and a GUI for it).
etc.
there really isn't much more to say.
XFCE still has the advantage that it stores its settings in plain text files - XML mostly, iirc - so some manual editing might be possible.

Offline

#3 2019-06-01 04:36:38

hhh
Meep!
Registered: 2015-09-17
Posts: 7,687
Website

Re: Porting the openbox feel of BL to xfce4

Xfce and Openbox are 2 different beasts that share things in common (because we steal a lot of Xfce's best apps).

It's been ages man, I ran Xfce4/#! as my main DE, but that ended with The End. I'll have to post a tutorial, but it won't be before lithium comes out.

Right-click menu... Right-click to bring up the default Xfce menu, find the entry to change the menu tongue (maybe configure desktop>Desktop icons>No icons? Goddammit, I need to install https://packages.debian.org/buster/task-xfce-desktop *sigh* hang on...)

-edit- Sorry, ghorvath. I've had 2 brutal work days in a row and I have no testing partition available ATM. This will have to wait on my end til Tue/Wed. I promise I'll post back.

Post your updates, please.

Last edited by hhh (2019-06-01 04:49:31)

Offline

#4 2019-06-01 13:54:43

clusterF
Member
Registered: 2019-05-07
Posts: 36

Re: Porting the openbox feel of BL to xfce4

This is what i would do. If you have the xfce4 desktop running.

1. got to session and startup in settings
2. in application autostart create a new setting "openbox" with command "openbox"
3. in session and startup "Session" look to restart style of "xfwm4" and put to "never" by click to present a drop down box.
4. do the same step as step 3 above only for xfdesktop.
5. Dont log in as the openbox session, log in as the xfce4 session.

This way you will have a working xfce4 session but using the openbox window manager, you will lose some functionality of xfce4 though so this may not work for your screen issues.

Also maybe do step 3 for the xfce4 panel if you want to use tint2.

Last edited by clusterF (2019-06-01 13:55:46)

Offline

#5 2019-06-02 05:08:06

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,308
Website

Re: Porting the openbox feel of BL to xfce4

^Unfortunately, it was precisely the screen issues that prompted the OP to try moving from openbox to xfwm4.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#6 2019-06-07 12:26:16

clusterF
Member
Registered: 2019-05-07
Posts: 36

Re: Porting the openbox feel of BL to xfce4

Hi johnraff and ghorvath, I was just playing around in xfce and using tint2 and jgmenu.
jgmenu has an inbuilt function to use the OB menu you are using so it should be able to invoke the bunsenlabs menu. I created a button in tint2 and run jgmenu_run ob inside the jgmenurc with jgmenu_run inside the tint2 button command.So i have an xfce4 session with xfwm and xfdesktop but running tint2 and jgmenu_run ob for the menu.

Works a treat.

Below is my jgmenurc

csv_cmd             = jgmenu_run ob
tint2_look          = 1
menu_width          = 90
menu_height_min     = 400
menu_height_max     = 510
menu_padding_top    = 10
menu_padding_right  = 2
menu_padding_bottom = 1
menu_padding_left   = 10
menu_border         = 1
item_height         = 30
item_radius         = 2
item_border         = 1
icon_theme			= Papirus
color_menu_bg       = #212121 100
color_menu_border   = #eeeeee 20
#color_norm_fg       = #eeeeee 100
#color_sel_bg        = #ffffff 20
#color_sel_fg        = #eeeeee 100
#color_sel_border    = #eeeeee 8
color_scroll_ind    = #000000 0
csv_name_format     = %n\n<span size="x-small">%g</span>
csv_no_dirs         = 1

and the tint2rc (im using a horizontal bar on left hand side with jgmenu button at the top)

#---- Generated by tint2conf 1c04 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for 
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Battery, Clock, Inactive taskbar, Launcher, Systray
rounded = 0
border_width = 1
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #080706 100
border_color = #000000 100
background_color_hover = #181818 85
border_color_hover = #303030 85
background_color_pressed = #303030 85
border_color_pressed = #606060 85

# Background 2: Active taskbar
rounded = 0
border_width = 1
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #404040 85
border_color = #808080 85
background_color_hover = #404040 85
border_color_hover = #808080 85
background_color_pressed = #404040 85
border_color_pressed = #808080 85

# Background 3: Active task
rounded = 0
border_width = 1
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #cfcfcf 50
border_color = #e7e7e7 50
background_color_hover = #cfcfcf 50
border_color_hover = #e7e7e7 50
background_color_pressed = #cfcfcf 50
border_color_pressed = #e7e7e7 50

# Background 4: Urgent task
rounded = 0
border_width = 1
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #cfcfcf 80
border_color = #e7e7e7 80
background_color_hover = #cfcfcf 90
border_color_hover = #e7e7e7 90
background_color_pressed = #cfcfcf 50
border_color_pressed = #e7e7e7 50

# Background 5: Default task, Iconified task, Launcher icon, Normal task
rounded = 0
border_width = 1
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #cfcfcf 0
border_color = #e7e7e7 0
background_color_hover = #cfcfcf 30
border_color_hover = #e7e7e7 30
background_color_pressed = #cfcfcf 70
border_color_pressed = #e7e7e7 70

# Background 6: Tooltip
rounded = 0
border_width = 1
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #181818 85
border_color = #303030 85
background_color_hover = #181818 85
border_color_hover = #303030 85
background_color_pressed = #181818 85
border_color_pressed = #303030 85

# Background 7: Panel
rounded = 0
border_width = 1
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #000000 100
border_color = #000000 0
background_color_hover = #000000 0
border_color_hover = #000000 0
background_color_pressed = #000000 0
border_color_pressed = #000000 0

# Background 8: Button
rounded = 0
border_width = 1
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #080706 100
border_color = #000000 100
background_color_hover = #e3000e 100
border_color_hover = #303030 85
background_color_pressed = #303030 85
border_color_pressed = #606060 85

#-------------------------------------
# Panel
panel_items = PLTSCP
panel_size = 101% 50
panel_margin = 0 0
panel_padding = 0 0 0
panel_background_id = 7
wm_menu = 1
panel_dock = 1
panel_position = bottom left vertical
panel_layer = top
panel_monitor = 1
panel_shrink = 0
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 2
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 0
mouse_effects = 1
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 25
scale_relative_to_dpi = 0
scale_relative_to_screen_height = 0

#-------------------------------------
# Taskbar
taskbar_mode = multi_desktop
taskbar_hide_if_empty = 0
taskbar_padding = 0 0 1
taskbar_background_id = 1
taskbar_active_background_id = 2
taskbar_name = 0
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 0 0
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font = Liberation Sans Bold 10
taskbar_name_font_color = #000000 100
taskbar_name_active_font_color = #000000 100
taskbar_distribute_size = 0
taskbar_sort_order = none
task_align = left

#-------------------------------------
# Task
task_text = 0
task_icon = 1
task_centered = 1
urgent_nb_of_blink = 65535
task_maximum_size = 24 24
task_padding = 0 0 2
task_font = Liberation Sans 10
task_tooltip = 1
task_thumbnail = 0
task_thumbnail_size = 210
task_font_color = #e7e7e7 80
task_normal_font_color = #e7e7e7 80
task_active_font_color = #e7e7e7 80
task_urgent_font_color = #e7e7e7 100
task_iconified_font_color = #e7e7e7 60
task_icon_asb = 90 0 0
task_normal_icon_asb = 90 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 10
task_iconified_icon_asb = 35 0 0
task_background_id = 5
task_normal_background_id = 5
task_active_background_id = 3
task_urgent_background_id = 4
task_iconified_background_id = 5
mouse_left = toggle_iconify
mouse_middle = close
mouse_right = maximize_restore
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#-------------------------------------
# System tray (notification area)
systray_padding = 5 5 1
systray_background_id = 1
systray_sort = ascending
systray_icon_size = 24
systray_icon_asb = 100 0 0
systray_monitor = 1
systray_name_filter = 

#-------------------------------------
# Launcher
launcher_padding = 2 2 1
launcher_background_id = 1
launcher_icon_background_id = 5
launcher_icon_size = 26
launcher_icon_asb = 100 0 0
launcher_icon_theme = Papirus-Dark
launcher_icon_theme_override = 0
startup_notifications = 1
launcher_tooltip = 1
launcher_item_app = /usr/share/applications/firefox.desktop
launcher_item_app = /usr/share/applications/geany.desktop
launcher_item_app = /usr/share/applications/org.keepassxc.KeePassXC.desktop
launcher_item_app = /usr/share/applications/exo-file-manager.desktop
launcher_item_app = /usr/share/applications/exo-terminal-emulator.desktop

#-------------------------------------
# Clock
time1_format = %R
time2_format = 
time1_font = Sans Bold 10
time1_timezone = 
time2_timezone = 
clock_font_color = #e7e7e7 80
clock_padding = 1 1
clock_background_id = 1
clock_tooltip = %Y-%m-%d %H:%M:%S
clock_tooltip_timezone = 
clock_lclick_command = gsimplecal
clock_rclick_command = gsimplecal
clock_mclick_command = gsimplecal
clock_uwheel_command = 
clock_dwheel_command = 

#-------------------------------------
# Battery
battery_tooltip = 1
battery_low_status = 10
battery_low_cmd = notify-send -u critical "Battery low"
battery_full_cmd = 
bat1_font = Liberation Sans 10
bat2_font = Liberation Sans 10
battery_font_color = #e7e7e7 80
bat1_format = 
bat2_format = 
battery_padding = 1 1
battery_background_id = 1
battery_hide = 101
battery_lclick_command = 
battery_rclick_command = 
battery_mclick_command = 
battery_uwheel_command = 
battery_dwheel_command = 
ac_connected_cmd = notify-send -u normal "AC connected"
ac_disconnected_cmd = notify-send -u normal "AC disconnected"

#-------------------------------------
# Button 1
button = new
button_icon = jgmenu
button_text = 
button_lclick_command = jgmenu_run
button_rclick_command = 
button_mclick_command = 
button_uwheel_command = 
button_dwheel_command = 
button_font = Liberation Sans 12
button_font_color = #000000 100
button_padding = 0 0
button_background_id = 8
button_centered = 1
button_max_icon_size = 26

#-------------------------------------
# Button 2
button = new
button_icon = exit
button_text = 
button_lclick_command = xfce4-session-logout
button_rclick_command = 
button_mclick_command = 
button_uwheel_command = 
button_dwheel_command = 
button_font_color = #000000 100
button_padding = 0 0
button_background_id = 8
button_centered = 1
button_max_icon_size = 24

#-------------------------------------
# Tooltip
tooltip_show_timeout = 0
tooltip_hide_timeout = 0
tooltip_padding = 3 3
tooltip_background_id = 6
tooltip_font_color = #e7e7e7 80
tooltip_font = Liberation Sans 10

Last edited by clusterF (2019-06-07 12:32:14)

Offline

#7 2019-06-08 00:25:37

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,308
Website

Re: Porting the openbox feel of BL to xfce4

^Glad you got it working!


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

Board footer

Powered by FluxBB