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

Error running i3-quake #1

Open
VasilyKrylov opened this issue May 7, 2023 · 1 comment
Open

Error running i3-quake #1

VasilyKrylov opened this issue May 7, 2023 · 1 comment

Comments

@VasilyKrylov
Copy link

VasilyKrylov commented May 7, 2023

Hello! I've installed all depencies and download i3-quake to home directory, run it and got this error message:

Backup > ./i3-quake -H 0.6 -t alacritty htop
Traceback (most recent call last):
  File "/home/vasily/Backup/./i3-quake", line 166, in <module>
    toggle_quake(args.term, args.pos, args.ratio, args.cmd)
  File "/home/vasily/Backup/./i3-quake", line 107, in toggle_quake
    quake_term = i3.get_tree().find_named(get_name())
                                          ^^^^^^^^^^
  File "/home/vasily/Backup/./i3-quake", line 90, in get_name
    ws_num = get_current_workspace()['num']
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vasily/Backup/./i3-quake", line 79, in get_current_workspace
    return [ws for ws in i3.get_workspaces() if ws['focused']][0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vasily/Backup/./i3-quake", line 79, in <listcomp>
    return [ws for ws in i3.get_workspaces() if ws['focused']][0]
                                                ~~^^^^^^^^^^^
TypeError: 'WorkspaceReply' object is not subscriptable

But -h option works:

Backup > ./i3-quake -h
usage: i3-quake [-h] [-i] [-p POS] [-H RATIO] [-t TERM] [CMD]

positional arguments:
  CMD                   command to execute in new terminal

options:
  -h, --help            show this help message and exit
  -i, --in-place        set current terminal at top down position and
                        execute cmd
  -p POS, --pos POS     open terminal at top or bottom (default is top)
  -H RATIO, --height RATIO
                        height of terminal in percentage of monitor height
  -t TERM, --term TERM  terminal name (default is xterm)

I use Fedora 37 Workstation with i3

Developer, if you need any other debug info, which I forgot, wright down about it

Thanks

@joaothallis
Copy link

I am having the same issue, I am using Ubuntu 22.04.3 LTS x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants