mirror of
https://github.com/EdenQwQ/nixos.git
synced 2026-02-22 12:55:33 +08:00
swhkd: move some keybindings from swhkd to niri
This commit is contained in:
parent
53168e7b60
commit
835edc5466
4 changed files with 11 additions and 7 deletions
|
|
@ -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 &
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
{
|
||||
home.packages = with pkgs; [
|
||||
pspp
|
||||
zotero
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue