forked from Shinonome/omarchy-nix
Cleanup
This commit is contained in:
@@ -13,25 +13,13 @@ in {
|
||||
# Window settings
|
||||
window = {
|
||||
padding = {
|
||||
x = 10;
|
||||
y = 10;
|
||||
x = 14;
|
||||
y = 14;
|
||||
};
|
||||
dynamic_padding = true;
|
||||
decorations = "none";
|
||||
opacity = 0.95;
|
||||
blur = true;
|
||||
startup_mode = "Windowed";
|
||||
title = "Alacritty";
|
||||
dynamic_title = true;
|
||||
};
|
||||
|
||||
# Scrolling
|
||||
scrolling = {
|
||||
history = 10000;
|
||||
multiplier = 3;
|
||||
};
|
||||
|
||||
# Font configuration
|
||||
font = {
|
||||
normal = {
|
||||
family = cfg.primary_font;
|
||||
@@ -77,135 +65,6 @@ in {
|
||||
|
||||
selection.background = theme.primary;
|
||||
};
|
||||
# // (
|
||||
# if theme ? orange
|
||||
# then {
|
||||
# indexed_colors =
|
||||
# [
|
||||
# {
|
||||
# index = 16;
|
||||
# color = theme.orange;
|
||||
# }
|
||||
# ]
|
||||
# ++ (
|
||||
# if theme ? rosewater
|
||||
# then [
|
||||
# {
|
||||
# index = 17;
|
||||
# color = theme.rosewater;
|
||||
# }
|
||||
# ]
|
||||
# else []
|
||||
# )
|
||||
# ++ (
|
||||
# if theme ? peach
|
||||
# then [
|
||||
# {
|
||||
# index = 18;
|
||||
# color = theme.peach;
|
||||
# }
|
||||
# ]
|
||||
# else []
|
||||
# );
|
||||
# }
|
||||
# else {}
|
||||
# );
|
||||
|
||||
# Bell
|
||||
bell = {
|
||||
animation = "EaseOutExpo";
|
||||
duration = 0;
|
||||
color = theme.warning;
|
||||
};
|
||||
|
||||
# Mouse
|
||||
mouse = {
|
||||
hide_when_typing = true;
|
||||
bindings = [
|
||||
{
|
||||
mouse = "Middle";
|
||||
action = "PasteSelection";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# Key bindings
|
||||
keyboard.bindings = [
|
||||
# Copy/Paste
|
||||
{
|
||||
key = "C";
|
||||
mods = "Control|Shift";
|
||||
action = "Copy";
|
||||
}
|
||||
{
|
||||
key = "V";
|
||||
mods = "Control|Shift";
|
||||
action = "Paste";
|
||||
}
|
||||
# Search
|
||||
{
|
||||
key = "F";
|
||||
mods = "Control|Shift";
|
||||
action = "SearchForward";
|
||||
}
|
||||
{
|
||||
key = "B";
|
||||
mods = "Control|Shift";
|
||||
action = "SearchBackward";
|
||||
}
|
||||
# Font size
|
||||
{
|
||||
key = "Plus";
|
||||
mods = "Control";
|
||||
action = "IncreaseFontSize";
|
||||
}
|
||||
{
|
||||
key = "Minus";
|
||||
mods = "Control";
|
||||
action = "DecreaseFontSize";
|
||||
}
|
||||
{
|
||||
key = "Key0";
|
||||
mods = "Control";
|
||||
action = "ResetFontSize";
|
||||
}
|
||||
# New window
|
||||
{
|
||||
key = "Return";
|
||||
mods = "Control|Shift";
|
||||
action = "SpawnNewInstance";
|
||||
}
|
||||
];
|
||||
|
||||
# Cursor
|
||||
cursor = {
|
||||
style = {
|
||||
shape = "Block";
|
||||
blinking = "Off";
|
||||
};
|
||||
unfocused_hollow = true;
|
||||
thickness = 0.15;
|
||||
};
|
||||
|
||||
# Live config reload
|
||||
general.live_config_reload = true;
|
||||
|
||||
# Shell
|
||||
terminal.shell = {
|
||||
program = "${pkgs.zsh}/bin/zsh";
|
||||
args = ["--login"];
|
||||
};
|
||||
|
||||
# Working directory
|
||||
working_directory = "None";
|
||||
|
||||
# Debug
|
||||
debug = {
|
||||
render_timer = false;
|
||||
persistent_logging = false;
|
||||
log_level = "Warn";
|
||||
print_events = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -19,29 +19,22 @@
|
||||
else hexToRgba theme.foreground "ff";
|
||||
in {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
# Refer to https://wiki.hyprland.org/Configuring/Variables/
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
||||
general = {
|
||||
gaps_in = 5;
|
||||
gaps_out = 10;
|
||||
|
||||
border_size = 2;
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
||||
"col.active_border" = activeBorder;
|
||||
"col.inactive_border" = hexToRgba theme.surface_variant "aa";
|
||||
|
||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||
resize_on_border = false;
|
||||
|
||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false;
|
||||
|
||||
layout = "dwindle";
|
||||
};
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||
decoration = {
|
||||
rounding = 0;
|
||||
|
||||
@@ -52,7 +45,6 @@ in {
|
||||
color = hexToRgba theme.background "ee";
|
||||
};
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
||||
blur = {
|
||||
enabled = true;
|
||||
size = 3;
|
||||
@@ -62,12 +54,10 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
||||
animations = {
|
||||
enabled = true; # yes, please :)
|
||||
|
||||
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
bezier = [
|
||||
"easeOutQuint,0.23,1,0.32,1"
|
||||
"easeInOutCubic,0.65,0.05,0.36,1"
|
||||
@@ -94,29 +84,16 @@ in {
|
||||
];
|
||||
};
|
||||
|
||||
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
||||
# "Smart gaps" / "No gaps when only"
|
||||
# uncomment all if you wish to use that.
|
||||
# workspace = w[tv1], gapsout:0, gapsin:0
|
||||
# workspace = f[1], gapsout:0, gapsin:0
|
||||
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
|
||||
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
|
||||
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
|
||||
# windowrule = rounding 0, floating:0, onworkspace:f[1]
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
dwindle = {
|
||||
pseudotile = true; # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true; # You probably want this
|
||||
force_split = 2; # Always split on the right
|
||||
pseudotile = true;
|
||||
preserve_split = true;
|
||||
force_split = 2;
|
||||
};
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
master = {
|
||||
new_status = "master";
|
||||
};
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||
misc = {
|
||||
disable_hyprland_logo = true;
|
||||
disable_splash_rendering = true;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
# Force chromium into a tile to deal with --app bug
|
||||
"tile, class:^(chromium)$"
|
||||
|
||||
# Just dash of opacity
|
||||
# Just dash of transparency
|
||||
"opacity 0.97 0.9, class:.*"
|
||||
"opacity 1 0.97, class:^(chromium|google-chrome|google-chrome-unstable)$"
|
||||
"opacity 0.97 0.9, initialClass:^(chrome-.*-Default)$ # web apps"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{inputs, ...}: {
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
|
||||
@@ -21,10 +21,6 @@
|
||||
alsa.enable = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
};
|
||||
|
||||
services.greetd = {
|
||||
|
||||
Reference in New Issue
Block a user