commit qtile for openSUSE:Factory

2020-10-29 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2020-10-29 14:51:54

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new.3463 (New)


Package is "qtile"

Thu Oct 29 14:51:54 2020 rev:13 rq:844505 version:0.16.1

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2020-05-03 
22:48:41.859339602 +0200
+++ /work/SRC/openSUSE:Factory/.qtile.new.3463/qtile.changes2020-10-29 
14:51:56.981222343 +0100
@@ -1,0 +2,57 @@
+Wed Oct 28 07:54:06 UTC 2020 - John Vandenberg 
+
+- Fix Source
+
+---
+Mon Oct 26 13:37:18 UTC 2020 - John Vandenberg 
+
+- Remove unnecessary development build dependencies
+- Re-enable test suite
+- Update to v0.16.1
+  * Hooks 'addgroup', 'delgroup' and 'screen_change' will no
+longer receive the qtile object as an argument. It can be
+accessed directly at libqtile.qtile
+  * defining a main function in your config is deprecated. Use
+@hook.subscribe.startup_complete instead. If you need access
+to the qtile object, import it from libqtile directly
+  * include tests in the release for distros to consume
+  * don't resize 0th screen incorrectly on root ConfigureNotify
+  * expose qtile object as libqtile.qtile (note that we still
+consider anything not prefixed with cmd_ to be a private API)
+  * fix transparent borders
+  * MonadTall, MonadWide, and TreeTab now work with Slice
+- from v0.16.0
+  * Imports from libqtile.widget are now made through a function
+proxy to avoid the side effects of importing all widgets at
+once. If you subclass a widget in your config, import it from
+its own module
+e.g. from libqtile.widget.pomodoro import Pomodoro
+  * added `guess_terminal` in utils
+  * added keybinding cheet sheet image generator
+  * custom keyboardlayout display
+  * added native support for key chords
+  * validate config before restart and refuse to restart with
+a bad config
+  * added a bunch of type annotations to config objects
+  * Fixed a bug where the lazy.restart() binding would crash Qtile
+  * major focus rework; Java-based IDEs such as PyCharm,
+NetBrains, etc. now focus correctly
+  * fix a bug where spotify (or any window with focus-to=parent)
+was closed, nothing would be focused and no hotkeys would work
+  * support windows unsetting the input hint
+  * respects window's/user's location setting if present (WM_SIZE_HINTS)
+  * fixed YahooWeather widget for new API
+  * fix a bug where _NET_WM_DESKTOPS wasn't correctly updated when
+switching screens in some cases
+  * fix a crash in the BSP layout
+  * fix a stacktrace when unknown keysyms are encounted
+  * make qtile --version output more sane
+  * fix a rendering issue with special characters in window names
+  * keyboard widget no longer re-sets the keyboard settings every second
+  * fix qtile-top with the new IPC model
+  * Image widget respects its background setting now
+  * correctly re-draw non-focused screens on qtile restart
+  * fix a crash when decoding images
+  * fix the .when() constraint for lazy objects
+ 
+---

Old:

  qtile-0.15.1.tar.gz

New:

  qtile-0.16.1.tar.gz



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.bDG1n2/_old  2020-10-29 14:51:57.893223246 +0100
+++ /var/tmp/diff_new_pack.bDG1n2/_new  2020-10-29 14:51:57.897223250 +0100
@@ -16,16 +16,16 @@
 #
 
 
-%bcond_with test
+%bcond_without test
 Name:   qtile
-Version:0.15.1
+Version:0.16.1
 Release:0
 Summary:A pure-Python tiling window manager
 # All MIT except for: libqtile/widget/pacman.py:GPL (v3 or later)
 License:MIT AND GPL-3.0-or-later
 Group:  System/X11/Displaymanagers
 URL:http://qtile.org
-Source: 
https://github.com/qtile/qtile/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source: 
https://files.pythonhosted.org/packages/source/q/%{name}/%{name}-%{version}.tar.gz
 Source1:%{name}-rpmlintrc
 BuildRequires:  fdupes
 BuildRequires:  libpulse-devel
@@ -34,6 +34,7 @@
 BuildRequires:  python3-cffi >= 1.11.5
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
+BuildRequires:  python3-setuptools_scm
 BuildRequires:  python3-six >= 1.11.0
 BuildRequires:  python3-xcffib >= 0.8.1
 BuildRequires:  update-desktop-files
@@ -54,30 +55,29 @@
 Recommends: python3-pyxdg
 Suggests:   python3-jupyter_console
 Suggests:   python3-jupyter_ipykernel
+Suggests:   python3-tk
 %if %{with test}
 BuildRequires:  ImageMagick
 BuildRequires:  python3-cairocffi-pixbuf 

commit qtile for openSUSE:Factory

2020-05-03 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2020-05-03 22:48:38

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new.2738 (New)


Package is "qtile"

Sun May  3 22:48:38 2020 rev:12 rq:799882 version:0.15.1

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2020-04-21 
13:11:49.080949989 +0200
+++ /work/SRC/openSUSE:Factory/.qtile.new.2738/qtile.changes2020-05-03 
22:48:41.859339602 +0200
@@ -1,0 +2,15 @@
+Sun May  3 17:25:05 UTC 2020 - Petr Cervinka 
+
+- Add pulseaudio support to build and use PulseVolume widget 
+  * Make package arch dependent, noarch removed
+  * Add libpulse-devel to build requirements
+  * Add pulseaudio to recommends
+- Add support for tests
+  * Change source url to GitHub (contain tests)
+  * Schedule tests with test condition only
+  * Extend build requirements section with test dependencies
+  * Exclude test_images tests
+- Add update-desktop-files to build requirements and apply macro
+  %suse_update_desktop_file on qtile.desktop
+
+---



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.VVEY7m/_old  2020-05-03 22:48:43.107342388 +0200
+++ /var/tmp/diff_new_pack.VVEY7m/_new  2020-05-03 22:48:43.111342397 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%bcond_with test
 Name:   qtile
 Version:0.15.1
 Release:0
@@ -24,9 +25,10 @@
 License:MIT AND GPL-3.0-or-later
 Group:  System/X11/Displaymanagers
 URL:http://qtile.org
-Source: 
https://files.pythonhosted.org/packages/source/q/qtile/qtile-%{version}.tar.gz
+Source: 
https://github.com/qtile/qtile/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Source1:%{name}-rpmlintrc
 BuildRequires:  fdupes
+BuildRequires:  libpulse-devel
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-cairocffi >= 1.0.2
 BuildRequires:  python3-cffi >= 1.11.5
@@ -34,6 +36,7 @@
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-six >= 1.11.0
 BuildRequires:  python3-xcffib >= 0.8.1
+BuildRequires:  update-desktop-files
 Requires:   python3-cairocffi >= 0.9.0
 Requires:   python3-cairocffi-pixbuf >= 0.9.0
 Requires:   python3-cffi >= 1.11.5
@@ -42,6 +45,7 @@
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 Recommends: libxcb-cursor0
+Recommends: pulseaudio
 Recommends: python3-iwlib
 Recommends: python3-keyring
 Recommends: python3-psutil
@@ -50,7 +54,31 @@
 Recommends: python3-pyxdg
 Suggests:   python3-jupyter_console
 Suggests:   python3-jupyter_ipykernel
-BuildArch:  noarch
+%if %{with test}
+BuildRequires:  ImageMagick
+BuildRequires:  python3-cairocffi-pixbuf >= 0.9.0
+BuildRequires:  python3-curses
+BuildRequires:  python3-dbus-python
+BuildRequires:  python3-flake8
+BuildRequires:  python3-iwlib
+BuildRequires:  python3-jupyter_console
+BuildRequires:  python3-jupyter_ipykernel
+BuildRequires:  python3-keyring
+BuildRequires:  python3-pep8-naming
+BuildRequires:  python3-psutil
+BuildRequires:  python3-pytest
+BuildRequires:  python3-pytest-cov
+BuildRequires:  python3-python-dateutil
+BuildRequires:  python3-python-mpd2
+BuildRequires:  python3-pyxdg
+BuildRequires:  xcalc
+BuildRequires:  xclock
+BuildRequires:  xeyes
+BuildRequires:  xorg-x11-server-Xvfb
+BuildRequires:  xorg-x11-server-extra
+BuildRequires:  xrandr
+BuildRequires:  xterm
+%endif
 
 %description
 A pure-Python tiling window manager.
@@ -76,12 +104,22 @@
 mkdir -p %{buildroot}%{_datadir}/xsessions/
 install -m 644 %{_builddir}/qtile-%{version}/resources/qtile.desktop 
%{buildroot}%{_datadir}/xsessions/
 
+%suse_update_desktop_file %{buildroot}%{_datadir}/xsessions/qtile.desktop
+
 # default selector for xsession
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop
 ln -s %{_sysconfdir}/alternatives/default-xsession.desktop 
%{buildroot}%{_datadir}/xsessions/default.desktop
 
-%fdupes %{buildroot}%{python3_sitelib}
+%fdupes %{buildroot}%{python3_sitearch}
+
+%if %{with test}
+%check
+sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/' bin/qtile-cmd
+sed -i -e 's/python/python3/g' scripts/ffibuild
+./scripts/ffibuild
+%pytest -k  "not test_images"
+%endif
 
 %post
 %{_sbindir}/update-alternatives --install 
%{_datadir}/xsessions/default.desktop \
@@ -103,7 +141,7 @@
 %{_bindir}/qshell
 %{_bindir}/qtile-cmd
 %{_bindir}/dqtile-cmd
-%{python3_sitelib}/*
+%{python3_sitearch}/*
 %{_mandir}/man1/qtile.1%{?ext_man}
 %{_mandir}/man1/qshell.1%{?ext_man}
 %{_datadir}/xsessions/default.desktop

++ 

commit qtile for openSUSE:Factory

2020-04-21 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2020-04-21 13:11:47

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new.2738 (New)


Package is "qtile"

Tue Apr 21 13:11:47 2020 rev:11 rq:795578 version:0.15.1

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2019-08-13 
13:23:36.097381482 +0200
+++ /work/SRC/openSUSE:Factory/.qtile.new.2738/qtile.changes2020-04-21 
13:11:49.080949989 +0200
@@ -1,0 +2,72 @@
+Tue Apr 14 15:17:22 UTC 2020 - Petr Cervinka 
+
+- Update to version 0.15.1:
+  * Bugfixes
+- Revert core: properly shutdown event loop (#1615)(#1609)
+
+- Update to version 0.15.0:
+  * Config breakage
+- removed the mpd widget, which depended on python-mpd
+  * Bugfixes
+- Fix #1298: fall back to get int items for digit string in qtile_cmd.
+- Fix qtile-cmd failure, #1410.
+- Fix #755: use a valid timestamp for WM_TAKE_FOCUS events.
+- Issue #1510: Added missing kwargs argument in EzKey class.
+- Toggle group if setting a group twice. (#1491)
+- Added non-graph CPU widget (feature req #1439)
+- Changes to make the dev.sh script more generic. (#1471)
+- Show current layout and prepare all layouts in the default config. 
(#1469)
+- Fix #1394: handle empty HOME completion in test_bar.py::test_completion.
+- Center-align groupboxes by default. (#1452)
+- Reorganize and complete hacking.rst (#1442)
+- Update gmail_checker.py (#1448)
+- docs: Fix parameter type of Screen's top/left/right/bottom (#1438)
+- docs: Fix missing psutil mock (#1432)
+- Remove pythonwifi related code in Wlan widget (#1429)
+- Fix command to build cffi module (#1427)
+- Use lazy.lazy in default config instead of command.lazy (deprecated) 
(#1428)
+- Use new style format in pomodoro widget (#1426)
+- docs: Add missing requirement for Wlan widget (#1400)
+- Use `$PYTHON` instead of `PYTHON`. (#1397)
+- Make it explicit to install cairocffi after xcffib. (#1406)
+- Fix #1407 (missing "-o screen" in "qtile-cmd" output)
+- Small bug fix (#1366)
+- Make the Spacer widget accept a background color (#1365)
+- Fix (#1361) - Battery widget debug info
+- Execute the volume widget commands in a shell (#1359)
+  * Features
+- Add pyxdg widget requirement in LaunchBar docstring
+- Add PyCharm debugging instructions in hacking.rst
+- Add missing instruction to build docs in hacking.rst
+- Add more docs and qtile-session file
+- Add notes about graphviz and dev.sh in hacking.rst
+- Add groupbox feature: Font colour when box highlighting
+- add an issue template
+- add callback functions to textbox widget
+- Add test_qtile_cmd.py file.
+- Add a test case for int indexed items in InteractiveCommandClient.
+- add pulseaudio C api based volume control widget
+- add setting wallpapers per Screen, with x11 backend
+- add display option to Net widget and introduce f-strings
+- Add Python script to automate screenshots
+- Add the license header to the xcore file
+- Add ability to use bits as unit in net widget
+- Add a quick_exit widget to __init__.py to pass the static checker(mypy).
+- Add a quick exit widget and add this widget to default configuration 
that is loaded when configuratin error occured.
+- Add non-graph CPU widget (feature req #1439)
+- Add support for checking updates via yay on Arch
+- Add an error handling when backlight widget failed to read a status file.
+- Add steps about how to run qtile within a virtualenv.
+- Add option "options" to keyboardLayout widget
+- Add gkrellm to run all tests
+- Add note about psutil
+- Add line length to pylintrc
+- Add type annotations to the command object
+- Add a command object that operates against a running command object
+- Add a command graph object for IPC
+- Add functions to the command interface to enable lazy evaluation
+- Add an interface for eagerly evaluating command graph elements
+- Add client to dispatch into command graph
+- Add tests to the command graph
+
+---

Old:

  qtile-0.14.2.tar.gz

New:

  qtile-0.15.1.tar.gz



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.YcHOaC/_old  2020-04-21 13:11:50.348952518 +0200
+++ /var/tmp/diff_new_pack.YcHOaC/_new  2020-04-21 13:11:50.352952526 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package qtile
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file 

commit qtile for openSUSE:Factory

2019-08-13 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2019-08-13 13:23:34

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new.9556 (New)


Package is "qtile"

Tue Aug 13 13:23:34 2019 rev:10 rq:722651 version:0.14.2

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2019-07-01 
10:44:49.517521573 +0200
+++ /work/SRC/openSUSE:Factory/.qtile.new.9556/qtile.changes2019-08-13 
13:23:36.097381482 +0200
@@ -1,0 +2,5 @@
+Mon Aug 12 11:01:35 UTC 2019 - Petr Cervinka 
+
+- Increase required cairocffi version
+
+---



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.09XeSx/_old  2019-08-13 13:23:36.821381292 +0200
+++ /var/tmp/diff_new_pack.09XeSx/_new  2019-08-13 13:23:36.825381290 +0200
@@ -28,7 +28,7 @@
 Source1:%{name}-rpmlintrc
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  python3-cairocffi >= 0.8.0
+BuildRequires:  python3-cairocffi >= 1.0.2
 BuildRequires:  python3-cffi >= 1.11.5
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools




commit qtile for openSUSE:Factory

2019-07-01 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2019-07-01 10:44:48

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new.4615 (New)


Package is "qtile"

Mon Jul  1 10:44:48 2019 rev:9 rq:712733 version:0.14.2

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2019-05-15 
12:34:08.852576488 +0200
+++ /work/SRC/openSUSE:Factory/.qtile.new.4615/qtile.changes2019-07-01 
10:44:49.517521573 +0200
@@ -1,0 +2,37 @@
+Mon Jun 24 12:03:05 UTC 2019 - p...@cervinka.net
+
+- Update to version 0.14.2:
+  * Bugfixes
+- previous release still exhibited same issues with package data,
+  really fix it this time
+- Update to version 0.14.1:
+* Bugfixes
+  - properly include png files in the package data to install included 
icons
+- Update to version 0.14.0:
+  * Config breakage
+- Many internal things were renamed from camel case to snake case. If
+  your config uses main(), or any lazy.function() invocations that
+  interact directly with the qtile object, you may need to forward port
+  them. Also note that we do *not* consider the qtile object to be a
+  stable api, so you will need to continue forward porting these things
+  for future refactorings (for wayland, etc.). A better approach may be
+  to add an upstream API for what you want to do ;)
+- Maildir's subFolder and maildirPath changed to maildir_path and 
sub_folder.
+* Features
+- add custom `change_command` to backlight widget
+- add CommandSet extension to list available commands
+- simplify battery monitoring widget interface and add freebsd
+  compatible battery widget implementation
+- track last known mouse coordinates on the qtile manager
+- allow configuration of warping behavior in columns layout
+* Bugfixes
+- with cursor warp enabled, the cursor is warped on screen change
+- fix stepping groups to skip the scratch pad group
+- fix stack layout to properly shuffle
+- silence errors when unmapping windows
+- Add python3-psutil as recommended dependency
+- Increase python3-xcffib dependency version
+- Remove _service file to stop tracking GitHub branch
+- Change source to files.pythonhosted.org
+
+---

Old:

  _service
  _servicedata
  qtile-0.13.0.tar.xz

New:

  qtile-0.14.2.tar.gz



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.6ivyME/_old  2019-07-01 10:44:50.089522506 +0200
+++ /var/tmp/diff_new_pack.6ivyME/_new  2019-07-01 10:44:50.093522513 +0200
@@ -17,14 +17,14 @@
 
 
 Name:   qtile
-Version:0.13.0
+Version:0.14.2
 Release:0
 Summary:A pure-Python tiling window manager
 # All MIT except for: libqtile/widget/pacman.py:GPL (v3 or later)
 License:MIT AND GPL-3.0-or-later
 Group:  System/X11/Displaymanagers
 URL:http://qtile.org
-Source: %{name}-%{version}.tar.xz
+Source: 
https://files.pythonhosted.org/packages/source/q/qtile/qtile-%{version}.tar.gz
 Source1:%{name}-rpmlintrc
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -33,17 +33,18 @@
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-six >= 1.11.0
-BuildRequires:  python3-xcffib >= 0.5.1
+BuildRequires:  python3-xcffib >= 0.8.1
 Requires:   python3-cairocffi >= 0.9.0
 Requires:   python3-cairocffi-pixbuf >= 0.9.0
 Requires:   python3-cffi >= 1.11.5
 Requires:   python3-six >= 1.11.0
-Requires:   python3-xcffib >= 0.5.1
+Requires:   python3-xcffib >= 0.8.1
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 Recommends: libxcb-cursor0
 Recommends: python3-iwlib
 Recommends: python3-keyring
+Recommends: python3-psutil
 Recommends: python3-python-dateutil
 Recommends: python3-python-mpd2
 Recommends: python3-pyxdg




commit qtile for openSUSE:Factory

2019-05-15 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2019-05-15 12:34:06

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new.5148 (New)


Package is "qtile"

Wed May 15 12:34:06 2019 rev:8 rq:702846 version:0.13.0

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2018-07-31 
15:59:09.987522715 +0200
+++ /work/SRC/openSUSE:Factory/.qtile.new.5148/qtile.changes2019-05-15 
12:34:08.852576488 +0200
@@ -1,0 +2,30 @@
+Tue May 14 12:31:44 UTC 2019 - Petr Cervinka 
+
+- Rename rpmlintrc to qtile-rpmlintrc 
+
+---
+Tue May 12 09:59:41 UTC 2019 - p...@cervinka.net
+
+- Update to version 0.13.0:
+  * Deprecation
+wmii layout is deprecated in terms of columns layout, which has the
+same behavior with different defaults, see the wmii definition for
+more details
+  * Features
+- add svg handling for images
+- allow addgroup command to set the layout
+- add command to get current log level
+- allow groupbox to hide unused groups
+- add caps lock indicator widget
+- add custom_command to check_update widget
+  * Bugfixes
+ - better shutdown handling
+ - fix clientlist current client tracking
+ - fix typo in up command on ratiotile layout
+ - various fixes to check_update widget
+ - fix 0 case for resize screen
+- Add rpmlintrc to ignore warning related to dqtile-cmd
+- Add python3-cairocffi-pixbuf dependency 
+- Increase python3-cairocffi dependency version  
+
+---

Old:

  qtile-0.12.0.tar.xz

New:

  qtile-0.13.0.tar.xz
  qtile-rpmlintrc



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.d2PBah/_old  2019-05-15 12:34:09.720573988 +0200
+++ /var/tmp/diff_new_pack.d2PBah/_new  2019-05-15 12:34:09.724573977 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package qtile
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,19 +12,20 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:   qtile
-Version:0.12.0
+Version:0.13.0
 Release:0
 Summary:A pure-Python tiling window manager
 # All MIT except for: libqtile/widget/pacman.py:GPL (v3 or later)
 License:MIT AND GPL-3.0-or-later
 Group:  System/X11/Displaymanagers
-Url:http://qtile.org
+URL:http://qtile.org
 Source: %{name}-%{version}.tar.xz
+Source1:%{name}-rpmlintrc
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-cairocffi >= 0.8.0
@@ -33,7 +34,8 @@
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-six >= 1.11.0
 BuildRequires:  python3-xcffib >= 0.5.1
-Requires:   python3-cairocffi >= 0.8.0
+Requires:   python3-cairocffi >= 0.9.0
+Requires:   python3-cairocffi-pixbuf >= 0.9.0
 Requires:   python3-cffi >= 1.11.5
 Requires:   python3-six >= 1.11.0
 Requires:   python3-xcffib >= 0.5.1

++ _service ++
--- /var/tmp/diff_new_pack.d2PBah/_old  2019-05-15 12:34:09.752573896 +0200
+++ /var/tmp/diff_new_pack.d2PBah/_new  2019-05-15 12:34:09.752573896 +0200
@@ -5,7 +5,7 @@
 enable
 qtile
 master
-0.12.0
+0.13.0
   
   
 *.tar

++ _servicedata ++
--- /var/tmp/diff_new_pack.d2PBah/_old  2019-05-15 12:34:09.776573827 +0200
+++ /var/tmp/diff_new_pack.d2PBah/_new  2019-05-15 12:34:09.776573827 +0200
@@ -1,4 +1,4 @@
 
 
 https://github.com/qtile/qtile.git
-  95919912b11eabedb59ad3215747544c48c522f9
\ No newline at end of file
+  01313b4205677eaa19a80d3fff1b4842da81ee8d
\ No newline at end of file

++ qtile-0.12.0.tar.xz -> qtile-0.13.0.tar.xz ++
 18796 lines of diff (skipped)

++ qtile-rpmlintrc ++
addFilter("wrong-script-end-of-line-encoding /usr/bin/dqtile-cmd")



commit qtile for openSUSE:Factory

2018-07-31 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2018-07-31 15:59:02

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new (New)


Package is "qtile"

Tue Jul 31 15:59:02 2018 rev:7 rq:625973 version:0.12.0

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2018-05-16 
18:44:44.532466801 +0200
+++ /work/SRC/openSUSE:Factory/.qtile.new/qtile.changes 2018-07-31 
15:59:09.987522715 +0200
@@ -1,0 +2,15 @@
+Sat Jul 21 20:35:00 UTC 2018 - p...@cervinka.net
+
+- Update to version 0.12.0:
+  * Fix floating bug in bsp layout
+  * Fix name of `test_common`
+  * Fix syntax error in mpd widget
+  * Add error handling to mpd widget
+  * Fix caps lock affected behaviour of key bindings
+  * Use python2/3 switch for os.makedirs
+  * Create cache dir if necessary
+  * Fix typo in stack layout documentation
+  * Fix mypy checks for mypy 0.600
+  * Check for existence of BAT_DIR before listing it
+
+---

Old:

  qtile-0.11.1+20180513.39ced15a.tar.xz

New:

  qtile-0.12.0.tar.xz



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.441z1e/_old  2018-07-31 15:59:10.591523738 +0200
+++ /var/tmp/diff_new_pack.441z1e/_new  2018-07-31 15:59:10.595523746 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   qtile
-Version:0.11.1+20180513.39ced15a
+Version:0.12.0
 Release:0
 Summary:A pure-Python tiling window manager
 # All MIT except for: libqtile/widget/pacman.py:GPL (v3 or later)

++ _service ++
--- /var/tmp/diff_new_pack.441z1e/_old  2018-07-31 15:59:10.619523786 +0200
+++ /var/tmp/diff_new_pack.441z1e/_new  2018-07-31 15:59:10.619523786 +0200
@@ -4,8 +4,8 @@
 git
 enable
 qtile
-develop
-0.11.1+%cd.%h
+master
+0.12.0
   
   
 *.tar

++ _servicedata ++
--- /var/tmp/diff_new_pack.441z1e/_old  2018-07-31 15:59:10.631523807 +0200
+++ /var/tmp/diff_new_pack.441z1e/_new  2018-07-31 15:59:10.635523814 +0200
@@ -1,4 +1,4 @@
 
 
 https://github.com/qtile/qtile.git
-  39ced15a03a5ffe9903381183cb2fc80b13176e7
\ No newline at end of file
+  95919912b11eabedb59ad3215747544c48c522f9
\ No newline at end of file

++ qtile-0.11.1+20180513.39ced15a.tar.xz -> qtile-0.12.0.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtile-0.11.1+20180513.39ced15a/CHANGELOG 
new/qtile-0.12.0/CHANGELOG
--- old/qtile-0.11.1+20180513.39ced15a/CHANGELOG2018-05-14 
02:02:22.0 +0200
+++ new/qtile-0.12.0/CHANGELOG  2018-07-21 02:02:29.0 +0200
@@ -1,4 +1,4 @@
-qtile 0.x.x, released -xx-xx:
+qtile 0.12.0, released 2018-07-20:
 !!! Config breakage !!!
 - Tile layout commands up/down/shuffle_up/shuffle_down changed to be
   more consistent with other layouts
@@ -7,10 +7,20 @@
 * features
 - add `add_after_last` option to Tile layout to add windows to the end
   of the list.
+- add new formatting options to TaskList
+- allow Volume to open app on right click
 * bugfixes
 - fix floating of file transfer windows and java drop-downs
 - fix exception when calling `cmd_next` and `cmd_previous` on layout
   without windows
+- fix caps lock affected behaviour of key bindings
+- re-create cache dir if it is deleted while qtile is running
+- fix CheckUpdates widget color when no updates
+- handle cases where BAT_DIR does not exist
+- fix the wallpaper widget when using `wallpaper_command`
+- fix Tile layout order to not reverse on reset
+- fix calling `focus_previous/next` with no windows
+- fix floating bug is BSP layout
 
 qtile 0.11.1, released 2018-03-01:
 * bug fix
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtile-0.11.1+20180513.39ced15a/README.rst 
new/qtile-0.12.0/README.rst
--- old/qtile-0.11.1+20180513.39ced15a/README.rst   2018-05-14 
02:02:22.0 +0200
+++ new/qtile-0.12.0/README.rst 2018-07-21 02:02:29.0 +0200
@@ -28,7 +28,7 @@
 Current Release
 ===
 
-The current stable version of qtile is 0.11.0, released 2018-02-28. See the
+The current stable version of qtile is 0.12.0, released 2018-07-20. See the
 `documentation `_
 for installation instructions.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtile-0.11.1+20180513.39ced15a/docs/conf.py 
new/qtile-0.12.0/docs/conf.py
--- 

commit qtile for openSUSE:Factory

2018-05-16 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2018-05-16 18:42:50

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new (New)


Package is "qtile"

Wed May 16 18:42:50 2018 rev:6 rq:609036 version:0.11.1+20180513.39ced15a

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2018-04-11 
14:00:26.018181581 +0200
+++ /work/SRC/openSUSE:Factory/.qtile.new/qtile.changes 2018-05-16 
18:44:44.532466801 +0200
@@ -1,0 +2,8 @@
+Wed May 16 07:05:05 UTC 2018 - p...@cervinka.net
+
+- Update to version 0.11.1+20180513.39ced15a:
+  * Fix TaskList when not using markup
+  * Fix the dmenu extension use of fontsize
+  * Adds new formating options for tasklist
+
+---

Old:

  qtile-0.11.1+20180406.68ddde55.tar.xz

New:

  qtile-0.11.1+20180513.39ced15a.tar.xz



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.kPEdDb/_old  2018-05-16 18:44:45.160444107 +0200
+++ /var/tmp/diff_new_pack.kPEdDb/_new  2018-05-16 18:44:45.164443963 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   qtile
-Version:0.11.1+20180406.68ddde55
+Version:0.11.1+20180513.39ced15a
 Release:0
 Summary:A pure-Python tiling window manager
 # All MIT except for: libqtile/widget/pacman.py:GPL (v3 or later)

++ _servicedata ++
--- /var/tmp/diff_new_pack.kPEdDb/_old  2018-05-16 18:44:45.224441795 +0200
+++ /var/tmp/diff_new_pack.kPEdDb/_new  2018-05-16 18:44:45.228441650 +0200
@@ -1,4 +1,4 @@
 
 
 https://github.com/qtile/qtile.git
-  68ddde553f7ba8c0a92a0dec1bff131270afbaf9
\ No newline at end of file
+  39ced15a03a5ffe9903381183cb2fc80b13176e7
\ No newline at end of file

++ qtile-0.11.1+20180406.68ddde55.tar.xz -> 
qtile-0.11.1+20180513.39ced15a.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtile-0.11.1+20180406.68ddde55/docs/manual/install/arch.rst 
new/qtile-0.11.1+20180513.39ced15a/docs/manual/install/arch.rst
--- old/qtile-0.11.1+20180406.68ddde55/docs/manual/install/arch.rst 
2018-04-06 14:24:41.0 +0200
+++ new/qtile-0.11.1+20180513.39ced15a/docs/manual/install/arch.rst 
2018-05-14 02:02:22.0 +0200
@@ -2,52 +2,12 @@
 Installing on Arch Linux
 
 
-Qtile is available on the `AUR`_ as:
-
-=== ===
-Package NameDescription
-=== ===
-`qtile`_stable branch (release)
-`qtile-python3-git`_development branch
-=== ===
-
-Using an AUR Helper
-===
-
-The preferred way to install Qtile is with an `AUR helper`_. For example,
-if you use `yaourt`_:
-
-.. code-block:: bash
-
-yaourt -S 
-
-Using makepkg
-=
-
-The latest version of either package can be obtained by downloading a snapshot
-or cloning its repository:
-
-.. code-block:: bash
-
-# snapshot
-curl -s 
https://aur.archlinux.org/cgit/aur.git/snapshot/.tar.gz | tar 
-xvzf -
-# or repository
-git clone https://aur.archlinux.org/.git
-
-Next makepkg has to be called in the directory where the files were saved. It
-installs missing dependencies using pacman, builds the package, installs it
-and removes obsolete build-time dependencies afterwards:
+Stable versions of Qtile are currently packaged for Arch Linux. To install 
this package, run:
 
 .. code-block:: bash
 
-cd 
-makepkg -sri
+pacman -S qtile
 
-Please see the ArchWiki for more information on `installing packages from the 
AUR`_.
+Please see the ArchWiki for more information on `Qtile`_.
 
-.. _AUR: https://wiki.archlinux.org/index.php/AUR
-.. _AUR Helper: https://wiki.archlinux.org/index.php/AUR_Helpers
-.. _installing packages from the AUR: 
https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages
-.. _qtile: https://aur.archlinux.org/packages/qtile/
-.. _qtile-python3-git: https://aur.archlinux.org/packages/qtile-python3-git/
-.. _yaourt: https://archlinux.fr/yaourt-en
+.. _Qtile: https://wiki.archlinux.org/index.php/Qtile
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtile-0.11.1+20180406.68ddde55/libqtile/extension/dmenu.py 
new/qtile-0.11.1+20180513.39ced15a/libqtile/extension/dmenu.py
--- old/qtile-0.11.1+20180406.68ddde55/libqtile/extension/dmenu.py  
2018-04-06 14:24:41.0 +0200
+++ new/qtile-0.11.1+20180513.39ced15a/libqtile/extension/dmenu.py  
2018-05-14 02:02:22.0 +0200
@@ -71,7 +71,7 @@
 font = 

commit qtile for openSUSE:Factory

2018-04-11 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2018-04-11 13:58:32

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new (New)


Package is "qtile"

Wed Apr 11 13:58:32 2018 rev:5 rq:594769 version:0.11.1+20180406.68ddde55

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2018-03-14 
19:38:23.514578760 +0100
+++ /work/SRC/openSUSE:Factory/.qtile.new/qtile.changes 2018-04-11 
14:00:26.018181581 +0200
@@ -1,0 +2,12 @@
+Fri Apr 06 12:54:55 UTC 2018 - p...@cervinka.net
+
+- Update to version 0.11.1+20180406.68ddde55:
+  * Fix up the docs build, improve some widget docs
+  * Bugfix for wallpaper when user use custom wallpaper_command
+  * Add mypy checks
+  * Remove ignored flake8 errors
+  * Volume runs command on right click
+  * Fix for Tile layout where master windows are reversed on reset
+  * Fix mistakes in example
+
+---

Old:

  qtile-0.11.1+20180305.e741d3fe.tar.xz

New:

  qtile-0.11.1+20180406.68ddde55.tar.xz



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.JRNCsh/_old  2018-04-11 14:00:27.266136469 +0200
+++ /var/tmp/diff_new_pack.JRNCsh/_new  2018-04-11 14:00:27.270136324 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   qtile
-Version:0.11.1+20180305.e741d3fe
+Version:0.11.1+20180406.68ddde55
 Release:0
 Summary:A pure-Python tiling window manager
 # All MIT except for: libqtile/widget/pacman.py:GPL (v3 or later)

++ _servicedata ++
--- /var/tmp/diff_new_pack.JRNCsh/_old  2018-04-11 14:00:27.326134300 +0200
+++ /var/tmp/diff_new_pack.JRNCsh/_new  2018-04-11 14:00:27.326134300 +0200
@@ -1,4 +1,4 @@
 
 
 https://github.com/qtile/qtile.git
-  e741d3feba2d6d3466a36870b138c8360214600e
\ No newline at end of file
+  68ddde553f7ba8c0a92a0dec1bff131270afbaf9
\ No newline at end of file

++ qtile-0.11.1+20180305.e741d3fe.tar.xz -> 
qtile-0.11.1+20180406.68ddde55.tar.xz ++
 1829 lines of diff (skipped)




commit qtile for openSUSE:Factory

2018-03-14 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2018-03-14 19:38:18

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new (New)


Package is "qtile"

Wed Mar 14 19:38:18 2018 rev:4 rq:585478 version:0.11.1+20180305.e741d3fe

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2018-02-23 
15:31:26.698952404 +0100
+++ /work/SRC/openSUSE:Factory/.qtile.new/qtile.changes 2018-03-14 
19:38:23.514578760 +0100
@@ -1,0 +2,75 @@
+Thu Mar  8 15:49:33 UTC 2018 - p...@cervinka.net
+
+- Add python3-pyxdg, python3-python-mpd2, python3-python-dateutil,
+  python3-keyring, python3-iwlib  and libxcb-cursor0 as recommended
+  dependencies. 
+- Run spec-cleaner
+
+---
+Tue Mar 06 07:44:15 UTC 2018 - p...@cervinka.net
+
+- Update to version 0.11.1+20180305.e741d3fe:
+  * Added documentation for `no_reposition_match` option
+  * Two fixes for floating windows: 
+* Dropdown (like menu) Java windows are no longer positioned in the
+  center of the screen (expected and correct behavior)
+* Added `no_reposition_match` option that allows to specify which
+  floating windows should not be forcibly repositioned to the center
+  of the screen
+  * Rename qcmd and dqcmd to qtile-cmd and dqtile-cmd
+  * Tile layout: unify commands so that it aligns well with other existing
+layouts
+  * Guard previous and next when no current window
+  * Make files transfer windows floating out of the box
+  * Tile layout: fix master_match option by preserving _ClientList instead 
+of replacing it with a plain list
+  * Tile layout: add `add_after_last` option for new windows to be added at
+the end of the list
+  * Unused variables removed
+
+---
+Fri Mar 02 14:27:16 UTC 2018 - p...@cervinka.net
+
+- Update to version 0.11.1+20180301.ca27e5fa:
+  * Bump setup.py version for sake of PyPI
+  * Add bin/dqcmd to the MANIFEST file
+- Migrate package to use service file
+- Update versions for dependencies in spec file
+
+---
+Thu Mar  1 08:37:43 UTC 2018 - p...@cervinka.net
+
+- Update to 0.11.0
+  * Changed extension configuration, `extention` subpackage renamed to 
+`extension`,  `extentions` configuration variable changed to
+`extension_defaults`. See documentation for full details.
+  * Features
+- qshell improvements
+- new MonadWide layout
+- new Bsp layout
+- new pomodoro widget
+- new stock ticker widget
+- new `client_name_updated` hook
+- new RunCommand and J4DmenuDesktop extension
+- task list expands to fill space, configurable via `spacing` parameter
+- add group.focus_by_name() and group.info_by_name()
+- add disk usage ratio to df widget
+- allow displayed group name to differ from group name
+- enable custom TaskList icon size
+- add qcmd and dqcmd to extend functionality around qtile.command
+  functionality
+- add ScratchPad group that has configurable drop downs
+  * Bugfixes
+- fix race condition in Window.fullscreen
+- fix for string formatting in qtile_top
+- fix unicode literal in tasklist
+- move mpris2 initialization out of constructor
+- fix wlan widget variable naming and division
+- normalize behavior of layouts on various commands
+- add better fallback to default config
+- update btc widget to use coinbase
+- fix cursor warp when using default layout implementation
+- don't crash when using widget with unmet dependencies
+- fix floating window default location
+
+---

Old:

  qtile-0.10.7.tar.gz

New:

  _service
  _servicedata
  qtile-0.11.1+20180305.e741d3fe.tar.xz



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.FHNsjB/_old  2018-03-14 19:38:25.274516247 +0100
+++ /var/tmp/diff_new_pack.FHNsjB/_new  2018-03-14 19:38:25.278516106 +0100
@@ -17,28 +17,34 @@
 
 
 Name:   qtile
-Version:0.10.7
+Version:0.11.1+20180305.e741d3fe
 Release:0
 Summary:A pure-Python tiling window manager
 # All MIT except for: libqtile/widget/pacman.py:GPL (v3 or later)
-License:MIT AND GPL-3.0+
+License:MIT AND GPL-3.0-or-later
 Group:  System/X11/Displaymanagers
 Url:http://qtile.org
-Source: 
https://files.pythonhosted.org/packages/source/q/qtile/qtile-%{version}.tar.gz
+Source: %{name}-%{version}.tar.xz
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  

commit qtile for openSUSE:Factory

2018-02-23 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2018-02-23 15:31:07

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new (New)


Package is "qtile"

Fri Feb 23 15:31:07 2018 rev:3 rq:579208 version:0.10.7

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2018-02-12 
14:46:06.000788102 +0100
+++ /work/SRC/openSUSE:Factory/.qtile.new/qtile.changes 2018-02-23 
15:31:26.698952404 +0100
@@ -1,0 +2,5 @@
+Thu Feb 22 21:47:46 UTC 2018 - p...@cervinka.net
+
+- Add jupyter console and ipykernel to suggests 
+
+---



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.HeU1ID/_old  2018-02-23 15:31:27.994905580 +0100
+++ /var/tmp/diff_new_pack.HeU1ID/_new  2018-02-23 15:31:27.998905436 +0100
@@ -39,6 +39,8 @@
 Requires:   python3-xcffib >= 0.5.0
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
+Suggests:   python3-jupyter_console
+Suggests:   python3-jupyter_ipykernel
 BuildArch:  noarch
 
 %description




commit qtile for openSUSE:Factory

2018-02-12 Thread root
Hello community,

here is the log from the commit of package qtile for openSUSE:Factory checked 
in at 2018-02-12 14:46:02

Comparing /work/SRC/openSUSE:Factory/qtile (Old)
 and  /work/SRC/openSUSE:Factory/.qtile.new (New)


Package is "qtile"

Mon Feb 12 14:46:02 2018 rev:2 rq:575585 version:0.10.7

Changes:

--- /work/SRC/openSUSE:Factory/qtile/qtile.changes  2018-02-06 
16:47:27.540827522 +0100
+++ /work/SRC/openSUSE:Factory/.qtile.new/qtile.changes 2018-02-12 
14:46:06.000788102 +0100
@@ -1,0 +2,5 @@
+Mon Feb 12 09:33:03 UTC 2018 - p...@cervinka.net
+
+- Add qtile to update-alternatives 
+
+---



Other differences:
--
++ qtile.spec ++
--- /var/tmp/diff_new_pack.KoLc8Y/_old  2018-02-12 14:46:07.484734605 +0100
+++ /var/tmp/diff_new_pack.KoLc8Y/_new  2018-02-12 14:46:07.484734605 +0100
@@ -23,7 +23,7 @@
 # All MIT except for: libqtile/widget/pacman.py:GPL (v3 or later)
 License:MIT AND GPL-3.0+
 Group:  System/X11/Displaymanagers
-URL:http://qtile.org
+Url:http://qtile.org
 Source: 
https://files.pythonhosted.org/packages/source/q/qtile/qtile-%{version}.tar.gz
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -37,6 +37,8 @@
 Requires:   python3-cffi >= 1.1.0
 Requires:   python3-six >= 1.4.1
 Requires:   python3-xcffib >= 0.5.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:  noarch
 
 %description
@@ -59,9 +61,25 @@
 %python3_install
 mkdir -p %{buildroot}%{_datadir}/xsessions/
 install -m 644 %{_builddir}/qtile-%{version}/resources/qtile.desktop 
%{buildroot}%{_datadir}/xsessions/
+
+# default selector for xsession
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop
+ln -s %{_sysconfdir}/alternatives/default-xsession.desktop 
%{buildroot}%{_datadir}/xsessions/default.desktop
+
 %fdupes %{buildroot}%{python3_sitelib}
 
+%post
+%{_sbindir}/update-alternatives --install 
%{_datadir}/xsessions/default.desktop \
+  default-xsession.desktop %{_datadir}/xsessions/qtile.desktop 20
+
+%postun
+[ -f %{_datadir}/xsessions/qtile.desktop ] || %{_sbindir}/update-alternatives \
+  --remove default-xsession.desktop %{_datadir}/xsessions/qtile.desktop
+
 %files
+%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
+%ghost %{_sysconfdir}/alternatives/default.desktop
 %doc CHANGELOG LICENSE README.rst
 %{_bindir}/iqshell
 %{_bindir}/qtile
@@ -71,6 +89,7 @@
 %{python3_sitelib}/*
 %{_mandir}/man1/qtile.1%{ext_man}
 %{_mandir}/man1/qshell.1%{ext_man}
+%{_datadir}/xsessions/default.desktop
 %{_datadir}/xsessions/qtile.desktop
 
 %changelog