Comments (6)
I guess you tested this keybind with another command to check it worked at all, if not, you can exec hyprctl notify -1 10000 "rgba(ffffffff)" "This is working"
.
If that works, in your keybind line, also log the output using --debug /tmp/pypr_command.log
for instance and share it here please.
from pyprland.
It's very likely a duplicate of #7, to debug those issues, in case the --debug
file doesn't work because pypr can't initialize at all, then you might need to use a wrapper script such as:
#!/bin/sh
pypr toggle term --debug /tmp/pypr_toggle.log > /tmp/launch.log 2>&1
Feel free to re-open in case it's not a problem related to your python packages installation.
Try using your OS package manager for every package and get rid of pip installed ones, unless they run in a virtualenv.
from pyprland.
Swapped out my bind for launching the script you wrote above, and was getting command not found
so I ran which
on it and it was in my local bin. So I symlinked pypr to /usr/bin
and tried again, and here is the output I'm getting:
cat launch.log
ipc - Logger initialized for ipc // common.py:70
startup - Logger initialized for startup // common.py:70
pypr - Logger initialized for pypr // common.py:70
startup - Unhandled exception: // command.py:241
Traceback (most recent call last):
File "/home/palmerd/.local/lib/python3.11/site-packages/pyprland/command.py", line 233, in main
asyncio.run(run_daemon() if len(sys.argv) <= 1 else run_client())
File "/usr/lib64/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/palmerd/.local/lib/python3.11/site-packages/pyprland/command.py", line 211, in run_client
_, writer = await asyncio.open_unix_connection(CONTROL)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/streams.py", line 98, in open_unix_connection
transport, _ = await loop.create_unix_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/unix_events.py", line 259, in create_unix_connection
await self.sock_connect(sock, path)
File "/usr/lib64/python3.11/asyncio/selector_events.py", line 634, in sock_connect
return await fut
^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/selector_events.py", line 642, in _sock_connect
sock.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
from pyprland.
So I've reinstalled a couple times, and what has gotten me some progress is installing with sudo pip install pyprland
then running pypr in a shell- which then lets me use my keybind to launch the script above. Problem is, when I run pypr
with no command, it launches the the scratchpad, and the keybind will not launch unless I have already run pypr
. I'm gonna do some more tweaking and I'll report back here.
from pyprland.
Okay so switching my hyprland.conf
back to the original config (see above), so long as I have pypr
running somewhere else the keybind will work. Problem is, running pypr
spawns that terminal at first launch.
Update: So I've got it working (I think)- I've put the following config into my hyprland.conf
:
exec-once = ~/scripts/hypr/pyprl.sh
# scratchpad
bind = ALT, code:51, exec, pypr toggle term
$dropterm = ^(kitty-dropterm)$
windowrule = float, $dropterm
windowrule = workspace special silent, $dropterm
windowrule = size 80% 70%, $dropterm
and the contents of ~scripts/hypr/pyprl.sh
are as follows:
#!/bin/bash
pypr &
I'm not sure why this works instead of just exec-once = pypr
, but it does. You can go ahead and close this @fdev31
from pyprland.
I'm pretty sure those are environmental issues, conflicting paths etc... manually installing things is a guarantee to get some problems at some point.
If you don't want pypr to start commands when it starts, but on the first "show" instead, you can use the "lazy=true" option in some scratchpads.
I may make this option the default in a near future.
from pyprland.
Related Issues (20)
- Build broken on nixpkgs-unstable due to removal of poetry2nix HOT 6
- pypr crashes on start due to missing tomllib HOT 2
- [feature]: provide `--config` flag for custom path to config file HOT 1
- Feature request: Max scratchpad size / per monitor config HOT 4
- Bug: Multiple chrome PWA apps in scratchpad HOT 29
- Scratchpad behaviour when switching workspaces HOT 12
- Environment variable PAGER=/bin/cat HOT 1
- opening firefox - open a normal hyprland window HOT 7
- [Feature Request] Move the scratchpad to new workspace instead of closing it HOT 4
- Exclude appears not working on 1.6.8 HOT 1
- Template for plugins not working
- monitorAdded and monitorRemoved events stop registering after one reconnection of a monitor HOT 2
- Scratchpads running, but wont show up HOT 12
- activewindow can return an empty result, crashing pypr HOT 1
- [Feature Request] Minimization Plugin Integration with Scratchpads HOT 3
- `pypr reload` doesn't seem to do anything for scratchpads HOT 1
- Issues with programs that spawn child windows HOT 15
- scratchpads gets hidden behind in fullscreen mode HOT 2
- [BUG] Nix Flake build failed: "No module name 'hatchling' for pygments" HOT 3
- [BUG] Scratchpad stays on screen when hidden after reconnecting monitor HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyprland.