Menu

Command Line

Manual (7)
Konrad Twardowski

Options

--help                    Show this help
-h, --halt                Turn Off Computer
-s, --shutdown            Turn Off Computer (like above)
-k, --lock                Lock screen
-r, --reboot              Restart Computer
-l, --logout              Logout
-H, --hibernate           Hibernate Computer
-S, --suspend             Suspend Computer (sleep)
--test                    Test Action (does nothing)
-e, --extra <file>        Run executable file (see link below)
-i, --inactivity          Detect user inactivity. Example: --logout --inactivity 90
                          - automatically logout after 90 minutes of user inactivity
--cancel                  Cancel an active action
--confirm                 Confirm command line action
--hide-ui                 Hide main window and system tray icon
--init                    Do not show main window on startup

Arguments

time                      Activate countdown.
  • Example: 13:37 - absolute time (HH:MM)
  • Example: 10 - number of minutes from now
  • See [FAQ] for more examples.

-e and --extra

See [Extras]

User Interface Styles

By default KShutdown will pick the "best" style that matches your Desktop Environment. However, you can always override the default look and feel with -style <id> option, where <id> is one of the following standard names:

  • breeze (since KDE Plasma 5)
  • fusion (since Qt 5)
  • gtk+
  • oxygen (KDE 4)
  • plastique
  • cde (Retro)
  • motif (Retro)
  • windows (Retro)
  • cleanlooks (use "gtk+" instead)

Example command: kshutdown -style oxygen

See Also

[D-Bus]


Related

Wiki: D-Bus
Wiki: Extras
Wiki: FAQ