SpaceFM and Sakura Terminal tip

Get help with the Openbox desktop
nanZor
Shogun
Shogun
Posts: 469
Joined: 09 Apr 2019, 03:27
Distribution: Porteus 5.1 Alpha XFCE

SpaceFM and Sakura Terminal tip

Post#1 by nanZor » 03 Apr 2025, 23:27

Porteus Openbox : great for low-mem machines, or if you just dig doing it your own way. The combination of the Spacefm file manager and Sakura for the terminal is one of my favorite combos. (Thanks devs!)

How to stop the SpaceFM tab madness! (is it a feature or a bug, only you will know!) :)
I love it, but if one isn't used to it ..

For the classical approach without laying out a string of tabs for every device or directory you visit, you can turn off (uncheck) the tab function:

Devices > Settings > [ ] New Tab

Sakura Terminal:
Where are the menu options? Something's broken! Not so. Simply right-click to get the dropdowns of options.

Openbox: Become one with it.
That's a UNIX book - cool. -Garth

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4256
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

SpaceFM and Sakura Terminal tip

Post#2 by ncmprhnsbl » 04 Apr 2025, 00:14

nanZor wrote:
03 Apr 2025, 23:27
Openbox: Become one with it.
tip: if you want a more "openboxy" feel, there is a cheatcode: "nodesktop"
this will stop spacefm from managing the desktop, therefore no desktop icons and the openbox right-click menu will work (& hsetroot supplies the wallpaper)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 768
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

SpaceFM and Sakura Terminal tip

Post#3 by rych » 04 Apr 2025, 09:04

ncmprhnsbl: 'a more "openboxy" feel, there is a cheatcode: "nodesktop"'
I'm trying it now, it loads OpenBox, and apart from a different wallpaper I don't see any difference. Firstly how do I remove that wallpaper? And which would you recommend: with or without nodesktop? If SpaceFM doesn't manage desktop, who does instead and why does it matter?

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4256
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

SpaceFM and Sakura Terminal tip

Post#4 by ncmprhnsbl » 04 Apr 2025, 13:56

rych wrote:
04 Apr 2025, 09:04
cheatcode: "nodesktop"
first up, my apologies, the correct cheat is nodesk but by the looks of the script below, partial match is good enough..
rych wrote:
04 Apr 2025, 09:04
If SpaceFM doesn't manage desktop, who does instead and why does it matter?
nobody :) in the sense that there is no "desktop" except a directory called ~/Desktop and it doesn't matter unless you want that i.e. icons that sit in front of your wallpaper that you can drag around.
and there's the rightclick menu from openbox ... apart from that not much since spacefm has a pretty light handed approach the 'desktop management'.
here's how the cheat works: /etc/xdg/openbox/autostart:

Code: Select all

## check for "nodesk" cheatcode, if present don't let spacefm manage the "desktop"
## and use hsetroot to set the background
if [ `grep -o "^nodesk" /etc/bootcmd.cfg` ]; then
	hsetroot -fill /usr/share/wallpapers/porteus.jpg &
	sed -i 's/=spacefm --set-wallpaper/=hsetroot -fill/g' ~/.config/spacefm/session &
else
	spacefm --desktop &
fi
so, one could simply edit the autostart instead of using the cheatcode
and to change the wallpaper edit the path on the hsetroot line.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

nanZor
Shogun
Shogun
Posts: 469
Joined: 09 Apr 2019, 03:27
Distribution: Porteus 5.1 Alpha XFCE

SpaceFM and Sakura Terminal tip

Post#5 by nanZor » 04 Apr 2025, 22:13

Oh wow, this is great!

While we're in Alpha, I wonder if there would be a difference between spacefm and ZZZspacefm? I'm not deep enough to know if it would be beneficial.

I noticed Sakura has been updated a few times. I'm not one to chase the latest and greatest on the bleeding edge though, but thought I'd bring it up. I'm happy as is, and again, thanks to the devs for OpenBox Porteus.
That's a UNIX book - cool. -Garth

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4256
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

SpaceFM and Sakura Terminal tip

Post#6 by ncmprhnsbl » 08 Apr 2025, 02:59

nanZor wrote:
04 Apr 2025, 22:13
difference between spacefm and ZZZspacefm?
there's a couple of other forks around i'll probly use (most of their fixes are to do with wayland but some do apply more generally)
the main reason i've used the 'alpha' branch of spacefm proper has been for the ability to show directory sizes, which can be handy sometimes(if a little inaccurate)
and see a brand new release of sakura(3.3.9) just out ... the build used here was in a pretty stable state, though.

some unsolicited spacefm tips:
the path bar:
ctrl+click on any part of the path to jump to that directory
ctrl+l(L) to focus the path bar
shift+bkspc to clear the path bar
$+<command> to run a command in a dialog (eg. $ls will spawn a small window listing the contents of the pwd)
++ <command> to run a command in a terminal
% + <string> to select files by a pattern (eg. % *.sh to select all files with .sh extension )
& + <command> to run and forget like using <command> & in a shell (eg. to launch anything you want)
and each of those comes with a (limited to the session) history dropdown each time they're invoked
further reading: https://ignorantguru.github.io/spacefm/ ... ui-pathbar
Last edited by ncmprhnsbl on 09 Apr 2025, 00:19, edited 1 time in total.
Reason: fixed the "further reading" link
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 768
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

SpaceFM and Sakura Terminal tip

Post#7 by rych » 08 Apr 2025, 11:34

ncmprhnsbl: 'a more "openboxy" feel, there is a cheatcode: "nodesk"'

-- Something else is different, a side-effect, with nodesk: OpenBox now globally intercepts Ctrl+` keyboard shortcut, possibly others too. Ctrl+` now opens the system network notification for me. Where do I turn them off? My two (?) rc.xml files don't seem to have it, or I can't find it. Without nodesk when SpaceFM is managing desktop, Ctrl+` has no effect.

ctrl+click on any part of the path to jump to that directory
that's useful by the way, thanks

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4256
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

SpaceFM and Sakura Terminal tip

Post#8 by ncmprhnsbl » 09 Apr 2025, 00:30

rych wrote:
08 Apr 2025, 11:34
-- Something else is different, a side-effect, with nodesk: OpenBox now globally intercepts Ctrl+` keyboard shortcut, possibly others too. Ctrl+` now opens the system network notification for me. Where do I turn them off? My two (?) rc.xml files don't seem to have it, or I can't find it. Without nodesk when SpaceFM is managing desktop, Ctrl+` has no effect.
that's interesting, because ctrl+` is the dunst(notification daemon) builtin keybind for history (which that network notification would be in)
which raises two questions: why doesn't work with `spacefm --desktop` and how to turn it off or rebind it .. (not seeing anything obvious for it in dunstrc)
short answers for now: i don't know :)
EDIT: ok, for the dunst version shipped, see /etc/xdg/dunst/dunstrc and look for [shortcuts] section; within that, "history = ctrl+grave" among others, set or unset these as you please.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply