GithubHelp home page GithubHelp logo

Comments (3)

awarewen avatar awarewen commented on August 30, 2024 1

Hi.This is a matter of resolution scaling. Leave your screen resolution here if you need it, and I'll let you know where to change it to the appropriate resolution. For some reason EWW is not yet able to adapt the layout to the resolution (maybe in the future, but there is no good solution at the moment)

图片

quickly fix:

Config File Name Command
eww.yuck bar_left: eww -c ~/.config/eww/mybar open bar_left
eww.yuck bar_center: eww -c ~/.config/eww/mybar open bar_center
eww.yuck bar_right: eww -c ~/.config/eww/mybar open bar_right
polybar_tray.ini polybar_tray: polybar -c ~/.config/eww/mybar/polybar_tray.ini tray

All Config PATH: ~/.config/eww/mybar/*
In this dot, the EWW Bar consists of the four sections above.

step 1 -- Change the Polybar Tray size and position(~/.config/eww/mybar/polybar_tray.ini):
图片

;; (available in px and%,defualt is px) 
width = 200   ;; Tray width
height = 40    ;; Tray width
offset-x = 1675  ;; The position of the leftmost pixel of the tray relative to the screen resolution
offset-y = 25      ;; The position of the top pixel of the tray relative to the screen resolution
tray-offset-x = 20  ;; The x axis offset value
;; tray on the left side of the final location = offset-x + tray-offset-x

step 2: Change the location and size of the EWW Bar (~/.config/eww/mybar/eww.yuck)
Because of the EWW itself, there are a lot of things that need to be changed here, including the size and location of each part element

E.G. : bar_left
This is where it was before the change:

My resolution: 1920X1200
图片

Suppose I have a resolution of 960x1200:

  1. Open eww.yuck find the bar_left
:x "1%"
:y "1.5%"
:width "11%"
:height "4%"

;; search: image-height
;;:image-height 40
:image-height 20
;;:image-width 40
:image-width 20
  1. Open eww.scss
    Change the size of the related element

.workspace_buttons

//font-size: 30px;
font-size: 15px;

.layout:

//font-size: 25;
font-size:15;

.media_title:

//font-size: 16px;
font-size: 8px;

.bar_normal scale trough {

//min-width: 173px;
min-width: 86px;

图片

This is not perfect, of course, and the margins of each element can be fine-tuned.

from dots-2.0.

awarewen avatar awarewen commented on August 30, 2024 1

You may also need to adjust the height of the application window, which is the height BSPWM leaves for the EWW bar at the top of the screen:

Open ~/.config/bspwm/bspwmrc

#bspc config top_padding          70
bspc config top_padding          50 # or other

图片

from dots-2.0.

ikz87 avatar ikz87 commented on August 30, 2024 1

I just wanna mention that the screenshot at the top made me realize that the left bar was one pixel taller than the other two, fixed it now in 64d2b22

But yeah, sadly eww (and other programs used in my rice) provides no real way to make a 100% adaptive configuration for different screen sizes.

That's why in the README I say:

Please note that this rice was made for a single 1080p monitor setup, If you have anything different than that you'll have to tweak some things on your own.

As for the missing elements, they're not really missing, it's just that the central bar is covering them on the right bar (also due to screen resolution)

Thanks @awarewen for providing a list of everything that needs to be changed regarding eww

Will be closing as I think the instructions are clear but you're free to reopen the issue if you need more help

from dots-2.0.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.