desktop/nwg-shell-config: Updated for version 0.5.0.

Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Jay Lanagan 2023-06-01 21:34:54 +01:00 committed by Willy Sudiarto Raharjo
parent 23c81dae79
commit be4dc30c4e
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 117 additions and 5 deletions

View File

@ -0,0 +1,108 @@
--- a/nwg_shell_config/shell/custom-hyprland
+++ b/nwg_shell_config/shell/custom-hyprland
@@ -46,8 +46,8 @@
"gtklock-userinfo-under-clock": false,
"gtklock-powerbar-show-labels": true,
"gtklock-powerbar-linked-buttons": false,
- "gtklock-reboot-command": "systemctl reboot",
- "gtklock-poweroff-command": "systemctl -i poweroff",
+ "gtklock-reboot-command": "loginctl reboot",
+ "gtklock-poweroff-command": "loginctl poweroff",
"gtklock-playerctl-art-size": 64,
"gtklock-playerctl-position": "top-right",
"gtklock-playerctl-show-hidden": true
--- a/nwg_shell_config/shell/custom
+++ b/nwg_shell_config/shell/custom
@@ -43,8 +43,8 @@
"gtklock-userinfo-under-clock": false,
"gtklock-powerbar-show-labels": true,
"gtklock-powerbar-linked-buttons": false,
- "gtklock-reboot-command": "systemctl reboot",
- "gtklock-poweroff-command": "systemctl -i poweroff",
+ "gtklock-reboot-command": "loginctl reboot",
+ "gtklock-poweroff-command": "loginctl poweroff",
"gtklock-playerctl-art-size": 64,
"gtklock-playerctl-position": "top-right",
"gtklock-playerctl-show-hidden": true
--- a/nwg_shell_config/locker.py
+++ b/nwg_shell_config/locker.py
@@ -53,9 +53,9 @@
"gtklock-logout-command": "swaymsg exit",
"gtklock-playerctl": False,
"gtklock-powerbar": False,
- "gtklock-poweroff-command": "systemctl -i poweroff",
- "gtklock-reboot-command": "systemctl reboot",
- "gtklock-suspend-command": "systemctl suspend",
+ "gtklock-poweroff-command": "loginctl poweroff",
+ "gtklock-reboot-command": "loginctl reboot",
+ "gtklock-suspend-command": "loginctl suspend",
"gtklock-time-format": "%H:%M:%S",
"gtklock-userinfo": False,
"gtklock-userswitch-command": ""
--- a/nwg_shell_config/main_hyprland.py
+++ b/nwg_shell_config/main_hyprland.py
@@ -1026,9 +1026,9 @@
"gtklock-logout-command": "swaymsg exit",
"gtklock-playerctl": False,
"gtklock-powerbar": False,
- "gtklock-poweroff-command": "systemctl -i poweroff",
- "gtklock-reboot-command": "systemctl reboot",
- "gtklock-suspend-command": "systemctl suspend",
+ "gtklock-poweroff-command": "loginctl poweroff",
+ "gtklock-reboot-command": "loginctl reboot",
+ "gtklock-suspend-command": "loginctl suspend",
"gtklock-time-format": "%H:%M:%S",
"gtklock-userinfo": False,
"gtklock-userswitch-command": "",
--- a/nwg_shell_config/main_sway.py
+++ b/nwg_shell_config/main_sway.py
@@ -916,9 +916,9 @@
"gtklock-logout-command": "swaymsg exit",
"gtklock-playerctl": False,
"gtklock-powerbar": False,
- "gtklock-poweroff-command": "systemctl -i poweroff",
- "gtklock-reboot-command": "systemctl reboot",
- "gtklock-suspend-command": "systemctl suspend",
+ "gtklock-poweroff-command": "loginctl poweroff",
+ "gtklock-reboot-command": "loginctl reboot",
+ "gtklock-suspend-command": "loginctl suspend",
"gtklock-time-format": "%H:%M:%S",
"gtklock-userinfo": False,
"gtklock-userswitch-command": "",
--- a/nwg_shell_config/shell/settings-hyprland
+++ b/nwg_shell_config/shell/settings-hyprland
@@ -110,9 +110,9 @@
"gtklock-logout-command": "swaymsg exit",
"gtklock-playerctl": false,
"gtklock-powerbar": false,
- "gtklock-poweroff-command": "systemctl -i poweroff",
- "gtklock-reboot-command": "systemctl reboot",
- "gtklock-suspend-command": "systemctl suspend",
+ "gtklock-poweroff-command": "loginctl poweroff",
+ "gtklock-reboot-command": "loginctl reboot",
+ "gtklock-suspend-command": "loginctl suspend",
"gtklock-time-format": "%H:%M:%S",
"gtklock-userinfo": false,
"gtklock-userswitch-command": "",
--- a/nwg_shell_config/shell/settings
+++ b/nwg_shell_config/shell/settings
@@ -83,9 +83,9 @@
"gtklock-logout-command": "swaymsg exit",
"gtklock-playerctl": false,
"gtklock-powerbar": false,
- "gtklock-poweroff-command": "systemctl -i poweroff",
- "gtklock-reboot-command": "systemctl reboot",
- "gtklock-suspend-command": "systemctl suspend",
+ "gtklock-poweroff-command": "loginctl poweroff",
+ "gtklock-reboot-command": "loginctl reboot",
+ "gtklock-suspend-command": "loginctl suspend",
"gtklock-time-format": "%H:%M:%S",
"gtklock-userinfo": false,
"gtklock-userswitch-command": ""

View File

@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nwg-shell-config
VERSION=${VERSION:-0.4.20}
BUILD=${BUILD:-2}
VERSION=${VERSION:-0.5.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -76,6 +76,10 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z || tar xvf $CWD/v$VERSION.tar.?z
cd $PRGNAM-$VERSION
chown -R root:root .
# patches removing refs to systemctl & replaced w/ loginctl
patch -Np1 -i $CWD/loginctl.patch || exit 1
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \

View File

@ -1,9 +1,9 @@
PRGNAM="nwg-shell-config"
VERSION="0.4.20"
VERSION="0.5.0"
HOMEPAGE="https://github.com/nwg-piotr/nwg-shell-config/"
DOWNLOAD="https://github.com/nwg-piotr/nwg-shell-config/archive/v0.4.20/nwg-shell-config-0.4.20.tar.gz \
DOWNLOAD="https://github.com/nwg-piotr/nwg-shell-config/archive/v0.5.0/nwg-shell-config-0.5.0.tar.gz \
https://slackware.lngn.net/pub/source/nwg-shell-config/Slackware_logo.svg"
MD5SUM="1649a44e3e149ddcb011f7132b149c96 \
MD5SUM="4ba92391d5b584fc49c38ce27b35713d \
275ee1d6ab047f12df0da19a4e99963d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""