bspwm— an exploration

Forum Forums General Tips and Tricks bspwm— an exploration

  • This topic has 19 replies, 5 voices, and was last updated Aug 30-11:46 am by manyroads.
Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #23791
    Member
    manyroads

      Just in case you are interested in my irreverent posting on bspwm & antiX, you may find it in all its brevity (not) here:
      http://eirenicon.org/2019/06/24/bspwm-an-exploration/

      Pax vobiscum,
      Mark Rabideau - http://many-roads.com
      "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
      dwm & i3wm ~Reg. Linux User #449130
      20 Jan 2021 ~ "End of an Error"

      #23947
      Member
      manyroads
        Helpful
        Up
        0
        ::

        I have posted a new knowledge-base article on “binary space partitioning window manager” (bspwm) Resources and pointers. Enjoy.

        https://eirenicon.org/knowledge-base/binary-space-partitioning-window-manager-bspwm-resources/

        Pax vobiscum,
        Mark Rabideau - http://many-roads.com
        "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
        dwm & i3wm ~Reg. Linux User #449130
        20 Jan 2021 ~ "End of an Error"

        #23949
        Member
        eugen-b
          Helpful
          Up
          0
          ::

          A good compilation of documentation!

          I never bothered that much to set up bspwm from scratch. I always used Manjaro bspwm edition with minor changes to the look and keybindings.
          What I also remember to have done successfully (I mean I liked the result) was replaxing openbox with bspwm as window manager in LXDE.
          What I like about bspwm is that it doesn’t have any window titles – who needs them? You see from the window content what it is. If you need a title it can be shown in the panel if the panel supports it.

          #23975
          Anonymous
            Helpful
            Up
            0
            ::

            http://eirenicon.org/2019/06/24/bspwm-an-exploration/

            antiX standard items I removed from my base antiX19beta for use in my bspwm install

            “standard” items? For which antiX “edition”?
            Core // Base // Full
            (A blog reader will have no idea which edition the blogpost describes, and may be confused upon installing a different edition.)

            Anyhoo…
            reading this reminded me to upload some “for reference” lists that you might find interesting.

            antiX17_FULL_installed-pkgs.txt
            antiX17_BASE_installed-pkgs.txt
            antiX17_CORE_installed-pkgs.txt

            antiX17_inBase_NOTincore.txt
            antiX17_inCore_NOTinBase.txt
            antiX17_inbothCOREandBASE.txt

            antiX17_inFULL_notinBASE.txt
            antiX17_inBASE_notinFULL.txt

            I’ll mention that the latter (in BASE not in FULL) is the list I found to be the most interesting.

            ps:
            Present in each antiX Core // Base // Full iso:
            /usr/share/antiX/installed-packages.txt
            ^–> This list is not auto-regenerated if you remaster, or create a respin.
            At any time, you can view an up-to-date listing of currently installed packages, via:
            dpkg -l
            and you might consider generating a “baseline, for reference” list immediately prior to performing a remaster operation
            dpkg -l >> /some/path/filename.txt

            #23979
            Member
            manyroads
              Helpful
              Up
              0
              ::

              @skidoo I have been futzing with antiX19beta for the materials related to bspwm. Thank you for the pointers. I will use them.
              I am actually making some decent progress. I have not tried to make my efforts fully reproduceable, yet. What I’m building are two control panels (workstations):
              — One is focused on providing tools to create podcasts & videocasts.
              — The second is geared to conducting research and writing/authoring results/ findings (primarily for genealogy).

              Both workstations assume that tools will appear in fixed locations across dual screens.

              Thus far bspwm seems very well suited to the task.

              Pax vobiscum,
              Mark Rabideau - http://many-roads.com
              "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
              dwm & i3wm ~Reg. Linux User #449130
              20 Jan 2021 ~ "End of an Error"

              #23987
              Member
              ex_Koo
                Helpful
                Up
                0
                ::

                @ manyroads

                You may find something useful here ?

                reddit-bspwm
                unixporn-bspwm
                bspwm for dummies
                deviantart-bspwm
                bspwm-arcolinux
                bleeding-edge-bspwm <<bit old but maybe something>>
                bspwm on Debian 10 <<I know you don’t like videos >>

                bspc rule -a Control Centre state=floating << this may help you with over sized cell >>

                #24015
                Member
                manyroads
                  Helpful
                  Up
                  0
                  ::

                  Again, I owe you one @Koo. Thank you.

                  Pax vobiscum,
                  Mark Rabideau - http://many-roads.com
                  "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
                  dwm & i3wm ~Reg. Linux User #449130
                  20 Jan 2021 ~ "End of an Error"

                  #24215
                  Member
                  manyroads
                    Helpful
                    Up
                    0
                    ::

                    Hello all… I have hit a small snag. I am trying to get the desktop-session-exit to open and execute as a ‘pop-up’; I have tried the next command in bspwmrc without success.

                    bspc rule -a desktop-session-exit state-floating follow=on

                    Any suggestions? Ideas?

                    • This reply was modified 3 years, 10 months ago by manyroads.
                    • This reply was modified 3 years, 10 months ago by manyroads.

                    Pax vobiscum,
                    Mark Rabideau - http://many-roads.com
                    "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
                    dwm & i3wm ~Reg. Linux User #449130
                    20 Jan 2021 ~ "End of an Error"

                    #24218
                    Anonymous
                      Helpful
                      Up
                      0
                      ::

                      The desktop-session-exit “popup” is
                      /usr/local/lib/desktop-session/desktop-session-exit.py
                      and, on_button_click, it passes back to /usr/local/bin/desktop-session-exit
                      ( which, in turn, sources /usr/local/lib/desktop-session/desktop-session-file-locations.sh )

                      These scripts are provided by the package “desktop-session-antix”

                      Within desktop-session-file-locations.sh you can see (Line20) references to additional scripts associated with each of the various buttons.

                      — snip —
                      desktop_session_logout=”$lib_dir/desktop-session-logout“;
                      desktop_session_restart=”$lib_dir/desktop-session-restart“;
                      desktop_session_exit_gui=”$lib_dir/desktop-session-exit.py“;

                      #24219
                      Anonymous
                        Helpful
                        Up
                        0
                        ::

                        An alternative may be the package “lxsession-logout” or “obsession”.

                        .

                        .

                        #24225
                        Member
                        manyroads
                          Helpful
                          Up
                          0
                          ::

                          @skidoo Thank you! I’ll try them all to see which works “most elegantly.”

                          Pax vobiscum,
                          Mark Rabideau - http://many-roads.com
                          "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
                          dwm & i3wm ~Reg. Linux User #449130
                          20 Jan 2021 ~ "End of an Error"

                          #24505
                          Member
                          manyroads
                            Helpful
                            Up
                            0
                            ::

                            I am pleased to announce that effective today… I am running MXLinux 18.3 with bspwm. I think I have most things functional, including pop-up help to aid my ‘remembery’ (to quote Winnie-the-Pooh).

                            I have also gotten bspwm to work on antiX19b1.

                            I will post tutorials related to my bspwm exploration (learnings) as soon as I am able to write them.

                            A more detail update may be found at: http://eirenicon.org/2019/07/15/bspwm-an-update/

                            Pax vobiscum,
                            Mark Rabideau - http://many-roads.com
                            "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
                            dwm & i3wm ~Reg. Linux User #449130
                            20 Jan 2021 ~ "End of an Error"

                            #24556
                            Anonymous
                              Helpful
                              Up
                              0
                              ::

                              kudos for your perseverance toward builidng your “Happy Place”.

                              FYI, in the as-shipped antiX19beta2, removal of SLiM does not present the problem you previously described.
                              The snag you encountered (you were attempting to customize antiX17?) may have hinged on your /etc/slimf.conf containing a “sessions” line (vs “sessiondir” line).

                              .

                              .

                              .

                              #24560
                              Member
                              ex_Koo
                                Helpful
                                Up
                                0
                                ::

                                @manyroads

                                Nice to see you making good head way well done..

                                ——Desktop Exit—–

                                #!/bin/bash
                                #exit  antix bash backend
                                . /usr/local/lib/desktop-session/desktop-session-file-locations.sh
                                
                                help() {
                                    echo "Usage:"
                                    echo "-l | --logout     Logout of the current session";
                                    echo "-L | --lock       Lock the current session";
                                    echo "-h | --hibernate  Set the machine into hibernate";
                                    echo "-s | --shutdown   Shutdown your machine";
                                    echo "-S | --suspend    Set the machine into suspend";
                                    echo "-r | --reboot     Reboot your machine";
                                    echo "-R | --restart    Restart the session";
                                    }
                                
                                case $1 in
                                -l|--logout)
                                    $desktop_session_logout
                                    ;;
                                -L|--lock)
                                    xlock
                                    ;;
                                h|--help)
                                    help
                                    ;;
                                #-H|--hibernate)
                                #    sudo pm-hibernate
                                #    ;;
                                -s|--shutdown)
                                    if [ -e /etc/live/config/save-persist -o -e /live/config/persist-save.conf ] && which persist-config &> /dev/null; then
                                        sudo persist-config --shutdown --command poweroff
                                    else
                                        sync
                                        sudo chvt 1
                                        sudo poweroff
                                    fi
                                    ;;
                                -S|--suspend)
                                    sudo pm-suspend
                                    ;;
                                -r|--reboot)
                                    if [ -e /etc/live/config/save-persist -o -e /live/config/persist-save.conf ] && which persist-config &> /dev/null; then
                                        sudo persist-config --shutdown --command reboot
                                    else
                                        sync
                                        sudo chvt 1
                                        sudo reboot
                                    fi
                                    ;;
                                -R|--Restart)
                                    $desktop_session_restart
                                    ;;
                                *)
                                    if [ "$DISPLAY" ]; then
                                        $desktop_session_exit_gui &
                                        exit
                                    else
                                        echo "$1 Not an option"
                                        help;
                                    fi
                                    ;;
                                esac
                                

                                This is the contents from desktop-session-exit..
                                Your command may need the path to the file itself..

                                With i3 I have a folder ~/.scripts this is where I store all the scripts I use. All I did was copied the desktop-session-exit file from root to my ~/.scripts folder.
                                All scripts have to be executable to run. Check

                                bindsym $mod+Shift+x exec –no-startup-id ~/.scripts/desktop-session-exit <<This calls the script I think you need to add the path..

                                for_window [instance=”desktop-session-exit”] floating enable <<This makes it float. Without this it still opens but in full screen..

                                Please try and use the original script. We lucky with this script on antiX as it is non desktop specific works on any desktop..

                                I have tried a few times to get the MX version of this script to work with i3 but it always errors. Seems to be related to xfce..

                                #24619
                                Member
                                manyroads
                                  Helpful
                                  Up
                                  0
                                  ::

                                  Thank you @Koo. I’ll use that on my antiX setup. I have the script located with the others I use (./local/share/scripts). 😉

                                  Pax vobiscum,
                                  Mark Rabideau - http://many-roads.com
                                  "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
                                  dwm & i3wm ~Reg. Linux User #449130
                                  20 Jan 2021 ~ "End of an Error"

                                Viewing 15 posts - 1 through 15 (of 20 total)
                                • You must be logged in to reply to this topic.