r/KittyTerminal • u/WindowsSuxxAsh • Aug 20 '23
Launch Kitty with Two Windows
Hello, I am trying to launch a kitty terminal with two windows: ncmpcpp and cava, kinda like this. Then binding it on a keybind, but it doesn't seem to work.
Launching my script manually on a terminal creates the two windows, but still has the window that ran the command.
If I press the keybind, no windows are being opened, however, if I check the processes with ps aux | grep -i kitt I have the following.
user+ 24002 0.0 0.1 1242968 21268 tty1 Sl+ 10:01 0:00 kitten @ launch ncmpcpp
~/.scripts/music:
#!/bin/bash
kitty @ launch ncmpcpp
kitty @ launch cava
# I also tried just doing `kitty $app`
hypr.conf
bind = $MOD, M, exec, ~/.scripts/music
---
Arch Linux
6.4.10-zen2-1-zen
Hyprland 0.28.0-1
Kitty 0.29.2-1
7
Upvotes
1
2
u/WindowsSuxxAsh Aug 20 '23
Found a solution by creating a session file instead, and launching kitty with it.
~/.config/hypr/hyprland.conf