216 lines
6.1 KiB
Nix
216 lines
6.1 KiB
Nix
{ lib, ... }:
|
|
{
|
|
home.sessionVariables = {
|
|
fileManager = "thunar";
|
|
menu = "fuzzel --show drun";
|
|
run = "fuzzel --show run";
|
|
file = "fuzzel --show file";
|
|
};
|
|
|
|
programs = {
|
|
waybar = {
|
|
enable = true;
|
|
systemd.enable = true;
|
|
};
|
|
};
|
|
home.file = {
|
|
".config/fuzzel/fuzzel.ini".text = builtins.readFile ./config/fuzzel.ini;
|
|
# ".config/waybar/config".text = builtins.readFile ./config/waybar_config.json;
|
|
# ".config/waybar/style.css".text = builtins.readFile ./config/waybar_style.css;
|
|
".config/hyprland/wallpaper/e-villa.png" = {
|
|
source = builtins.fetchurl {
|
|
url = "https://ipfs.io/ipfs/bafybeibsjbhleghcc4zdgarmsftd6jt27rb73g3mlbuup3cmuedw54uyqa";
|
|
sha256 = "0gxa45qigjcjb12v243jv37nji5dax6rn5y6l823f0a2s2hfkqm5";
|
|
};
|
|
force = true;
|
|
};
|
|
};
|
|
services.hyprpaper.enable = true;
|
|
services.hyprpaper.settings = {
|
|
preload = [ "/home/thiago/.config/hyprland/wallpaper/hydra.jpg" ];
|
|
wallpaper = [ "HDMI-A-1,/home/thiago/.config/hyprland/wallpaper/hydra.jpg" ];
|
|
};
|
|
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
settings = {
|
|
"$mod" = "SUPER";
|
|
layerrule = [
|
|
"ignorezero, waybar"
|
|
"blur, waybar"
|
|
];
|
|
bind = [
|
|
"$mod, q, exec, kitty"
|
|
"$mod, f, exec, firefox"
|
|
"$mod, c, killactive,"
|
|
"$mod, m, exit,"
|
|
"$mod, e, exec, $fileManager"
|
|
"$mod, v, togglefloating"
|
|
"$mod, r, exec, $menu"
|
|
"$mod, p, pseudo,"
|
|
"$mod, j, togglesplit,"
|
|
|
|
"$mod, d, exec, $run"
|
|
"$mod, f, exec, $file"
|
|
|
|
"$mod, 1, workspace, 1"
|
|
"$mod, 2, workspace, 2"
|
|
"$mod, 3, workspace, 3"
|
|
"$mod, 4, workspace, 4"
|
|
"$mod, 5, workspace, 5"
|
|
"$mod, 6, workspace, 6"
|
|
"$mod, 7, workspace, 7"
|
|
"$mod, 8, workspace, 8"
|
|
"$mod, 9, workspace, 9"
|
|
"$mod, 0, workspace, 10"
|
|
|
|
"$mod SHIFT, 1, movetoworkspace, 1"
|
|
"$mod SHIFT, 2, movetoworkspace, 2"
|
|
"$mod SHIFT, 3, movetoworkspace, 3"
|
|
"$mod SHIFT, 4, movetoworkspace, 4"
|
|
"$mod SHIFT, 5, movetoworkspace, 5"
|
|
"$mod SHIFT, 6, movetoworkspace, 6"
|
|
"$mod SHIFT, 7, movetoworkspace, 7"
|
|
"$mod SHIFT, 8, movetoworkspace, 8"
|
|
"$mod SHIFT, 9, movetoworkspace, 9"
|
|
"$mod SHIFT, 0, movetoworkspace, 10"
|
|
|
|
"$mod, S, togglespecialworkspace, magic"
|
|
"$mod SHIFT, S, movetoworkspace, special:magic"
|
|
"$mod, mouse_down, workspace, e+1"
|
|
"$mod, mouse_up, workspace, e-1"
|
|
];
|
|
|
|
bindm = [
|
|
"$mod, mouse:272, movewindow" # Hold $mod and left mouse button to move window
|
|
"$mod, mouse:273, resizewindow" # Hold $mod and right mouse button to resize window
|
|
];
|
|
|
|
bindel = [
|
|
",XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
|
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
|
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
|
",XF86MonBrightnessUp, exec, brightnessctl s 10%+"
|
|
",XF86MonBrightnessDown, exec, brightnessctl s 10%-"
|
|
];
|
|
|
|
bindl = [
|
|
", XF86AudioNext, exec, playerctl next"
|
|
", XF86AudioPause, exec, playerctl play-pause"
|
|
", XF86AudioPlay, exec, playerctl play-pause"
|
|
", XF86AudioPrev, exec, playerctl previous"
|
|
];
|
|
|
|
env = [
|
|
"XCURSOR_SIZE,24"
|
|
"HYPRCURSOR_SIZE,24"
|
|
];
|
|
monitor = [
|
|
",preferred,auto,auto"
|
|
];
|
|
|
|
general = {
|
|
gaps_in = 3;
|
|
gaps_out = 6;
|
|
border_size = 0;
|
|
resize_on_border = true;
|
|
allow_tearing = false;
|
|
layout = "dwindle";
|
|
};
|
|
|
|
decoration = {
|
|
rounding = 2;
|
|
fullscreen_opacity = 1.0;
|
|
active_opacity = 1.0;
|
|
inactive_opacity = 0.95;
|
|
|
|
shadow = {
|
|
enabled = true;
|
|
range = 4;
|
|
render_power = 3;
|
|
color = "rgba(1a1a1aee)";
|
|
};
|
|
blur = {
|
|
enabled = true;
|
|
size = 4;
|
|
passes = 4;
|
|
vibrancy = 0.1696;
|
|
vibrancy_darkness = 0.08;
|
|
# noise = 0.002;
|
|
};
|
|
};
|
|
|
|
animations = {
|
|
enabled = true;
|
|
bezier = [
|
|
"easeOutQuint,0.23,1,0.32,1"
|
|
"easeInOutCubic,0.65,0.05,0.36,1"
|
|
"linear,0,0,1,1"
|
|
"almostLinear,0.5,0.5,0.75,1.0"
|
|
"quick,0.15,0,0.1,1"
|
|
];
|
|
|
|
animation = [
|
|
"global, 1, 10, default"
|
|
"border, 1, 5.39, easeOutQuint"
|
|
"windows, 1, 4.79, easeOutQuint"
|
|
"windowsIn, 1, 4.1, easeOutQuint, popin 87%"
|
|
"windowsOut, 1, 1.49, linear, popin 87%"
|
|
"fadeIn, 1, 1.73, almostLinear"
|
|
"fadeOut, 1, 1.46, almostLinear"
|
|
"fade, 1, 3.03, quick"
|
|
"layers, 1, 3.81, easeOutQuint"
|
|
"layersIn, 1, 4, easeOutQuint, fade"
|
|
"layersOut, 1, 1.5, linear, fade"
|
|
"fadeLayersIn, 1, 1.79, almostLinear"
|
|
"fadeLayersOut, 1, 1.39, almostLinear"
|
|
"workspaces, 1, 1.94, almostLinear, fade"
|
|
"workspacesIn, 1, 1.21, almostLinear, fade"
|
|
"workspacesOut, 1, 1.94, almostLinear, fade"
|
|
];
|
|
};
|
|
|
|
dwindle = {
|
|
pseudotile = true;
|
|
default_split_ratio = 0.618;
|
|
preserve_split = true;
|
|
smart_split = true;
|
|
};
|
|
|
|
master = {
|
|
new_status = "master";
|
|
};
|
|
|
|
misc = {
|
|
force_default_wallpaper = -1;
|
|
disable_hyprland_logo = true;
|
|
vfr = true;
|
|
vrr = 0;
|
|
};
|
|
|
|
input = {
|
|
kb_layout = "us";
|
|
follow_mouse = 1;
|
|
sensitivity = -0.1;
|
|
touchpad = {
|
|
"tap-to-click" = true;
|
|
"tap-and-drag" = true;
|
|
"natural_scroll" = true;
|
|
"middle_button_emulation" = true;
|
|
"clickfinger_behavior" = true;
|
|
"tap_button_map" = "lmr";
|
|
};
|
|
};
|
|
|
|
gestures = {
|
|
workspace_swipe = true;
|
|
};
|
|
|
|
device = {
|
|
name = "epic-mouse-v1";
|
|
sensitivity = -0.5;
|
|
};
|
|
};
|
|
};
|
|
}
|