Closed OmarShawky1 closed 2 years ago
Could you post the output from the following commands please?
$ python --version
and
$ wmctrl -l | awk '{ if( $2 != "-1") { $3=""; print $0} }'
and
$ wmctrl -d | sed -n -E -e 's/^.*WA: (N\/A|.,. [[:digit:]]+x[[:digit:]]+) //p'
Thanks!
$python --version
Python 2.7.17
$ wmctrl -l | awk '{ if( $2 != "-1") { $3=""; print $0} }'
0x01a00003 0 wingpanel
0x06800008 0 program-langs-part-a - Discord
0x04a00016 0 Warm & Cozy November Jazz - Relax Coffee Time Jazz For Study, Work, Stress Relief - Jazz BGM - YouTube
0x04a00017 0 Not working, stuck at loading · Issue #11 · dflock/ulauncher-window-switcher - Google Chrome
0x0360000a 0 wmctrl -l
0x04800007 0 Mailspring · Re: [dflock/ulauncher-window-switcher] Not working, stuck at loading (Issue #11)
$ wmctrl -d | sed -n -E -e 's/^.*WA: (N\/A|.,. [[:digit:]]+x[[:digit:]]+) //p'
Fantastic, thanks!
Sorry, I forgot one:
$ python3 --version
$ python3 --version
Python 3.6.9
I also get the same error.
OS: elementary OS 6 Odin
$ python --version
Python 3.10.0
$ python3 --version
Python 3.10.0
$ wmctrl -l | awk '{ if( $2 != "-1") { $3=""; print $0} }'
0x01e00003 0 io.elementary.wingpanel
0x05a00007 0 /home/user/Documents/Data
0x04000001 0 v3.md - Visual Studio Code
0x0540002b 1 Not working, stuck at loading · Issue #11 · dflock/ulauncher-window-switcher — Mozilla Firefox
0x0580004a 1 Synaptic Package Manager
0x028001ec 0 Ulauncher Preferences
$ wmctrl -d | sed -n -E -e 's/^.*WA: (N\/A|.,. [[:digit:]]+x[[:digit:]]+) //p'
I have just pushed a change which fixes one instance of getting suck at "Loading..." which I found. Maybe this fixes it for you?
Nope.
It seems like this command doesn't work on elementaryOS, for some reason:
$ wmctrl -d | sed -n -E -e 's/^.*WA: (N\/A|.,. [[:digit:]]+x[[:digit:]]+) //p'
This should spit out a list of workspace names, something like this:
$ wmctrl -d | sed -n -E -e 's/^.*WA: (N\/A|.,. [[:digit:]]+x[[:digit:]]+) //p'
Personal: Email
Notes
Todo
Finances
Project: duncanlock.net
Personal: D&D
Project: Nim
[empty]
Project: dotfiles
[empty]
Project: antora-default-ui
Project: Home Dashboard
Project: LanguageTool
Project: Gemini
Project: lite-xl
Project: Standard eBooks
Project: NAS & Storage
Project: Processing
Personal: Retro Hardware
Project: ulauncher
[empty]
[empty]
[empty]
Music
If running that doesn't produce any output, can you please just try this command on its own:
$ wmctrl -d
and paste the output from that?
I have 2 screens and 2 workspaces which add up to 3.
$ wmctrl -d
0 * DG: 2640x1024 VP: 0,0 WA: 0,30 2640x994 Workspace 1
1 - DG: 2640x1024 VP: N/A WA: 0,30 2640x994 Workspace 2
2 - DG: 2640x1024 VP: N/A WA: 0,30 2640x994 Workspace 3
Edit:
This solution appears to be working, it uses wmctrrl -l
instead if d
flag
Here is the output sample:
$ wmctrl -l
0x01c00003 -1 omar-LLaptop plank
0x02e00003 -1 omar-LLaptop
0x02e0007d -1 omar-LLaptop HTC
0x06200001 1 omar-LLaptop hw7.sml - Programming-Languages-Course - Visual Studio Code
0x05e00006 0 omar-LLaptop Barrier
0x07400003 1 omar-LLaptop hw7.pdf - Personal - Microsoft Edge
0x01a00003 0 omar-LLaptop wingpanel
0x0ae00002 0 omar-LLaptop Spotify
0x07200088 0 omar-LLaptop How can I get a list of all open windows in the command line? - Ask Ubuntu - Google Chrome
0x0aa0000a 0 omar-LLaptop wmctrl -l
I have the same problem on Linux Mint 20.3 Xfce
Hi,
fix here is fairly easy, posted pull request #12
In the meantime before author merges pull request, you can check if it works for you by editing the line 62
in
$HOME/.local/share/ulauncher/extensions/com.github.dflock.ulauncher-window-switcher/main.py
result = subprocess.run(
[
- "wmctrl -d | sed -n -E -e 's/^.*WA: (N\/A|.,. [[:digit:]]+x[[:digit:]]+) //p'"
+ "wmctrl -d | sed -n -E -e 's/^.*WA: (N\/A|.+,.+ [[:digit:]]+x[[:digit:]]+) //p'"
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE, # equivalent to capture_output=True
shell=True,
universal_newlines=True, # equivalent to text=True
).stdout
For me it now works flawlessly:
@stefanjarina Yes, This solved the entire problem & it worked smooth. Thank you.
Wow, awesome, thank you so much to fix this useful plugin! ❤️
OS: Elementary OS 5.1.7 Hera based on Ubuntu 18.04 LTS using Pantheon Desktop.
Error from terminal log