Skip to content

nwg-shell 0.5.34

Compare
Choose a tag to compare
@nwg-piotr nwg-piotr released this 19 Apr 00:08
· 28 commits to main since this release

nwg-panel Exit menu and nwg-drawer power bar configuration changed, to use the nwg-dialog confirmation window from now on. This will need to be modified on Slackware / non-systemd distros.

Default panel configs

hyprland-0 - hyprland-3, Exit menu changed:

      "menu": {
        "name": "Exit",
        "icon": "system-shutdown-symbolic",
        "items": [
          {
            "name": "Lock",
            "cmd": "nwg-lock"
          },
          {
            "name": "Exit Hyprland session",
            "cmd": "hyprctl dispatch exit"
          },
          {
            "name": "Restart",
            "cmd": "systemctl reboot"
          },
          {
            "name": "Shutdown",
            "cmd": "systemctl -i poweroff"
          }
        ]
      },

replaced with

      "menu": {
        "name": "Exit",
        "icon": "system-shutdown-symbolic",
        "items": [
          {
            "name": "Lock",
            "cmd": "nwg-lock"
          },
          {
            "name": "Exit Hyprland session",
            "cmd": "nwg-dialog -p exit-hyprland -c \"hyprctl dispatch exit\""
          },
          {
            "name": "Restart",
            "cmd": "nwg-dialog -p reboot -c \"systemctl reboot\""
          },
          {
            "name": "Shutdown",
            "cmd": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\""
          }
        ]
      },

preset-0 - preset-3, Exit menu changed:

      "menu": {
        "name": "Exit",
        "icon": "system-shutdown-symbolic",
        "items": [
          {
            "name": "Lock",
            "cmd": "nwg-lock"
          },
          {
            "name": "Exit sway session",
            "cmd": "swaymsg exit"
          },
          {
            "name": "Restart",
            "cmd": "systemctl reboot"
          },
          {
            "name": "Shutdown",
            "cmd": "systemctl -i poweroff"
          }
        ]
      },

replaced with:

      "menu": {
        "name": "Exit",
        "icon": "system-shutdown-symbolic",
        "items": [
          {
            "name": "Lock",
            "cmd": "nwg-lock"
          },
          {
            "name": "Exit sway session",
            "cmd": "nwg-dialog -p exit-sway -c \"swaymsg exit\"",
          },
          {
            "name": "Restart",
            "cmd": "nwg-dialog -p reboot -c \"systemctl reboot\""
          },
          {
            "name": "Shutdown",
            "cmd": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\""
          }
        ]
      },

nwg-shell-config

settings-hyprland

  "pb-exit": "hyprctl dispatch exit",
  "pb-lock": "nwg-lock",
  "pb-poweroff": "systemctl -i poweroff",
  "pb-reboot": "systemctl reboot",
  "pb-sleep": "systemctl suspend",

replaced with:

  "pb-exit": "nwg-dialog -p exit-hyprland -c \"hyprctl dispatch exit\"",
  "pb-lock": "nwg-lock",
  "pb-poweroff": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\"",
  "pb-reboot": "nwg-dialog -p reboot -c \"systemctl reboot\"",
  "pb-sleep": "nwg-dialog -p sleep -c \"systemctl suspend\"",

settings

  "pb-exit": "swaymsg exit",
  "pb-lock": "nwg-lock",
  "pb-poweroff": "systemctl -i poweroff",
  "pb-reboot": "systemctl reboot",
  "pb-sleep": "systemctl suspend",

replaced with:

  "pb-exit": "nwg-dialog -p exit-sway -c \"swaymsg exit\"",
  "pb-lock": "nwg-lock",
  "pb-poweroff": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\"",
  "pb-reboot": "nwg-dialog -p reboot -c \"systemctl reboot\"",
  "pb-sleep": "nwg-dialog -p sleep -c \"systemctl suspend\"",

Note: the update will only take effect of fresh installs. To apply changes on already running systems, you'd need to reset configs with the nwg-shell-installer -a -hypr command.