././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1657832106.9732542
cups-of-caffeine-2.9.12/ 0000750 0001750 0001750 00000000000 00000000000 014353 5 ustar 00rrt rrt 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1649663204.0
cups-of-caffeine-2.9.12/MANIFEST.in 0000640 0001750 0001750 00000000133 00000000000 016107 0 ustar 00rrt rrt 0000000 0000000 recursive-include translations *.po
recursive-include share *
recursive-exclude share *.mo
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1657832106.9732542
cups-of-caffeine-2.9.12/PKG-INFO 0000640 0001750 0001750 00000004665 00000000000 015464 0 ustar 00rrt rrt 0000000 0000000 Metadata-Version: 2.1
Name: cups-of-caffeine
Version: 2.9.12
Summary: Keep your computer awake.
Home-page: https://launchpad.net/caffeine
Author: Reuben Thomas
Author-email: rrt@sc3d.org
License: GPLv3
Description: # Caffeine
https://launchpad.net/caffeine/
Caffeine is a small daemon that prevents the desktop from becoming idle (and
hence the screen saver and/or blanker from activating) when the active
window is full-screen.
Also provided are an indicator, caffeine-indicator, that gives a manual
toggle, and caffeinate, which allows desktop idleness to be inhibited for
the duration of any command. See their man pages for more information.
Caffeine is distributed under the GNU General Public License, either version
3, or (at your option) any later version. See COPYING.
The Caffeine SVG icons are Copyright (C) 2009 Tommy Brunn
(http://www.blastfromthepast.se/blabbermouth), and distributed under the
terms of the GNU Lesser General Public License, either version 3, or (at
your option) any later version. See COPYING.LESSER.
Caffeine uses pyewmh from https://sf.net/projects/pyewmh
## If you think you’ve found a bug
Try running, in a terminal:
```
window_id=`xwininfo | grep "Window id" | cut -d " " -f 4`
```
Now click on the terminal window, and then run:
```
xdg-screensaver suspend $window_id
xdg-screensaver resume $window_id
```
This performs the same steps at a lower level as turning Caffeine on then
off again manually. If this gives the same problem as using Caffeine, then
the bug is definitely not in Caffeine.
## Testing translations
If you want to test out a translation without changing the language for the
whole session, run caffeine as e.g.: LANGUAGE=ru ./caffeine
To compile the translations: ./update_translations.py (this is done
automatically when building the package, so no need to do it normally).
You will need a language pack for the given language. Be aware that some
stock items will not be translated unless you log in with a given language.
Platform: UNKNOWN
Description-Content-Type: text/markdown
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1649663204.0
cups-of-caffeine-2.9.12/README.md 0000640 0001750 0001750 00000003373 00000000000 015641 0 ustar 00rrt rrt 0000000 0000000 # Caffeine
https://launchpad.net/caffeine/
Caffeine is a small daemon that prevents the desktop from becoming idle (and
hence the screen saver and/or blanker from activating) when the active
window is full-screen.
Also provided are an indicator, caffeine-indicator, that gives a manual
toggle, and caffeinate, which allows desktop idleness to be inhibited for
the duration of any command. See their man pages for more information.
Caffeine is distributed under the GNU General Public License, either version
3, or (at your option) any later version. See COPYING.
The Caffeine SVG icons are Copyright (C) 2009 Tommy Brunn
(http://www.blastfromthepast.se/blabbermouth), and distributed under the
terms of the GNU Lesser General Public License, either version 3, or (at
your option) any later version. See COPYING.LESSER.
Caffeine uses pyewmh from https://sf.net/projects/pyewmh
## If you think you’ve found a bug
Try running, in a terminal:
```
window_id=`xwininfo | grep "Window id" | cut -d " " -f 4`
```
Now click on the terminal window, and then run:
```
xdg-screensaver suspend $window_id
xdg-screensaver resume $window_id
```
This performs the same steps at a lower level as turning Caffeine on then
off again manually. If this gives the same problem as using Caffeine, then
the bug is definitely not in Caffeine.
## Testing translations
If you want to test out a translation without changing the language for the
whole session, run caffeine as e.g.: LANGUAGE=ru ./caffeine
To compile the translations: ./update_translations.py (this is done
automatically when building the package, so no need to do it normally).
You will need a language pack for the given language. Be aware that some
stock items will not be translated unless you log in with a given language.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1649662929.0
cups-of-caffeine-2.9.12/caffeinate 0000750 0001750 0001750 00000004405 00000000000 016371 0 ustar 00rrt rrt 0000000 0000000 #!/usr/bin/env python3
#
# Copyright © 2015-2016 Reuben Thomas
#
# 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 3 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, see .
import sys
import argparse
import signal
from subprocess import run
import pkg_resources
from Xlib import display
sys.tracebacklimit = None
PROGRAM_NAME = "caffeinate"
VERSION = pkg_resources.require("cups-of-caffeine")[0].version
def die(err):
sys.exit(PROGRAM_NAME + ': ' + err)
# Handle command line arguments
parser = argparse.ArgumentParser(prog=PROGRAM_NAME, description='Inhibit desktop idleness for the duration of COMMAND')
parser.add_argument('COMMAND', help='command to run')
parser.add_argument('ARGUMENT', nargs='*', help='arguments to COMMAND', default=None)
parser.add_argument('-V', '--version', action='version', version=PROGRAM_NAME + ' ' + VERSION)
args = parser.parse_args()
def make_unmapped_window(wm_name):
screen = display.Display().screen()
window = screen.root.create_window(0, 0, 1, 1, 0, screen.root_depth)
window.set_wm_name(wm_name)
window.set_wm_protocols([])
return window
# Create window to use with xdg-screensaver
window = make_unmapped_window("caffeinate")
wid = hex(window.id)
# Catch signals, to do our best to ensure inhibition is removed
def signal_action(*args):
release()
sys.exit(1)
def release():
if run(['xdg-screensaver', 'resume', wid]).returncode != 0:
die("could not uninhibit desktop idleness")
for sig in [signal.SIGINT, signal.SIGTERM, signal.SIGHUP]:
signal.signal(sig, signal_action)
# Run command, bracketed by xdg-screensaver suspend/resume
if run(['xdg-screensaver', 'suspend', wid]).returncode != 0:
die("could not inhibit desktop idleness")
run([args.COMMAND] + args.ARGUMENT)
release()
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1649662969.0
cups-of-caffeine-2.9.12/caffeine 0000750 0001750 0001750 00000006546 00000000000 016054 0 ustar 00rrt rrt 0000000 0000000 #!/usr/bin/env python3
#
# Copyright © 2009-2020 The Caffeine Developers
#
# 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 3 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, see .
import logging
import argparse
import signal
from subprocess import call
import sys
import pkg_resources
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import GObject, Gtk, GLib
from ewmh import EWMH
PROGRAM_NAME = 'caffeine'
# Handle command-line arguments
parser = argparse.ArgumentParser(prog=PROGRAM_NAME, description='Prevent desktop idleness in full-screen mode')
parser.add_argument('-V', '--version', action='version', version=PROGRAM_NAME + ' ' + pkg_resources.require("cups-of-caffeine")[0].version)
parser.parse_args()
ewmh = EWMH()
class Caffeine(GObject.GObject):
def __init__(self):
GObject.GObject.__init__(self)
self.screenSaverWindowID = None
# Add hook for full-screen check (same interval as mplayer's heartbeat command)
# FIXME: add capability to xdg-screensaver to report timeout
GLib.timeout_add_seconds(30, self._check_for_fullscreen)
def _check_for_fullscreen(self):
win = ewmh.getActiveWindow()
inhibit = False
if win != None:
try:
inhibit = '_NET_WM_STATE_FULLSCREEN' in ewmh.getWmState(win, str=True)
except:
pass
# If inhibition state has changed, take action
if (self.screenSaverWindowID != None) != inhibit:
if inhibit:
self.screenSaverWindowID = hex(win.id)
call(['xdg-screensaver', 'suspend', self.screenSaverWindowID])
logging.info(PROGRAM_NAME + " is inhibiting desktop idleness")
else:
self.release()
# Return True so timeout is rerun
return True
def release(self):
if self.screenSaverWindowID != None:
call(['xdg-screensaver', 'resume', self.screenSaverWindowID])
self.screenSaverWindowID = None
logging.info(PROGRAM_NAME + " is no longer inhibiting desktop idleness")
# Adapted from http://stackoverflow.com/questions/26388088/python-gtk-signal-handler-not-working
def InitSignal():
def signal_action(signal):
caffeine.release()
sys.exit(1)
def idle_handler(*args):
GLib.idle_add(signal_action, priority=GLib.PRIORITY_HIGH)
def handler(*args):
signal_action(args[0])
def install_glib_handler(sig):
# GLib.unix_signal_add was added in glib 2.36
GLib.unix_signal_add(GLib.PRIORITY_HIGH, sig, handler, sig)
for sig in [signal.SIGINT, signal.SIGTERM, signal.SIGHUP]:
signal.signal(sig, idle_handler)
GLib.idle_add(install_glib_handler, sig, priority=GLib.PRIORITY_HIGH)
# Set up and run
logging.basicConfig(level=logging.INFO)
caffeine = Caffeine()
InitSignal()
Gtk.main()
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1649662945.0
cups-of-caffeine-2.9.12/caffeine-indicator 0000750 0001750 0001750 00000015045 00000000000 020020 0 ustar 00rrt rrt 0000000 0000000 #!/usr/bin/env python3
#
# Copyright © 2009-2020 The Caffeine Developers
#
# 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 3 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, see .
import os
import sys
from os.path import join, abspath, dirname, pardir, exists
import gettext
import locale
import logging
import argparse
import signal
import builtins
from subprocess import call
import pkg_resources
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('AyatanaAppIndicator3', '0.1')
from gi.repository import GLib, Gtk, GObject, AyatanaAppIndicator3 as AppIndicator3
from Xlib import display
PROGRAM_NAME = "caffeine-indicator"
VERSION = pkg_resources.require("cups-of-caffeine")[0].version
# Register the gettext function for the whole interpreter as "_"
builtins._ = gettext.gettext
def get_base_path():
c = abspath(dirname(__file__))
while True:
if exists(join(c, "share", PROGRAM_NAME)):
return c
c = join(c, pardir)
if not exists(c):
raise Exception("Can't determine BASE_PATH")
BASE_PATH = get_base_path()
GLADE_PATH = join(BASE_PATH, 'share', PROGRAM_NAME, 'glade')
# Set up translations
LOCALE_PATH = join(BASE_PATH, "share", "locale")
locale.setlocale(locale.LC_ALL, '')
for module in locale, gettext:
module.bindtextdomain(PROGRAM_NAME, LOCALE_PATH)
module.textdomain(PROGRAM_NAME)
# Handle command line arguments
parser = argparse.ArgumentParser(prog=PROGRAM_NAME, description='Toggle desktop idleness inhibition')
parser.add_argument('-V', '--version', action='version', version=PROGRAM_NAME + ' ' + VERSION)
parser.parse_args()
class GUI(object):
def __init__(self, caffeine):
self.Caffeine = caffeine
self.Caffeine.connect("activation-toggled", self.on_activation_toggled)
self.labels = [_("Activate"), _("Deactivate")]
builder = Gtk.Builder()
builder.add_from_file(join(GLADE_PATH, "GUI.glade"))
get = builder.get_object
self.AppInd = AppIndicator3.Indicator.new("caffeine-cup-empty",
"caffeine",
AppIndicator3.IndicatorCategory.APPLICATION_STATUS)
self.AppInd.set_status(AppIndicator3.IndicatorStatus.ACTIVE)
self.activate_menuitem = get("activate_menuitem")
self.set_icon_is_activated(self.Caffeine.get_activated())
# Popup menu
self.menu = get("popup_menu")
self.menu.show()
self.AppInd.set_menu(self.menu)
# About dialog
self.about_dialog = get("aboutdialog")
self.about_dialog.set_version(VERSION)
self.about_dialog.set_translator_credits(_("translator-credits"))
# Activate menu item shortcut
self.AppInd.set_secondary_activate_target(self.activate_menuitem)
builder.connect_signals(self)
def on_activation_toggled(self, source, active, tooltip):
self.set_icon_is_activated(active)
def set_icon_is_activated(self, activated):
# Toggle the icon, indexing with a bool.
icon_name = ["caffeine-cup-empty", "caffeine-cup-full"][activated]
self.AppInd.set_icon_full(icon_name, "Caffeine is {}".format("activated" if activated else "deactivated"))
self.activate_menuitem.set_label(self.labels[self.Caffeine.get_activated()])
# Menu callbacks
def on_activate_menuitem_activate(self, menuitem, data=None):
self.Caffeine.toggle_activated()
menuitem.set_label(self.labels[self.Caffeine.get_activated()])
def on_about_menuitem_activate(self, menuitem, data=None):
self.about_dialog.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
self.about_dialog.run()
self.about_dialog.hide()
def on_quit_menuitem_activate(self, menuitem, data=None):
# Make sure desktop idleness is uninhibited
self.Caffeine.release()
Gtk.main_quit()
def make_unmapped_window(wm_name):
screen = display.Display().screen()
window = screen.root.create_window(0, 0, 1, 1, 0, screen.root_depth)
window.set_wm_name(wm_name)
window.set_wm_protocols([])
return window
class Caffeine(GObject.GObject):
def __init__(self):
GObject.GObject.__init__(self)
self.window = make_unmapped_window("Caffeine indicator")
self.status_string = None
self.screenSaverWindowID = None
def get_activated(self):
return self.screenSaverWindowID != None
def toggle_activated(self):
if self.screenSaverWindowID == None:
self.screenSaverWindowID = hex(self.window.id)
self.status_string = _(PROGRAM_NAME + " is inhibiting desktop idleness")
logging.info(self.status_string)
call(['xdg-screensaver', 'suspend', self.screenSaverWindowID])
else:
self.release()
self.emit("activation-toggled", self.get_activated(), self.status_string)
def release(self):
if self.screenSaverWindowID != None:
call(['xdg-screensaver', 'resume', self.screenSaverWindowID])
self.screenSaverWindowID = None
self.status_string = _(PROGRAM_NAME + " is inactive")
logging.info(self.status_string)
# Adapted from http://stackoverflow.com/questions/26388088/python-gtk-signal-handler-not-working
def InitSignal(gui):
def signal_action(signal):
caffeine.release()
sys.exit(1)
def idle_handler(*args):
GLib.idle_add(signal_action, priority=GLib.PRIORITY_HIGH)
def handler(*args):
signal_action(args[0])
def install_glib_handler(sig):
# GLib.unix_signal_add was added in glib 2.36
GLib.unix_signal_add(GLib.PRIORITY_HIGH, sig, handler, sig)
for sig in [signal.SIGINT, signal.SIGTERM, signal.SIGHUP]:
signal.signal(sig, idle_handler)
GLib.idle_add(install_glib_handler, sig, priority=GLib.PRIORITY_HIGH)
# Set up and run
logging.basicConfig(level=logging.INFO)
GObject.signal_new("activation-toggled", Caffeine,
GObject.SignalFlags.RUN_FIRST, None, [bool, str])
caffeine = Caffeine()
gui = GUI(caffeine)
InitSignal(gui)
Gtk.main()
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1657832106.9692543
cups-of-caffeine-2.9.12/cups_of_caffeine.egg-info/ 0000750 0001750 0001750 00000000000 00000000000 021323 5 ustar 00rrt rrt 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1657832106.0
cups-of-caffeine-2.9.12/cups_of_caffeine.egg-info/PKG-INFO 0000640 0001750 0001750 00000004665 00000000000 022434 0 ustar 00rrt rrt 0000000 0000000 Metadata-Version: 2.1
Name: cups-of-caffeine
Version: 2.9.12
Summary: Keep your computer awake.
Home-page: https://launchpad.net/caffeine
Author: Reuben Thomas
Author-email: rrt@sc3d.org
License: GPLv3
Description: # Caffeine
https://launchpad.net/caffeine/
Caffeine is a small daemon that prevents the desktop from becoming idle (and
hence the screen saver and/or blanker from activating) when the active
window is full-screen.
Also provided are an indicator, caffeine-indicator, that gives a manual
toggle, and caffeinate, which allows desktop idleness to be inhibited for
the duration of any command. See their man pages for more information.
Caffeine is distributed under the GNU General Public License, either version
3, or (at your option) any later version. See COPYING.
The Caffeine SVG icons are Copyright (C) 2009 Tommy Brunn
(http://www.blastfromthepast.se/blabbermouth), and distributed under the
terms of the GNU Lesser General Public License, either version 3, or (at
your option) any later version. See COPYING.LESSER.
Caffeine uses pyewmh from https://sf.net/projects/pyewmh
## If you think you’ve found a bug
Try running, in a terminal:
```
window_id=`xwininfo | grep "Window id" | cut -d " " -f 4`
```
Now click on the terminal window, and then run:
```
xdg-screensaver suspend $window_id
xdg-screensaver resume $window_id
```
This performs the same steps at a lower level as turning Caffeine on then
off again manually. If this gives the same problem as using Caffeine, then
the bug is definitely not in Caffeine.
## Testing translations
If you want to test out a translation without changing the language for the
whole session, run caffeine as e.g.: LANGUAGE=ru ./caffeine
To compile the translations: ./update_translations.py (this is done
automatically when building the package, so no need to do it normally).
You will need a language pack for the given language. Be aware that some
stock items will not be translated unless you log in with a given language.
Platform: UNKNOWN
Description-Content-Type: text/markdown
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1657832106.0
cups-of-caffeine-2.9.12/cups_of_caffeine.egg-info/SOURCES.txt 0000640 0001750 0001750 00000007412 00000000000 023214 0 ustar 00rrt rrt 0000000 0000000 MANIFEST.in
README.md
caffeinate
caffeine
caffeine-indicator
setup.py
cups_of_caffeine.egg-info/PKG-INFO
cups_of_caffeine.egg-info/SOURCES.txt
cups_of_caffeine.egg-info/dependency_links.txt
cups_of_caffeine.egg-info/top_level.txt
etc/xdg/autostart/caffeine.desktop
share/applications/caffeine-indicator.desktop
share/applications/caffeine.desktop
share/caffeine-indicator/glade/GUI.glade
share/icons/hicolor/16x16/apps/caffeine.png
share/icons/hicolor/16x16/status/caffeine-cup-empty.png
share/icons/hicolor/16x16/status/caffeine-cup-full.png
share/icons/hicolor/22x22/apps/caffeine.png
share/icons/hicolor/22x22/status/caffeine-cup-empty.png
share/icons/hicolor/22x22/status/caffeine-cup-full.png
share/icons/hicolor/24x24/apps/caffeine.png
share/icons/hicolor/24x24/status/caffeine-cup-empty.png
share/icons/hicolor/24x24/status/caffeine-cup-full.png
share/icons/hicolor/32x32/apps/caffeine.png
share/icons/hicolor/32x32/status/caffeine-cup-empty.png
share/icons/hicolor/32x32/status/caffeine-cup-full.png
share/icons/hicolor/48x48/apps/caffeine.png
share/icons/hicolor/48x48/status/caffeine-cup-empty.png
share/icons/hicolor/48x48/status/caffeine-cup-full.png
share/icons/hicolor/scalable/apps/caffeine.svg
share/icons/hicolor/scalable/status/caffeine-cup-empty.svg
share/icons/hicolor/scalable/status/caffeine-cup-full.svg
share/icons/ubuntu-mono-dark/status/16/caffeine-cup-empty.png
share/icons/ubuntu-mono-dark/status/16/caffeine-cup-full.png
share/icons/ubuntu-mono-dark/status/22/caffeine-cup-empty.png
share/icons/ubuntu-mono-dark/status/22/caffeine-cup-full.png
share/icons/ubuntu-mono-dark/status/24/caffeine-cup-empty.png
share/icons/ubuntu-mono-dark/status/24/caffeine-cup-full.png
share/icons/ubuntu-mono-dark/status/32/caffeine-cup-empty.png
share/icons/ubuntu-mono-dark/status/32/caffeine-cup-full.png
share/icons/ubuntu-mono-dark/status/48/caffeine-cup-empty.png
share/icons/ubuntu-mono-dark/status/48/caffeine-cup-full.png
share/icons/ubuntu-mono-dark/status/scalable/caffeine-cup-empty.svg
share/icons/ubuntu-mono-dark/status/scalable/caffeine-cup-full.svg
share/icons/ubuntu-mono-light/status/16/caffeine-cup-empty.png
share/icons/ubuntu-mono-light/status/16/caffeine-cup-full.png
share/icons/ubuntu-mono-light/status/22/caffeine-cup-empty.png
share/icons/ubuntu-mono-light/status/22/caffeine-cup-full.png
share/icons/ubuntu-mono-light/status/24/caffeine-cup-empty.png
share/icons/ubuntu-mono-light/status/24/caffeine-cup-full.png
share/icons/ubuntu-mono-light/status/32/caffeine-cup-empty.png
share/icons/ubuntu-mono-light/status/32/caffeine-cup-full.png
share/icons/ubuntu-mono-light/status/48/caffeine-cup-empty.png
share/icons/ubuntu-mono-light/status/48/caffeine-cup-full.png
share/icons/ubuntu-mono-light/status/scalable/caffeine-cup-empty.svg
share/icons/ubuntu-mono-light/status/scalable/caffeine-cup-full.svg
share/man/man1/caffeinate.1.gz
share/man/man1/caffeine-indicator.1.gz
share/man/man1/caffeine.1.gz
share/pixmaps/caffeine.png
translations/ar.po
translations/be.po
translations/bg.po
translations/bs.po
translations/ca.po
translations/cs.po
translations/da.po
translations/de.po
translations/el.po
translations/en_GB.po
translations/eo.po
translations/es.po
translations/eu.po
translations/fi.po
translations/fr.po
translations/gl.po
translations/he.po
translations/hr.po
translations/hu.po
translations/id.po
translations/it.po
translations/ja.po
translations/ko.po
translations/lt.po
translations/ms.po
translations/nl.po
translations/no.po
translations/oc.po
translations/pl.po
translations/pt.po
translations/pt_BR.po
translations/ro.po
translations/ru.po
translations/si.po
translations/sk.po
translations/sl.po
translations/sr.po
translations/sv.po
translations/sw.po
translations/th.po
translations/tr.po
translations/uk.po
translations/vi.po
translations/xh.po
translations/zh_CN.po
translations/zh_TW.po ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1657832106.0
cups-of-caffeine-2.9.12/cups_of_caffeine.egg-info/dependency_links.txt 0000640 0001750 0001750 00000000001 00000000000 025372 0 ustar 00rrt rrt 0000000 0000000
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1657832106.0
cups-of-caffeine-2.9.12/cups_of_caffeine.egg-info/top_level.txt 0000640 0001750 0001750 00000000001 00000000000 024045 0 ustar 00rrt rrt 0000000 0000000
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1657832106.9652543
cups-of-caffeine-2.9.12/etc/ 0000750 0001750 0001750 00000000000 00000000000 015126 5 ustar 00rrt rrt 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1657832106.9652543
cups-of-caffeine-2.9.12/etc/xdg/ 0000750 0001750 0001750 00000000000 00000000000 015710 5 ustar 00rrt rrt 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1657832106.9692543
cups-of-caffeine-2.9.12/etc/xdg/autostart/ 0000750 0001750 0001750 00000000000 00000000000 017736 5 ustar 00rrt rrt 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1657832106.0
cups-of-caffeine-2.9.12/etc/xdg/autostart/caffeine.desktop 0000640 0001750 0001750 00000003336 00000000000 023077 0 ustar 00rrt rrt 0000000 0000000 [Desktop Entry]
Icon=caffeine
Name=Caffeine
Comment=Temporarily deactivate the screensaver and sleep mode
Comment[ru]=Временное отключение экранной заставки и режима сна
Comment[pl]=Czasowo wyłącza wygaszacz ekranu oraz tryb usypiania
Comment[ar]=عطل مؤقتاً وضع شاشة التوقف والسكون
Comment[cs]=Dočasně deaktivovat šetřič obrazovky a režim spánku
Comment[da]=Deaktivér midlertidigt pauseskærm og slumretilstand
Comment[de]=Zeitweise Bildschirmschoner und Schlafmodus deaktivieren
Comment[el]=Προσωρινή απενεργοποίηση προφύλαξης οθόνης και κατάστασης αναστολής
Comment[es]=Desactivar temporalmente el protector de pantalla y el modo de suspensión
Comment[fi]=Poista väliaikaisesti näytönsäästäjä ja lepotila käytöstä
Comment[fr]=Désactiver temporairement l'écran de veiller et le mode économie d'énergie
Comment[hu]=Átmenetileg deaktiválja a képernyővédőt és az alvó üzemmódot
Comment[it]=Disattiva temporaneamente il salvaschermo e la modalità di sospensione
Comment[ja]=スクリーンセーバーとスリープモードを一時的に無効化する
Comment[nb]=Deaktiver midlertidig skjermsparer og dvalemodus
Comment[nl]=Deactiveer tijdelijk de schermbeveiliging en slaapmodus
Comment[pt_BR]=Desative temporariamente a proteção de tela e a hibernação
Comment[ro]=Dezactivează temporar economizorul de ecran și modul adormire
Comment[zh_CN]=暂时取消激活屏保和睡眠模式
Comment[zh_TW]=暫時停用螢幕保護程式與睡眠模式
Exec=/usr/bin/caffeine
Terminal=false
Type=Application
Categories=Utility;
Keywords=Screensaver,Power,Saving,Blank
StartupNotify=false
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1657832106.9732542
cups-of-caffeine-2.9.12/setup.cfg 0000640 0001750 0001750 00000000046 00000000000 016175 0 ustar 00rrt rrt 0000000 0000000 [egg_info]
tag_build =
tag_date = 0
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1657832066.0
cups-of-caffeine-2.9.12/setup.py 0000640 0001750 0001750 00000004543 00000000000 016074 0 ustar 00rrt rrt 0000000 0000000 #!/usr/bin/env python3
from setuptools import setup
import os
from os.path import join, abspath, dirname, exists
from pathlib import Path
import sys
import shutil
import subprocess
# Read README.md
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
# Update the translations
PO_DIR = 'translations'
if not exists(PO_DIR):
os.makedirs(PO_DIR)
subprocess.check_call(["xgettext", "-o", join(PO_DIR, "caffeine-indicator.pot"), "--language=python", "--from-code=UTF-8", "caffeine-indicator"])
def compile_catalog(po_dir, prg_name):
po_files = []
for dirpath, dirnames, filenames in os.walk(po_dir):
for file in filenames:
if file.split('.')[-1] == "po":
po_files.append(os.path.join(dirpath, file))
for po in po_files:
lang = po.split('/')[-1]
print("Compiling for Locale: "+"".join(lang.split(".")[:-1]))
lang = lang.split('-')[-1]
lang = lang.split('.')[0]
lang = lang.strip()
if not lang:
continue
lang_lc_dir = os.path.join('share', 'locale', lang, 'LC_MESSAGES')
if not os.path.isdir(lang_lc_dir):
os.makedirs(lang_lc_dir)
subprocess.check_call(["msgfmt", po, "-o", os.path.join(lang_lc_dir,prg_name+".mo")])
compile_catalog(PO_DIR, "caffeine-indicator")
# Add extra data files
data_files = []
for path, _, files in os.walk("share"):
if len(files) > 0:
data_files.append(tuple((path,
[join(path, file) for file in files])))
desktop_name = "caffeine.desktop"
desktop_file = join("share", "applications", desktop_name)
autostart_dir = join("etc", "xdg", "autostart")
if not exists(autostart_dir):
os.makedirs(autostart_dir)
shutil.copy(desktop_file, autostart_dir)
data_files.append(tuple(("/" + autostart_dir, [join(autostart_dir, desktop_name)])))
setup(name="cups-of-caffeine",
version="2.9.12",
description="Keep your computer awake.",
license="GPLv3",
author="Reuben Thomas",
author_email="rrt@sc3d.org",
url="https://launchpad.net/caffeine",
long_description=long_description,
long_description_content_type = "text/markdown",
data_files=data_files,
scripts=["caffeine", "caffeinate", "caffeine-indicator"],
py_modules=[], # Workaround for setuptools >= 61.0; see https://bugs.launchpad.net/caffeine/+bug/1981419
)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1657832106.9652543
cups-of-caffeine-2.9.12/share/ 0000750 0001750 0001750 00000000000 00000000000 015455 5 ustar 00rrt rrt 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1657832106.9692543
cups-of-caffeine-2.9.12/share/applications/ 0000750 0001750 0001750 00000000000 00000000000 020143 5 ustar 00rrt rrt 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1484571542.0
cups-of-caffeine-2.9.12/share/applications/caffeine-indicator.desktop 0000640 0001750 0001750 00000000552 00000000000 025253 0 ustar 00rrt rrt 0000000 0000000 [Desktop Entry]
Icon=caffeine
Name=Caffeine Indicator
Comment=Manually control activation of the screensaver and sleep mode
Exec=/usr/bin/caffeine-indicator
Terminal=false
Type=Application
Categories=Utility;TrayIcon;
Keywords=Screensaver,Power,Saving,Blank
OnlyShowIn=GNOME;KDE;LXDE;LXQt;MATE;Razor;ROX;TDE;Unity;XFCE;EDE;Cinnamon;Pantheon;
StartupNotify=false
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1421424587.0
cups-of-caffeine-2.9.12/share/applications/caffeine.desktop 0000640 0001750 0001750 00000003336 00000000000 023304 0 ustar 00rrt rrt 0000000 0000000 [Desktop Entry]
Icon=caffeine
Name=Caffeine
Comment=Temporarily deactivate the screensaver and sleep mode
Comment[ru]=Временное отключение экранной заставки и режима сна
Comment[pl]=Czasowo wyłącza wygaszacz ekranu oraz tryb usypiania
Comment[ar]=عطل مؤقتاً وضع شاشة التوقف والسكون
Comment[cs]=Dočasně deaktivovat šetřič obrazovky a režim spánku
Comment[da]=Deaktivér midlertidigt pauseskærm og slumretilstand
Comment[de]=Zeitweise Bildschirmschoner und Schlafmodus deaktivieren
Comment[el]=Προσωρινή απενεργοποίηση προφύλαξης οθόνης και κατάστασης αναστολής
Comment[es]=Desactivar temporalmente el protector de pantalla y el modo de suspensión
Comment[fi]=Poista väliaikaisesti näytönsäästäjä ja lepotila käytöstä
Comment[fr]=Désactiver temporairement l'écran de veiller et le mode économie d'énergie
Comment[hu]=Átmenetileg deaktiválja a képernyővédőt és az alvó üzemmódot
Comment[it]=Disattiva temporaneamente il salvaschermo e la modalità di sospensione
Comment[ja]=スクリーンセーバーとスリープモードを一時的に無効化する
Comment[nb]=Deaktiver midlertidig skjermsparer og dvalemodus
Comment[nl]=Deactiveer tijdelijk de schermbeveiliging en slaapmodus
Comment[pt_BR]=Desative temporariamente a proteção de tela e a hibernação
Comment[ro]=Dezactivează temporar economizorul de ecran și modul adormire
Comment[zh_CN]=暂时取消激活屏保和睡眠模式
Comment[zh_TW]=暫時停用螢幕保護程式與睡眠模式
Exec=/usr/bin/caffeine
Terminal=false
Type=Application
Categories=Utility;
Keywords=Screensaver,Power,Saving,Blank
StartupNotify=false
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1657832106.9652543
cups-of-caffeine-2.9.12/share/caffeine-indicator/ 0000750 0001750 0001750 00000000000 00000000000 021167 5 ustar 00rrt rrt 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 011452 x ustar 00 0000000 0000000 28 mtime=1657832106.9692543
cups-of-caffeine-2.9.12/share/caffeine-indicator/glade/ 0000750 0001750 0001750 00000000000 00000000000 022243 5 ustar 00rrt rrt 0000000 0000000 ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 011453 x ustar 00 0000000 0000000 22 mtime=1625903168.0
cups-of-caffeine-2.9.12/share/caffeine-indicator/glade/GUI.glade 0000640 0001750 0001750 00000012561 00000000000 023673 0 ustar 00rrt rrt 0000000 0000000
168
1
10
59
1
10