Forcing raw file overwrites

This commit is contained in:
2026-04-18 14:38:09 +02:00
parent d8b0eff04c
commit 5ffdc39090
4 changed files with 76 additions and 31 deletions

View File

@@ -4,10 +4,8 @@ let
theme = "dark";
in
{
##########
# FUZZEL #
##########
home.file.".config/fuzzel/fuzzel_dark.ini".text = ''
home.file.".config/fuzzel/fuzzel_dark.ini" = {
text = ''
# output=<not set>
font=Monocraft
# dpi-aware=auto
@@ -126,9 +124,12 @@ radius=0
# custom-17=Mod1+ampersand
# custom-18=Mod1+asterix
# custom-19=Mod1+parentleft
'';
'';
force = true;
};
home.file.".config/fuzzel/fuzzel_light.ini".text = ''
home.file.".config/fuzzel/fuzzel_light.ini" = {
text = ''
# output=<not set>
font=Monocraft
# dpi-aware=auto
@@ -247,7 +248,12 @@ radius=0
# custom-17=Mod1+ampersand
# custom-18=Mod1+asterix
# custom-19=Mod1+parentleft
'';
'';
force = true;
};
home.file.".config/fuzzel/fuzzel.ini".source = config.home.file.".config/fuzzel/fuzzel_${theme}.ini".source;
home.file.".config/fuzzel/fuzzel.ini" = {
source = config.home.file.".config/fuzzel/fuzzel_${theme}.ini".source;
force = true;
};
}

View File

@@ -4,7 +4,8 @@ let
theme = "dark";
in
{
home.file.".config/swaync/config.json".text = ''
home.file.".config/swaync/config.json" = {
text = ''
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "left",
@@ -115,9 +116,12 @@ in
}
}
}
'';
'';
force = true;
};
home.file.".config/swaync/style_dark.css".text = ''
home.file.".config/swaync/style_dark.css" = {
text = ''
:root {
--font-family: "Monocraft";
--accent-bg-color: rgb(214, 93, 14);
@@ -690,9 +694,12 @@ notificationwindow, blankwindow, blankwindow {
margin-left: 8px;
border-radius: var(--border-radius);
}
'';
'';
force = true;
};
home.file.".config/swaync/style_light.css".text = ''
home.file.".config/swaync/style_light.css" = {
text = ''
:root {
--font-family: "Monocraft";
--accent-bg-color: #D65D0E;
@@ -1265,7 +1272,12 @@ notificationwindow, blankwindow, blankwindow {
margin-left: 8px;
border-radius: var(--border-radius);
}
'';
'';
force = true;
};
home.file.".config/swaync/style.css".source = config.home.file.".config/swaync/style_${theme}.css".source;
home.file.".config/swaync/style.css" = {
source = config.home.file.".config/swaync/style_${theme}.css".source;
force = true;
};
}

View File

@@ -4,7 +4,8 @@ let
theme = "dark";
in
{
home.file.".config/swayosd/style_dark.css".text = ''
home.file.".config/swayosd/style_dark.css" = {
text = ''
window#osd {
border-radius: 0px;
border: 2px solid #EBDBB2;
@@ -53,9 +54,12 @@ window#osd {
}
}
}
'';
'';
force = true;
};
home.file.".config/swayosd/style_light.css".text = ''
home.file.".config/swayosd/style_light.css" = {
text = ''
window#osd {
border-radius: 0px;
border: 2px solid #D5C4A1;
@@ -104,7 +108,12 @@ window#osd {
}
}
}
'';
'';
force = true;
};
home.file.".config/swayosd/style.css".source = config.home.file.".config/swayosd/style_${theme}.css".source;
home.file.".config/swayosd/style.css" = {
source = config.home.file.".config/swayosd/style_${theme}.css".source;
force = true;
};
}

View File

@@ -4,25 +4,32 @@ let
theme = "dark";
in
{
home.file.".config/waybar/custom/htt.sh".text = ''
home.file.".config/waybar/custom/htt.sh" = {
text = ''
#!/bin/bash
if htt $HOME/.cache/htt/rules -q | grep float > /dev/null; then
echo '{"text": "", "class": "running", "tooltip": "Floating mode"}'
else
echo '{"text": "", "class": "stopped", "tooltip": "Tiling mode"}'
fi
'';
'';
force = true;
};
home.file.".config/waybar/custom/hyprsunset.sh".text = ''
home.file.".config/waybar/custom/hyprsunset.sh" = {
text = ''
#!/bin/bash
if pgrep -x hyprsunset > /dev/null; then
echo '{"text": "", "class": "running", "tooltip": "Night mode on"}'
else
echo '{"text": "", "class": "stopped", "tooltip": "Night mode off"}'
fi
'';
'';
force = true;
};
home.file.".config/waybar/config.jsonc".text = ''
home.file.".config/waybar/config.jsonc" = {
text = ''
// -*- mode: jsonc -*-
[{
"layer": "bottom", // Waybar at top layer
@@ -398,9 +405,12 @@ fi
}
}
}]
'';
'';
force = true;
};
home.file.".config/waybar/style_dark.css".text = ''
home.file.".config/waybar/style_dark.css" = {
text = ''
/*ACCENT COLOR: rgba(55, 87, 86, 1)*/
* {
/* `otf-font-awesome` is required to be installed for icons */
@@ -799,9 +809,12 @@ label:focus {
background-color: transparent;
box-shadow: inset 0 3px #689D6A;
}
'';
'';
force = true;
};
home.file.".config/waybar/style_light.css".text = ''
home.file.".config/waybar/style_light.css" = {
text = ''
/*ACCENT COLOR: rgba(55, 87, 86, 1)*/
* {
/* `otf-font-awesome` is required to be installed for icons */
@@ -1200,7 +1213,12 @@ label:focus {
background-color: transparent;
box-shadow: inset 0 3px #427B58;
}
'';
'';
force = true;
};
home.file.".config/waybar/style.css".source = config.home.file.".config/waybar/style_${theme}.css".source;
home.file.".config/waybar/style.css" = {
source = config.home.file.".config/waybar/style_${theme}.css".source;
force = true;
};
}