chore: spring cleaning

purge unused files
fmt according to alejandra syntax
This commit is contained in:
Zhongheng Liu 2024-12-17 00:51:29 +02:00
commit b60c28d972
Signed by: steven
GPG key ID: 805A28B071DAD84B
6 changed files with 31 additions and 7 deletions

View file

@ -1,6 +1,8 @@
{
config,
pkgs,
lib,
...
}: let
terminalCmd = "${pkgs.foot}/bin/footclient";
screenshotLocation = "/home/${config.myUserName}/Screenshots/$(date '+%Y-%m-%d-%H-%M-%S').png";
@ -21,13 +23,18 @@ in
"$mod, Q, killactive"
"$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel"
"$mod, F, fullscreen"
"$mod, E, exec, ${pkgs.pcmanfm}/bin/pcmanfm"
"$mod, E, exec, ${config.defaultApplications.fileManager}"
# foot terminal
"$mod, Return, exec, ${terminalCmd} ${config.myShells.defaultShell}"
"$mod SHIFT, Return, exec, [float] ${terminalCmd} ${config.myShells.defaultShell}"
# cmdline utilities
"$mod, N, exec, [float] ${terminalCmd} ${pkgs.networkmanager}/bin/nmtui"
/*
NOTE Replaced by network manager applet
nmtui interface is no longer needed
TODO Fix floating window rule
*/
# "$mod, N, exec, [float] ${terminalCmd} ${pkgs.networkmanager}/bin/nmtui"
"$mod, M, exec, [float] ${terminalCmd} ${pkgs.zenith}/bin/zenith"
# vimkeys navigation
@ -36,6 +43,11 @@ in
"$mod, K, movefocus, u"
"$mod, L, movefocus, r"
]
++ (
if config.services.swaync.enable
then ["$mod, N, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -t"]
else []
)
++ (
# workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}

View file

@ -1,6 +1,7 @@
{
config,
pkgs,
lib,
...
}: {
home.packages = with pkgs; [foot];
@ -58,6 +59,7 @@
};
bind = import ./binds.nix {
inherit config;
inherit lib;
inherit pkgs;
};
bindm = [