Panels & Menus – eirenicon llc https://eirenicon.org Working together for success! Wed, 26 Apr 2023 12:15:55 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://i0.wp.com/eirenicon.org/wp-content/uploads/2019/03/cropped-eirenicon-1.png?fit=32%2C32&ssl=1 Panels & Menus – eirenicon llc https://eirenicon.org 32 32 61586100 dwm-xsetroot based status bar https://eirenicon.org/dwm-xsetroot-based-status-bar/ Sat, 02 Oct 2021 13:56:35 +0000 https://eirenicon.org/?page_id=2849 For those who might be looking for an xsetroot approach for use on their dwm status bar, I made some mods (to a script from clusterF on BunsenLabs).  The below script reflects my (peculiar) needs and are running on my dwm (MX-Linux 21 b2) setup.

Included below is a requisite scrot for ‘proof-of-life’.

MX21-dwm-no-compositor-rofi-st-2conkies

The xsetroot script I use follows (note: the ? are missing glyphs) :

#!/usr/bin/env bash
# original script created by clusterF modified
# by ManyRoads
#

while true; do

        date '+?  %a. %d %b. ?  %R ' > /tmp/CurTime.tmp

        sleep 60s
done &

while true; do

        LOCALTIME=$(< /tmp/CurTime.tmp)
        DB=$(dropbox status)
        VOL=$(pamixer --get-volume-human)
        MEM=$(free -h --kilo | awk '/^Mem:/ {print $3 "/" $2}')
        CPU=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1}' )
        TEMP=$(sensors|grep 'Core 0'|awk '{print $3}' )
        DISK=$(df -Ph | grep "/dev/nvme0n1p2" | awk {'print $5'})
        WIFI=$(nmcli -f ACTIVE,SIGNAL dev wifi list | awk '$1=="yes" {print $2}')
        xsetroot -name " ? $MEM ? ? $CPU% ?? $TEMP ? ? $DISK ? ?  $VOL ? ? $WIFI% ? ? $DB ? $LOCALTIME ? ? ? ?"
        sleep 10s
done &

Because the glyphs (fontawesome) get hosed up on this site, here is my xsetroot script (complete).

The script is called from my dwm-autoart script:

! /bin/sh
#
#        dwm autostart, etc.
#
# Numerous functions (autostart) are located in .xsessionrc (Debian) .xprofile (arch)
# including power management, polkit, dropbox, f.lux, dunst etc.

# slstatus
# slstatus &

# conky 
pkill conky 
conky -c ~/.local/bin/Suckless/dwm/conky/.dwm-1rc &
conky -c ~/.local/bin/Suckless/dwm/conky/.dwm-2rc &
~/.local/share/scripts/xsetroot.sh &

#start dwm
exec dwm

 

Remember, like with all of my work, I am able to provide the following assurance(s):
  • It is almost certainly going to work until it breaks; although I have to admit it may never work and that would be sad.
  • When/if it does break, you may keep all of the pieces.
  • If you find my materials helpful, both you & I will be happy, at least for a little while.
  • My advice is worth every penny you paid for it!
]]>
2849
Creating a homogeneous look & feel for multiple window managers- Part 1 https://eirenicon.org/creating-a-homogeneous-look-feel-for-multiple-window-managers-part-1/ Mon, 18 Nov 2019 16:37:51 +0000 http://eirenicon.org/?page_id=1495 This is the first article in a series.

Yes, it is possible to create a homogeneous look across multiple window managers (wm).

In this series, I will discuss and demonstrate (via written tutorial) how-to achieve this objective.  We’ll examine the use of two of my favorite window managers (bspwm & hlwm) as well as tools/software such as polybar, sxhkd (sxhkdrc), rofi and the ‘infra-structure tools’ from the xfce desktop environment.

N.B.; Be advised xfce is technically a Desktop Environment (DE) not a Window Manager.

This is actually not a new concept. There is at least one distro (ArcoLinux, managed ‘benevolently’ by Erik Dubois), that promotes the concept of homogeneity across multiple environments including the following:

  • bspwm (my personal favorite)
  • xmonad
  • i3-wm (the most popular)
  • hlwm (#2 in my book)
  • openbox (a non-tiler)

The primary benefit offered by building a homogeneous environment is the achievement of consistency across essential desktop functions such as: keybindings, menubars, file managers, music players, and the like. This reduces training time, improves skills expertise, and assists in portability of artifacts across different work flows.

As our example in this series, we will use my current desktop setup/arrangement which employs:

  • bspwm (my primary desktop manager)
  • hlwm (a secondary window manager)
  • xfce 4.14 with zentile (for my combined infra-structure as well as a ‘familiar’ backup desktop environment)
  • MX19 (using Debian Bullseye, to help me keep current with many of the tools currently developed on arch platforms)

The tools which are shared on my three desktops include:

With a few small exceptions, my bspwm & hlwm desktops look identical and are nearly identical functionally; xfce with zentile looks similar but not ‘quite the same’.  To my mind, bspwm is smoother and offers a bit more complete set of functions than hlwm or xfce’s desktop  (but in truth that is mostly a personal preference choice on my part).

Below are basic desktop screenshots of my three desktops (hopefully the labels will help you sort them out). Each shows:

  • rofi main menu (called via F1 keybinding)
  • Thunar file manager (I, also, have midnight commander and nnn running across all three desktops; although, they are not shown here.)
  • pyWal (screen background changer and tool ‘colorizer’ is running on all three desktops).
  • conky (my ‘personal’ version is running)

You should also note:

  • polybar menu (screen top on hlwm & bspwm)
  • xfce-panel: Currently the xfce-panel is located at the screen bottom on xfce-zentile setup; yes, I could easily move it to the top of my screen for consistency.
bspwm Screenshot
hlwm Screenshot
xfce (with zenity) Screenshot

In the next article in this series, I’ll show more ‘building block details’ and discuss how-to tweak them for consistency.

If you enjoy and value this article, please…

]]>
1495
Task Management (across Workspaces & across the entire Desktop) https://eirenicon.org/knowledge-base/task-management-across-workspaces-across-the-entire-desktop/ Thu, 08 Aug 2019 15:09:38 +0000 http://eirenicon.org/?page_id=1479 Because I frequently want to know what is active on my current ‘workspace,’ as well as across all my workspaces, I have enabled and use two tools/approaches:

rofi: rofi provides my ‘whole’ desktop activity listing simply via a standard set of rofi commands.  The list/popup created is also active, thus a simple click ‘takes’ me to a desired ‘active task’. In bspwm (in sxhkdrc), I have created the following keybinding.

You will not need bspwm to accomplish your keybinding. You can create this keybinding/command in most any manner supported by your desktop environment or window manager.

# rofi Active Tasks
super + F12
rofi -modi window -show window -show-icons -sidebar-mode

The following image is what the result ‘looks like’.

Rofi task list, showing open tasks on all workspaces.

tint2: tint2 is even easier. The taskbar function within tint2 offers a number of readily selectable options. Check the boxes you like best.  You will need to install and run tint2 on your desktop though. I use right mouse-button on an active task button to close the task, when appropriate.

The tint2 arrangement appears in the following image:

Single workspace tasks shown on tint2 bar (bottom of the photo)

In an effort to minimize desktop real estate consumption by tint2, I have divided functions as noted on this page. I, also, have posted an abbreviated version of this page on reddit (see below).

]]>
1479
Lightweight Panels & Menus (examples) https://eirenicon.org/knowledge-base/lightweight-panels-menus-examples/ Mon, 24 Jun 2019 14:33:24 +0000 http://eirenicon.org/?page_id=1320 revised:
20 Dec. 2020
26 Apr. 2023

The following Panels & Menus are intended for Linux/Unix use.  These tools represent a much lighter weight set of panels & menus (consuming less memory) than those more typically found on Linux Desktop Environments such as gnome, KDE, etc.  Generally, these are used on Linux/ Unix window managers such as: bspwm, dwm, fluxbox, herbstluftwm, i3wm, jwm, openbox, xmonad …

This list is not exhaustive. Yes, there are more.  However, this should give you a decent starting point for your investigations.

(Click on a label to access information on ‘that panel’.)

  1. adeskbar
  2. bmpanel2
  3. dmenu
  4. docky
  5. dwm bar
  6. fbpanel
  7. i3status
  8. j4-dmenu-desktop
  9. jgmenu
  10. lemonbar
  11. lxpanel
  12. plank
  13. polybar
  14. pypanel
  15. rofi
  16. tint2
  17. xfce-panel
  18. xlunch
  19. yabar
]]>
1320