From 85b63fc1ce53d272f787143eb0cf6be9d2477d96 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 19 Sep 2024 12:18:04 -0400 Subject: [PATCH] aly: add planify + kb shortcuts + wm rules --- homes/aly/gui.nix | 1 + homes/aly/windowManagers/default.nix | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/homes/aly/gui.nix b/homes/aly/gui.nix index 46138f44..5d501de1 100644 --- a/homes/aly/gui.nix +++ b/homes/aly/gui.nix @@ -19,6 +19,7 @@ self: {pkgs, ...}: { nicotine-plus obsidian picard + planify tauon transmission-remote-gtk tuba diff --git a/homes/aly/windowManagers/default.nix b/homes/aly/windowManagers/default.nix index 9dff19a8..08f5320f 100644 --- a/homes/aly/windowManagers/default.nix +++ b/homes/aly/windowManagers/default.nix @@ -24,6 +24,7 @@ keybindings = { "${config.wayland.windowManager.sway.config.modifier}+N" = "exec ${lib.getExe' pkgs.obsidian "obsidian"}"; "${config.wayland.windowManager.sway.config.modifier}+P" = "exec ${lib.getExe pkgs.rofi-rbw-wayland}"; + "${config.wayland.windowManager.sway.config.modifier}+Space" = "exec ${lib.getExe' pkgs.planify "io.github.alainm23.planify.quick-add"}"; }; startup = [ @@ -55,6 +56,10 @@ command = "resize set 80ppt 80ppt; move position center; sticky toggle;"; criteria = {app_id = "org.keepassxc.KeePassXC";}; } + { + command = "move position center; sticky toggle; focus;"; + criteria = {app_id = "io.github.alainm23.planify.quick-add";}; + } { command = "move to scratchpad"; criteria = {app_id = "org.gnome.Fractal";}; @@ -70,6 +75,7 @@ bind = [ "SUPER,N,exec,${lib.getExe' pkgs.obsidian "obsidian"}" "SUPER,P,exec,${lib.getExe pkgs.rofi-rbw-wayland}" + "SUPER,SPACE,exec,${lib.getExe' pkgs.planify "io.github.alainm23.planify.quick-add"}" ]; dwindle.no_gaps_when_only = "1"; @@ -81,10 +87,12 @@ "center(1),class:(org.keepassxc.KeePassXC)" "float,class:(Bitwarden)" "float,class:(org.keepassxc.KeePassXC)" + "pin,class:(io.github.alainm23.planify.quick-add)" "size 80% 80%,class:(Bitwarden)" "size 80% 80%,class:(org.keepassxc.KeePassXC)" - "workspace special:magic,class:(vesktop)" + "stayfocused,class:(io.github.alainm23.planify.quick-add)" "workspace special:magic,class:(org.gnome.Fractal)" + "workspace special:magic,class:(vesktop)" ]; workspace = [