aboutsummaryrefslogtreecommitdiff
path: root/src/usr
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-03-10 20:40:39 -0400
committerB Stack <bgstack15@gmail.com>2020-03-10 20:40:39 -0400
commitffea6275fcb08b36c3d7f5182785cbd329f15e40 (patch)
tree82604b87354950240710ab9a1459febdcb9dd0a9 /src/usr
parentadd lm-cli (diff)
downloadlogout-manager-ffea6275fcb08b36c3d7f5182785cbd329f15e40.tar.gz
logout-manager-ffea6275fcb08b36c3d7f5182785cbd329f15e40.tar.bz2
logout-manager-ffea6275fcb08b36c3d7f5182785cbd329f15e40.zip
add desktop file, some readme contents
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/share/applications/logout-manager.desktop12
-rw-r--r--src/usr/share/doc/logout-manager/README.md38
2 files changed, 50 insertions, 0 deletions
diff --git a/src/usr/share/applications/logout-manager.desktop b/src/usr/share/applications/logout-manager.desktop
new file mode 100644
index 0000000..4522a66
--- /dev/null
+++ b/src/usr/share/applications/logout-manager.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Categories=Settings;HardwareSettings;
+Comment=Prompt for common actions including lock screen, logout, etc.
+Exec=/usr/bin/logout-manager
+GenericName=Logout menu
+Icon=system-log-out
+Keywords=shutdown;hibernate;lockscreen;logout;reboot;
+Name=Logout...
+StartupNotify=true
+Terminal=false
+Type=Application
+Version=1.0
diff --git a/src/usr/share/doc/logout-manager/README.md b/src/usr/share/doc/logout-manager/README.md
new file mode 100644
index 0000000..baa6aeb
--- /dev/null
+++ b/src/usr/share/doc/logout-manager/README.md
@@ -0,0 +1,38 @@
+# README for logout-manager
+## Introduction
+Logout Manager is a python3 utility that provides a simple menu for logout-type actions. The supported actions are presented:
+ * Lock
+ * Logout
+ * Hibernate (if supported by hardware)
+ * Shutdown
+ * Reboot
+
+## Alternatives
+[oblogout](https://launchpad.net/oblogout) looks really old so I did not investigate personally, but it sounds like it does the same thing I am trying to do.
+`apt-cache search logout` shows [lxsession-logout](http://manpages.ubuntu.com/manpages/precise/en/man1/lxsession-logout.1.html) which was compiled, as well as does not provide configurable options for changing executed commands or icons.
+
+## License
+[logout-manager-ncurses.py](src/usr/bin/logout-manager-ncurses.py) is licensed under the [MIT license](http://choosealicense.com/licenses/mit) and is derived almost entirely from [adamlamers](http://adamlamers.com/post/FTPD9KNRA8CT).
+Everything else is licensed under [CC-BY-SA 4.0](https://choosealicense.com/licenses/cc-by-sa-4.0/).
+
+## Description
+This project is partially a programming playground for the [original author](https://bgstack15.wordpress.com) and partially a useful project for his migration to [Fluxbox](http://fluxbox.org/) on the desktop.
+
+## Upsides
+* This project is the first to [demonstrate SVG images in tkinter in python3](https://bgstack15.wordpress.com/2019/07/13/display-svg-in-tkinter-python3/) that I could find on the Internet.
+* I have learned how to work with ncurses, gtk, and tcl in python3.
+* This will make Fluxbox systems easier to use for general users.
+
+## Downsides
+This whole thing is more complex than just logging out of my user session, and selecting a logout-type action from the display manager.
+
+## Improve
+* add makefile
+ * add the standard 'list' option
+ * add a `list_dependencies` option or similar, which does the grep command
+
+ grep -h -A5 -riIE dependencies * | awk 'tolower($0) ~ /devuan/ {$1="";$2="";print}' | sort | uniq | xargs
+
+* add libexec/ helper scripts for actually running commands
+* add debian/ dir
+ * and dsc file
bgstack15