i3ipc-python
Our great sponsors
i3ipc-python | dotfiles | |
---|---|---|
16 | 93 | |
832 | - | |
0.6% | - | |
0.0 | - | |
3 months ago | - | |
Python | ||
BSD 3-clause "New" or "Revised" License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
i3ipc-python
- How to switch focus to last selected window?
-
Is it possible to force all windows that move to a specific workspace and/or monitor to automatically become floating?
i3ipc-python seems to do what I want -- it even has a script specifically for this -- and for existing windows moving to the space I think I can just use the binding.
-
Use the same shortcut to switch containers and workspaces?
Any reason not to use i3ipc-python? The module will talk over the ipc socket rather than calling out to (relatively expensive) i3-msg subprocesses to do it.
-
How to send all keystrokes to a specific window with a specific WM_CLASS regexp?
Untested but with i3ipc-python you should be able to write a script something like this:
-
Can you alt+tab in i3 WM?
here you go, there's more stuff on the arch wiki
-
Super Tab behavior like any other DE do with apps.
And this is the specific script to focus the last focused workspace https://github.com/altdesktop/i3ipc-python/blob/master/examples/focus-last.py
-
sway-menu extended
Looks good, if you want to go even further you could replace calls to swaymsg with a python implementation python-i3ipc / i3ipc-python
-
Issues with Runekit on Linux.
I could probably use the i3ipc-python (https://github.com/altdesktop/i3ipc-python) library (which works with both i3 and Sway) to make a Sway-specific implementation, but then it would be up to other people to implement support for things like KDE Wayland and Gnome Wayland.
-
How to catch name of a window *at the exact moment of creation* before it changes? example: zoom notifications, them sly devils!
This is kind of interesting for me. I ran into a problem with spotify, I couldn't assign it to its proper workspace... The reason was because spotify does not put proper values in at startup (sometimes it manages, but mostly not), in bspwm there were subscribe that just dumped data out. I3 you can subscribe as well, but it seems they want you to use more libraries. I found this https://i3wm.org/docs/ipc.html, through that I found https://github.com/altdesktop/i3ipc-python, installed it with
-
Vertical Sidebar
The end goal is to make something that interacts with https://github.com/altdesktop/i3ipc-python, or something similar, so I'm fine with something closer to a library.
dotfiles
-
Getting a menu on right-click of the title-bar (but not on background!)
Here's how to do it - in this example, I'm using my sway-menu python script to generate the menu itself. I'm also moving the menu to be near the cursor:
-
Remotely starting graphical app inside Sway session, when the app needs to run as root, without relying on authentication from within the session
Maybe try my script sway-runner
-
Using nwg-wrapper for a HUD of help for sway modes
As a geriatric user of sway, I don't always remember the keystrokes in the more esoteric corners of my configuration. I find that my script sway-menu helps with the bulk of the uncommon key bindings. But when I drop into a 'mode' (eg "move" mode) I don't always remember all the clever things I programed into it.
-
Is it possible to have my Bluetooth controller disconnect automatically on idle?
I wrote a simple bash script bluetooth-timeout to power-off the linux bluetooth stack after 10m of activity. Maybe this would help you.
-
What do I need to install on the Sway spin?
Another source for ideas is to read through the configs and scripts written by others. I offer my own here - there are many others around.
-
Application To Display Keybinds On-screen
sway-menu
-
Digital overlay clock?
Here's a script that uses nwg-wrapper to display a countdown - it would be easy to modify it to display a digital clock.
-
Sway productivity tips
Imma gonna browse through your stuff to see if there's a scratch to a hitherto unnoticed itch that I can snarf. You might like to do the same with my dotfiles - particularly bin/sway-\, *.config/sway** and .config/waybar.
-
Anyone know how to move container to the next *empty* workspace?
You might be able to modify my sway-next-empty-workspace script for that. Maybe see if changing swaymsg to i3-msg does the job.
-
Password manager solution in Wayland?
I use myclipman to wrap clipman with wayland/swaywm to prevent passwords being cached.
What are some alternatives?
rofi - Rofi: A window switcher, application launcher and dmenu replacement
i3status-rust - Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
runekit - Alt1-compatible widget host for RuneScape 3
sway-gnome - Opinionated Sway Configuration using GNOME session services, for GNOME >= 3.34
psuinfo - A psutil-based command to display customizable system usage info in a single line, for Tint2 executors or CLI
sway - i3-compatible Wayland compositor
i3-autoname
openSUSEway - dotfiles for Sway on openSUSE
wofi-scripts - Scripts for wofi, a wayland compatible program launcher
ydotool - Generic command-line automation tool (no X!)
i3-focus-last
picom - A lightweight compositor for X11 (previously a compton fork)