Git Product home page Git Product logo

oblogout-py3's Introduction

Openbox Logout Menu

Gtk3/Cairo based logout menu for the Openbox Window Manager.

oblogout

This is a fork of: https://github.com/Cloudef/oblogout-fork

Includes some fixes from https://github.com/ARR8/oblogout-fork-gtk3

INSTALLATION

  • Run ./setup.py install
  • Customise the config (/etc/oblogout.conf) as desired

RUN

  • Run via the oblogout command

CONFIGURATION OPTIONS

SETTINGS

  • Backend = Choose backend to use with oblogout's shutdown/restart operations

    • HAL
    • ConsoleKit ( Uses UPower for suspend/hibernate )
  • Monitor = Specify which monitor oblogout will appear in.

LOOKS

  • Opacity = Opacity percentage of Cario rendered backgrounds

  • Bgcolor = Colour name or hex code (#ffffff) of the background color

  • Buttontheme = Icon theme for the buttons, must be in the themes folder of the package, or in ~/.themes/<name>/oblogout/

  • Buttons = List and order of buttons to show

BUTTONS

  • cancel = Cancel logout/shutdown
  • restart = Restart
  • shutdown = Shutdown
  • suspend = Suspend
  • hibernate = Hibernate
  • safesuspend = Suspend/Hibernate mix, writes Hibernate file then suspends
  • lock = Lock session
  • switch = Switch user

SHORTCUTS

  • For each button type, define a key to use. Case insenstive.

COMMANDS

  • Same as the buttons, define a command per button type

LICENSE

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

oblogout-py3's People

Contributors

eaimty avatar mikadore avatar oltulu avatar penaz91 avatar trizen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

oblogout-py3's Issues

selected button background color

Selected button background is black, and i can't find a way to change it in the conf file.
Please add an option to set a different color.
thanks

How to set lock on hibernate and lock on suspend on config file

Hi there, I saw from your last commit (quite a while ago, but I only updated now) which you added a new settings which are lock on hibernate and lock on suspend.

I would like to set both of these off in the configuration file, while the default is on, how would I write that in the config file?

Error installing: ModuleNotFoundError: No module named 'DistUtilsExtra'

The following error occurred while installing:

Traceback (most recent call last):
  File "setup.py", line 6, in <module>
    from DistUtilsExtra.command import *
ModuleNotFoundError: No module named 'DistUtilsExtra'

Python Version: 3.8.10
Distribution: Linux Mint 20.2
Command used to execute: python3 setup.py install

AttributeError: module 'configparser' has no attribute 'SafeConfigParser'

I'm having this error when executing oblogout in archlinux, april 2024.

Traceback (most recent call last): File "/bin/oblogout", line 103, in sys.exit(main()) ^^^^^^ File "/bin/oblogout", line 98, in main app = OpenboxLogout(config, local_mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/oblogout/init.py", line 90, in init self.load_config(config) File "/usr/lib/python3.12/site-packages/oblogout/init.py", line 193, in load_config self.parser = configparser.SafeConfigParser() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

What fixed it for me:

sudo nano /usr/lib/python3.12/site-packages/oblogout/init.py

found this line: self.parser = configparser.SafeConfigParser()

changed it to: self.parser = configparser.ConfigParser()

Thank you.

Hibernation from terminal is different from hibernation from oblogout

Hi there, after having to change from the original oblogout to this fork, installed through the AUR, I now have an interesting problem.

When I run the command sudo systemctl hibernate the screen locks and my laptop hibernates, when I return I'm greeted with betterlockscreen as it should be considering I have it enabled in a systemd unit.
However when I use oblogout to hibernate it locks my screen, I then have to unlock it, so that it locks again and hibernates, and when I return I'm greeted with betterlockscreen as it should be.

My /etc/oblogout.conf is given by:

# theme location:
# /usr/share/themes
# this file doesn't require root priveleges to be edited

[settings]
usehal = false

[looks]
opacity = 50
buttontheme = Sardi-Oblogout-Blue
buttons = shutdown, restart, hibernate, lock

[shortcuts]
cancel = Escape
shutdown = S
restart = R
lock = L
hibernate = H

[commands]
shutdown = systemctl poweroff
restart = systemctl reboot
hibernate = systemctl hibernate
lock = betterlockscreen -l --off 30 -- -e -n

And my systemd unit file for betterlockscreen at /usr/lib/systemd/system/[email protected] is:

[Unit]
Description = Lock screen when going to sleep/suspend
Before=sleep.target
Before=suspend.target

[Service]
User=%I
Type=simple
Environment=DISPLAY=:0
ExecStart=/usr/bin/betterlockscreen --lock
TimeoutSec=infinity
ExecStartPost=/usr/bin/sleep 1

[Install]
WantedBy=sleep.target
WantedBy=suspend.target

This might be due to me being incompetent and somewhere in time added a custom fix to lock my screen while the system was hibernating and now it found it's way somehow to annoy me, but I'm unable to see where the issue is considering that sudo systemctl hibernate works as expected and /etc/oblogout.conf looks the same.

ImportError: /usr/lib/libgirepository-1.0.so.1: undefined symbol: g_memdup2

I have the following issue, I tried installing from AUR then from here (stupidly expecting some change). I'm not sure how to debug it

└─> oblogout Traceback (most recent call last): File "/usr/bin/oblogout", line 103, in <module> sys.exit(main()) File "/usr/bin/oblogout", line 78, in main from oblogout import OpenboxLogout File "/usr/lib/python3.9/site-packages/oblogout/__init__.py", line 40, in <module> import gi File "/usr/lib/python3.9/site-packages/gi/__init__.py", line 40, in <module> from . import _gi ImportError: /usr/lib/libgirepository-1.0.so.1: undefined symbol: g_memdup2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.