From b67755e615f04f38d20a9faaf219775b501ec9b4 Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Sat, 10 Apr 2021 17:03:13 -0700 Subject: [PATCH] Provide for a floating window in i3 - Make any window opened with class `__user_requests_float` float - Configure qutebrowser to use a script that starts kitty->vim this way --- .config/i3/config | 5 ++--- .config/qutebrowser/config.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 1eafea0..05a746a 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -191,6 +191,5 @@ hide_edge_borders both # allow workspace swap keys to toggle back and forth with prior workspace workspace_auto_back_and_forth yes -# Startup stuff -exec --no-startup-id "xsetroot -solid black" -exec --no-startup-id nextcloud +# Make windows created with a special floating class float +for_window [instance="__user_requests_float"] floating enable diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index f1f363c..fad9e46 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -321,7 +321,7 @@ c.tabs.background = True c.url.default_page = 'https://start.duckduckgo.com' # Use vim for editing with ^E -c.editor.command = ['x-terminal-emulator', 'vim', '{file}'] +c.editor.command = ['/home/trysdyn/bin/kitty-float', 'vim', '{file}'] # Custom bindings config.bind(',m', 'spawn mpv {url}')