Skip to content

Commit 6256530

Browse files
committed
updated kitty launching
1 parent cf8a804 commit 6256530

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

khal-agenda-widget/DesktopWidget.qml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,18 @@ DraggableDesktopWidget {
3030
}
3131
}
3232

33-
// Universal terminal launcher (Handles -e and -- syntax)
33+
// Universal terminal launcher (Handles -e and -- syntax) but has the class for kitty alone
3434
Process {
3535
id: openIkhal
3636
command: [
3737
"sh", "-c",
3838
"for term in xdg-terminal-exec kitty alacritty foot gnome-terminal konsole st xterm; do " +
3939
"if command -v $term >/dev/null 2>&1; then " +
40+
"if [ \"$term\" = \"kitty\" ]; then " +
41+
"exec kitty --class khal -e ikhal; " +
42+
"else " +
4043
"exec $term -e ikhal 2>/dev/null || exec $term -- ikhal; " +
41-
"break; fi; done"
44+
"fi; break; fi; done"
4245
]
4346
}
4447

0 commit comments

Comments
 (0)