added alacritty, foot doesnt support dynamic themeing :c

This commit is contained in:
foxora 2026-02-23 19:33:14 +00:00
parent cf5b772204
commit 79af2ce80f
11 changed files with 184 additions and 137 deletions

View file

@ -7,7 +7,8 @@
root,
system,
...
}: {
}:
{
imports = [
inputs.zen.homeModules.twilight
@ -68,7 +69,8 @@
fonts.fontconfig.enable = true;
home.file.".mozilla/native-messaging-hosts/tridactyl.json".source = "${upkgs.tridactyl-native}/lib/mozilla/native-messaging-hosts/tridactyl.json";
home.file.".mozilla/native-messaging-hosts/tridactyl.json".source =
"${upkgs.tridactyl-native}/lib/mozilla/native-messaging-hosts/tridactyl.json";
# some packages are enabled from their own module in ./modules
home.packages = with upkgs; [
@ -91,7 +93,7 @@
ripgrep # rlly fast grep :3
zip # zips .zip
unzip # unzips .zip
(btop.override {rocmSupport = true;}) # btop + amd gpu support
(btop.override { rocmSupport = true; }) # btop + amd gpu support
nmap # network discovery and mapping tool!
distrobox # use any linux distro inside ur terminal x3
parted # create, resize, copy, image partitions
@ -291,6 +293,22 @@
};
};
alacritty = {
enable = true;
package = upkgs.alacritty-graphics;
settings = {
general.import = [
"theme.toml"
];
font = {
normal.family = "DepartureMono Nerd Font Mono";
size = 10;
};
scrolling.history = 100000;
};
};
zen-browser = {
enable = true;
package = inputs.zen.packages.${system}.twilight;

View file

@ -1,4 +1,5 @@
{upkgs, ...}: {
{ upkgs, ... }:
{
# optional dependencies can be found here:
# https://yazi-rs.github.io/docs/installation/
home.packages = with upkgs; [
@ -23,12 +24,12 @@
mgr.prepend_keymap = [
# drag and drop!!
{
on = ["<S-c>"];
on = [ "<S-c>" ];
run = ''shell "ripdrag -x -a \"$@\"" --confirm'';
}
# copy hovered file to clipboard
{
on = ["<S-y>"];
on = [ "<S-y>" ];
run = ''shell -- path=%h; echo "file://$path" | wl-copy -t text/uri-list'';
}
];
@ -170,7 +171,7 @@
[filechooser]
cmd=${upkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
default_dir=$HOME
env=TERMCMD='foot --title filechooser'
env=TERMCMD='alacritty --title filechooser'
open_mode=suggested
save_mode=last
'';

View file

@ -1,2 +1,2 @@
#!/usr/bin/env bash
pkill -f "foot --title btop -e btop" || { foot --title btop -e btop & disown; }
pkill -f "alacritty --title btop -e btop" || { alacritty --title btop -e btop & disown; }

View file

@ -0,0 +1,27 @@
[colors.primary]
background = '{{ background }}'
foreground = '{{ foreground }}'
[colors.cursor]
cursor = '{{ cursor }}'
text = '{{ cursor }}'
[colors.normal]
black = '{{ color0 }}'
red = '{{ color1 }}'
green = '{{ color2 }}'
yellow = '{{ color3 }}'
blue = '{{ color4 }}'
magenta = '{{ color5 }}'
cyan = '{{ color6 }}'
white = '{{ color7 }}'
[colors.bright]
black = '{{ color8 }}'
red = '{{ color9 }}'
green = '{{ color10 }}'
yellow = '{{ color11 }}'
blue = '{{ color12 }}'
magenta = '{{ color13 }}'
cyan = '{{ color14 }}'
white = '{{ color15 }}'

View file

@ -22,6 +22,9 @@ mango.target = "~/.config/mango/colors.conf"
foot.template = "foot-template.ini"
foot.target = "~/.config/foot/theme.ini"
alacritty.template = "alacritty-template.toml"
alacritty.target = "~/.config/alacritty/theme.toml"
waybar.template = "waybar-template.css"
waybar.target = "~/.config/waybar/colors.css"

View file

@ -1,10 +1,19 @@
# window rules
# ---------------------------------------------------------------------------- #
# terminal - blur
windowrule {
name = terminal-blur
match:class = ^(foot|Alacritty)$
match:fullscreen = false
opacity = 0.95
}
# ---------------------------------------------------------------------------- #
# task manager
windowrule {
name = task-manager
match:class = ^(foot)$
name = terminal-manager
match:class = ^(foot|Alacritty)$
match:title = ^(btop)$
float = true
center = true
@ -15,33 +24,13 @@ windowrule {
# terminal filechooser
windowrule {
name = terminal-filechooser
match:class = ^(foot)$
match:class = ^(foot|Alacritty)$
match:title = ^(filechooser)$
float = true
center = true
size = (monitor_w*0.85) (monitor_h*0.85)
}
# ---------------------------------------------------------------------------- #
# yazi explorer
#windowrule {
#name = yazi
#match:class = ^(foot)$
#match:title = ^(yazi)$
#float = true
#center = true
#size = (monitor_w*0.85) (monitor_h*0.85)
#}
# ---------------------------------------------------------------------------- #
# foot - blur
windowrule {
name = foot-blur
match:class = ^(foot)$
match:fullscreen = false
opacity = 0.95
}
# ---------------------------------------------------------------------------- #
# imhex - blur
windowrule {

View file

@ -1,4 +1,5 @@
{...}: {
{ ... }:
{
wayland.windowManager.hyprland = {
enable = true;
package = null;
@ -23,8 +24,8 @@
"$mod" = "SUPER";
# applications
"$terminal" = "foot";
"$explorer" = "foot -e yazi";
"$terminal" = "alacritty";
"$explorer" = "alacritty -e yazi";
"$browser" = "zen-twilight";
# menu

View file

@ -73,8 +73,8 @@ accel_profile = 0
################################################################################
# applications
bind = SUPER, t, spawn, foot
bind = SUPER, e, spawn, foot -e yazi
bind = SUPER, t, spawn, alacritty
bind = SUPER, e, spawn, alacritty -e yazi
bind = SUPER, r, spawn, zen-twilight
# rofi

View file

@ -1,3 +1,3 @@
# ---------------------------------------------------------------------------- #
# foot - blur
windowrule=focused_opacity:0.95,unfocused_opacity:0.95,appid:^(foot)$
# terminal - blur
windowrule=focused_opacity:0.95,unfocused_opacity:0.95,appid:^(foot|alacritty)$

View file

@ -1,24 +1,29 @@
{spkgs, ...}: {
wayland.windowManager.river = let
{ spkgs, ... }:
{
wayland.windowManager.river =
let
layout = "rivertile";
in {
in
{
enable = true;
xwayland.enable = true;
package = spkgs.river-classic; # FIX: using spkgs version as zls is broken rn ;-;
settings = let
settings =
let
main = "Super";
# applications
terminal = "foot";
terminal = "alacritty";
browser = "firefox";
in {
in
{
default-layout = "${layout}";
output-layout = "${layout}";
border-width = 1;
spawn = [
''${layout}''
"${layout}"
"awww-daemon"
"waybar"
@ -37,7 +42,7 @@
"${main} R" = ''spawn "${browser}"'';
# move focused view to top of layout stack
"${main} N" = ''zoom'';
"${main} N" = "zoom";
# focus next/previous view
"${main} J" = "focus-view previous";

View file

@ -1,27 +1,30 @@
{config, ...}: {
{ config, ... }:
{
wayland.windowManager.sway = {
enable = true;
config = rec {
modifier = "Mod4"; # Mod4 = Super/Meta
terminal = "foot";
terminal = "alacritty";
# disable sway bar
bars = [];
bars = [ ];
# set border colors
#colors = {
#focused =
startup = [
{command = "awww-daemon";}
{command = "waybar";}
{ command = "awww-daemon"; }
{ command = "waybar"; }
];
keybindings = let
keybindings =
let
main = config.wayland.windowManager.sway.config.modifier;
terminal = config.wayland.windowManager.sway.config.terminal;
browser = "firefox";
in {
in
{
"${main}+c" = "kill"; # close focused window
"${main}+Alt+Delete" = "exit"; # exit sway