switching to fuzzel for uwsm integration and tuirun still WIP
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkOption mkEnableOption types;
|
||||
# Workaround for https://github.com/GooseMod/OpenAsar/issues/202
|
||||
# Needlessly complicated, but it's dynamic! :D
|
||||
variantMapping = {
|
||||
stable = {
|
||||
dir = "discord";
|
||||
|
||||
57
modules/home/programs/fuzzel/default.nix
Normal file
57
modules/home/programs/fuzzel/default.nix
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
osConfig,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkMerge;
|
||||
cfg = config.home.programs.fuzzel;
|
||||
host = osConfig.networking.hostName;
|
||||
in {
|
||||
options = {
|
||||
home.programs.fuzzel.enable = mkEnableOption "Enables fuzzel";
|
||||
};
|
||||
config = mkIf cfg.enable (mkMerge [
|
||||
{
|
||||
programs.fuzzel = {
|
||||
enable = true;
|
||||
settings = {
|
||||
main = {
|
||||
layer = "overlay";
|
||||
font = "Input Sans Narrow Light:size=12";
|
||||
launch-prefix = "uwsm app --";
|
||||
lines = "8";
|
||||
};
|
||||
colors = {
|
||||
background = "282828ff";
|
||||
text = "928374ff";
|
||||
prompt = "ebdbb2ff";
|
||||
placeholder = "928374ff";
|
||||
input = "ebdbb2ff";
|
||||
match = "ebdbb2ff";
|
||||
selection = "32302fff";
|
||||
selection-text = "ebdbb2ff";
|
||||
selection-match = "ebdbb2ff";
|
||||
counter = "4c7a5dff";
|
||||
border = "4c7a5dff";
|
||||
};
|
||||
border = {
|
||||
width = 3;
|
||||
radius = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
(mkIf (host == "cnix") {
|
||||
programs.fuzzel.settings.main.terminal = "${inputs.ghostty.packages.x86_64-linux.default}/bin/ghostty";
|
||||
})
|
||||
(mkIf (host == "cnixpad") {
|
||||
programs.fuzzel.settings.main.terminal = "${pkgs.foot}/bin/foot";
|
||||
})
|
||||
(mkIf (host == "toothpc") {
|
||||
programs.fuzzel.settings.main.terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||
})
|
||||
]);
|
||||
}
|
||||
@@ -24,10 +24,10 @@ in {
|
||||
# Common Keybind Variables
|
||||
"$fileManager" = "thunar";
|
||||
"$yazi" = "foot -e yazi";
|
||||
"$launcher" = "rofi -show drun";
|
||||
"$launcher" = "fuzzel";
|
||||
|
||||
bind = [
|
||||
"$mod, SPACE, exec, tuirun-toggle.sh"
|
||||
"$mod, SPACE, exec, $launcher"
|
||||
"$mod, R, exec, $launcher"
|
||||
"$mod, L, exec, ${toggle "nwg-bar"}"
|
||||
"$mod SHIFT, B, exec, pkill -SIGUSR2 waybar"
|
||||
|
||||
Reference in New Issue
Block a user