I am using the i3 window manager. I would like to autostart an xterm window and move it…
- User
I am using the i3 window manager. I would like to autostart an xterm window and move it to scratchpad; and then use a keypress to show the xterm. If I accidentally close the xterm window, I would also like the keypress to start xterm in the scratchpad again. How do I do this?
- Assistant
To achieve this in i3 window manager, you can use a combination of startup commands and keybindings.
-
Autostart xterm in scratchpad: Add the following line to your i3 configuration file (
~/.config/i3/config):exec --no-startup-id i3-msg 'exec xterm; move scratchpad' -
Keybinding to show the xterm: Add the following line to your i3 configuration file to bind a key to show the xterm from the scratchpad:
bindsym $mod+Shift+Return scratchpad show
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.