hycov, nerdfonts, some zsh conf

This commit is contained in:
tristan 2024-01-06 04:57:08 +00:00
parent b1c446ebfe
commit fb92731190
8 changed files with 249 additions and 33 deletions

25
home/programs/hycov.nix Normal file
View file

@ -0,0 +1,25 @@
{pkgs, ...}: {
wayland.windowManager.hyprland = {
plugins = with pkgs; [
hycov
];
settings.plugin.hycov = {
overview_gappo = 20;
};
settings.bind = [
# bind key to toggle overview(normal mode)
"ALT,tab,hycov:toggleoverview"
# bind key to toggle overview(force mode,no affected by `only_active_workspace` and `only_active_monitor`)
"ALT,grave,hycov:toggleoverview,forceall" #grave key is the '~' key
# The direction switch shortcut key binding.
# calculate the window closest to the direction to switch focus.
# This keybind is applicable not only to the overview but also to the general layout
"ALT,h,hycov:movefocus,l"
"ALT,l,hycov:movefocus,r"
"ALT,k,hycov:movefocus,u"
"ALT,j,hycov:movefocus,d"
];
};
}

View file

@ -7,6 +7,7 @@
(import ./swaylock.nix)
(import ./swayidle.nix)
(import ./waybar.nix)
(import ./hycov.nix)
];
xdg.portal = {
enable = true;

View file

@ -130,20 +130,6 @@ in {
];
install = false;
}
{
name = "switch-window";
text = ''
${my-deps.hyprctl} clients -j | \
${my-deps.jq} '.[] | .title' -r | \
${my-deps.sed} '/^$/d' |
${my-deps.menu} | \
${my-deps.sed} 's/\([\[\(\)]\)/\\\\\1/g' | \
${my-deps.xargs} -I_ ${my-deps.hyprctl} dispatch focuswindow title:"_"
'';
hotkeys = [
{key = "TAB";}
];
}
{
name = "picker";
text = ''