better xwl wrapper
This commit is contained in:
parent
d739e2cc35
commit
213db71582
3 changed files with 8 additions and 9 deletions
|
@ -19,7 +19,7 @@ in mkIf conf.apps.enable {
|
||||||
inkscape
|
inkscape
|
||||||
blender
|
blender
|
||||||
gnome-disk-utility
|
gnome-disk-utility
|
||||||
] ++ [(mkXwlWrapper { lib = lib; pkgs = pkgs; app = "${pkgs.prusa-slicer}/bin/prusa-slicer"; name = "Prusa"; })];
|
] ++ [(mkXwlWrapper { pkgs = pkgs; name = "Prusa"; pkg = "prusa-slicer"; })];
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/vesktop/settings.json" = {
|
".config/vesktop/settings.json" = {
|
||||||
|
|
|
@ -10,15 +10,14 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
holo = pkgs.makeDesktopItem {
|
holo = pkgs.makeDesktopItem {
|
||||||
name = "holo";
|
name = "Steam Big Picture";
|
||||||
desktopName = "Holo";
|
desktopName = "Steam Big Picture";
|
||||||
exec = "${holo-script}/bin/holo-script";
|
exec = "${holo-script}/bin/holo-script";
|
||||||
};
|
};
|
||||||
steam-wrapped = mkXwlWrapper {
|
steam-wrapped = mkXwlWrapper {
|
||||||
lib = lib;
|
|
||||||
pkgs = pkgs;
|
pkgs = pkgs;
|
||||||
app = "${pkgs.steam}/bin/steam";
|
|
||||||
name = "Steam Wrapped";
|
name = "Steam Wrapped";
|
||||||
|
pkg = "steam";
|
||||||
};
|
};
|
||||||
in mkIf conf.games.enable {
|
in mkIf conf.games.enable {
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{ lib, pkgs, app, name, ... }: let
|
{ pkgs, name, pkg ? name, exe ? pkg, ... }: let
|
||||||
inherit (lib) concatStrings;
|
inherit (pkgs.lib) concatStrings;
|
||||||
config = pkgs.writeTextFile {
|
config = pkgs.writeTextFile {
|
||||||
name = concatStrings [ "i3-config" name ];
|
name = concatStrings [ "i3-config" name ];
|
||||||
text = ''
|
text = ''
|
||||||
exec ${app}
|
exec ${pkgs.${pkg}}/bin/${exe}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in pkgs.makeDesktopItem {
|
in pkgs.makeDesktopItem {
|
||||||
name = name;
|
name = name;
|
||||||
desktopName = name;
|
desktopName = name;
|
||||||
exec = "${pkgs.xwayland-run}/bin/xwayland-run -- ${pkgs.i3}/bin/i3 -c ${config}";
|
exec = "${pkgs.xwayland-run}/bin/xwayland-run -- ${pkgs.i3}/bin/i3 -c ${config}";
|
||||||
|
|
Loading…
Add table
Reference in a new issue