nwg-wrapper
Wrapper to display a script output or a text file content on the desktop in sway or other wlroots-based compositors (by nwg-piotr)
gtk-layer-shell
A library to create panels and other desktop components for Wayland using the Layer Shell protocol (by wmww)
Our great sponsors
nwg-wrapper | gtk-layer-shell | |
---|---|---|
22 | 6 | |
131 | 292 | |
- | - | |
2.6 | 5.7 | |
2 months ago | 3 months ago | |
Python | C | |
MIT License | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nwg-wrapper
Posts with mentions or reviews of nwg-wrapper.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-04.
-
Using nwg-wrapper for a HUD of help for sway modes
Usage: sway-mode [-c,--config config-file] [-C,--css css-file] mode Puts sway into mode 'mode' and displays some help by extracting a section from the config file. Options: -c,--config config_file location of your config file (/home/bhepple/.config/sway/config) -C,--css css_file location of your css file (/home/bhepple/.config/nwg-wrapper/mode-help.css) Requires nwg-wrapper https://github.com/nwg-piotr/nwg-wrapper Assumes modes are defined in the config file like this: mode "foobar" { ... } To use this, reassign the bindkey command for the mode like this: bindsym $mod+s exec sway-mode "swap" and in the mode definition, change the mode ending keys to # back to default mode bindsym q exec pkill nwg-wrapper; mode "default" bindsym Return exec pkill nwg-wrapper; mode "default" bindsym Escape exec pkill nwg-wrapper; mode "default" Here's a sample CSS file: window { font-family: "Monospace"; color: rgba (255, 255, 255, 1.0); background-color: rgba (255, 255, 255, 0.1); } #box-inner { background-color: rgba (23, 53, 63, 0.7); border-radius: 5px; border-style: dotted; border-width: 1px; border-color: rgba (156, 142, 122, 0.7); padding: 10px; }
-
Digital overlay clock?
Here's a script that uses nwg-wrapper to display a countdown - it would be easy to modify it to display a digital clock.
-
How can I use a terminal/application as wallpaper?
Maybe take a look at nwg-wrapper
-
Counting down before gtklock or suspend
The countdown into gtklock is created by my script sway-count which uses nwg-wrapper.
-
Mucking about with layers
For example, this works using nwg-wrapper :
-
is a good practice to put ANY idea on github?
Nope. https://github.com/nwg-piotr/nwg-wrapper/commit/f4c4dc6e9a568ade8b3bce02d73f528a50b02928
-
Any tip on optimizing this?
Here's my script. It forks off a playerctl --follow with a custom format to work around read skipping empty items (like a song without an artist). You don't have to do that, I just prefer that so I can add nwg-wrapper to view album art and song title on my desktop without spinning up another playerctl read loop.
- Is there some app that lets you launch a simple text overlay?
-
Show local IP permanent on desktop
If your compositor supports layer-shell (i.e., not Gnome) then maybe nwg-wrapper would work.
-
gtklock and nwg-wrapper - let's rice the lock!
I had a play with gtklock today and wondered if it would work with nwg-wrapper to enhance the lock screen. It turns out that they work together very well - see screenshot. I've also modified my script for various styles of locking so that it supports gtklock: mylock
gtk-layer-shell
Posts with mentions or reviews of gtk-layer-shell.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-10.
-
Is there some app that lets you launch a simple text overlay?
Here an example with GTK and python https://github.com/wmww/gtk-layer-shell/blob/master/examples/simple-example.py
-
waybar crashing
% waybar [2022-05-20 15:00:42.483] [info] Using configuration file /home/cas/.config/waybar/config [2022-05-20 15:00:42.483] [info] Using CSS file //gnu/store/x9bb4v37xdb5cnin5sc8yqxkqkcvfwyp-waybar-0.9.9/etc/xdg/waybar/style.css [2022-05-20 15:00:42.538] [warning] Waybar has been built without rfkill support. [2022-05-20 15:00:42.538] [warning] module keyboard-state: Unknown module: keyboard-state [2022-05-20 15:00:42.540] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity [2022-05-20 15:00:42.540] [warning] As using a timezone, some format args may be missing as the date library haven't got a release since 2018. ** (waybar:4938): WARNING **: 15:00:42.567: gtk-layer-shell v0.6.0 may not work on GTK v3.24.30. If you experience crashes, check https://github.com/wmww/gtk-layer-shell/blob/master/compatibility.md ** (waybar:4938): ERROR **: 15:00:42.704: unhandled exception (type std::exception) in signal handler: what: Type is not convertible to string zsh: trace trap waybar
-
Waybar start up is slow on Fedora 35
shivodit @ ~ $ waybar [2021-11-04 18:16:32.685] [info] Resources files: /home/shivodit/.config/waybar/config, /home/shivodit/.config/waybar/style.css [2021-11-04 18:16:56.160] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity [2021-11-04 18:16:56.167] [error] media stopped unexpectedly, is it endless? ** (waybar:2188): WARNING **: 18:16:56.184: gtk-layer-shell v0.6.0 may not work on GTK v3.24.30. If you experience crashes, check https://github.com/wmww/gtk-layer-shell/blob/master/compatibility.md [2021-11-04 18:16:56.312] [info] Bar configured (width: 1920, height: 30) for output: DP-1
-
Wayland Vs Xorg : Pick your side
Ummm. .. not always the case that the client is at fault. For example the layer shell protocols of Wayland allows you to create desktop components like popup menus etc. Now the tricky part is established desktop environments like GNOME uses the xdg_surface, hence GTK only has binding or focuses explicitly on that. This has given others who wants to implement a layer shell like this gtk-layer-shell library has to do some hacking as workaround. As you see currently only tested to work with gtk3 2.24 26.while many rolling releases are already shifting gtk3 2.24.30. Some window managers or rather say status bar like waybar ( the most popular status bar project ) uses this library. And this creates problem for those wants to use any status bar that depends on tk layer shell library and are on recent updates on gtk. Gtk only sees xdg_surface, is not in a mood to support other libraries.
-
Announcing Relm4 v0.1
This may be a stupid question but would it be possible to use relm to make a panel or notification widgets for non gnome wayland desktop? I know this can be achieved through GTK layer shell however they do not support GTK4 because gnome want to support they layer shell protocol. Curios if you would gnome if this can be done another way directly with GTK4?
-
[QUESTION] [BUG] Sway bug
** (waybar:110789): WARNING **: 22:07:43.480: gtk-layer-shell v0.6.0 may not work on GTK v3.24.27. If you experience crashes, check https://github.com/wmww/gtk-layer-shell/blob/master/compatibility.md
What are some alternatives?
When comparing nwg-wrapper and gtk-layer-shell you can also consider the following projects:
nwg-shell - Installer & meta-package for the nwg-shell project: a GTK3-based shell for sway and Hyprland Wayland compositors
xdg-desktop-portal - Desktop integration portal
nwg-dock - GTK3-based dock for sway
Sway-PreviewKeys - Program for showing Sway window manager's key bindings associated with a mode
azote - Wallpaper manager for wlroots-based compositors and some other WMs
eww - ElKowars wacky widgets
nwg-panel - GTK3-based panel for sway and Hyprland Wayland compositors
pyrofi - Wrapper for Rofi menus that helps you to build hierarchical menus
i3wm-Cheatsheet - i3wm Cheatsheet
mako - A lightweight Wayland notification daemon
nwg-shell-config - nwg-shell configuration utility
dotfiles
nwg-wrapper vs nwg-shell
gtk-layer-shell vs xdg-desktop-portal
nwg-wrapper vs nwg-dock
gtk-layer-shell vs Sway-PreviewKeys
nwg-wrapper vs azote
gtk-layer-shell vs eww
nwg-wrapper vs nwg-panel
gtk-layer-shell vs pyrofi
nwg-wrapper vs i3wm-Cheatsheet
gtk-layer-shell vs mako
nwg-wrapper vs nwg-shell-config
gtk-layer-shell vs dotfiles