Skip to content

Instantly share code, notes, and snippets.

@dzintars
Created January 13, 2022 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dzintars/82679c0ab4a1a193d69136fc578b9560 to your computer and use it in GitHub Desktop.
Save dzintars/82679c0ab4a1a193d69136fc578b9560 to your computer and use it in GitHub Desktop.
How to open Ranger in a Sway floating window from Qutebrowser

In a `~/.config/qutebrowser/config.py

config.set("fileselect.handler", "external")
config.set("fileselect.single_file.command", ['alacritty', '--class', 'ranger', '-e', 'ranger', '--choosefile', '{}'])
config.set("fileselect.multiple_files.command", ['alacritty', '--class', 'ranger', '-e', 'ranger', '--choosefile', '{}'])

In a ~/.config/sway/config

for_window [app_id="ranger"] floating enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment