Skip to content
Snippets Groups Projects
Commit dbe2a185 authored by Jan Beich's avatar Jan Beich
Browse files

x11/nwg-menu: unbreak reboot/poweroff buttons

env vars: []; command: 'systemctl'; args: [-i poweroff]
parent 403f67e9
No related branches found
No related tags found
No related merge requests found
PORTNAME= nwg-menu
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.1
PORTREVISION= 1
CATEGORIES= x11
MAINTAINER= jbeich@FreeBSD.org
......
- Adapt to BSD-style shutdown
--- main.go.orig 2021-06-19 23:37:36 UTC
+++ main.go
@@ -119,8 +119,8 @@ var fileManager = flag.String("fm", "thunar", "File Ma
var term = flag.String("term", "alacritty", "Terminal emulator")
var cmdLock = flag.String("cmd-lock", "swaylock -f -c 000000", "screen lock command")
var cmdLogout = flag.String("cmd-logout", "swaymsg exit", "logout command")
-var cmdRestart = flag.String("cmd-restart", "systemctl reboot", "reboot command")
-var cmdShutdown = flag.String("cmd-shutdown", "systemctl -i poweroff", "shutdown command")
+var cmdRestart = flag.String("cmd-restart", "shutdown -r now", "reboot command")
+var cmdShutdown = flag.String("cmd-shutdown", "shutdown -p now", "shutdown command")
func main() {
timeStart := time.Now()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment