swhkd: move some keybindings from swhkd to niri

This commit is contained in:
EdenQwQ 2025-03-13 22:56:33 +08:00
parent 53168e7b60
commit 835edc5466
4 changed files with 11 additions and 7 deletions

View file

@ -23,7 +23,7 @@ let
killall swhkd
killall swhks
swhks &
doas pkexec swhkd -c ~/.config/niri/swhkd/niri.swhkdrc &
doas swhkd -c ~/.config/niri/swhkd/niri.swhkdrc &
swww kill
swww-daemon &
clash-meta -d ~/.config/clash &

View file

@ -1,6 +1,7 @@
{
config,
pkgs,
user,
...
}:
{
@ -41,6 +42,12 @@
}) config.monitors;
binds = with config.lib.niri.actions; {
"Mod+Return".action = spawn "kitty";
"Mod+P".action = spawn [
"sh"
"-c"
"$(tofi-run)"
];
"Mod+Shift+C".action = spawn "/home/${user}/scripts/tofi/colorscheme";
};
window-rules = [
{

View file

@ -39,12 +39,8 @@
command = "/home/${user}/scripts/tofi/powermenu";
}
{
key = "super + shift + c";
command = "/home/${user}/scripts/tofi/colorscheme";
}
{
key = "super + {_, shift +} p";
command = "sh -c $(tofi-{run, drun})";
key = "super + shift + p";
command = "sh -c $(tofi-drun)";
}
];
};

View file

@ -2,5 +2,6 @@
{
home.packages = with pkgs; [
pspp
zotero
];
}