Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [scratchpads] toggle not working on ubuntu 24 lts #133

Open
AlexAuragan opened this issue Aug 4, 2024 · 7 comments
Open

[BUG] [scratchpads] toggle not working on ubuntu 24 lts #133

AlexAuragan opened this issue Aug 4, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@AlexAuragan
Copy link

Pyprland version
2.4.0
Describe the bug
pypr toggle command is not working for me

Whether I use the shortcut defined in hyprland or use the command in the terminal, I get a notification saying that there are no full_address

Logs

2024-08-04 23:34:29,811 [ERROR] pypr :: This could be a bug in Pyprland, if you think so, report on https://github.com/fdev31/pyprland/issues :: command.py:185
Traceback (most recent call last):
  File "/var/cache/pypr/package.whl/pyprland/command.py", line 183, in _run_plugin_handler
    await getattr(plugin, full_name)(*params)
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/__init__.py", line 464, in run_toggle
    await asyncio.gather(*(asyncio.create_task(t()) for t in tasks))
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/__init__.py", line 558, in run_show
    assert scratch.full_address, "No address !"
           ^^^^^^^^^^^^^^^^^^^^
AssertionError: No address !

Configuration (provide following files/samples when relevant):

  • pyprland.toml
[pyprland]

plugins = [
  "scratchpads",
  "magnify",
]

[scratchpads.term]
animation = "fromTop"
command = "kitty --class kitty-dropterm"
class = "kitty-dropterm"
size = "75% 60%"

Additional context
I'm on Ubuntu LTS 24, I installed hyprland using the JaKooLit script. Some functionnalities were missing and that's how I found out about pypr, I then installed it with the get-pypt script.

@AlexAuragan AlexAuragan added the bug Something isn't working label Aug 4, 2024
@AlexAuragan AlexAuragan reopened this Aug 4, 2024
@AlexAuragan AlexAuragan changed the title [BUG] Enter a short bug description here [BUG] pypr toggle not working Aug 4, 2024
@AlexAuragan AlexAuragan changed the title [BUG] pypr toggle not working [BUG] pypr toggle not working on ubuntu 24 lts Aug 4, 2024
@fdev31
Copy link
Collaborator

fdev31 commented Aug 14, 2024

Log errors via pypr --debug /tmp/pypr.log and copy the content here please.

@fdev31 fdev31 changed the title [BUG] pypr toggle not working on ubuntu 24 lts [BUG] [scratchpads] toggle not working on ubuntu 24 lts Aug 16, 2024
@AlexAuragan
Copy link
Author

2024-08-22 10:30:09,316 [DEBUG] pyprland :: event_focusedmon('HDMI-A-1,2',) :: command.py:177
2024-08-22 10:30:09,316 [DEBUG] pyprland :: active_monitor = HDMI-A-1 :: pyprland.py:86
2024-08-22 10:30:09,317 [DEBUG] pyprland :: event_activewindowv2('557064dbed40',) :: command.py:177
2024-08-22 10:30:09,317 [DEBUG] pyprland :: active_window = 0x557064dbed40 :: pyprland.py:76
2024-08-22 10:30:09,317 [DEBUG] scratchpads :: event_activewindowv2('557064dbed40',) :: command.py:177
2024-08-22 10:30:11,712 [DEBUG] scratchpads :: run_toggle('term',) :: command.py:177
2024-08-22 10:30:11,713 [DEBUG] scratchpads :: visibility_check: ('2', '') == ('2', 'HDMI-A-1') :: __init__.py:433
2024-08-22 10:30:11,713 [DEBUG] scratchpads :: term visibility: False and False :: __init__.py:459
2024-08-22 10:30:11,714 [INFO] scratchpads :: Showing term :: __init__.py:536
2024-08-22 10:30:11,730 [DEBUG] scratchpads :: keyword windowrule unset,^(kitty-dropterm)$ :: ipc.py:144
2024-08-22 10:30:11,734 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-08-22 10:30:11,737 [ERROR] pypr :: scratchpads::run_toggle(('term',)) failed: :: command.py:188
Traceback (most recent call last):
  File "/var/cache/pypr/package.whl/pyprland/command.py", line 183, in _run_plugin_handler
    await getattr(plugin, full_name)(*params)
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/__init__.py", line 464, in run_toggle
    await asyncio.gather(*(asyncio.create_task(t()) for t in tasks))
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/__init__.py", line 551, in run_show
    await scratch.initialize(self)
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/objects.py", line 91, in initialize
    await self.update_client_info()
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/objects.py", line 159, in update_client_info
    raise KeyError(msg)
KeyError: 'Client window  not found'
2024-08-22 10:30:11,771 [DEBUG] ipc :: notify 0 5000 rgb(ff1010)  Pypr error scratchpads::run_toggle: 'Client window  not found' :: ipc.py:144
2024-08-22 10:30:13,651 [DEBUG] pyprland :: event_focusedmon('eDP-1,1',) :: command.py:177
2024-08-22 10:30:13,651 [DEBUG] pyprland :: active_monitor = eDP-1 :: pyprland.py:86
2024-08-22 10:30:13,652 [DEBUG] pyprland :: event_activewindowv2('557064233d00',) :: command.py:177
2024-08-22 10:30:13,652 [DEBUG] pyprland :: active_window = 0x557064233d00 :: pyprland.py:76
2024-08-22 10:30:13,652 [DEBUG] scratchpads :: event_activewindowv2('557064233d00',) :: command.py:177
2024-08-22 10:30:15,335 [DEBUG] pyprland :: event_activewindowv2('557064233d00',) :: command.py:177
2024-08-22 10:30:15,335 [DEBUG] pyprland :: active_window = 0x557064233d00 :: pyprland.py:76
2024-08-22 10:30:15,335 [DEBUG] scratchpads :: event_activewindowv2('557064233d00',) :: command.py:177

@fdev31
Copy link
Collaborator

fdev31 commented Aug 22, 2024

I need the full log file since you are not using the lazy mode.
Also attach the output of hyprctl -j clients please.

You may also want try using one of those options to see if it improves something:

  • lazy = true
  • match_by = "class"

EDIT: Can you also tell me which Hyprland version is installed ? hyprctl -j version

@fdev31
Copy link
Collaborator

fdev31 commented Sep 19, 2024

Any update ?

@Alessio-jpg
Copy link

Hello, I am facing the same issue, I tried investigating a little bit and managed to get it working (somehow), however it still doesn't work as intended.
Bug report following:

Pyprland version
2.4.0
Describe the bug
pypr toggle command not working as intended

Configuration (provide following files/samples when relevant):

  • pyprland.toml
[pyprland]

plugins = [
  "scratchpads",
]

[scratchpads.term]
animation = "fromTop"
command = "kitty --class kitty-dropterm"
class = "kitty-dropterm"
size = "75% 60%"

[scratchpads.term2]
animation = "fromTop"
command = "kitty --class kitty-dropterm"
class = "kitty-dropterm"
size = "75% 60%"
max_size = "1920px 100%"
margin = 50
lazy = true
match_by = "class"
unfocus = "hide"

Logs

  • When running pypr toggle term:
This could be a bug in Pyprland, if you think so, report on https://github.com/fdev31/pyprland/issues
Traceback (most recent call last):
  File "/var/cache/pypr/package.whl/pyprland/command.py", line 183, in _run_plugin_handler
    await getattr(plugin, full_name)(*params)
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/__init__.py", line 464, in run_toggle
    await asyncio.gather(*(asyncio.create_task(t()) for t in tasks))
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/__init__.py", line 558, in run_show
    assert scratch.full_address, "No address !"
           ^^^^^^^^^^^^^^^^^^^^
AssertionError: No address !

Logfile:

2024-10-14 20:01:27,287 [INFO] ipc :: Logger "ipc" initialized :: common.py:205
2024-10-14 20:01:27,288 [INFO] startup :: Logger "startup" initialized :: common.py:205
2024-10-14 20:01:27,288 [INFO] pypr :: Logger "pypr" initialized :: common.py:205
2024-10-14 20:01:27,289 [INFO] pypr :: Loading /home/alessio/.config/hypr/pyprland.toml :: command.py:89
2024-10-14 20:01:27,293 [INFO] pyprland :: Logger "pyprland" initialized :: common.py:205
2024-10-14 20:01:27,293 [DEBUG] pyprland :: version :: ipc.py:101
2024-10-14 20:01:27,296 [DEBUG] pyprland :: activeworkspace :: ipc.py:101
2024-10-14 20:01:27,297 [DEBUG] pyprland :: monitors :: ipc.py:101
2024-10-14 20:01:27,298 [INFO] pyprland :: configured :: command.py:154
2024-10-14 20:01:27,343 [INFO] scratchpads :: Logger "scratchpads" initialized :: common.py:205
2024-10-14 20:01:27,343 [DEBUG] scratchpads :: monitors (CACHE HIT) :: ipc.py:98
2024-10-14 20:01:27,343 [DEBUG] scratchpads :: keyword ['windowrule float,^(kitty-dropterm)$', 'windowrule workspace special:scratch_term silent,^(kitty-dropterm)$', 'windowrule move 240 -200%,^(kitty-dropterm)$', 'windowrule size 1440 720,^(kitty-dropterm)$'] :: ipc.py:144
2024-10-14 20:01:27,344 [INFO] scratchpads :: term is not running, starting... :: __init__.py:237
2024-10-14 20:01:27,346 [INFO] scratchpads :: scratch term (kitty --class kitty-dropterm) has pid 69538 :: __init__.py:258
2024-10-14 20:01:27,346 [INFO] scratchpads :: starting term :: __init__.py:212
2024-10-14 20:01:27,346 [INFO] scratchpads :: ==> Wait for term spawning :: __init__.py:166
2024-10-14 20:01:27,447 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:27,550 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:27,653 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:27,755 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:27,856 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:27,958 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,060 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,162 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,263 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,365 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,567 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,770 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,973 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:29,176 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:29,380 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:29,583 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:29,787 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:29,991 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:30,194 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:30,398 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:30,602 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:30,805 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:31,009 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:31,213 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:31,417 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:31,621 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:31,824 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:32,027 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:32,229 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:32,344 [INFO] scratchpads :: timed out on reload :: command.py:148
2024-10-14 20:01:32,345 [DEBUG] pypr :: ================================[ initialized ]================================= :: command.py:355
2024-10-14 20:01:32,346 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:32,346 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:01:32,346 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:32,346 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:01:32,347 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:32,347 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:32,347 [DEBUG] scratchpads :: event_openwindow('5c28f7c868a0,special:scratch_term silent,kitty-dropterm,fish',) :: command.py:177
2024-10-14 20:01:32,347 [INFO] scratchpads :: Updating Scratch info :: __init__.py:382
2024-10-14 20:01:32,347 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:32,352 [INFO] scratchpads :: Didn't update scratch info <pyprland.plugins.scratchpads.Extension object at 0x7d89d1bbabd0> :: __init__.py:283
2024-10-14 20:01:38,945 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:38,946 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:01:38,946 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:39,076 [DEBUG] scratchpads :: run_toggle('term',) :: command.py:177
2024-10-14 20:01:39,076 [DEBUG] scratchpads :: visibility_check: ('', '') == ('4', 'eDP-1') :: __init__.py:433
2024-10-14 20:01:39,077 [DEBUG] scratchpads :: term visibility: False and False :: __init__.py:459
2024-10-14 20:01:39,077 [INFO] scratchpads :: Showing term :: __init__.py:536
2024-10-14 20:01:39,077 [DEBUG] scratchpads :: keyword windowrule unset,^(kitty-dropterm)$ :: ipc.py:144
2024-10-14 20:01:39,078 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:39,079 [ERROR] pypr :: scratchpads::run_toggle(('term',)) failed: :: command.py:188
Traceback (most recent call last):
  File "/var/cache/pypr/package.whl/pyprland/command.py", line 183, in _run_plugin_handler
    await getattr(plugin, full_name)(*params)
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/__init__.py", line 464, in run_toggle
    await asyncio.gather(*(asyncio.create_task(t()) for t in tasks))
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/__init__.py", line 551, in run_show
    await scratch.initialize(self)
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/objects.py", line 91, in initialize
    await self.update_client_info()
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/objects.py", line 159, in update_client_info
    raise KeyError(msg)
KeyError: 'Client window  not found'
2024-10-14 20:01:39,082 [DEBUG] ipc :: notify 0 5000 rgb(ff1010)  Pypr error scratchpads::run_toggle: 'Client window  not found' :: ipc.py:144
2024-10-14 20:01:39,110 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:39,110 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:01:39,110 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:47,471 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:47,471 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:01:47,471 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
  • When running pypr toggle term2, the terminal actually shows up, but it also spaws a standard kitty terminal alongsides (as a normal hyprland window):
2024-10-14 20:01:27,287 [INFO] ipc :: Logger "ipc" initialized :: common.py:205
2024-10-14 20:01:27,288 [INFO] startup :: Logger "startup" initialized :: common.py:205
2024-10-14 20:01:27,288 [INFO] pypr :: Logger "pypr" initialized :: common.py:205
2024-10-14 20:01:27,289 [INFO] pypr :: Loading /home/alessio/.config/hypr/pyprland.toml :: command.py:89
2024-10-14 20:01:27,293 [INFO] pyprland :: Logger "pyprland" initialized :: common.py:205
2024-10-14 20:01:27,293 [DEBUG] pyprland :: version :: ipc.py:101
2024-10-14 20:01:27,296 [DEBUG] pyprland :: activeworkspace :: ipc.py:101
2024-10-14 20:01:27,297 [DEBUG] pyprland :: monitors :: ipc.py:101
2024-10-14 20:01:27,298 [INFO] pyprland :: configured :: command.py:154
2024-10-14 20:01:27,343 [INFO] scratchpads :: Logger "scratchpads" initialized :: common.py:205
2024-10-14 20:01:27,343 [DEBUG] scratchpads :: monitors (CACHE HIT) :: ipc.py:98
2024-10-14 20:01:27,343 [DEBUG] scratchpads :: keyword ['windowrule float,^(kitty-dropterm)$', 'windowrule workspace special:scratch_term silent,^(kitty-dropterm)$', 'windowrule move 240 -200%,^(kitty-dropterm)$', 'windowrule size 1440 720,^(kitty-dropterm)$'] :: ipc.py:144
2024-10-14 20:01:27,344 [INFO] scratchpads :: term is not running, starting... :: __init__.py:237
2024-10-14 20:01:27,346 [INFO] scratchpads :: scratch term (kitty --class kitty-dropterm) has pid 69538 :: __init__.py:258
2024-10-14 20:01:27,346 [INFO] scratchpads :: starting term :: __init__.py:212
2024-10-14 20:01:27,346 [INFO] scratchpads :: ==> Wait for term spawning :: __init__.py:166
2024-10-14 20:01:27,447 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:27,550 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:27,653 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:27,755 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:27,856 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:27,958 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,060 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,162 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,263 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,365 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,567 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,770 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:28,973 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:29,176 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:29,380 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:29,583 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:29,787 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:29,991 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:30,194 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:30,398 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:30,602 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:30,805 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:31,009 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:31,213 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:31,417 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:31,621 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:31,824 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:32,027 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:32,229 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:32,344 [INFO] scratchpads :: timed out on reload :: command.py:148
2024-10-14 20:01:32,345 [DEBUG] pypr :: ================================[ initialized ]================================= :: command.py:355
2024-10-14 20:01:32,346 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:32,346 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:01:32,346 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:32,346 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:01:32,347 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:32,347 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:32,347 [DEBUG] scratchpads :: event_openwindow('5c28f7c868a0,special:scratch_term silent,kitty-dropterm,fish',) :: command.py:177
2024-10-14 20:01:32,347 [INFO] scratchpads :: Updating Scratch info :: __init__.py:382
2024-10-14 20:01:32,347 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:32,352 [INFO] scratchpads :: Didn't update scratch info <pyprland.plugins.scratchpads.Extension object at 0x7d89d1bbabd0> :: __init__.py:283
2024-10-14 20:01:38,945 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:38,946 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:01:38,946 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:39,076 [DEBUG] scratchpads :: run_toggle('term',) :: command.py:177
2024-10-14 20:01:39,076 [DEBUG] scratchpads :: visibility_check: ('', '') == ('4', 'eDP-1') :: __init__.py:433
2024-10-14 20:01:39,077 [DEBUG] scratchpads :: term visibility: False and False :: __init__.py:459
2024-10-14 20:01:39,077 [INFO] scratchpads :: Showing term :: __init__.py:536
2024-10-14 20:01:39,077 [DEBUG] scratchpads :: keyword windowrule unset,^(kitty-dropterm)$ :: ipc.py:144
2024-10-14 20:01:39,078 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:01:39,079 [ERROR] pypr :: scratchpads::run_toggle(('term',)) failed: :: command.py:188
Traceback (most recent call last):
  File "/var/cache/pypr/package.whl/pyprland/command.py", line 183, in _run_plugin_handler
    await getattr(plugin, full_name)(*params)
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/__init__.py", line 464, in run_toggle
    await asyncio.gather(*(asyncio.create_task(t()) for t in tasks))
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/__init__.py", line 551, in run_show
    await scratch.initialize(self)
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/objects.py", line 91, in initialize
    await self.update_client_info()
  File "/var/cache/pypr/package.whl/pyprland/plugins/scratchpads/objects.py", line 159, in update_client_info
    raise KeyError(msg)
KeyError: 'Client window  not found'
2024-10-14 20:01:39,082 [DEBUG] ipc :: notify 0 5000 rgb(ff1010)  Pypr error scratchpads::run_toggle: 'Client window  not found' :: ipc.py:144
2024-10-14 20:01:39,110 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:39,110 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:01:39,110 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:47,471 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:01:47,471 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:01:47,471 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:05,217 [INFO] ipc :: Logger "ipc" initialized :: common.py:205
2024-10-14 20:04:05,217 [INFO] startup :: Logger "startup" initialized :: common.py:205
2024-10-14 20:04:05,218 [INFO] pypr :: Logger "pypr" initialized :: common.py:205
2024-10-14 20:04:05,218 [INFO] pypr :: Loading /home/alessio/.config/hypr/pyprland.toml :: command.py:89
2024-10-14 20:04:05,222 [INFO] pyprland :: Logger "pyprland" initialized :: common.py:205
2024-10-14 20:04:05,222 [DEBUG] pyprland :: version :: ipc.py:101
2024-10-14 20:04:05,225 [DEBUG] pyprland :: activeworkspace :: ipc.py:101
2024-10-14 20:04:05,226 [DEBUG] pyprland :: monitors :: ipc.py:101
2024-10-14 20:04:05,230 [INFO] pyprland :: configured :: command.py:154
2024-10-14 20:04:05,274 [INFO] scratchpads :: Logger "scratchpads" initialized :: common.py:205
2024-10-14 20:04:05,275 [DEBUG] scratchpads :: monitors (CACHE HIT) :: ipc.py:98
2024-10-14 20:04:05,275 [DEBUG] scratchpads :: keyword ['windowrule float,^(kitty-dropterm)$', 'windowrule workspace special:scratch_term silent,^(kitty-dropterm)$', 'windowrule move 240 -200%,^(kitty-dropterm)$', 'windowrule size 1440 720,^(kitty-dropterm)$'] :: ipc.py:144
2024-10-14 20:04:05,276 [INFO] scratchpads :: term is not running, starting... :: __init__.py:237
2024-10-14 20:04:05,278 [INFO] scratchpads :: scratch term (kitty --class kitty-dropterm) has pid 70421 :: __init__.py:258
2024-10-14 20:04:05,278 [INFO] scratchpads :: starting term :: __init__.py:212
2024-10-14 20:04:05,278 [INFO] scratchpads :: ==> Wait for term spawning :: __init__.py:166
2024-10-14 20:04:05,379 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:05,483 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:05,585 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:05,687 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:05,789 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:05,891 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:05,993 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:06,095 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:06,197 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:06,299 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:06,501 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:06,704 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:06,907 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:07,110 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:07,312 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:07,516 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:07,718 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:07,921 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:08,125 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:08,329 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:08,532 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:08,736 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:08,940 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:09,144 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:09,346 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:09,550 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:09,754 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:09,958 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:10,162 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:10,276 [INFO] scratchpads :: timed out on reload :: command.py:148
2024-10-14 20:04:10,276 [DEBUG] pypr :: ================================[ initialized ]================================= :: command.py:355
2024-10-14 20:04:10,277 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:10,277 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:04:10,277 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:10,277 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:04:10,277 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:10,277 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:10,277 [DEBUG] scratchpads :: event_openwindow('5c28f7c91080,special:scratch_term silent,kitty-dropterm,fish',) :: command.py:177
2024-10-14 20:04:10,277 [INFO] scratchpads :: Updating Scratch info :: __init__.py:382
2024-10-14 20:04:10,277 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:10,279 [INFO] scratchpads :: Didn't update scratch info <pyprland.plugins.scratchpads.Extension object at 0x781ad03b3890> :: __init__.py:283
2024-10-14 20:04:16,161 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:16,161 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:04:16,161 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:16,285 [DEBUG] scratchpads :: run_toggle('term2',) :: command.py:177
2024-10-14 20:04:16,285 [DEBUG] scratchpads :: visibility_check: ('', '') == ('4', 'eDP-1') :: __init__.py:433
2024-10-14 20:04:16,285 [DEBUG] scratchpads :: term2 visibility: False and False :: __init__.py:459
2024-10-14 20:04:16,285 [INFO] scratchpads :: Showing term2 :: __init__.py:536
2024-10-14 20:04:16,285 [DEBUG] scratchpads :: monitors :: ipc.py:101
2024-10-14 20:04:16,286 [DEBUG] scratchpads :: keyword ['windowrule float,^(kitty-dropterm)$', 'windowrule workspace special:scratch_term2 silent,^(kitty-dropterm)$', 'windowrule move 240 -200%,^(kitty-dropterm)$', 'windowrule size 1440 720,^(kitty-dropterm)$'] :: ipc.py:144
2024-10-14 20:04:16,287 [INFO] scratchpads :: term2 is not running, starting... :: __init__.py:237
2024-10-14 20:04:16,289 [INFO] scratchpads :: scratch term2 (kitty --class kitty-dropterm) has pid 70549 :: __init__.py:258
2024-10-14 20:04:16,289 [INFO] scratchpads :: starting term2 :: __init__.py:212
2024-10-14 20:04:16,289 [INFO] scratchpads :: ==> Wait for term2 spawning :: __init__.py:166
2024-10-14 20:04:16,318 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:16,318 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:04:16,391 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:16,392 [INFO] scratchpads :: => term2 client (proc:70549, addr:0x5c28f7a4dd20) detected on time :: __init__.py:177
2024-10-14 20:04:16,393 [DEBUG] scratchpads :: keyword windowrule unset,^(kitty-dropterm)$ :: ipc.py:144
2024-10-14 20:04:16,394 [DEBUG] scratchpads :: clients (CACHE HIT) :: ipc.py:98
2024-10-14 20:04:16,394 [DEBUG] scratchpads :: dispatch movetoworkspacesilent special:scratch_term2,address:0x5c28f7a4dd20 :: ipc.py:144
2024-10-14 20:04:16,403 [DEBUG] scratchpads :: monitors :: ipc.py:101
2024-10-14 20:04:16,408 [DEBUG] scratchpads :: dispatch resizewindowpixel exact 1440 720,address:0x5c28f7a4dd20 :: ipc.py:144
2024-10-14 20:04:16,409 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:16,413 [DEBUG] scratchpads :: dispatch ['moveworkspacetomonitor special:scratch_term2 eDP-1', 'movetoworkspacesilent 4,address:0x5c28f7a4dd20', 'alterzorder top,address:0x5c28f7a4dd20', 'movetoworkspacesilent 4,address:0x5c28f7c868a0', 'alterzorder top,address:0x5c28f7c868a0', 'movetoworkspacesilent 4,address:0x5c28f7acf260', 'alterzorder top,address:0x5c28f7acf260', 'movetoworkspacesilent 4,address:0x5c28f7bd2ca0', 'alterzorder top,address:0x5c28f7bd2ca0', 'movetoworkspacesilent 4,address:0x5c28f7c91080', 'alterzorder top,address:0x5c28f7c91080'] :: ipc.py:144
2024-10-14 20:04:16,437 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:16,437 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:04:16,453 [DEBUG] scratchpads :: dispatch ['movewindowpixel exact 240 50,address:0x5c28f7a4dd20'] :: ipc.py:144
2024-10-14 20:04:16,455 [DEBUG] scratchpads :: dispatch focuswindow address:0x5c28f7a4dd20 :: ipc.py:144
2024-10-14 20:04:16,460 [DEBUG] scratchpads :: dispatch pin address:0x5c28f7a4dd20 :: ipc.py:144
2024-10-14 20:04:16,461 [DEBUG] pyprland :: event_activewindowv2('5c28f7a4dd20',) :: command.py:177
2024-10-14 20:04:16,461 [DEBUG] pyprland :: active_window = 0x5c28f7a4dd20 :: pyprland.py:76
2024-10-14 20:04:16,463 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:16,463 [DEBUG] scratchpads :: (SKIPPED) hide term2 because another client is active :: __init__.py:326
2024-10-14 20:04:16,463 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:16,463 [DEBUG] scratchpads :: (SKIPPED) hide term2 because another client is active :: __init__.py:326
2024-10-14 20:04:16,463 [DEBUG] scratchpads :: event_activewindowv2('5c28f7a4dd20',) :: command.py:177
2024-10-14 20:04:17,384 [DEBUG] pyprland :: event_activewindowv2('5c28f7ca7740',) :: command.py:177
2024-10-14 20:04:17,384 [DEBUG] pyprland :: active_window = 0x5c28f7ca7740 :: pyprland.py:76
2024-10-14 20:04:17,384 [DEBUG] scratchpads :: event_activewindowv2('5c28f7ca7740',) :: command.py:177
2024-10-14 20:04:17,384 [DEBUG] scratchpads :: event_openwindow('5c28f7ca7740,4,kitty-dropterm,fish',) :: command.py:177
2024-10-14 20:04:17,385 [INFO] scratchpads :: Updating Scratch info :: __init__.py:382
2024-10-14 20:04:17,385 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:17,612 [DEBUG] pyprland :: event_activewindowv2('5c28f7ca7740',) :: command.py:177
2024-10-14 20:04:17,612 [DEBUG] pyprland :: active_window = 0x5c28f7ca7740 :: pyprland.py:76
2024-10-14 20:04:17,612 [DEBUG] scratchpads :: event_activewindowv2('5c28f7ca7740',) :: command.py:177
2024-10-14 20:04:17,613 [DEBUG] scratchpads :: Canceled previous task for term2 :: __init__.py:393
2024-10-14 20:04:18,014 [DEBUG] scratchpads :: hide term2 because another client is active :: __init__.py:343
2024-10-14 20:04:18,014 [DEBUG] scratchpads :: clients :: ipc.py:101
2024-10-14 20:04:18,016 [INFO] scratchpads :: Hiding term2 :: __init__.py:740
2024-10-14 20:04:18,016 [DEBUG] scratchpads :: dispatch ['movewindowpixel 0 -770,address:0x5c28f7acf260', 'movewindowpixel 0 -770,address:0x5c28f7c91080', 'movewindowpixel 0 -770,address:0x5c28f7ca7740', 'movewindowpixel 0 -770,address:0x5c28f7c868a0', 'movewindowpixel 0 -770,address:0x5c28f7bd2ca0', 'movewindowpixel 0 -770,address:0x5c28f7a4dd20'] :: ipc.py:144
2024-10-14 20:04:18,221 [DEBUG] scratchpads :: dispatch pin address:0x5c28f7a4dd20 :: ipc.py:144
2024-10-14 20:04:18,224 [DEBUG] scratchpads :: dispatch movetoworkspacesilent special:scratch_term2,address:0x5c28f7a4dd20 :: ipc.py:144
2024-10-14 20:04:18,233 [DEBUG] scratchpads :: dispatch movetoworkspacesilent special:scratch_term2,address:0x5c28f7acf260 :: ipc.py:144
2024-10-14 20:04:18,252 [DEBUG] scratchpads :: dispatch movetoworkspacesilent special:scratch_term2,address:0x5c28f7c91080 :: ipc.py:144
2024-10-14 20:04:18,272 [DEBUG] scratchpads :: dispatch movetoworkspacesilent special:scratch_term2,address:0x5c28f7ca7740 :: ipc.py:144
2024-10-14 20:04:18,283 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:18,283 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:04:18,283 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:18,294 [DEBUG] scratchpads :: dispatch movetoworkspacesilent special:scratch_term2,address:0x5c28f7c868a0 :: ipc.py:144
2024-10-14 20:04:18,319 [DEBUG] scratchpads :: dispatch movetoworkspacesilent special:scratch_term2,address:0x5c28f7bd2ca0 :: ipc.py:144
2024-10-14 20:04:18,341 [DEBUG] scratchpads :: dispatch focuswindow address:0x5c28f73e7150 :: ipc.py:144
2024-10-14 20:04:18,344 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:18,344 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:04:18,344 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:31,893 [DEBUG] pyprland :: event_activewindowv2('5c28f73e7150',) :: command.py:177
2024-10-14 20:04:31,893 [DEBUG] pyprland :: active_window = 0x5c28f73e7150 :: pyprland.py:76
2024-10-14 20:04:31,893 [DEBUG] scratchpads :: event_activewindowv2('5c28f73e7150',) :: command.py:177

Additional context
Same as OP.

hyprctl -j version output:

{
    "branch": "",
    "commit": "fe7b748eb668136dd0558b7c8279bfcd7ab4d759",
    "dirty": false,
    "commit_message": "props: bump version to 0.39.1",
    "commit_date": "Tue Apr 16 18:01:03 2024",
    "tag": "v0.39.1",
    "commits": 4460,
    "flags": []
}

@fdev31
Copy link
Collaborator

fdev31 commented Nov 2, 2024

@Alessio-jpg class should be unique, you have twice "kitty-dropterm" configured.

@fdev31
Copy link
Collaborator

fdev31 commented Nov 6, 2024

I added some checks & tiny improvements.
Do you still have troubles with the latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants