forked from foxora/nix
added alacritty, foot doesnt support dynamic themeing :c
This commit is contained in:
parent
cf5b772204
commit
79af2ce80f
11 changed files with 184 additions and 137 deletions
|
|
@ -7,7 +7,8 @@
|
||||||
root,
|
root,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.zen.homeModules.twilight
|
inputs.zen.homeModules.twilight
|
||||||
|
|
||||||
|
|
@ -68,7 +69,8 @@
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
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
|
# some packages are enabled from their own module in ./modules
|
||||||
home.packages = with upkgs; [
|
home.packages = with upkgs; [
|
||||||
|
|
@ -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 = {
|
zen-browser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.zen.packages.${system}.twilight;
|
package = inputs.zen.packages.${system}.twilight;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{upkgs, ...}: {
|
{ upkgs, ... }:
|
||||||
|
{
|
||||||
# optional dependencies can be found here:
|
# optional dependencies can be found here:
|
||||||
# https://yazi-rs.github.io/docs/installation/
|
# https://yazi-rs.github.io/docs/installation/
|
||||||
home.packages = with upkgs; [
|
home.packages = with upkgs; [
|
||||||
|
|
@ -170,7 +171,7 @@
|
||||||
[filechooser]
|
[filechooser]
|
||||||
cmd=${upkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
|
cmd=${upkgs.xdg-desktop-portal-termfilechooser}/share/xdg-desktop-portal-termfilechooser/yazi-wrapper.sh
|
||||||
default_dir=$HOME
|
default_dir=$HOME
|
||||||
env=TERMCMD='foot --title filechooser'
|
env=TERMCMD='alacritty --title filechooser'
|
||||||
open_mode=suggested
|
open_mode=suggested
|
||||||
save_mode=last
|
save_mode=last
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
#!/usr/bin/env bash
|
#!/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; }
|
||||||
|
|
|
||||||
|
|
@ -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 }}'
|
||||||
|
|
@ -22,6 +22,9 @@ mango.target = "~/.config/mango/colors.conf"
|
||||||
foot.template = "foot-template.ini"
|
foot.template = "foot-template.ini"
|
||||||
foot.target = "~/.config/foot/theme.ini"
|
foot.target = "~/.config/foot/theme.ini"
|
||||||
|
|
||||||
|
alacritty.template = "alacritty-template.toml"
|
||||||
|
alacritty.target = "~/.config/alacritty/theme.toml"
|
||||||
|
|
||||||
waybar.template = "waybar-template.css"
|
waybar.template = "waybar-template.css"
|
||||||
waybar.target = "~/.config/waybar/colors.css"
|
waybar.target = "~/.config/waybar/colors.css"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,19 @@
|
||||||
# window rules
|
# window rules
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------- #
|
||||||
|
# terminal - blur
|
||||||
|
windowrule {
|
||||||
|
name = terminal-blur
|
||||||
|
match:class = ^(foot|Alacritty)$
|
||||||
|
match:fullscreen = false
|
||||||
|
opacity = 0.95
|
||||||
|
}
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------------- #
|
||||||
# task manager
|
# task manager
|
||||||
windowrule {
|
windowrule {
|
||||||
name = task-manager
|
name = terminal-manager
|
||||||
match:class = ^(foot)$
|
match:class = ^(foot|Alacritty)$
|
||||||
match:title = ^(btop)$
|
match:title = ^(btop)$
|
||||||
float = true
|
float = true
|
||||||
center = true
|
center = true
|
||||||
|
|
@ -15,33 +24,13 @@ windowrule {
|
||||||
# terminal filechooser
|
# terminal filechooser
|
||||||
windowrule {
|
windowrule {
|
||||||
name = terminal-filechooser
|
name = terminal-filechooser
|
||||||
match:class = ^(foot)$
|
match:class = ^(foot|Alacritty)$
|
||||||
match:title = ^(filechooser)$
|
match:title = ^(filechooser)$
|
||||||
float = true
|
float = true
|
||||||
center = true
|
center = true
|
||||||
size = (monitor_w*0.85) (monitor_h*0.85)
|
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
|
# imhex - blur
|
||||||
windowrule {
|
windowrule {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{...}: {
|
{ ... }:
|
||||||
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = null;
|
package = null;
|
||||||
|
|
@ -23,8 +24,8 @@
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
|
|
||||||
# applications
|
# applications
|
||||||
"$terminal" = "foot";
|
"$terminal" = "alacritty";
|
||||||
"$explorer" = "foot -e yazi";
|
"$explorer" = "alacritty -e yazi";
|
||||||
"$browser" = "zen-twilight";
|
"$browser" = "zen-twilight";
|
||||||
|
|
||||||
# menu
|
# menu
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,8 @@ accel_profile = 0
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# applications
|
# applications
|
||||||
bind = SUPER, t, spawn, foot
|
bind = SUPER, t, spawn, alacritty
|
||||||
bind = SUPER, e, spawn, foot -e yazi
|
bind = SUPER, e, spawn, alacritty -e yazi
|
||||||
bind = SUPER, r, spawn, zen-twilight
|
bind = SUPER, r, spawn, zen-twilight
|
||||||
|
|
||||||
# rofi
|
# rofi
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
# ---------------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------------- #
|
||||||
# foot - blur
|
# terminal - blur
|
||||||
windowrule=focused_opacity:0.95,unfocused_opacity:0.95,appid:^(foot)$
|
windowrule=focused_opacity:0.95,unfocused_opacity:0.95,appid:^(foot|alacritty)$
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,29 @@
|
||||||
{spkgs, ...}: {
|
{ spkgs, ... }:
|
||||||
wayland.windowManager.river = let
|
{
|
||||||
|
wayland.windowManager.river =
|
||||||
|
let
|
||||||
layout = "rivertile";
|
layout = "rivertile";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
package = spkgs.river-classic; # FIX: using spkgs version as zls is broken rn ;-;
|
package = spkgs.river-classic; # FIX: using spkgs version as zls is broken rn ;-;
|
||||||
|
|
||||||
settings = let
|
settings =
|
||||||
|
let
|
||||||
main = "Super";
|
main = "Super";
|
||||||
|
|
||||||
# applications
|
# applications
|
||||||
terminal = "foot";
|
terminal = "alacritty";
|
||||||
browser = "firefox";
|
browser = "firefox";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
default-layout = "${layout}";
|
default-layout = "${layout}";
|
||||||
output-layout = "${layout}";
|
output-layout = "${layout}";
|
||||||
border-width = 1;
|
border-width = 1;
|
||||||
|
|
||||||
spawn = [
|
spawn = [
|
||||||
''${layout}''
|
"${layout}"
|
||||||
|
|
||||||
"awww-daemon"
|
"awww-daemon"
|
||||||
"waybar"
|
"waybar"
|
||||||
|
|
@ -37,7 +42,7 @@
|
||||||
"${main} R" = ''spawn "${browser}"'';
|
"${main} R" = ''spawn "${browser}"'';
|
||||||
|
|
||||||
# move focused view to top of layout stack
|
# move focused view to top of layout stack
|
||||||
"${main} N" = ''zoom'';
|
"${main} N" = "zoom";
|
||||||
|
|
||||||
# focus next/previous view
|
# focus next/previous view
|
||||||
"${main} J" = "focus-view previous";
|
"${main} J" = "focus-view previous";
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
{config, ...}: {
|
{ config, ... }:
|
||||||
|
{
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = rec {
|
config = rec {
|
||||||
modifier = "Mod4"; # Mod4 = Super/Meta
|
modifier = "Mod4"; # Mod4 = Super/Meta
|
||||||
terminal = "foot";
|
terminal = "alacritty";
|
||||||
|
|
||||||
# disable sway bar
|
# disable sway bar
|
||||||
bars = [ ];
|
bars = [ ];
|
||||||
|
|
@ -17,11 +18,13 @@
|
||||||
{ command = "waybar"; }
|
{ command = "waybar"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
keybindings = let
|
keybindings =
|
||||||
|
let
|
||||||
main = config.wayland.windowManager.sway.config.modifier;
|
main = config.wayland.windowManager.sway.config.modifier;
|
||||||
terminal = config.wayland.windowManager.sway.config.terminal;
|
terminal = config.wayland.windowManager.sway.config.terminal;
|
||||||
browser = "firefox";
|
browser = "firefox";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
"${main}+c" = "kill"; # close focused window
|
"${main}+c" = "kill"; # close focused window
|
||||||
"${main}+Alt+Delete" = "exit"; # exit sway
|
"${main}+Alt+Delete" = "exit"; # exit sway
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue