Show US Your Eww bar

A thread to show off your custom eww bar.
Please include the config files (or links).

This thread is intended for working eww bar and configurations. Please ask for help in the appropriate forum section(s) for better help results.

5 Likes

Good idea @PackRat

1 Like

@icebird link me up to your changes to the horizontal bar or you can also send me a pull request on bitbucket.

Do you use git?

ewww

Alrighty @drummer this one has me stumped. Is this an American thing I am too Kiwi to understand? lol. Tell me more.

It’s a famous shithole bar near where I live. The “eww” factor there is off the charts, like "meth smoking neckbeards who listen to country rap " eww.

2 Likes

This intricate rabbit hole we are all going down into, called your mind :rofl: Sharing those off the charts associations, great

1 Like

Say no more lol.

1 Like

i have upload to mega.nz

test eww-bar for dkwm config
i am using JetBrains Mono Nerd Font :crazy_face:

5 Likes

Found a way of using icons fonts instead of numbers for workspace names.

#!/bin/bash

# simple dk workspaces script for use with eww


typeset -A icons=(
[1]=""
[2]=""
[3]=""
[4]=""
[5]=""
[6]=""
)

workspaces()
{
	while read -r line; do
			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#?}
				icon="${icons[$name]}"
				case $item in
					A*) un="0" o="$name" f="$name" ufo=""      icon="$name";;     # occupied   - focused
					a*) un="0" o="$name" f="$name" ufo="$name" icon="$name";;     # occupied   - unfocused
					I*) un="0" o=""      f="$name" ufo=""      icon="$name";;     # unoccupied - focused
					i*) un="0" o=""      f=""      ufo=""      icon="$name";; # unoccupied - unfocused
				esac
				wm="$wm (button :onclick \"dkcmd ws $name\" :class  \"$un$o$f$ufo\"   \"$icon\")"
			done
		printf "%s\n" "(box   :class \"works\"        :orientation \"h\" :spacing 10 :space-evenly \"false\" $wm)"
	done
}

dkcmd status type=ws | workspaces

Also if you add the below line to eww.yuck, it allows you to drop the workspace below the bar and not behind it as in the screenshot.

:reserve (struts :distance “56px” :side “top”) adjust the px value.

(defwindow bar
          :geometry (geometry :x "0%"
                       :y "6px"
                       :width "98%"
                       :height "30px"
                       :anchor "top center")
		  :reserve (struts :distance "56px" :side "top")
		  :stacking "fg"
          :windowtype "dock"
  (bar_1))

One other thing copy eww to /home/your name/.local/bin/eww if not my popups don’t work. calendar , music , etc.

2 Likes

My launch_bar script. Works just fine.

#!/bin/bash
## Files and cmd
FILE="$HOME/.cache/eww_launch.xyz"
EWW="$HOME/.local/bin/eww/eww -c $HOME/.config/eww/bar"

## Run eww daemon if not running already
if [[ ! `pidof eww` ]]; then
	${EWW} daemon
	sleep 1
fi

## Open widgets
run_eww() {
	${EWW} open-many \
         bar

}

## Launch or close widgets accordingly
if [[ ! -f "$FILE" ]]; then
	touch "$FILE"
	run_eww && dkcmd DP-1 padding_top 49
else
	${EWW} close-all && killall eww
	rm "$FILE"
fi

Thanks for fixing up last nights post.

2 Likes

I’m gonna try some of your stuff. Especially the one to drop the windows below the bar and not behind.

Trying to make the bar thinner any ideas. ?

(defwindow bar
          :geometry (geometry :x "0%"
		  :y "6px"
		  :width "98%"
		  :height "10px"     <<<<<<< thought  10px would have made it thinner.
		  :anchor "top center")
		  :reserve (struts :distance "56px" :side "top")
		  :stacking "fg"
          :windowtype "dock"
  (bar_1))

1 Like

The fonts defined in eww.scss as well as those in your gtk theme settings affect it.

2 Likes

I have this inspector error.

✔  kooarchlabs ~ 32 files = 247M ~$ eww inspector
 2022-04-17T03:46:02.475Z ERROR eww::error_handling_ctx > Failed to connect to daemon

Thank for your Work.

Not really sure. Haven’t seen that.

You might have missed a semi colon or something somewhere in your configs.

1 Like
}
.clock_minute_class {
    margin: 0px 20px 0px 3px;
    color: #bfc9db;
    font-weight: bold   <<<< well spoted
}

must be more somewhere i’m a going hunting.

to make the bar smaller
make the icon smaller in eww.scss
font-size:
on them all
workspace
clock
music e.g
then the bar becomes less auto

edit: scss is close to css

2 Likes

I’m still working on bar height it seem to be the font type to me more then font size.

I will get to below a go today at sometime.

/**.iconcpu, .iconmem, .iconbright, .iconbat {
	font-size : 15px;
	font-weight : bold;**/

I found away to alpha the bar.

{
/** General **/
.bar_class {
background-color: #0f0f17;
border-radius: 0px;
opacity: 0.6;
}

Thanks for your help.

Here you go icebird.

eww.scss

eww.yuck

1 Like