add xxkb to startup on fluxbox (solved)

Help for MX Fluxbox
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
G77
Posts: 9
Joined: Fri Nov 03, 2023 8:46 pm

add xxkb to startup on fluxbox (solved)

#1 Post by G77 »

HI.

I would Like to us xxkb in the system tray..
package is installed, and rum from terminal with the command: xxkb.
with a warning: Incomplete geometry for mainwindow... but it works anyway.

I would Like to add xxkb to startup applications. so I edit the file: /etc/skel/.fluxbox/startup
I added at the end of the file the command:

Code: Select all

sleep 10 xxkb &
Is this the correct way to add a startup application ?

Thanks
Last edited by G77 on Sat Nov 04, 2023 4:29 pm, edited 1 time in total.

User avatar
siamhie
Global Moderator
Posts: 3749
Joined: Fri Aug 20, 2021 5:45 pm

Re: add xxkb to startup on fluxbox

#2 Post by siamhie »

No. You would add it to ~/.fluxbox/startup instead.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
i_ri
Posts: 1133
Joined: Tue Jun 30, 2015 12:26 am

Re: add xxkb to startup on fluxbox

#3 Post by i_ri »

Hello G77 and siamhie
invalid sleep command. Form it like the other examples in the home startup. (sleep 10s;xxkb) &

User avatar
siamhie
Global Moderator
Posts: 3749
Joined: Fri Aug 20, 2021 5:45 pm

Re: add xxkb to startup on fluxbox

#4 Post by siamhie »

i_ri wrote: Fri Nov 03, 2023 10:22 pm Hello G77 and siamhie
invalid sleep command. Form it like the other examples in the home startup. (sleep 10s;xxkb) &

I wasn't paying attention to the command but the location (/etc/skel/.fluxbox/startup) where he thought it should be placed.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
i_ri
Posts: 1133
Joined: Tue Jun 30, 2015 12:26 am

Re: add xxkb to startup on fluxbox

#5 Post by i_ri »

good job siamhie.
G77 plays with [xxkb &] startup and disappears. Oh-No!,,,, You Okay?G77?

User avatar
siamhie
Global Moderator
Posts: 3749
Joined: Fri Aug 20, 2021 5:45 pm

Re: add xxkb to startup on fluxbox

#6 Post by siamhie »

G77 wrote: Fri Nov 03, 2023 8:55 pm I added at the end of the file the command:

Also don't add it to the end of the file. It needs to be before this section.

Code: Select all

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec fluxbox
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

G77
Posts: 9
Joined: Fri Nov 03, 2023 8:46 pm

Re: add xxkb to startup on fluxbox

#7 Post by G77 »

HI Guys
Thanks but non of the option works.
(sleep 10s;xxkb) & or xxkb &

I tried maybe to add something else "cbatticon &" which is battery indicator... but nothing happen...

here is the file /etc/skel/.fluxbox/startup

Code: Select all

        #!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.

#setup default translated mx-fluxbox menu
#only do on first setup of new user
#upgrades are handled by mxflux_install.sh script

# localize fluxbox menu
# to reset default localized menu configuration, delete ~/.fluxbox/menu-chkd
# logout, then log back in to fluxbox session
localize_fluxbox_menu-mx

# mx-welcome if configured to autostart
if [ -e $HOME/.config/autostart/mx-welcome.desktop ]; then
# launch mx-welcome
(sleep 5; /usr/bin/mx-welcome) &
fi

# User folders update
xdg-user-dirs-update
# Update common folders names to match current locale
xdg-user-dirs-gtk-update

#start a compositor if using complicated conkies
#compton &

#set number of seconds before inactive screen turns off
xset -dpms && xset s 600

#add system monitors 
#gkrellm &

# arandr genrated screenlayout 
# before conky

# export Qt variables
export QT_QPA_PLATFORMTHEME=gtk2
export QT_PLATFORMTHEME=gtk2
export QT_PLATFORM_PLUGIN=gtk2

# add selected tint2 panel
tint2session 

# add desktop icons
idesktoggle idesk on 1>/dev/null 2>&1 &

# add root access
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &

#set the default dock
$HOME/.fluxbox/scripts/DefaultDock.mxdk

#conky to follow conky toggle settings
conkystart

#place network manager on the toolbar
nm-applet &

#start keyboard indicator in system stray
xxkb &

#start pipewire before volumeicon so unmute works
pipewire-start
sleep 2
volumeicon -c volumeicon-fluxbox & 

#place clipboard on the toolbar
xfce4-clipman &

#put brightness controller and battery monitor on toolbar
#tint2 has its own battery widget so this is unnecessaary
#xfce4-power-manager &

# start user accessibility bus - if not already running
/usr/libexec/at-spi-bus-launcher --launch-immediately  &

#update app  menu if it doesn't exist
if [ ! -f $HOME/.fluxbox/submenus/full_menu ]; then
    command -v mxfb-menu-generator && mxfb-menu-generator
fi

#get last background selected
#~/.fehbg
nitrogen --restore

# Debian-local change:
#   - fbautostart has been added with a quick hack to check to see if it
#     exists. If it does, we'll start it up by default.
which fbautostart > /dev/null
if [ $? -eq 0 ]; then
    fbautostart
fi

# put apt-notifier on the toolbar
(sleep 6; /usr/bin/apt-notifier) &

# start spice-vdagent in KVM/Qemu 
if [ -x /usr/bin/spice-vdagent ]; then
   pidof -q spice-vdagentd && /usr/bin/spice-vdagent
fi

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

cbatticon &

exec fluxbox
# or if you want to keep a log:
# exec fluxbox -log ~/.fluxbox/log

User avatar
Jerry3904
Administrator
Posts: 23492
Joined: Wed Jul 19, 2006 6:13 am

Re: add xxkb to startup on fluxbox

#8 Post by Jerry3904 »

In case you are interested: there is a plugin for gkrellm that appears to work. Launch gkrellm from RootMenu > Appearance > Monitors
--log out/in
--press F1
--click on "plugins" and check the box next to "xkb"
--click on the "Place" button if you want to put it somewhere other than the bottom of the stack
I only have one language on the system so am unclear about how you get a second language set up
You do not have the required permissions to view the files attached to this post.
Production: MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
siamhie
Global Moderator
Posts: 3749
Joined: Fri Aug 20, 2021 5:45 pm

Re: add xxkb to startup on fluxbox

#9 Post by siamhie »

G77 wrote: Sat Nov 04, 2023 10:03 am HI Guys
Thanks but non of the option works.


here is the file /etc/skel/.fluxbox/startup

That's not where you put the startup commands for fluxbox in. Read my post (#2) again.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
Jerry3904
Administrator
Posts: 23492
Joined: Wed Jul 19, 2006 6:13 am

Re: add xxkb to startup on fluxbox

#10 Post by Jerry3904 »

Another BTW: gxkb installs and appears in the systray. It's written in C and brings no other Gnome files in, according to the man file.

The entry in ~/.fluxbox/startup would simply need something like this

Code: Select all

#keyboard switcher in systray
gxkb &
Again I have not tried to set up a two choice capability. But when I select another language with Root Menu > Settings > Keyboard, it shows up correctly.
Production: MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

Post Reply

Return to “MX Fluxbox Official Release”