Compare commits
3 Commits
248756df77
...
34a5241271
| Author | SHA1 | Date | |
|---|---|---|---|
|
34a5241271
|
|||
|
9aee1a2b37
|
|||
|
a75a7fea79
|
@@ -19,7 +19,6 @@ in {
|
|||||||
./swaync.nix
|
./swaync.nix
|
||||||
./theme.nix
|
./theme.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
./wl-kbptr.nix
|
|
||||||
./wlr-which-key.nix
|
./wlr-which-key.nix
|
||||||
./wlsunset.nix
|
./wlsunset.nix
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib; let
|
|
||||||
configDir = config.xdg.configHome;
|
|
||||||
cfg = config.home.desktop.wl-kbptr;
|
|
||||||
iniFormat = pkgs.formats.ini {};
|
|
||||||
in {
|
|
||||||
options.home.desktop.wl-kbptr = {
|
|
||||||
enable = mkEnableOption "enable wl-kbptr";
|
|
||||||
config = mkOption {
|
|
||||||
inherit (iniFormat) type;
|
|
||||||
default = {};
|
|
||||||
description = ''
|
|
||||||
Options to add to the {file}`config` file. See
|
|
||||||
<https://github.com/moverest/wl-kbptr/blob/main/config.example>
|
|
||||||
for options.
|
|
||||||
'';
|
|
||||||
example = {
|
|
||||||
general = {
|
|
||||||
home_row_keys = "abcd";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
home = {
|
|
||||||
packages = [pkgs.wl-kbptr];
|
|
||||||
file."${configDir}/wl-kbptr/config" = mkIf (cfg.config != {}) {
|
|
||||||
source = iniFormat.generate "wl-kbptr-config" cfg.config;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -131,7 +131,6 @@
|
|||||||
bind < urlincrement -1
|
bind < urlincrement -1
|
||||||
bind > urlincrement 1
|
bind > urlincrement 1
|
||||||
bind ypv js tri.native.run(`mpv --ytdl-format="[height >=? 480]" --ontop --fs "''${document.location.href}"`)
|
bind ypv js tri.native.run(`mpv --ytdl-format="[height >=? 480]" --ontop --fs "''${document.location.href}"`)
|
||||||
bind ypm hint -JF e => tri.native.run(`mpv --ytdl-format="[height >=? 480]" --ontop --fs "''${e.href}"`)
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -139,17 +138,6 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
spicetify.enable = true;
|
spicetify.enable = true;
|
||||||
};
|
};
|
||||||
wl-kbptr = {
|
|
||||||
enable = true;
|
|
||||||
config = {
|
|
||||||
general = {
|
|
||||||
# first eight chars to select areas, last three chars
|
|
||||||
# for left, right, middle click
|
|
||||||
home_row_keys = "auiectsrtsr";
|
|
||||||
modes = "tile,bisect";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
dev = {
|
dev = {
|
||||||
ai.claude.enable = true;
|
ai.claude.enable = true;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
config.home.desktop.wlr-which-key.settings = {
|
config.home.desktop.wlr-which-key.settings = {
|
||||||
@@ -28,8 +27,7 @@
|
|||||||
logout = import ./logout.nix {inherit pkgs;};
|
logout = import ./logout.nix {inherit pkgs;};
|
||||||
ytplay = import ../../modules/cli/scripts/ytplay.nix {inherit pkgs;};
|
ytplay = import ../../modules/cli/scripts/ytplay.nix {inherit pkgs;};
|
||||||
plock = import ../../modules/cli/scripts/plock.nix {inherit pkgs;};
|
plock = import ../../modules/cli/scripts/plock.nix {inherit pkgs;};
|
||||||
in
|
in [
|
||||||
[
|
|
||||||
{
|
{
|
||||||
key = "a";
|
key = "a";
|
||||||
desc = "Apps";
|
desc = "Apps";
|
||||||
@@ -240,11 +238,6 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
]
|
];
|
||||||
++ lib.lists.optional config.home.desktop.wl-kbptr.enable {
|
|
||||||
key = "m";
|
|
||||||
desc = "Mouse Warp";
|
|
||||||
cmd = "wl-kbptr";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user