wrap ptyxis for multi-instance
This commit is contained in:
parent
e9898b83cc
commit
4b58f34a20
1 changed files with 10 additions and 1 deletions
|
|
@ -1,7 +1,16 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.ptyxis
|
# Ptyxis is single-instance, so plain `ptyxis` just focuses the existing window
|
||||||
|
(pkgs.symlinkJoin {
|
||||||
|
name = "ptyxis";
|
||||||
|
paths = [ pkgs.ptyxis ];
|
||||||
|
postBuild = ''
|
||||||
|
desktop=$out/share/applications/org.gnome.Ptyxis.desktop
|
||||||
|
cp --remove-destination "$(readlink "$desktop")" "$desktop"
|
||||||
|
sed -i -e 's/^Exec=ptyxis$/Exec=ptyxis --new-window/' -e '/^DBusActivatable=/d' "$desktop"
|
||||||
|
'';
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.nautilus-open-any-terminal = {
|
programs.nautilus-open-any-terminal = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue