Skip to content

Releases: nwg-piotr/nwg-panel

nwg-panel 0.9.32

17 May 23:25
ea45367
Compare
Choose a tag to compare

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

03 May 09:31
Compare
Choose a tag to compare

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

02 May 22:54
Compare
Choose a tag to compare

In v0.9.28, while adding support for upcoming new Hyprland socket files location, I mistakenly used syntax invalid in python<3.12. #296 should be fixed now.

nwg-panel 0.9.29

01 May 23:16
Compare
Choose a tag to compare
  • Minor fixes to satisfy Fedora linter #295.

nwg-panel 0.9.28

30 Apr 23:33
897639a
Compare
Choose a tag to compare
  • 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

26 Mar 00:20
Compare
Choose a tag to compare

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

20 Mar 00:02
6a2e3d4
Compare
Choose a tag to compare

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:

2024-03-20-003633_sway_screenshot

Hyprland "Input devices" tab:

2024-03-20-003510_hypr_screenshot

Then open the panel config utility and select the "Keyboard layout" tab. On Hyprland you can choose either "All" or a certain keyboard device.

2024-03-20-003837_hypr_screenshot

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:

2024-03-20-005553_hypr_screenshot

Right mouse button opens the menu:

2024-03-20-005354_hypr_screenshot

nwg-panel 0.9.25

29 Feb 02:42
194e8d0
Compare
Choose a tag to compare

Instead of the common "Values in widget" switch, now we have separate check buttons to turn on/off the brightness, volume and battery values in the Controls panel widget.

Before:

values-before

After:

values-after

nwg-panel 0.9.24

20 Feb 01:47
Compare
Choose a tag to compare
  • MenuStart: removed nonexistent width/height settings;
  • MenuStart: added support for the new -wm argument (use swaymsg exec with -wm sway argument or hyprctl 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

10 Feb 00:08
964fbad
Compare
Choose a tag to compare

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.

image

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