Giter Club home page Giter Club logo

disable_titlebar_in_sway's Introduction

disable titlebar in sway

this patch for Sway 1.9 which adds the 'disable_titlebar' option in the config file.

Instruction:

  1. Download latest Sway-1.9 source tarball: https://github.com/swaywm/sway/archive/refs/tags/1.9.tar.gz
  2. Download patch: disable_titlebar_patch.tar.gz
  3. Extract Sway-1.9 tarball
  4. Extract patch and move to sway-1.9 folder
  5. Go to the sway-1.9 folder and apply the patch
  6. Compile and install sway (Run these commands):
tar xf sway-1.9.tar.gz
tar xf disable_titlebar_patch.tar.gz; mv disable_titlebar.patch sway-1.9/
cd sway-1.9/; patch -p1 < disable_titlebar.patch
meson build/
ninja -C build/
sudo ninja -C build/ install
  1. Edit ~/.config/sway/config file and add the option: disable_titlebar yes or read man 5 sway xD.
    For example, a piece of my ~/.config/sway/config:
xwayland disable
workspace_layout tabbed
default_border none
default_floating_border none
disable_titlebar yes

Enjoy.


Thanks to y0nei for the feedback, I added a fix for drawing the top border.


disable_titlebar_in_sway's People

Contributors

neuromagus avatar

Stargazers

ArMan avatar  avatar  avatar Igor Aherne avatar  avatar

Watchers

 avatar Quincy Fleming avatar

disable_titlebar_in_sway's Issues

Missing top border when option is toggled

Issue

While the current implementation works fine, the way sway renders border ultimately makes the top one disappear when no titlebar is rendered.

Possible fix

While I'm not a C dev I can hint on checking if its possible to achieve a proper result by making sway not render anything in the titlebar? Similarly to how the workaround worked

Alternative ways to display list of windows in workplace

This is not a bug.
Default titlebar is ugly and takes place outside of the "bar", but it serves a purpose of listing windows, that are open in the workplace. Are there any options to get a similar functionality from "bars", like waybar? sway/window module shows only the current window title.

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.