Page 1 of 1

How to showdesktop or minimize all windows on Fluxbox Taskbar

Posted: Sun Feb 25, 2024 8:36 am
by pcfan
Hello I have recently installed MX fluxbox in my older computer (moved from Antix to a big issue with sound cards). I found a Dock and a Taskbar.I would like to have on a Taskbar a button to show desktop quickly (sometimes also called "minimize all windows") at the left of it. I studied the ways to edit this taskbar though sometimes I am insecure because it seems to share configuration options with Dock.So, to make sure I hide the Dock.
I edited the task bar, added a new buttom , but cannot find the command to "show desktop". Is there a way to do this?. Another alternative. Thank you.
This is my system :

Code: Select all

[CODE]System:
  Kernel: 6.1.0-18-amd64 [6.1.76-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-amd64 root=UUID=<filter> ro quiet splash
  Desktop: Fluxbox v: 1.3.7 info: tint2 vt: 7 dm: LightDM v: 1.26.0 Distro: MX-23.2_fluxbox_x64
    Libretto January 21 2024 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop Mobo: MICRO-STAR model: G31TM-P21 (MS-7529) v: 1.0 serial: <superuser required>
    BIOS: American Megatrends v: 4.7 date: 07/28/2010
CPU:
  Info: model: Pentium E5300 bits: 64 type: MCP arch: Penryn level: v1 built: 2008
    process: Intel 45nm family: 6 model-id: 0x17 (23) stepping: 0xA (10) microcode: 0xA0B
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB
    L2: 2 MiB desc: 1x2 MiB
  Speed (MHz): avg: 1200 min/max: 1203/2603 scaling: driver: acpi-cpufreq governor: ondemand
    cores: 1: 1200 2: 1200 bogomips: 10399
  Flags: ht lm nx pae sse sse2 sse3 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling, PBRSB-eIBRS: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 82G33/G31 Express Integrated Graphics vendor: Micro-Star MSI driver: i915
    v: kernel arch: Gen-4 process: Intel 65n built: 2006-07 ports: active: VGA-1 empty: none
    bus-ID: 00:02.0 chip-ID: 8086:29c2 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: intel dri: i915 gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1280x1024 s-dpi: 96 s-size: 338x270mm (13.31x10.63") s-diag: 433mm (17.03")
  Monitor-1: VGA-1 mapped: VGA1 model: LG (GoldStar) L1750S serial: <filter> built: 2006
    res: 1280x1024 hz: 60 dpi: 96 gamma: 1.2 size: 338x270mm (13.31x10.63") diag: 433mm (17")
    ratio: 5:4 modes: max: 1280x1024 min: 720x400
  API: OpenGL v: 2.1 Mesa 22.3.6 renderer: i915 (: G33) direct-render: Yes
Audio:
  Device-1: Intel NM10/ICH7 Family High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:27d8 class-ID: 0403
  Device-2: VIA VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio driver: snd_ice1724 v: kernel
    bus-ID: 03:00.0 chip-ID: 1412:1724 class-ID: 0401
  API: ALSA v: k6.1.0-18-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Micro-Star MSI driver: r8169
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d800 bus-ID: 02:00.0 chip-ID: 10ec:8136
    class-ID: 0200
  IF: eth0 state: down mac: <filter>
  Device-2: TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS] type: USB driver: r8188eu bus-ID: 5-2:3
    chip-ID: 2357:010c class-ID: 0000 serial: <filter>
  IF: wlan0 state: up mac: <filter>
Drives:
  Local Storage: total: 298.09 GiB used: 137.7 GiB (46.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: HD322HJ size: 298.09 GiB block-size:
    physical: 512 B logical: 512 B speed: <unknown> type: N/A serial: <filter> rev: 1118 scheme: MBR
Partition:
  ID-1: / raw-size: 30.41 GiB size: 29.76 GiB (97.86%) used: 2.09 GiB (7.0%) fs: ext4
    dev: /dev/sda1 maj-min: 8:1
  ID-2: /usr raw-size: 236.15 GiB size: 231.39 GiB (97.98%) used: 116.01 GiB (50.1%) fs: ext4
    dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 4 GiB used: 4.8 MiB (0.1%) priority: -2 dev: /dev/sda4
    maj-min: 8:4
Sensors:
  System Temperatures: cpu: 47.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 1974 libs: 1016 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/librewolf.list
    1: deb [arch=amd64] http://deb.librewolf.net bookworm main
  Active apt repos in: /etc/apt/sources.list.d/megasync.list
    1: deb [signed-by=/usr/share/keyrings/meganz-archive-keyring.gpg] https://mega.nz/linux/repo/Debian_12/ ./
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://espejito.fder.edu.uy/mxlinux/packages/mx/repo/ bookworm main non-free
Info:
  Processes: 191 Uptime: 1h 21m wakeups: 1 Memory: 3.81 GiB used: 1.82 GiB (47.7%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: BIOS (legacy, CSM, MBR)
[/code]

This is what I have been trying to do , but I am not sure if is the right way.
quickshot_240225_102848.jpg
quickshot_240225_103526.jpg

Re: How to showdesktop or minimize all windows on Fluxbox Taskbar  [Solved]

Posted: Sun Feb 25, 2024 9:41 am
by ceeslans
The correct command (which is actually a toggle command) is:

Code: Select all

fluxbox-remote ShowDesktop
This command will however also hide the tint2 taskbar, which implies that you will loose access to your "show-desktop" button.
To avoid this, you first need to add following lines to your ~/.fluxbox/apps file:

Code: Select all

[app] (class=Tint2)
  [Layer]	{12}
[end]
refresh/restart fluxbox to activate the setting.

In addition, note that you can also use the Alt + D keybinding to hide/show the desktop.
This actually is the faster/better way, since you dont have to add a "show-desktop" button to all individual tint2s configurations

Re: How to showdesktop or minimize all windows on Fluxbox Taskbar

Posted: Mon Feb 26, 2024 10:58 am
by pcfan
Thank you so much, I will try it. Also thanks for the keyboard tip. :D

Re: How to showdesktop or minimize all windows on Fluxbox Taskbar

Posted: Wed Feb 28, 2024 11:38 am
by pcfan
Hi there!, dear friends , first of all I would like to apologize for my spelling mistakes. Then I would like to tell you that I couldn't get this done.
I found the folder "fluxbox" in here /etc/X11
Then added the code given above

Code: Select all

[app] (class=Tint2)
  [Layer]	{12}
[end]
in the "app" file.
And then by editing the taskbar with the Tint2 manager I added a new "launcher" and set the command given above at the beginning. However , the taskbar disappeared and it kept like that even at rebooting.

What did I do wrong?
Also , how do I fix the "volume icon"?

Regards

Re: How to showdesktop or minimize all windows on Fluxbox Taskbar

Posted: Wed Feb 28, 2024 12:22 pm
by Jerry3904
The folder you want is in your home:

~/.fluxbox/apps

Files in the /etc folder are for system use

Re: How to showdesktop or minimize all windows on Fluxbox Taskbar

Posted: Wed Feb 28, 2024 12:38 pm
by pcfan
Jerry3904 wrote: Wed Feb 28, 2024 12:22 pm The folder you want is in your home:

~/.fluxbox/apps

Files in the /etc folder are for system use
Thank you so much!. I will try again.

Re: How to showdesktop or minimize all windows on Fluxbox Taskbar

Posted: Wed Feb 28, 2024 12:47 pm
by ceeslans
@pcfan : the .fluxbox folder in your home directory is a hidden folder (you can recognize it by the dot in front of it).
If you cannot see such dotted folders and files in your file manager, then you can enable viewing.
Open Thunar --> click "View" in the menubar --> and tick the box "Show hidden files"
You can now see hidden folders like .config and .local -- and .fluxbox

Then add the needed lines in ~/.fluxbox/apps file - and refresh/restart fluxbox. Or just log out/in again.

Suggest you check whether it actually works, perhaps by using the Alt+D keybinding. If that is okay, then try the button you created in tint2

Edit: Ninja'd by Jerry :happy:

Re: How to showdesktop or minimize all windows on Fluxbox Taskbar

Posted: Wed Feb 28, 2024 12:52 pm
by pcfan
Thank so much!.

Re: How to showdesktop or minimize all windows on Fluxbox Taskbar

Posted: Wed Feb 28, 2024 6:49 pm
by pcfan
Hello again, I edited the "apps" file however I don't find the way to add the command. I do this:
Tint2 Manager - config - select the theme bar -edit theme - panel elements - add Launcher- launcher button there in command I write the command but nothing happens, just a blink in the taskbar.

Alt + D works perfectly.

Here I attach a pic, however my system is in Spanish I think you will understand ;)
quickshot_240228_2044062.png

Re: How to showdesktop or minimize all windows on Fluxbox Taskbar

Posted: Wed Feb 28, 2024 7:16 pm
by Melber
It looks like you have created an Executor rather than a Button.

Try adding a button to the panel instead. Add the fluxbox-remote ShowDesktop command in the left click command field

240228_tint2.png

Re: How to showdesktop or minimize all windows on Fluxbox Taskbar

Posted: Wed Feb 28, 2024 8:48 pm
by pcfan
Melber wrote: Wed Feb 28, 2024 7:16 pm It looks like you have created an Executor rather than a Button.

Try adding a button to the panel instead. Add the fluxbox-remote ShowDesktop command in the left click command field


240228_tint2.png
Thank you , thank you , thank you , so very much. :hug:

Thank you all guys for helping me!. Fluxbox is excellent, but a new challenge for me, I have MX with xfce in my main computer. And though I have been reading the help file, your help did the trick.

I am sorry for my bad translation of "executor" to " launcher", this is because my system is in Spanish so I adapted it the best I could.

Right now I will create a snapshot, and with this guide will tray to place "volume icon" to get fixed.
:happy: