Fix weird flux menu

2017-05-03 1 min read Learning Linux

Some distro’s just add all the items under single menu and thus the menu itself becomes unusable because of the number of items in the submenu and this I did not like and hence ceated this simply python script to fix that. For using the script, back up you “menu” file, redirect the output of this script to ‘menu’ file again.

 

#!/bin/python

F = open("~/.fluxbox/menu", "r")
count=0
mkc=1
started=0

for line in F:
    print line.rstrip()

    if '[submenu]' in line.lower() and started == 1:
        print '[end]'

    if '[end]'  in line.lower():
        count=0
        mkc=1
        if started > 0:
             started=0
             # print "Count is {}".format(count)
             # print "Started is {}".format(started)
             print '[end]'
    if '[exec]'  in line.lower():
        if count > 15 :
            if started > 0:
                started=0
                print '[end]'
                # print "Count is {}".format(count)
                # print "Started is {}".format(started)
            print '[submenu] ({})'.format(mkc)
            started=1
            mkc+=1
            count=0
        # print count
        count+=1

Xnest – XDMCP protocol and virtual DM

2012-10-22 2 min read Fedora
An IceWM Xephyr session is running inside a Fl...
An IceWM Xephyr session is running inside a Fluxbox Xephyr session, which is running inside another IceWM Xephyr session, which is running under Linux Mint 8. (Note that Fluxbox is also licensed under the MIT license by the Fluxbox developers, but IceWM is released under the GPL and LGPL by Marko Ma?ek.) (Photo credit: Wikipedia)

XDMCP is protocol that allows remote connections and provides you with a working Display Manager like KDE, GNome, et al. Its a remote connection protocol that is mostly enabled on Solaris and disabled on most Linux boxes. If you need to have a remote session where you need the X Display to open some GUI applications then you can have a connection with the remote server with XDMCP.

Continue reading