nwg-wrapper
Our great sponsors
dotfiles | nwg-wrapper | |
---|---|---|
93 | 22 | |
- | 131 | |
- | - | |
- | 2.6 | |
- | 2 months ago | |
Python | ||
- | MIT License |
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.
dotfiles
-
Getting a menu on right-click of the title-bar (but not on background!)
Here's how to do it - in this example, I'm using my sway-menu python script to generate the menu itself. I'm also moving the menu to be near the cursor:
-
Remotely starting graphical app inside Sway session, when the app needs to run as root, without relying on authentication from within the session
Maybe try my script sway-runner
-
Using nwg-wrapper for a HUD of help for sway modes
As a geriatric user of sway, I don't always remember the keystrokes in the more esoteric corners of my configuration. I find that my script sway-menu helps with the bulk of the uncommon key bindings. But when I drop into a 'mode' (eg "move" mode) I don't always remember all the clever things I programed into it.
-
Is it possible to have my Bluetooth controller disconnect automatically on idle?
I wrote a simple bash script bluetooth-timeout to power-off the linux bluetooth stack after 10m of activity. Maybe this would help you.
-
What do I need to install on the Sway spin?
Another source for ideas is to read through the configs and scripts written by others. I offer my own here - there are many others around.
-
Application To Display Keybinds On-screen
sway-menu
-
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.
-
Sway productivity tips
Imma gonna browse through your stuff to see if there's a scratch to a hitherto unnoticed itch that I can snarf. You might like to do the same with my dotfiles - particularly bin/sway-\, *.config/sway** and .config/waybar.
-
Anyone know how to move container to the next *empty* workspace?
You might be able to modify my sway-next-empty-workspace script for that. Maybe see if changing swaymsg to i3-msg does the job.
-
Password manager solution in Wayland?
I use myclipman to wrap clipman with wayland/swaywm to prevent passwords being cached.
nwg-wrapper
-
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
What are some alternatives?
i3status-rust - Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
nwg-shell - Installer & meta-package for the nwg-shell project: a GTK3-based shell for sway and Hyprland Wayland compositors
sway-gnome - Opinionated Sway Configuration using GNOME session services, for GNOME >= 3.34
nwg-dock - GTK3-based dock for sway
sway - i3-compatible Wayland compositor
azote - Wallpaper manager for wlroots-based compositors and some other WMs
openSUSEway - dotfiles for Sway on openSUSE
nwg-panel - GTK3-based panel for sway and Hyprland Wayland compositors
ydotool - Generic command-line automation tool (no X!)
i3wm-Cheatsheet - i3wm Cheatsheet
picom - A lightweight compositor for X11 (previously a compton fork)
nwg-shell-config - nwg-shell configuration utility