Giter Site home page Giter Site logo

x-tile's People

Contributors

giuspen avatar misko-2083 avatar raghavendra-talur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

x-tile's Issues

libc.prctl not available

The following warning appears while launching x-tile:

libc.prctl not available, the process name will be python and not x-tile

i tried by manually issuing commands in python3, here is what i got:

>>> import ctypes.util
>>> ctypes.util.find_library("libc")
Traceback (most recent call last):
[...]
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'

also tried this with no success:
libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library("libc.so.6"))

this is the line that fixes it and works properly:
libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library("c"))

can the code be modified to the line above?
see similar issue: python/cpython#86746

Glade isn't showing up

Screenshot_20210916_174019
Am I missing a dependency or something? (I installed from the AUR and I also have glade installed. Clicking OK results in all the windows being tiled to the top left and I can set the positions manually from the config file just fine. Thanks for making this!

segmentation fault

X-tile doesn't start in Xfce. When I type 'x-tile' in terminal it gives me the error "Segmentation fault (core dumped)" and doesn't start the program. Any idea why this happens and how it can be resolved?

libc.prctl not available, the process name will be python and not x-tile

Hallo,

I'm having the following issue on a fresh installation of Ubuntu 22.04.1 LTS:

WM = GNOME Shell
libc.prctl not available, the process name will be python and not x-tile
DEBUG warning _NET_CURRENT_DESKTOP improperly set
Traceback (most recent call last):
File "/usr/share/x-tile/modules/core.py", line 1048, in tile_horizontally
tilings.tile_horizontally(checked_windows_list, glob.monitors_areas, self.get_dest_ws())
File "/usr/share/x-tile/modules/tilings.py", line 49, in tile_horizontally
tile_horizontally_on_area(windows_list[0],
File "/usr/share/x-tile/modules/tilings.py", line 162, in tile_horizontally_on_area
support.moveresize(checked_window, x + win_num*step, y, step, h, dws)
File "/usr/share/x-tile/modules/support.py", line 197, in moveresize
dest_workspace = glob.ret_pointer[0]
ValueError: NULL pointer access

Any idea how to solve the issue?
Thanks in advance, and by the way the application is really great!

Best regards,
FAbrizio

Missing Keyword entry in x-tile.desktop

Debian Lintian system report the x-tile.desktop file does not contain a "Keywords" entry.
To address this issue a patch will be applied in next Debian package version.
Here's the patch:

--- x-tile.orig/linux/x-tile.desktop
+++ x-tile/linux/x-tile.desktop
@@ -1,4 +1,3 @@
-
 [Desktop Entry]
 Name=X Tile
 Comment=Tile the Windows Upon your X Desktop
@@ -9,3 +8,4 @@ Type=Application
 StartupNotify=true
 Categories=GTK;Utility;
 Name[en_US]=x-tile
+Keywords=tile,tiling,sort,organize,windows

[BUG] Error after run application

Hello !
I install this application with ppa repository.
after run this command x-tile w, it return result :

WM = GNOME Shell
DEBUG warning _NET_WM_NAME improperly set by application
Traceback (most recent call last):
  File "/usr/bin/x-tile", line 74, in <module>
    x.reload_windows_list()
  File "/usr/share/x-tile/modules/core.py", line 1006, in reload_windows_list
    self.store.load_model(self)
  File "/usr/share/x-tile/modules/core.py", line 130, in load_model
    print("class "+title)
TypeError: can only concatenate str (not "bytes") to str

My config :

OS: Ubuntu 20.04 focal
Kernel: x86_64 Linux 5.4.0-31-generic
Shell: zsh 5.8
Resolution: 3840x1080
DE: GNOME 3.36.2
Disk: 408G / 953G (45%)
CPU: Intel Core i9-7920X @ 24x 4.3GHz [60.0°C]
GPU: GeForce GTX 1060 6GB
RAM: 6810MiB / 63992MiB

some issues with x-tile

Hi, are you still developing x-tile?

attached is a screen shot to demonstrate my points. (Debian 10; GNOME 3.38.1)

I have 2 questions.

  1. x tile does not recognize the Cherry Tree window -(ironic)

  2. Why are there two rows of vertical tick boxes next to each window in
    the list.

Thank you

Best wishes
x-tile-Screenshot from 2020-11-27 15-10-00

enhancement - issuing commands to an already opened instance

can there be a way of issuing commands to x-tile while it is still opened and / or in systray?
when an already opened instance is running, and i run "x-tile" again, it will open a second window.
similar to other programs, there could be options like "--new-instance" so that the default behaviour is opening already existing instance unless explicitly asked.

Permanently messes up manual tiling

After app is closed in XFCE 4.12.1, manual tiling is permanently disabled, highlighting is gone as well. Not sure what else x-tile has messed up.

Reset manual tiling with:
xfconf-query -c xfwm4 -p /general/tile_on_move -s true

Not sure how to reset the highlighting for where the window is going to be placed when moving the window to the edge of the screen

Version: 2.5-3

port to Python 3

Hi,

Is there a plan to port this project to Python 3? as python2 will be EOL on 2020

Regards,
David

Right click on tray icon not working

Hello,
I am on Manjaro Linux 19.0.2 Xfce.
Right click on the system tray icon of x-tile don't work and throw this Python traceback without terminating the program:

Traceback (most recent call last):
  File "/usr/share/x-tile/modules/core.py", line 427, in on_mouse_button_clicked_systray
    elif event.button == 3: self.ui.get_widget("/SysTrayMenu").popup(None, None, None, event.button, event.time)
TypeError: popup() missing 1 required positional argument: 'activate_time'

There is a "None" argument missing in the popup function ligne 427 of core.py.
I suggest this little diff:

--- core.bug.py	2020-03-30 12:24:57.000000000 +0200
+++ core.py	2020-03-30 16:55:27.114733408 +0200
@@ -424,7 +424,7 @@
     def on_mouse_button_clicked_systray(self, widget, event):
         """Catches mouse buttons clicks upon the system tray icon"""
         if event.button == 1: self.toggle_show_hide_main_window()
-        elif event.button == 3: self.ui.get_widget("/SysTrayMenu").popup(None, None, None, event.button, event.time)
+        elif event.button == 3: self.ui.get_widget("/SysTrayMenu").popup(None, None, None, None, event.button, event.time)
     
     def toggle_show_hide_main_window(self, *args):
         if self.win_on_screen: self.window_hide()

Misaligned windows after Custom Tile Run

I am going to post a series of images of my preferred dev layout. It's going to be rather repetitive but each screenshot has a purpose.

  1. My setting the layout - layout looks aligned after update
    image
    image

  2. After ctrl-1 to apply the custom layout, everything is slightly mis-aligned. a. Slack and Terminal windows occlude the left side of the JupyterLab window. b) JupyterLab occludes the left side of the Kite window. c) The Kite window is no longer aligned to the right side of the screen.
    image

  3. If I pull the left edge of the JupyterLab window to the right, it reveals that the right edges of the Slack and terminal windows aren't aligned, either. The edge between Slack and Terminal are also not aligned.
    image

Basically, there's overlap on every window. I'm not sure how to fix this. Prior to finding x-tile, I have been using custom scripts for the layout. But I am excited about x-tile as I think it's a far superior solution.

System info:
image
Ubuntu Budgie 20.04
UHD screen
XTile v3.3

image

image

Fails to build with setuptools >= 61.0

When trying to build x-tile with setuptools >= 61.0 this error message appears:

error: Multiple top-level packages discovered in a flat-layout: ['linux', 'glade', 'locale', 'debian', 'modules'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.

It can be fixed by adding packages=[] or py_modules=[] at the setup section of setup.py

See also pypa/setuptools#3197 (comment)

libc.prctl not available, firefox window resized smaller than space

great app, thank you. couple of questions:

on running x-tile h the command runs but returns:

libc.prctl not available, the process name will be python and not x-tile
I think this is informational/benign.

Also when tiling Firefox window using h or v, the window is positioned in the correct location, but is resized too small - has space around each side (this doesn't appear happen with other application's windows eg chromium)

running x-tile 3.3 on Kali 2022.3 and Firefox 91.11.0esr (64-bit)

Thanks for any help you can offer.

Python errors with x-tile 3.1 an multi-monitor

After upgrading to 3.1 I get

$ x-tile
WM = Xfwm4
Traceback (most recent call last):
File "/usr/bin/x-tile", line 74, in
x.reload_windows_list()
File "/usr/share/x-tile/modules/core.py", line 1006, in reload_windows_list
self.store.load_model(self)
File "/usr/share/x-tile/modules/core.py", line 156, in load_model
win_geom = support.get_geom(win_id)
NameError: name 'win_id' is not defined

This looks like some new issue possibly limitted to multi monitor environments. Same happens in 3.0, 2.6 works for me, however.

Trying to fix this win_id error lead to some other error - at that stage I gave up trying to fix it myself.

tile windows per monitor

I have a 2 monitor setup and i'm using fluxbox. I have some "permanent" windows on monitor 1 (on the left, chat, email, monitoring tools, etc) and in the monitor 2 (on the right), the main screen with many terminals, browsers and other tools

I also would like that apps in monitor 1 be tiled just in that monitor and apps in monitor 2 to be tiled only in monitor 2.

When trying to tile this config x-tile will mix the apps in monitor 1 with the apps in monitor 2, all in monitor 1 only.
I think they should be tiled across both monitors and should be a options to keep windows on the same monitor

Thanks for xtile

Some apps shown only once in the list

Hi

I use Thunar file manager to open some images, in this case XnViewMp. Xnview is shown only once however I have multiple copies of the app open.

I am on Debian Jessie 64

thanks

Multiple top-level packages discovered in a flat-layout (Debian)

Hi,

During a rebuild of the x-tile package on Debian the following error occurred:

>  debian/rules clean
> dh clean --with python3 --buildsystem=pybuild
>    dh_auto_clean -O--buildsystem=pybuild
> I: pybuild base:310: python3.11 setup.py clean 
> error: Multiple top-level packages discovered in a flat-layout: ['linux', 'glade', 'locale', 'modules'].
> 
> To avoid accidental inclusion of unwanted files or directories,
> setuptools will not proceed with this build.
> 
> If you are trying to create a single distribution with multiple packages
> on purpose, you should not rely on automatic discovery.
> Instead, consider the following options:
> 
> 1. set up custom discovery (`find` directive with `include` or `exclude`)
> 2. use a `src-layout`
> 3. explicitly set `py_modules` or `packages` with a list of names
> 
> To find more information, look for "package discovery" on setuptools docs.
> E: pybuild pybuild:395: clean: plugin distutils failed with: exit code=1: python3.11 setup.py clean 
> dh_auto_clean: error: pybuild --clean -i python{version} -p 3.11 returned exit code 13
> make: *** [debian/rules:4: clean] Error 25

To fix it I applied the following patch:

--- x-tile.orig/setup.py
+++ x-tile/setup.py
@@ -150,6 +150,7 @@ setup(
     author_email = "[email protected] & [email protected]",
     url = "http://www.giuspen.com/x-tile/",
     license = "GPL",
+    packages=[],
     data_files = [
                   ("share/icons/hicolor/scalable/apps", ["glade/x-tile.svg"] ),
                   ("share/x-tile/glade", glob.glob("glade/*.*") ),

How to run on a minimal installation (requirements)?

Thanks for this promising piece of software! I am excited to try it out on a minimalist installation (dCore, a Tiny Core off-spring) with LXDE/Openbox.

Though, I get the following error.

WM = Open
Traceback (most recent call last):
File "/usr/bin/x-tile", line 65, in
x = core.XTile(core.InfoModel())
File "/usr/share/x-tile/modules/core.py", line 265, in init
pixbuf = gtk.gdk.pixbuf_new_from_file(filepath)
glib.GError: Couldn't recognize the image file format for file '/usr/share/x-tile/glade/tile-vertically.svg'

So far, I have installed libgdk-pixbuf2.0-0, librsvg2-2, python-gconf, python-gtk2, python-rsvg. Do you see anything obvious that is missing?

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.