home/hyprland: replace uwsm for app2unit for starting scratchpads
This commit is contained in:
@@ -4,13 +4,17 @@ let
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
systemd.user.slices."app-graphical-scratchpads" = {
|
||||
Unit.Description = "Scratchpads managed by the window manager.";
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland.settings = let
|
||||
exe = lib.getExe;
|
||||
scratchpads = [
|
||||
(rec {
|
||||
title = "Floating terminal";
|
||||
class = "floatingTerminal";
|
||||
command = "uwsm app -- ${exe pkgs.alacritty} --class ${class} -e ${exe pkgs.tmux} new-session -A -s f";
|
||||
command = "${exe pkgs.app2unit} -t scope -C -s app-graphical-scratchpads.slice -u 'app-floating-term.scope' -- ${exe pkgs.alacritty} --class ${class} -e ${exe pkgs.tmux} new-session -A -s f";
|
||||
size = { h = 90; w = 95; };
|
||||
keys = [
|
||||
"$mod, RETURN"
|
||||
@@ -20,7 +24,7 @@ in
|
||||
(rec {
|
||||
title = "Ncmpcpp";
|
||||
class = "floatingNcmpcpp";
|
||||
command = "uwsm app -- ${exe pkgs.alacritty} --class ${class} -e ${exe pkgs.ncmpcpp}";
|
||||
command = "${exe pkgs.app2unit} -t scope -C -s app-graphical-scratchpads.slice -u 'app-floating-ncmpcpp.scope' -- ${exe pkgs.alacritty} --class ${class} -e ${exe pkgs.ncmpcpp}";
|
||||
size = { h = 95; w = 95; };
|
||||
keys = [ "$mod, Q" ];
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user