Releases: nwg-piotr/nwg-panel
nwg-panel 0.9.32
We used to assign a Gdk.Monitor to an output on the basis of x and y coordinates, but it no longer works, starting from gtk3-1:3.24.42: all monitors have x=0, y=0. This is most likely a bug, but from now on we must rely on gdk monitors order. Hope it's going to work.
nwg-panel 0.9.31
- More double quoted strings fixed by @LudovicoPiero in #297. Thanks!
Sorry about this saga of errors. They originated from a simple copy-paste and were invisible from python3.12, as it allows syntax like this.
nwg-panel 0.9.30
nwg-panel 0.9.29
- Minor fixes to satisfy Fedora linter #295.
nwg-panel 0.9.28
- added airplane-mode indicator (executor) script;
- added support for upcoming new Hyprland socket files location in
$XDG_RUNTIME_DIR/hypr
.
nwg-panel 0.9.27
The button-press-event
replaced with button-release-event
whenever we are on gtk-layer-shell, to avoid false click coordinates detection. Closes #288
nwg-panel 0.9.26
Added the KeyboardLayout module: a switcher for both sway and Hyprland.
First you need to define multiple keyboard layouts in the compositor config. If you use the panel as a part of nwg-shell, you do it in the nwg-shell-config utility.
sway "Keyboard" tab:
Hyprland "Input devices" tab:
Then open the panel config utility and select the "Keyboard layout" tab. On Hyprland you can choose either "All" or a certain keyboard device.
On sway it does not work on the per-device basis, even if man sway-input
seems to claim otherwise. So we apply selection to all devices of type:keyboard
.
Left mouse button on the executor area switches the keyboard layout to the next defined one:
Right mouse button opens the menu:
nwg-panel 0.9.25
nwg-panel 0.9.24
- MenuStart: removed nonexistent width/height settings;
- MenuStart: added support for the new
-wm
argument (useswaymsg exec
with-wm sway
argument orhyprctl dispatch exec
with-wm hyprland
to launch programs; turned on by default; - HyprlandTaskbar: if 'Show app name' disabled, show names in tooltip text.
nwg-panel 0.9.23
Added Common settings -> 'Run programs through compositor" check button. When checked, makes the panel run programs through either swaymsg exec <cmd>
or hyprctl dispatch exec <cmd>
. Turned on by default, makes us sure that runned processed are detached from the panel.
On compositors other than sway or Hyprland, the command will be executed the old way.
def cmd_through_compositor(cmd):
cs_file = os.path.join(get_config_dir(), "common-settings.json")
common_settings = load_json(cs_file)
if "run-through-compositor" not in common_settings or common_settings["run-through-compositor"] :
if os.getenv("SWAYSOCK"):
cmd = f"swaymsg exec '{cmd}'"
elif os.getenv("HYPRLAND_INSTANCE_SIGNATURE"):
cmd = f"hyprctl dispatch exec '{cmd}'"
return cmd