mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-28 11:10:42 +01:00
laptop
Merge branch 'master' of https://github.com/szymon-jozef/amazing-dotfiles
This commit is contained in:
@@ -7,3 +7,4 @@ hyprlock
|
|||||||
hyprsunset
|
hyprsunset
|
||||||
satty
|
satty
|
||||||
kitty
|
kitty
|
||||||
|
mangohud
|
||||||
|
|||||||
55
home.nix
55
home.nix
@@ -24,55 +24,44 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
# general packages list
|
# general
|
||||||
./modules/packages.nix
|
./modules/packages.nix
|
||||||
|
./modules/xdg.nix
|
||||||
|
./modules/desktop.nix
|
||||||
|
./modules/gtk.nix
|
||||||
# cli tools
|
# cli tools
|
||||||
./modules/fish.nix
|
./modules/cli/fish.nix
|
||||||
./modules/nixvim.nix
|
./modules/cli/nixvim.nix
|
||||||
./modules/yazi.nix
|
./modules/cli/yazi.nix
|
||||||
./modules/btop.nix
|
./modules/cli/btop.nix
|
||||||
./modules/atuin.nix
|
./modules/cli/atuin.nix
|
||||||
./modules/zoxide.nix
|
./modules/cli/zoxide.nix
|
||||||
./modules/mako.nix
|
./modules/cli/ssh.nix
|
||||||
./modules/ssh.nix
|
./modules/cli/bat.nix
|
||||||
./modules/bat.nix
|
./modules/cli/git.nix
|
||||||
./modules/git.nix
|
./modules/cli/fastfetch.nix
|
||||||
# gui tools
|
# gui tools
|
||||||
./modules/kitty.nix
|
./modules/gui/kitty.nix
|
||||||
./modules/satty.nix
|
./modules/gui/satty.nix
|
||||||
|
./modules/gui/mako.nix
|
||||||
|
./modules/gui/mangohud.nix
|
||||||
# status bars
|
# status bars
|
||||||
./modules/ashell.nix
|
./modules/bars/ashell.nix
|
||||||
./modules/waybar.nix
|
./modules/bars/waybar.nix
|
||||||
# hypr
|
# hypr
|
||||||
./modules/hypr/hyprland.nix
|
./modules/hypr/hyprland.nix
|
||||||
./modules/hypr/hyprlauncher.nix
|
./modules/hypr/hyprlauncher.nix
|
||||||
./modules/hypr/hypridle.nix
|
./modules/hypr/hypridle.nix
|
||||||
./modules/hypr/hyprlock.nix
|
./modules/hypr/hyprlock.nix
|
||||||
./modules/hypr/hyprsunset.nix
|
./modules/hypr/hyprsunset.nix
|
||||||
|
./modules/hypr/hyprtoolkit.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# === DOTFILES IMPORT ===
|
# === SCRIPTS IMPORT ===
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/fastfetch".source = ./dotfiles/fastfetch;
|
|
||||||
".config/MangoHud".source = ./dotfiles/mangohud;
|
|
||||||
# ".config/nvim".source = ./dotfiles/nvim;
|
|
||||||
".config/gtk-3.0/settings.ini".source = ./dotfiles/gtk-3.0/settings.ini;
|
|
||||||
".config/gtk-4.0".source = ./dotfiles/gtk-4.0;
|
|
||||||
# ".config/hypr".source = ./dotfiles/hypr;
|
|
||||||
".config/mimeapps.list".source = ./dotfiles/mimeapps.list;
|
|
||||||
".local/bin".source = ./scripts;
|
".local/bin".source = ./scripts;
|
||||||
};
|
};
|
||||||
|
|
||||||
# XDG
|
|
||||||
xdg.portal.config = {
|
|
||||||
common = {
|
|
||||||
default = [
|
|
||||||
"hyprland"
|
|
||||||
"gtk"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# === VARS ===
|
# === VARS ===
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
appearance = {
|
appearance = {
|
||||||
scale_factor = 1.2;
|
scale_factor = 1.2;
|
||||||
|
style = "Gradient";
|
||||||
success_color = "#a6e3a1";
|
success_color = "#a6e3a1";
|
||||||
text_color = "#cdd6f4";
|
text_color = "#cdd6f4";
|
||||||
workspace_colors = [
|
workspace_colors = [
|
||||||
62
modules/cli/fastfetch.nix
Normal file
62
modules/cli/fastfetch.nix
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.fastfetch = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
modules = [
|
||||||
|
"title"
|
||||||
|
"separator"
|
||||||
|
"os"
|
||||||
|
"host"
|
||||||
|
"kernel"
|
||||||
|
"packages"
|
||||||
|
"separator"
|
||||||
|
"wm"
|
||||||
|
"shell"
|
||||||
|
"terminal"
|
||||||
|
"theme"
|
||||||
|
"font"
|
||||||
|
"locale"
|
||||||
|
"separator"
|
||||||
|
"display"
|
||||||
|
"cpu"
|
||||||
|
"gpu"
|
||||||
|
"memory"
|
||||||
|
"disk"
|
||||||
|
"battery"
|
||||||
|
"separator"
|
||||||
|
"wifi"
|
||||||
|
"localip"
|
||||||
|
"break"
|
||||||
|
"colors"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."fastfetch/startup.jsonc".text = builtins.toJSON {
|
||||||
|
logo = {
|
||||||
|
source = "arch_small";
|
||||||
|
padding = {
|
||||||
|
bottom = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
display = {
|
||||||
|
separator = " ➜ ";
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
"title"
|
||||||
|
"kernel"
|
||||||
|
"packages"
|
||||||
|
"shell"
|
||||||
|
"battery"
|
||||||
|
{
|
||||||
|
type = "separator";
|
||||||
|
string = " • ";
|
||||||
|
}
|
||||||
|
"break"
|
||||||
|
"break"
|
||||||
|
"break"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
31
modules/desktop.nix
Normal file
31
modules/desktop.nix
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
xdg.desktopEntries = {
|
||||||
|
x = {
|
||||||
|
name = "X";
|
||||||
|
genericName = "Social Media Client";
|
||||||
|
comment = "Open X (twitter)";
|
||||||
|
exec = "uwsm app -- chromium --app=https://x.com";
|
||||||
|
icon = "twitter";
|
||||||
|
terminal = false;
|
||||||
|
categories = [
|
||||||
|
"Network"
|
||||||
|
"WebBrowser"
|
||||||
|
"X-Social"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
proton-mail = {
|
||||||
|
name = "Proton mail";
|
||||||
|
genericName = "Proton mail";
|
||||||
|
comment = "Open Proton Mail";
|
||||||
|
exec = "uwsm app -- chromium --app=https://mail.proton.me/u/0/inbox.com";
|
||||||
|
terminal = false;
|
||||||
|
categories = [ "Email" ];
|
||||||
|
settings = {
|
||||||
|
StartupWMClass = "proton-mail.com";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
13
modules/gtk.nix
Normal file
13
modules/gtk.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
gtk.enable = true;
|
||||||
|
dconf = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
color-scheme = "prefer-dark";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
81
modules/gui/mangohud.nix
Normal file
81
modules/gui/mangohud.nix
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
isNixOS,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
catppuccin.mangohud.enable = false;
|
||||||
|
|
||||||
|
programs.mangohud = {
|
||||||
|
enable = true;
|
||||||
|
package = if isNixOS then pkgs.mangohud else (pkgs.runCommand "dummy-mangohud" { } "mkdir $out");
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."MangoHud/MangoHud.conf".text = ''
|
||||||
|
legacy_layout=false
|
||||||
|
background_alpha=0.6
|
||||||
|
round_corners=10
|
||||||
|
background_color=1E1E2E
|
||||||
|
font_size=24
|
||||||
|
text_color=CDD6F4
|
||||||
|
position=top-right
|
||||||
|
no_display
|
||||||
|
hud_compact
|
||||||
|
|
||||||
|
pci_dev=0:03:00.0
|
||||||
|
table_columns=2
|
||||||
|
|
||||||
|
gpu_text=GPU
|
||||||
|
gpu_stats
|
||||||
|
gpu_voltage
|
||||||
|
gpu_core_clock
|
||||||
|
gpu_mem_clock
|
||||||
|
gpu_temp
|
||||||
|
gpu_mem_temp
|
||||||
|
gpu_fan
|
||||||
|
gpu_power
|
||||||
|
gpu_color=A6E3A1
|
||||||
|
gpu_name
|
||||||
|
|
||||||
|
cpu_text=CPU
|
||||||
|
cpu_stats
|
||||||
|
cpu_load_change
|
||||||
|
cpu_load_value=50,90
|
||||||
|
cpu_load_color=A6E3A1,FAB387,F38BA8
|
||||||
|
cpu_mhz
|
||||||
|
cpu_temp
|
||||||
|
cpu_power
|
||||||
|
cpu_color=89B4FA
|
||||||
|
|
||||||
|
vram
|
||||||
|
vram_color=A6E3A1
|
||||||
|
ram
|
||||||
|
ram_color=F5C2E7
|
||||||
|
|
||||||
|
io_stats
|
||||||
|
io_read
|
||||||
|
io_write
|
||||||
|
io_color=CDD6F4
|
||||||
|
|
||||||
|
fps
|
||||||
|
fps_metrics=avg,0.01
|
||||||
|
frame_timing
|
||||||
|
frametime_color=A6E3A1
|
||||||
|
fps_limit_method=late
|
||||||
|
toggle_fps_limit=Shift_L+F1
|
||||||
|
fps_limit=0
|
||||||
|
resolution
|
||||||
|
gamemode
|
||||||
|
fps_color_change
|
||||||
|
fps_color=F38BA8,F9E2AF,A6E3A1
|
||||||
|
fps_value=30,60
|
||||||
|
|
||||||
|
log_duration=30
|
||||||
|
autostart_log=0
|
||||||
|
log_interval=100
|
||||||
|
toggle_logging=Shift_L+F2
|
||||||
|
blacklist=pamac-manager,lact,ghb,bitwig-studio,ptyxis,yumex
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -107,9 +107,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
permission = [
|
permission = [
|
||||||
"/usr/bin/grim, screencopy, allow"
|
".*(grim), screencopy, allow"
|
||||||
"/usr/bin/hyprlock, screencopy, allow"
|
".*(hyprlock), screencopy, allow"
|
||||||
"/usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow"
|
".*(xdg-desktop-portal-hyprland), screencopy, allow"
|
||||||
];
|
];
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
@@ -199,7 +199,9 @@
|
|||||||
"match:class ^(com.obsproject.Studio)$, workspace 10"
|
"match:class ^(com.obsproject.Studio)$, workspace 10"
|
||||||
];
|
];
|
||||||
|
|
||||||
bind = [
|
bind =
|
||||||
|
# hyprlang
|
||||||
|
[
|
||||||
# background
|
# background
|
||||||
"$mainMod, V, exec, cliphist list | hyprlauncher -m | cliphist decode | wl-copy"
|
"$mainMod, V, exec, cliphist list | hyprlauncher -m | cliphist decode | wl-copy"
|
||||||
"$mainMod ALT_L, V, exec, cliphist wipe && notify-send \"Clipboard\" \"Clipboard cleared!\""
|
"$mainMod ALT_L, V, exec, cliphist wipe && notify-send \"Clipboard\" \"Clipboard cleared!\""
|
||||||
@@ -321,7 +323,9 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig =
|
||||||
|
#hyprlang
|
||||||
|
''
|
||||||
windowrule {
|
windowrule {
|
||||||
name = pavucontrol-float
|
name = pavucontrol-float
|
||||||
match:class = ^(org.pulseaudio.pavucontrol)$
|
match:class = ^(org.pulseaudio.pavucontrol)$
|
||||||
|
|||||||
@@ -32,32 +32,11 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
input-field = [
|
|
||||||
{
|
|
||||||
monitor = "";
|
|
||||||
size = "20%, 5%";
|
|
||||||
outline_thickness = 3;
|
|
||||||
inner_color = "rgba(0, 0, 0, 0.0)";
|
|
||||||
outer_color = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
|
||||||
check_color = "rgba(00ff99ee) rgba(ff6633ee) 120deg";
|
|
||||||
fail_color = "rgba(ff6633ee) rgba(ff0066ee) 40deg";
|
|
||||||
font_color = "rgb(143, 143, 143)";
|
|
||||||
fade_on_empty = false;
|
|
||||||
rounding = 15;
|
|
||||||
font_family = "$font";
|
|
||||||
placeholder_text = "Input password...";
|
|
||||||
fail_text = "$PAMFAIL";
|
|
||||||
dots_spacing = 0.3;
|
|
||||||
position = "0, -20";
|
|
||||||
halign = "center";
|
|
||||||
valign = "center";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
label = [
|
label = [
|
||||||
{
|
{
|
||||||
monitor = "";
|
monitor = "";
|
||||||
text = "$TIME";
|
text = "$TIME";
|
||||||
|
color = "$text";
|
||||||
font_size = 90;
|
font_size = 90;
|
||||||
font_family = "$font";
|
font_family = "$font";
|
||||||
position = "-30, 0";
|
position = "-30, 0";
|
||||||
@@ -67,21 +46,13 @@
|
|||||||
{
|
{
|
||||||
monitor = "";
|
monitor = "";
|
||||||
text = ''cmd[update:60000] date +"%A, %d %B %Y"'';
|
text = ''cmd[update:60000] date +"%A, %d %B %Y"'';
|
||||||
|
color = "$subtext1";
|
||||||
font_size = 25;
|
font_size = 25;
|
||||||
font_family = "$font";
|
font_family = "$font";
|
||||||
position = "-30, -150";
|
position = "-30, -150";
|
||||||
halign = "right";
|
halign = "right";
|
||||||
valign = "top";
|
valign = "top";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
monitor = "";
|
|
||||||
text = "$LAYOUT[pl]";
|
|
||||||
font_size = 24;
|
|
||||||
onclick = "hyprctl switchxkblayout all next";
|
|
||||||
position = "250, -20";
|
|
||||||
halign = "center";
|
|
||||||
valign = "center";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
14
modules/hypr/hyprtoolkit.nix
Normal file
14
modules/hypr/hyprtoolkit.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# TO BE CHANGED WHEN NIX CONFIG OF THIS FILE WILL RELEASE!!!!
|
||||||
|
xdg.configFile."hypr/hyprtoolkit.conf".text = ''
|
||||||
|
background=0xff11111b
|
||||||
|
base=0xff1e1e2e
|
||||||
|
alternate_base=0xff181825
|
||||||
|
text=0xffcdd6f4
|
||||||
|
bright_text=0xffbac2de
|
||||||
|
accent=0xffcba6f7
|
||||||
|
accent_secondary=0xffb4befe
|
||||||
|
'';
|
||||||
|
}
|
||||||
42
modules/xdg.nix
Normal file
42
modules/xdg.nix
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
xdg.portal.config = {
|
||||||
|
common = {
|
||||||
|
default = [
|
||||||
|
"hyprland"
|
||||||
|
"gtk"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
defaultApplications = {
|
||||||
|
"application/pdf" = [ "org.pwmt.zathura.desktop" ];
|
||||||
|
|
||||||
|
"text/html" = [ "zen.desktop" ];
|
||||||
|
"application/xhtml+xml" = [ "zen.desktop" ];
|
||||||
|
"x-scheme-handler/http" = [ "zen.desktop" ];
|
||||||
|
"x-scheme-handler/https" = [ "zen.desktop" ];
|
||||||
|
"x-scheme-handler/chrome" = [ "zen.desktop" ];
|
||||||
|
"application/x-extension-htm" = [ "zen.desktop" ];
|
||||||
|
"application/x-extension-html" = [ "zen.desktop" ];
|
||||||
|
"application/x-extension-shtml" = [ "zen.desktop" ];
|
||||||
|
"application/x-extension-xht" = [ "zen.desktop" ];
|
||||||
|
"application/x-extension-xhtml" = [ "zen.desktop" ];
|
||||||
|
|
||||||
|
"audio/*" = [ "mpv.desktop" ];
|
||||||
|
"audio/mpeg" = [ "mpv.desktop" ];
|
||||||
|
|
||||||
|
"image/*" = [ "org.kde.koko.desktop" ];
|
||||||
|
"image/png" = [ "feh.desktop" ];
|
||||||
|
"image/bmp" = [ "feh.desktop" ];
|
||||||
|
"image/svg+xml" = [ "feh.desktop" ];
|
||||||
|
|
||||||
|
"x-scheme-handler/discord" = [ "vesktop.desktop" ];
|
||||||
|
"x-scheme-handler/sgnl" = [ "signal-desktop.desktop" ];
|
||||||
|
"x-scheme-handler/tuta" = [ "tutanota-desktop.desktop" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user