A good bar/panel for DKWM?

Hi!

Any good suggestions on bar/panel for DKWM?

womp

Polybar or the AL default lemonbar.

2 Likes

Hi and thanks for answering!!
I am running polybar now and starting to like it a bit. I will check out lemonbar.
Any other bar/panel that works?

womp

1 Like

I’ve used tint2 as well with dk, mostly polybar (can see it in my latest screenshot :wink:

3 Likes

dkwm works with just about any bar/panel. I know tint2 and xfce4-panel will work with it.

Depends on what you want to view in the panel. Keep in mind that dkwm does not support “iconify” so the taskbar of tint2, xfce4-panel etc … will not be fully functional.

2 Likes

Ok. WIll something like bumblebee-status work? or i3status-rust?

womp

I tried i3status would not work for me. bumblebee’s is ok but it users a lot of resources.

I’m using mad mix of conky , edited bar.sh (dk version) , running on lemonbar.

opps wrong post.

2 Likes

Wow! How do you do that?

womp

By piping conky into lemonbar and auto starting bar.sh.

conky | lemonbar -g x24 -B “#00000000” -F “#FFFFFF” -f “Source Code Pro Bold:pixelsize=13” &
bash ~/.config/dk/scripts/bar.sh &

Conky left & right
Bar.sh in the middle

1 Like

Great work there!!
This I will try this weekend!

womp

I found this site adds like a powerline style to the conky. Will try this at sometime.

http://epsi-rns.github.io/desktop/2017/04/14/standalone-lemonbar-conky.html

I also change my pipe line in dkrc.
conky | lemonbar -p -g x28 -B “#00000000” -F “#FFFFFF” -f “Source Code Pro Bold:pixelsize=14” | $SHELL &

Apparently without the pipe shell the bar will be non active.

If you need any help let me know.

3 Likes

I,m starting to get the powerline thingy working lots of fun ahead.

conky.config = {
    out_to_x = false,
    out_to_console = true,
    short_units = true,
    update_interval = 1
}

colGrey900  = '\\#212121'
colGrey200  = '\\#eeeeee'

colAlphaBlue500  = '\\#aa2196f3'
colGreen500 = '\\#4caf50'
colRed500   = '\\#f44336'

conky.text = [[
%{r}\
%{B-}%{F-}%{-u}\
%{F]] .. colGreen500 ..[[}\
%{B]] .. colGreen500 ..[[}%{U]] .. colGrey200 ..[[}\
%{B]] .. colAlphaBlue500 .. [[}%{U]] .. colGrey900 ..[[}\
%{F]] .. colGreen500 .. [[}\
%{F]] .. colGrey200 ..[[} ${cpu cpu0}% ${hwmon 1  temp 1}°\
%{F]] .. colGreen500 ..[[}\
%{B-}%{F-}%{-u}\
%{F]] .. colGreen500 .. [[}\
\
%{B-}%{F-}%{-u}\
%{F]] .. colGreen500 ..[[}\
%{B]] .. colGreen500 ..[[}%{U]] .. colGrey200 ..[[}\
%{B]] .. colAlphaBlue500 .. [[}%{U]] .. colGrey900 ..[[}\
%{F]] .. colGreen500 .. [[}\
%{F]] .. colGrey900 ..[[} \
%{F]] .. colGrey200 ..[[} ${execi 1 sensors amdgpu-pci-0900 | grep 'edge' | cut -c 16-21}  ${execi 1 sensors amdgpu-pci-0900 | grep 'slowPPT' |  cut -c 16-21}\
%{F]] .. colGreen500 ..[[}\
%{B-}%{F-}%{-u}\
%{F]] .. colGreen500 .. [[}\
%{F]] .. colRed500 ..[[}\
\
%{c}\
%{B-}%{F-}%{-u}\
\
%{l}\
%{F]] .. colRed500 ..[[}\
%{B-}%{F-}%{-u}\
%{F]] .. colGreen500 ..[[}\
%{B]] .. colGreen500 ..[[}%{U]] .. colGrey200 ..[[}\
%{B]] .. colAlphaBlue500 .. [[}%{U]] .. colGrey900 ..[[}\
%{F]] .. colGreen500 .. [[}\
%{F]] .. colGrey900 ..[[} \
%{F]] .. colGrey200 ..[[} ${time %A %d/%m/%y}   ${time %I:%M %p}  \
%{F]] .. colGreen500 ..[[}\
\
%{B-}%{F-}%{-u}\
%{B]] .. colGreen500 ..[[}%{U]] .. colGrey200 ..[[}\
%{F]] .. colGrey200 ..[[} \
%{F]] .. colAlphaBlue500 .. [[}\
%{F]] .. colGrey900 ..[[} ${if_mpd_playing}${mpd_smart 100}  ${mpd_elapsed} / ${mpd_length}${else}${mpd_status}${endif}  \
%{B-}%{F-}%{-u}\
%{F]] .. colGreen500 ..[[}\
\
]]
2 Likes

The height of the bar exceeds the height of the arrow font/icon. It’s starting to take shape now.

Really looking good!!

womp

Nice to see EWW AlphaTechnolog supporting dkwm. :+1:

5 Likes

I like his workspaces script. A little more abstracted than the one I’ve been using.

https://bitbucket.org/troutcobbler/lefty/raw/a311d2fc1b2fc0e0a9540bfbafc80e0516e90dfc/eww/dk-workspaces.sh

3 Likes

Thanks for the link cog I will give this ago much more simpler as all I really need is the workspaces, the rest can be handled by conky and lemonbar .

At the moment I use Nate bar.sh which I edited to suit my needs.

#!/bin/bash
# shellcheck disable=SC2059,SC2064,SC2086

# simple lightweight lemonbar script for use with dk


bg="#00000000"
fg="#999999"
highlight="#CC0000" # 6699ee
underline=2
#separator="*"

# fonts
font0="Anonymice Nerd Font Mono:pixelsize=23"
# font1="NotoSansMono Nerd Font:pixelsize=16"
# font0="-xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1"
fifo="/tmp/bar.fifo"

# mimic dwm style layout symbols
typeset -A layouts=(
[tile]=""
[mono]="[M]"
[none]="><>"
[grid]="###"
[spiral]="(@)"
[dwindle]="[\\]"
[tstack]=""
)



parsefifo()
{
	typeset f='' b='' u='' wm='' layout=''

	while read -r line; do
		case $line in

			L*) l="${line#?}"; layout="${layouts[$l]}" ;;
			W*)
				wm='' IFS=':' # set the internal field separator to ':'
				set -- ${line#?}  # split the line into arguments ($@) based on the field separator
				for item in "$@"; do
					name=${item#?}
					case $item in
						A*) f="$highlight" b="$bg" u="$highlight" ;; # occupied   - focused
						a*) f="$fg"        b="$bg" u="$highlight" ;; # occupied   - unfocused
						I*) f="$highlight" b="$bg" u="$fg"        ;; # unoccupied - focused
						i*) f="$fg"        b="$bg" u="$fg"        ;; # unoccupied - unfocused
					esac
					wm="$wm%{F$f}%{B$b}%{+u}%{U$u}%{A:dkcmd ws $name:} $name %{A}%{-u}%{B-}%{F-}"
				done
				;;
		esac
		printf "%s\n" "%{c}$wm  $layout%{l}"
	done
}


# kill the process and cleanup if we exit or get killed
trap "trap - TERM; kill 0; rm -f '$fifo'" INT TERM QUIT EXIT

# make the fifo
[ -e "$fifo" ] && rm "$fifo"
mkfifo "$fifo"


# here we dump info into the FIFO, order does not matter things are parsed
# out using the first character of the line. Click commands for left button
# can be added by passing an argument containing the command (like volume below)
dkcmd status type=bar > "$fifo" &


# run the pipeline
if [[ $1 == '-b' ]]; then
	parsefifo < "$fifo" conky | lemonbar -b -a 32 -u $underline -B "$bg" -F "$fg" -f "$font0" -f "$font1" -f "$font2" -f "$font3" | sh
else
	parsefifo < "$fifo" conky | lemonbar -a 32 -u $underline -B "$bg" -F "$fg" -f "$font0" -f "$font1" -f "$font2" -f "$font3" | sh
fi

# vim:ft=sh:fdm=marker:fmr={,}
3 Likes