fix(dunst): dont load on start
This commit is contained in:
parent
96be36e1f7
commit
1638d24687
5 changed files with 38 additions and 38 deletions
|
|
@ -78,7 +78,6 @@ input {
|
||||||
repeat_rate = 50
|
repeat_rate = 50
|
||||||
}
|
}
|
||||||
|
|
||||||
exec-once = dunst
|
|
||||||
exec-once = wl-paste --watch cliphist store
|
exec-once = wl-paste --watch cliphist store
|
||||||
exec-once = [ -f "${XDG_PICTURES_DIR:-$HOME/Pictures}/Screensavers/wallpaper.jpg" ] || ctl wallpaper wall
|
exec-once = [ -f "${XDG_PICTURES_DIR:-$HOME/Pictures}/Screensavers/wallpaper.jpg" ] || ctl wallpaper wall
|
||||||
exec-once = [ -f "${XDG_PICTURES_DIR:-$HOME/Pictures}/Screensavers/lock.jpg" ] || ctl wallpaper lock
|
exec-once = [ -f "${XDG_PICTURES_DIR:-$HOME/Pictures}/Screensavers/lock.jpg" ] || ctl wallpaper lock
|
||||||
|
|
|
||||||
|
|
@ -45,11 +45,11 @@ export FZF_COMPLETION_TRIGGER=\;
|
||||||
export FZF_TMUX=1
|
export FZF_TMUX=1
|
||||||
|
|
||||||
fzf-config-widget() {
|
fzf-config-widget() {
|
||||||
file="$(fd --type file --hidden . "$XDG_CONFIG_HOME"/nix | sed "s|$HOME|~|g" | fzf)"
|
local file="$(FZF_CTRL_T_COMMAND="fd --type file --hidden . \"$XDG_CONFIG_HOME\"/nix | sed \"s|$HOME|~|g\"" __fzf_select)"
|
||||||
[ -n "$file" ] || { zle reset-prompt; return; }
|
[ -n "$file" ] || { zle reset-prompt; return; }
|
||||||
file="${file/#\~/$HOME}"
|
file="${file/#\\~/~}"
|
||||||
BUFFER="nvim $file"
|
LBUFFER+="$file"
|
||||||
zle accept-line
|
zle reset-prompt
|
||||||
}
|
}
|
||||||
zle -N fzf-config-widget
|
zle -N fzf-config-widget
|
||||||
bindkey '^E' fzf-config-widget
|
bindkey '^E' fzf-config-widget
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ let
|
||||||
zen = true;
|
zen = true;
|
||||||
sioyek = true;
|
sioyek = true;
|
||||||
vesktop = true;
|
vesktop = true;
|
||||||
claude = true;
|
|
||||||
signal = true;
|
signal = true;
|
||||||
|
|
||||||
hexDigit =
|
hexDigit =
|
||||||
|
|
@ -100,10 +99,7 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.sessionVariables = lib.mkMerge [
|
home.sessionVariables = lib.mkIf zen { BROWSER = "zen-beta"; };
|
||||||
(lib.mkIf zen { BROWSER = "zen-beta"; })
|
|
||||||
(lib.mkIf claude { CLAUDE_CONFIG_DIR = "${config.xdg.configHome}/claude"; })
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.mpv.enable = true;
|
programs.mpv.enable = true;
|
||||||
|
|
||||||
|
|
@ -125,34 +121,8 @@ in
|
||||||
(if hostConfig.isLinux then sioyek-wrapped else pkgs.sioyek)
|
(if hostConfig.isLinux then sioyek-wrapped else pkgs.sioyek)
|
||||||
]
|
]
|
||||||
++ lib.optionals (vesktop && hostConfig.isLinux) [ pkgs.vesktop ]
|
++ lib.optionals (vesktop && hostConfig.isLinux) [ pkgs.vesktop ]
|
||||||
++ lib.optionals claude [ pkgs.claude-code ]
|
|
||||||
++ lib.optionals (signal && hostConfig.isLinux) [ pkgs.signal-desktop ];
|
++ lib.optionals (signal && hostConfig.isLinux) [ pkgs.signal-desktop ];
|
||||||
|
|
||||||
xdg.configFile."claude/settings.json" = lib.mkIf claude {
|
|
||||||
text = builtins.toJSON {
|
|
||||||
permissions.defaultMode = "acceptEdits";
|
|
||||||
network_access = true;
|
|
||||||
allowed_domains = [
|
|
||||||
"github.com"
|
|
||||||
"raw.githubusercontent.com"
|
|
||||||
"api.github.com"
|
|
||||||
];
|
|
||||||
tools.web_fetch = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.configFile."claude/CLAUDE.md" = lib.mkIf claude {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${repoDir}/config/claude/CLAUDE.md";
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.configFile."claude/rules" = lib.mkIf claude {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${repoDir}/config/claude/rules";
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.configFile."claude/skills" = lib.mkIf claude {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${repoDir}/config/claude/skills";
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.configFile."sioyek/keys_user.config" = lib.mkIf sioyek {
|
xdg.configFile."sioyek/keys_user.config" = lib.mkIf sioyek {
|
||||||
text = ''
|
text = ''
|
||||||
previous_page k
|
previous_page k
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,11 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
c = config.colors;
|
c = config.colors;
|
||||||
|
repoDir = "${config.home.homeDirectory}/.config/nix";
|
||||||
|
|
||||||
ripgrep = config.programs.ripgrep.enable;
|
ripgrep = config.programs.ripgrep.enable;
|
||||||
|
|
||||||
|
claude = true;
|
||||||
rust = true;
|
rust = true;
|
||||||
go = true;
|
go = true;
|
||||||
node = true;
|
node = true;
|
||||||
|
|
@ -44,7 +46,8 @@ in
|
||||||
graphite-cli
|
graphite-cli
|
||||||
]
|
]
|
||||||
++ lib.optionals hostConfig.isLinux [ xclip ]
|
++ lib.optionals hostConfig.isLinux [ xclip ]
|
||||||
++ lib.optionals rust [ rustup ];
|
++ lib.optionals rust [ rustup ]
|
||||||
|
++ lib.optionals claude [ claude-code ];
|
||||||
|
|
||||||
home.sessionVariables = lib.mkMerge [
|
home.sessionVariables = lib.mkMerge [
|
||||||
{
|
{
|
||||||
|
|
@ -107,6 +110,9 @@ in
|
||||||
TEXMFVAR = "${config.xdg.cacheHome}/texlive/texmf-var";
|
TEXMFVAR = "${config.xdg.cacheHome}/texlive/texmf-var";
|
||||||
TEXMFCONFIG = "${config.xdg.configHome}/texlive/texmf-config";
|
TEXMFCONFIG = "${config.xdg.configHome}/texlive/texmf-config";
|
||||||
})
|
})
|
||||||
|
(lib.mkIf claude {
|
||||||
|
CLAUDE_CONFIG_DIR = "${config.xdg.configHome}/claude";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionPath = lib.mkMerge [
|
home.sessionPath = lib.mkMerge [
|
||||||
|
|
@ -321,6 +327,31 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.configFile."claude/settings.json" = lib.mkIf claude {
|
||||||
|
text = builtins.toJSON {
|
||||||
|
permissions.defaultMode = "acceptEdits";
|
||||||
|
network_access = true;
|
||||||
|
allowed_domains = [
|
||||||
|
"github.com"
|
||||||
|
"raw.githubusercontent.com"
|
||||||
|
"api.github.com"
|
||||||
|
];
|
||||||
|
tools.web_fetch = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."claude/CLAUDE.md" = lib.mkIf claude {
|
||||||
|
source = config.lib.file.mkOutOfStoreSymlink "${repoDir}/config/claude/CLAUDE.md";
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."claude/rules" = lib.mkIf claude {
|
||||||
|
source = config.lib.file.mkOutOfStoreSymlink "${repoDir}/config/claude/rules";
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."claude/skills" = lib.mkIf claude {
|
||||||
|
source = config.lib.file.mkOutOfStoreSymlink "${repoDir}/config/claude/skills";
|
||||||
|
};
|
||||||
|
|
||||||
xdg.configFile."tmux/themes/midnight.conf".source =
|
xdg.configFile."tmux/themes/midnight.conf".source =
|
||||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.config/nix/config/tmux/themes/midnight.conf";
|
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.config/nix/config/tmux/themes/midnight.conf";
|
||||||
xdg.configFile."tmux/themes/daylight.conf".source =
|
xdg.configFile."tmux/themes/daylight.conf".source =
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ Linux)
|
||||||
[ -f "$dunst_themes/$theme.conf" ] && {
|
[ -f "$dunst_themes/$theme.conf" ] && {
|
||||||
mkdir -p "$cfg/dunst/dunstrc.d"
|
mkdir -p "$cfg/dunst/dunstrc.d"
|
||||||
ln -sf "$dunst_themes/$theme.conf" "$cfg/dunst/dunstrc.d/theme.conf"
|
ln -sf "$dunst_themes/$theme.conf" "$cfg/dunst/dunstrc.d/theme.conf"
|
||||||
systemctl --user restart dunst
|
dunstctl reload
|
||||||
}
|
}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue