diff options
author | Jay Lanagan <j@lngn.net> | 2023-06-22 23:05:58 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-06-22 23:05:58 +0700 |
commit | 56ea1cbf2f40d84ae66aef5e720879112d052263 (patch) | |
tree | 60e425de81bf1211420e5bcb28a517a9a2038b0a /desktop/nwg-panel | |
parent | f0694d75ff595d220c51c0f3df272241a78cb19d (diff) |
desktop/nwg-panel: Updated for version 0.9.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/nwg-panel')
-rw-r--r-- | desktop/nwg-panel/loginctl.patch | 68 | ||||
-rw-r--r-- | desktop/nwg-panel/nwg-panel.SlackBuild | 2 | ||||
-rw-r--r-- | desktop/nwg-panel/nwg-panel.info | 6 |
3 files changed, 72 insertions, 4 deletions
diff --git a/desktop/nwg-panel/loginctl.patch b/desktop/nwg-panel/loginctl.patch index e6f6adab51f89..9ba71211bdbe9 100644 --- a/desktop/nwg-panel/loginctl.patch +++ b/desktop/nwg-panel/loginctl.patch @@ -1,3 +1,42 @@ +--- a/nwg_panel/config.py ++++ b/nwg_panel/config.py +@@ -86,8 +86,8 @@ + "menu-start-settings": { + "cmd-lock": "swaylock -f -c 000000", + "cmd-logout": "swaymsg exit", +- "cmd-restart": "systemctl reboot", +- "cmd-shutdown": "systemctl -i poweroff", ++ "cmd-restart": "loginctl reboot", ++ "cmd-shutdown": "loginctl poweroff", + "autohide": True, + "file-manager": "thunar", + "height": 0, +@@ -2142,8 +2142,8 @@ + defaults = { + "cmd-lock": "swaylock -f -c 000000", + "cmd-logout": "swaymsg exit", +- "cmd-restart": "systemctl reboot", +- "cmd-shutdown": "systemctl -i poweroff", ++ "cmd-restart": "loginctl reboot", ++ "cmd-shutdown": "loginctl poweroff", + "autohide": True, + "file-manager": "thunar", + "height": 0, +@@ -3493,11 +3493,11 @@ + }, + { + "name": "Reboot", +- "cmd": "systemctl reboot" ++ "cmd": "loginctl reboot" + }, + { + "name": "Shutdown", +- "cmd": "systemctl -i poweroff" ++ "cmd": "loginctl poweroff" + } + ] + } + --- a/nwg_panel/config/config +++ b/nwg_panel/config/config @@ -64,11 +64,11 @@ @@ -15,3 +54,32 @@ ] } +--- a/nwg_panel/main.py ++++ b/nwg_panel/main.py +@@ -643,8 +643,8 @@ + defaults = { + "cmd-lock": "swaylock -f -c 000000", + "cmd-logout": "swaymsg exit", +- "cmd-restart": "systemctl reboot", +- "cmd-shutdown": "systemctl -i poweroff", ++ "cmd-restart": "loginctl reboot", ++ "cmd-shutdown": "loginctl poweroff", + "autohide": True, + "file-manager": "thunar", + "height": 0, + +--- a/nwg_panel/modules/menu_start.py ++++ b/nwg_panel/modules/menu_start.py +@@ -33,9 +33,9 @@ + cmd += " -cmd-lock '{}'".format(self.settings["cmd-lock"]) + if self.settings["cmd-logout"] != "swaymsg exit": + cmd += " -cmd-logout '{}'".format(self.settings["cmd-logout"]) +- if self.settings["cmd-restart"] != "systemctl reboot": ++ if self.settings["cmd-restart"] != "loginctl reboot": + cmd += " -cmd-restart '{}'".format(self.settings["cmd-restart"]) +- if self.settings["cmd-shutdown"] != "systemctl -i poweroff": ++ if self.settings["cmd-shutdown"] != "loginctl poweroff": + cmd += " -cmd-shutdown '{}'".format(self.settings["cmd-shutdown"]) + if self.settings["autohide"]: + cmd += " -d" + diff --git a/desktop/nwg-panel/nwg-panel.SlackBuild b/desktop/nwg-panel/nwg-panel.SlackBuild index 954ed60f663d1..01b7464303fc7 100644 --- a/desktop/nwg-panel/nwg-panel.SlackBuild +++ b/desktop/nwg-panel/nwg-panel.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nwg-panel -VERSION=${VERSION:-0.9.6} +VERSION=${VERSION:-0.9.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/desktop/nwg-panel/nwg-panel.info b/desktop/nwg-panel/nwg-panel.info index 5ea77178df85e..e2f579f4d3b6e 100644 --- a/desktop/nwg-panel/nwg-panel.info +++ b/desktop/nwg-panel/nwg-panel.info @@ -1,8 +1,8 @@ PRGNAM="nwg-panel" -VERSION="0.9.6" +VERSION="0.9.7" HOMEPAGE="https://github.com/nwg-piotr/nwg-panel/" -DOWNLOAD="https://github.com/nwg-piotr/nwg-panel/archive/v0.9.6/nwg-panel-0.9.6.tar.gz" -MD5SUM="0b7f265dad357828f00b52ea72f07ca2" +DOWNLOAD="https://github.com/nwg-piotr/nwg-panel/archive/v0.9.7/nwg-panel-0.9.7.tar.gz" +MD5SUM="1c437cd2cb7d972d333f09839888116f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="gtk-layer-shell light nwg-icon-picker playerctl python3-psutil i3ipc python3-dasbus python3-netifaces python3-wheel SwayNotificationCenter wlr-randr" |