fix(theme): tmux them
This commit is contained in:
parent
5e5ba5a5da
commit
9bb85991e7
3 changed files with 8 additions and 18 deletions
|
|
@ -71,18 +71,6 @@
|
|||
Install.WantedBy = [ "timers.target" ];
|
||||
};
|
||||
|
||||
systemd.user.services.theme-apply = lib.mkIf hostConfig.isLinux {
|
||||
Unit = {
|
||||
Description = "Apply theme on login";
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.bash}/bin/bash -lc '${config.home.homeDirectory}/.config/nix/scripts/theme ${config.theme}'";
|
||||
};
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
systemd.user.services.cliphist-wipe = lib.mkIf hostConfig.isLinux {
|
||||
Unit.Description = "Clear clipboard history on session end";
|
||||
Service = {
|
||||
|
|
|
|||
|
|
@ -297,6 +297,7 @@ in
|
|||
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
terminal = "tmux-256color";
|
||||
sensibleOnTop = false;
|
||||
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
|
|
|
|||
|
|
@ -105,15 +105,16 @@ in
|
|||
home.activation.linkTheme = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
cfg="${config.xdg.configHome}"
|
||||
theme="${config.theme}"
|
||||
link() { [ -e "$2" ] || $DRY_RUN_CMD ln -sf "$1" "$2"; }
|
||||
${lib.optionalString hostConfig.isLinux ''
|
||||
$DRY_RUN_CMD ln -sf "$cfg/hypr/themes/$theme.conf" "$cfg/hypr/themes/theme.conf"
|
||||
$DRY_RUN_CMD ln -sf "$cfg/waybar/themes/$theme.css" "$cfg/waybar/themes/theme.css"
|
||||
$DRY_RUN_CMD ln -sf "$cfg/fuzzel/themes/$theme.ini" "$cfg/fuzzel/themes/theme.ini"
|
||||
link "$cfg/hypr/themes/$theme.conf" "$cfg/hypr/themes/theme.conf"
|
||||
link "$cfg/waybar/themes/$theme.css" "$cfg/waybar/themes/theme.css"
|
||||
link "$cfg/fuzzel/themes/$theme.ini" "$cfg/fuzzel/themes/theme.ini"
|
||||
$DRY_RUN_CMD mkdir -p "$cfg/dunst/dunstrc.d"
|
||||
$DRY_RUN_CMD ln -sf "$cfg/dunst/themes/$theme.conf" "$cfg/dunst/dunstrc.d/theme.conf"
|
||||
link "$cfg/dunst/themes/$theme.conf" "$cfg/dunst/dunstrc.d/theme.conf"
|
||||
''}
|
||||
$DRY_RUN_CMD ln -sf "$cfg/sioyek/themes/$theme.config" "$cfg/sioyek/themes/theme.config"
|
||||
$DRY_RUN_CMD ln -sf "$cfg/fzf/themes/$theme" "$cfg/fzf/themes/theme"
|
||||
link "$cfg/sioyek/themes/$theme.config" "$cfg/sioyek/themes/theme.config"
|
||||
link "$cfg/fzf/themes/$theme" "$cfg/fzf/themes/theme"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue