head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.12.01.19.58.10; author ktnb; state Exp; branches; next ; commitid zbY5tWlcToQDqE5H; desc @@ 1.1 log @stumpwm: update to 2026.11 * Supporting reproducible builds * Fix version in stumpwm.asd * Reworked IO loop, simplification & removing restarts * Better default data dir * Include table of contents in the manual * Use non-canonical paths when resolving default data dir * FIX issue #997 * FIX issue #1234 * Fixing the custom type example in the docs * Clarified nuances of command-mode * Make find-mode-line-by-window find mode-lines with matching xwin ids * Add _NET_WM_STATE_ABOVE to +NETWM-SUPPORTED+ * Added more mouse interactivity and support for fixed number of chars for window titles in the mode line * add window classes for input, message and mode-line windows * Update contribution guidelines and add issue references * Fixed an issue where floating a window sometimes displays the color Orange in the parent window for a moment instead of the focus color * Rewrite renumber, toggle-always-on-top and toggle-always-show * Remove always-show windows from all groups to prevent orphaned records * Revised the poweroff functions * Fix bar formatter changing the rest modeline colors * Place focus-window and key-window outside the screen * Fix update-colors-for-screen * Redraw frame indicator on exposure * mode-line: replace click bounds even when the new draw has none * Support _NET_WM_MOVERESIZE for float windows * Skip float windows when restoring a tile group @ text @$NetBSD$ Use proper shutdown(1) flags for BSD. Fix bug with ConsoleKit. --- poweroff.lisp.orig 2026-11-28 00:04:49.000000000 +0000 +++ poweroff.lisp @@@@ -8,6 +8,9 @@@@ (let* ((time (if (and %interactivep% (not now)) (read-one-line (current-screen) "When? ") (if (and %interactivep% now) "" time))) + #+bsd + (cmd (format nil "shutdown -hp ~a ~a" time (if now "now" ""))) + #+linux (cmd (format nil "shutdown ~a ~a" time (if now "now" "")))) (run-shell-command cmd))) @@@@ -53,9 +56,9 @@@@ (message "^1ERROR:~%Suspend is not available on your system.^*")))) #+bsd (dbus:with-open-bus (bus (dbus:system-server-addresses)) - (if (find "org.freedesktop.ConsoleKit" (list-names bus) :test #'string=) - (dbus:with-introspected-object (login bus "/org/freedesktop/ConsoleKit" "org.freedesktop.ConsoleKit") - (if (string= "yes" (login "org.freedesktop.login1.Manager" "CanSuspend")) + (if (find "org.freedesktop.ConsoleKit" (dbus:list-names bus) :test #'string=) + (dbus:with-introspected-object (login bus "/org/freedesktop/ConsoleKit/Manager" "org.freedesktop.ConsoleKit") + (if (string= "yes" (login "org.freedesktop.ConsoleKit.Manager" "CanSuspend")) (login "org.freedesktop.ConsoleKit.Manager" "Suspend" nil) (message "^1ERROR:~%Suspend is not available on your system.^*"))) (message "^1ERROR:~%Suspend is not available on your system.^*")))) @@@@ -81,9 +84,9 @@@@ (message "^1ERROR:~%Hibernate is not available on your system.^*")))) #+bsd (dbus:with-open-bus (bus (dbus:system-server-addresses)) - (if (find "org.freedesktop.ConsoleKit" (list-names bus) :test #'string=) - (dbus:with-introspected-object (login bus "/org/freedesktop/ConsoleKit" "org.freedesktop.ConsoleKit") - (if (string= "yes" (login "org.freedesktop.login1.Manager" "CanHibernate")) + (if (find "org.freedesktop.ConsoleKit" (dbus:list-names bus) :test #'string=) + (dbus:with-introspected-object (login bus "/org/freedesktop/ConsoleKit/Manager" "org.freedesktop.ConsoleKit") + (if (string= "yes" (login "org.freedesktop.ConsoleKit.Manager" "CanHibernate")) (login "org.freedesktop.ConsoleKit.Manager" "Hibernate" nil) (message "^1ERROR:~%Hibernate is not available on your system.^*"))) (message "^1ERROR:~%Hibernate is not available on your system.^*")))) @