Merge branch 'master' of github.com:Kropatz/dotfiles
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -37,6 +37,7 @@
|
|||||||
modules = [
|
modules = [
|
||||||
### User specific ###
|
### User specific ###
|
||||||
./users/anon.nix
|
./users/anon.nix
|
||||||
|
./users/option.nix
|
||||||
### System sepecific ###
|
### System sepecific ###
|
||||||
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||||
./systems/server/configuration.nix
|
./systems/server/configuration.nix
|
||||||
@@ -71,6 +72,7 @@
|
|||||||
./modules/invidious.nix
|
./modules/invidious.nix
|
||||||
./modules/step-ca.nix
|
./modules/step-ca.nix
|
||||||
./modules/tmpfs.nix
|
./modules/tmpfs.nix
|
||||||
|
./modules/logging.nix
|
||||||
### Hardware ###
|
### Hardware ###
|
||||||
./modules/hardware/ssd.nix
|
./modules/hardware/ssd.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
@@ -98,11 +100,15 @@
|
|||||||
inherit inputs ;
|
inherit inputs ;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
### User specific ###
|
||||||
|
./users/option.nix
|
||||||
./users/kopatz.nix
|
./users/kopatz.nix
|
||||||
|
### System modules ###
|
||||||
./modules/graphical/plasma.nix
|
./modules/graphical/plasma.nix
|
||||||
./modules/graphical/hyprland.nix
|
./modules/graphical/hyprland.nix
|
||||||
./modules/graphical/emulators.nix
|
./modules/graphical/emulators.nix
|
||||||
./modules/graphical/gamemode.nix
|
./modules/graphical/gamemode.nix
|
||||||
|
./modules/graphical/obs.nix
|
||||||
./modules/graphical/shared.nix
|
./modules/graphical/shared.nix
|
||||||
./modules/hardware/nvidia.nix
|
./modules/hardware/nvidia.nix
|
||||||
./modules/hardware/ssd.nix
|
./modules/hardware/ssd.nix
|
||||||
@@ -136,6 +142,8 @@
|
|||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
### User specific ###
|
||||||
|
./users/option.nix
|
||||||
./users/kopatz.nix
|
./users/kopatz.nix
|
||||||
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||||
# Todo: refactor file layout
|
# Todo: refactor file layout
|
||||||
@@ -166,6 +174,8 @@
|
|||||||
inherit inputs ;
|
inherit inputs ;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
### User specific ###
|
||||||
|
./users/option.nix
|
||||||
./users/kopatz.nix
|
./users/kopatz.nix
|
||||||
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||||
./laptop/configuration.nix
|
./laptop/configuration.nix
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
{ user, pkgs, ... }:
|
{ user, pkgs, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.${user} = { pkgs, ...}: {
|
home-manager.users.${user} = {
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
10
home-manager/direnv.nix
Normal file
10
home-manager/direnv.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{ user, pkgs, ... }:
|
||||||
|
{
|
||||||
|
home-manager.users.${user} = {
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
16
home-manager/gtk-theme.nix
Normal file
16
home-manager/gtk-theme.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ user, pkgs, ... }:
|
||||||
|
{
|
||||||
|
home-manager.users.${user} = {
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
theme = {
|
||||||
|
name = "palenight";
|
||||||
|
package = pkgs.palenight-theme;
|
||||||
|
};
|
||||||
|
cursorTheme = {
|
||||||
|
package = pkgs.libsForQt5.breeze-gtk;
|
||||||
|
name = "Breeze-gtk";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
692
home-manager/hyprland-settings.nix
Normal file
692
home-manager/hyprland-settings.nix
Normal file
@@ -0,0 +1,692 @@
|
|||||||
|
{ user, pkgs, layout, variant, ... }:
|
||||||
|
{
|
||||||
|
home-manager.users.${user} = {
|
||||||
|
programs.swaylock.enable = true;
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
enableNvidiaPatches = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
package = pkgs.unstable.hyprland;
|
||||||
|
settings = {
|
||||||
|
#
|
||||||
|
# Please note not all available settings / options are set here.
|
||||||
|
# For a full list, see the wiki
|
||||||
|
#
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
|
monitor = [
|
||||||
|
# PC
|
||||||
|
"HDMI-A-1,1920x1080@60,0x0,1"
|
||||||
|
"DP-1,2560x1440@144,1920x0,1"
|
||||||
|
# laptop
|
||||||
|
"eDP-1,3840x2160@60,0x0,2"
|
||||||
|
"DP-3,1920x1080@60,1920x0,1"
|
||||||
|
# Default
|
||||||
|
",preferred,auto,auto"
|
||||||
|
];
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
|
|
||||||
|
# Execute your favorite apps at launch
|
||||||
|
# exec-once = waybar & hyprpaper & firefox
|
||||||
|
|
||||||
|
# Source a file (multi-file configs)
|
||||||
|
# source = ~/.config/hypr/myColors.conf
|
||||||
|
|
||||||
|
# Some default env vars.
|
||||||
|
env = "XCURSOR_SIZE,24";
|
||||||
|
|
||||||
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||||
|
input = {
|
||||||
|
kb_layout = layout;
|
||||||
|
kb_variant = variant;
|
||||||
|
kb_model = "";
|
||||||
|
kb_options = "";
|
||||||
|
kb_rules = "";
|
||||||
|
|
||||||
|
follow_mouse = 1;
|
||||||
|
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
||||||
|
};
|
||||||
|
|
||||||
|
general = {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Variables
|
||||||
|
|
||||||
|
gaps_in = 5;
|
||||||
|
gaps_out = 5;
|
||||||
|
border_size = 2;
|
||||||
|
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
||||||
|
"col.inactive_border" = "rgba(595959aa)";
|
||||||
|
|
||||||
|
layout = "dwindle";
|
||||||
|
#allow_tearing = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
decoration = {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
|
||||||
|
rounding = 10;
|
||||||
|
#blur = yes
|
||||||
|
#blur_size = 3
|
||||||
|
#blur_passes = 1
|
||||||
|
#blur_new_optimizations = on
|
||||||
|
|
||||||
|
drop_shadow = true;
|
||||||
|
shadow_range = 4;
|
||||||
|
shadow_render_power = 3;
|
||||||
|
"col.shadow" = "rgba(1a1a1aee)";
|
||||||
|
};
|
||||||
|
|
||||||
|
animations = {
|
||||||
|
enabled = true;
|
||||||
|
|
||||||
|
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||||
|
|
||||||
|
#bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||||
|
|
||||||
|
#animation = windows, 1, 7, myBezier
|
||||||
|
#animation = windowsOut, 1, 7, default, popin 80%
|
||||||
|
#animation = border, 1, 10, default
|
||||||
|
#animation = borderangle, 1, 8, default
|
||||||
|
#animation = fade, 1, 7, default
|
||||||
|
animation = [
|
||||||
|
"workspaces, 0"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
dwindle = {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
|
pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
|
preserve_split = true; # you probably want this
|
||||||
|
};
|
||||||
|
|
||||||
|
master = {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||||
|
new_is_master = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
gestures = {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
workspace_swipe = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Example per-device config
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
||||||
|
#"device:epic-mouse-v1" = {
|
||||||
|
# sensitivity = -0.5;
|
||||||
|
#};
|
||||||
|
|
||||||
|
# Example windowrule v1
|
||||||
|
# windowrule = float, ^(kitty)$
|
||||||
|
# Example windowrule v2
|
||||||
|
# float,class:^(kitty)$,title:^(kitty)$
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
|
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
|
"$mainMod" = "SUPER";
|
||||||
|
|
||||||
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
|
bind = let
|
||||||
|
rofi = "${pkgs.rofi-wayland}/bin/rofi";
|
||||||
|
konsole = "${pkgs.konsole}/bin/konsole";
|
||||||
|
thunar = "${pkgs.xfce.thunar}/bin/thunar";
|
||||||
|
wl-copy = "${pkgs.wl-clipboard}/bin/wl-copy";
|
||||||
|
wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste";
|
||||||
|
grim = "${pkgs.grim}/bin/grim";
|
||||||
|
slurp = "${pkgs.slurp}/bin/slurp";
|
||||||
|
swww = "${pkgs.swww}/bin/swww";
|
||||||
|
pdfgrep = "${pkgs.pdfgrep}/bin/pdfgrep";
|
||||||
|
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
||||||
|
swaylock = "${pkgs.swaylock}/bin/swaylock";
|
||||||
|
in [
|
||||||
|
"$mainMod, Q, exec, ${konsole}"
|
||||||
|
"$mainMod, C, killactive"
|
||||||
|
"$mainMod, L, exec, ${swaylock} -f -c 000000"
|
||||||
|
"$mainMod, M, exit,"
|
||||||
|
"$mainMod, E, exec, ${thunar}"
|
||||||
|
"$mainMod, V, togglefloating"
|
||||||
|
"$mainMod, I, exec, ${rofi} -show drun -show-icons"
|
||||||
|
"$mainMod, S, exec, cat ~/songs | shuf -n 1 | sed \"s/^/b\.p /g\" | ${wl-copy}"
|
||||||
|
"$mainMod, R, exec, ${swww} img $(ls -d ~/Nextcloud/dinge/Bg/* | shuf -n 1)"
|
||||||
|
" , Print, exec, ${grim} -g \"$(${slurp} -d)\" - | ${wl-copy}"
|
||||||
|
"ALT, SPACE, exec, ${rofi} -show combi"
|
||||||
|
" , XF86MonBrightnessUp, exec, ${brightnessctl} s +5%"
|
||||||
|
" , XF86MonBrightnessDown, exec, ${brightnessctl} s 5%-"
|
||||||
|
"$mainMod, P, pseudo" # dwindle
|
||||||
|
"$mainMod, J, togglesplit" # dwindle
|
||||||
|
# Move focus with mainMod + arrow keys
|
||||||
|
"$mainMod, left, movefocus, l"
|
||||||
|
"$mainMod, right, movefocus, r"
|
||||||
|
"$mainMod, up, movefocus, u"
|
||||||
|
"$mainMod, down, movefocus, d"
|
||||||
|
|
||||||
|
# Switch workspaces with mainMod + [0-9]
|
||||||
|
"$mainMod, 1, workspace, 1"
|
||||||
|
"$mainMod, 2, workspace, 2"
|
||||||
|
"$mainMod, 3, workspace, 3"
|
||||||
|
"$mainMod, 4, workspace, 4"
|
||||||
|
"$mainMod, 5, workspace, 5"
|
||||||
|
"$mainMod, 6, workspace, 6"
|
||||||
|
"$mainMod, 7, workspace, 7"
|
||||||
|
"$mainMod, 8, workspace, 8"
|
||||||
|
"$mainMod, 9, workspace, 9"
|
||||||
|
"$mainMod, 0, workspace, 10"
|
||||||
|
|
||||||
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
|
"$mainMod SHIFT, 1, movetoworkspace, 1"
|
||||||
|
"$mainMod SHIFT, 2, movetoworkspace, 2"
|
||||||
|
"$mainMod SHIFT, 3, movetoworkspace, 3"
|
||||||
|
"$mainMod SHIFT, 4, movetoworkspace, 4"
|
||||||
|
"$mainMod SHIFT, 5, movetoworkspace, 5"
|
||||||
|
"$mainMod SHIFT, 6, movetoworkspace, 6"
|
||||||
|
"$mainMod SHIFT, 7, movetoworkspace, 7"
|
||||||
|
"$mainMod SHIFT, 8, movetoworkspace, 8"
|
||||||
|
"$mainMod SHIFT, 9, movetoworkspace, 9"
|
||||||
|
"$mainMod SHIFT, 0, movetoworkspace, 10"
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
"$mainMod, mouse_down, workspace, e+1"
|
||||||
|
"$mainMod, mouse_up, workspace, e-1"
|
||||||
|
|
||||||
|
"ALT, Tab, cyclenext,"
|
||||||
|
"ALT, Tab, bringactivetotop,"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindm = [
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
"$mainMod, mouse:272, movewindow"
|
||||||
|
"$mainMod, mouse:273, resizewindow"
|
||||||
|
];
|
||||||
|
|
||||||
|
windowrulev2 = [
|
||||||
|
# -- Fix odd behaviors in IntelliJ IDEs --
|
||||||
|
#! Fix focus issues when dialogs are opened or closed
|
||||||
|
"windowdance,class:^(jetbrains-.*)$,floating:1"
|
||||||
|
#! Fix splash screen showing in weird places and prevent annoying focus takeovers
|
||||||
|
"center,class:^(jetbrains-.*)$,title:^(splash)$,floating:1"
|
||||||
|
"nofocus,class:^(jetbrains-.*)$,title:^(splash)$,floating:1"
|
||||||
|
"noborder,class:^(jetbrains-.*)$,title:^(splash)$,floating:1"
|
||||||
|
|
||||||
|
#! Center popups/find windows
|
||||||
|
"center,class:^(jetbrains-.*)$,title:^( )$,floating:1"
|
||||||
|
"stayfocused,class:^(jetbrains-.*)$,title:^( )$,floating:1"
|
||||||
|
"noborder,class:^(jetbrains-.*)$,title:^( )$,floating:1"
|
||||||
|
#! Disable window flicker when autocomplete or tooltips appear
|
||||||
|
"nofocus,class:^(jetbrains-.*)$,title:^(win.*)$,floating:1"
|
||||||
|
#"immediate, class:^(Risk.*)$"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
exec-once = [
|
||||||
|
"${pkgs.swww}/bin/swww init; sleep 1;"
|
||||||
|
"${pkgs.swww} img $(ls -d ~/Nextcloud/dinge/Bg/* | shuf -n 1)"
|
||||||
|
"${pkgs.networkmanagerapplet}/bin/nm-applet --indicator &"
|
||||||
|
"${pkgs.waybar}/bin/waybar &"
|
||||||
|
#"${pkgs.dunst}/bin/dunst &"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
extraConfig = let
|
||||||
|
wl-copy = "${pkgs.wl-clipboard}/bin/wl-copy";
|
||||||
|
wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste";
|
||||||
|
dunstify = "${pkgs.dunst}/bin/dunstify";
|
||||||
|
dunstctl = "${pkgs.dunst}/bin/dunstctl";
|
||||||
|
in ''
|
||||||
|
bind = $mainMod, A, submap, notes
|
||||||
|
|
||||||
|
submap = notes
|
||||||
|
# below
|
||||||
|
bind = $mainMod, B, exec, ${wl-paste} | grep -B 15 -i -f - ~/Nextcloud/test.txt | sed 's/[ \t]*$//' | ${wl-copy}
|
||||||
|
# above
|
||||||
|
bind = $mainMod, A, exec, ${wl-paste} | grep -A 15 -i -f - ~/Nextcloud/test.txt | sed 's/[ \t]*$//' | ${wl-copy}
|
||||||
|
# context
|
||||||
|
bind = $mainMod, C, exec, ${wl-paste} | grep -C 15 -i -f - ~/Nextcloud/test.txt | sed 's/[ \t]*$//' | ${wl-copy}
|
||||||
|
# trim
|
||||||
|
bind = $mainMod, T, exec, ${wl-paste} | sed 's/[ \t]*$//' | sed 's/^[ \t]*//' | ${wl-copy}
|
||||||
|
bind = $mainMod, N, exec, ${dunstify} "$(${wl-paste})"
|
||||||
|
bind = $mainMod, D, exec, ${dunstctl} close-all
|
||||||
|
# notes
|
||||||
|
bind = $mainMod, 1, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
||||||
|
bind = $mainMod, 2, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
||||||
|
bind = $mainMod, 3, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
||||||
|
bind = $mainMod, 4, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
||||||
|
bind = $mainMod, 5, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
||||||
|
bind = $mainMod, 6, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
||||||
|
bind = $mainMod, 7, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
||||||
|
bind = $mainMod, 8, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
||||||
|
bind = $mainMod, 0, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
||||||
|
|
||||||
|
bind = , escape, submap, reset
|
||||||
|
submap = reset
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
services.dunst = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
global = {
|
||||||
|
width = "(0,1000)";
|
||||||
|
height = "1000";
|
||||||
|
offset = "0x0";
|
||||||
|
origin = "bottom-center";
|
||||||
|
transparency = -1;
|
||||||
|
frame_color = "#1a1c1b";
|
||||||
|
font = "Monospace 8";
|
||||||
|
};
|
||||||
|
|
||||||
|
urgency_normal = {
|
||||||
|
background = "#1a1c1b";
|
||||||
|
foreground = "#eceff1";
|
||||||
|
timeout = 10;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
programs.waybar = {
|
||||||
|
enable = true;
|
||||||
|
#systemd.enable = true;
|
||||||
|
#systemd.target = "sway-session.target";
|
||||||
|
settings.main = {
|
||||||
|
layer = "top";
|
||||||
|
position = "top";
|
||||||
|
#output = lib.mapAttrsToList (n: v: v.monitor) outputs;
|
||||||
|
height = 25;
|
||||||
|
spacing = 4;
|
||||||
|
modules-left = [
|
||||||
|
"hyprland/workspaces"
|
||||||
|
];
|
||||||
|
modules-center = [];
|
||||||
|
modules-right = [
|
||||||
|
"network"
|
||||||
|
"cpu"
|
||||||
|
"memory"
|
||||||
|
"temperature"
|
||||||
|
"backlight"
|
||||||
|
"pulseaudio"
|
||||||
|
"battery"
|
||||||
|
"clock"
|
||||||
|
"tray"
|
||||||
|
];
|
||||||
|
"network".format-wifi = "{essid} ({signalStrength}%) ";
|
||||||
|
"network".format-ethernet = "{ifname}: {ipaddr}/{cidr} ";
|
||||||
|
"network".format-disconnected = "Disconnected ⚠";
|
||||||
|
"network".interval = 7;
|
||||||
|
"cpu".format = "CPU: {usage}% ";
|
||||||
|
"memory".format = "MEM: {}% ";
|
||||||
|
"temperature".critical-threshold = 80;
|
||||||
|
"temperature".format = "{temperatureC}°C ";
|
||||||
|
"backlight".format = "{percent}% {icon}";
|
||||||
|
"backlight".states = [0 50];
|
||||||
|
"backlight".format-icons = ["" ""];
|
||||||
|
"pulseaudio".format = "{volume}% {icon}";
|
||||||
|
"pulseaudio".format-bluetooth = ": {volume}% {icon}";
|
||||||
|
"pulseaudio".format-muted = "";
|
||||||
|
"pulseaudio".format-icons.headphones = "";
|
||||||
|
"pulseaudio".format-icons.handsfree = "";
|
||||||
|
"pulseaudio".format-icons.headset = "";
|
||||||
|
"pulseaudio".format-icons.phone = "";
|
||||||
|
"pulseaudio".format-icons.portable = "";
|
||||||
|
"pulseaudio".format-icons.car = "";
|
||||||
|
"pulseaudio".format-icons.default = ["" ""];
|
||||||
|
"pulseaudio".on-click = "${pkgs.pavucontrol}/bin/pavucontrol";
|
||||||
|
"battery".states.good = 95;
|
||||||
|
"battery".states.warning = 30;
|
||||||
|
"battery".states.critical = 15;
|
||||||
|
"battery".format = "{capacity}% / {power:.2}W {icon}";
|
||||||
|
"battery".format-icons = ["" "" "" "" ""];
|
||||||
|
"clock".format = "{:%F %H:%M}";
|
||||||
|
"tray".icon-size = 21;
|
||||||
|
"tray".spacing = 10;
|
||||||
|
"hyprland/workspaces" = {
|
||||||
|
"disable-scroll" = true;
|
||||||
|
"all-outputs" = true;
|
||||||
|
"active-only" = false;
|
||||||
|
"on-click" = "activate";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
style = ''
|
||||||
|
* {
|
||||||
|
font-family: FiraCode , Noto Sans,FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock,
|
||||||
|
#battery,
|
||||||
|
#cpu,
|
||||||
|
#memory,
|
||||||
|
#disk,
|
||||||
|
#temperature,
|
||||||
|
#backlight,
|
||||||
|
#network,
|
||||||
|
#pulseaudio,
|
||||||
|
#custom-media,
|
||||||
|
#tray,
|
||||||
|
#mode,
|
||||||
|
#idle_inhibitor,
|
||||||
|
#custom-expand,
|
||||||
|
#custom-cycle_wall,
|
||||||
|
#custom-ss,
|
||||||
|
#custom-dynamic_pill,
|
||||||
|
#mpd {
|
||||||
|
padding: 0 10px;
|
||||||
|
border-radius: 15px;
|
||||||
|
background: #11111b;
|
||||||
|
color: #b4befe;
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.116) 2 2 5 2px;
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-dynamic_pill label {
|
||||||
|
color: #11111b;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-dynamic_pill.paused label {
|
||||||
|
color: #89b4fa ;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button label{
|
||||||
|
color: #89b4fa ;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active label{
|
||||||
|
color: #11111b;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces{
|
||||||
|
background-color: transparent;
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
margin-right: 10px;
|
||||||
|
margin-left: 25px;
|
||||||
|
}
|
||||||
|
#workspaces button{
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.116) 2 2 5 2px;
|
||||||
|
background-color: #11111b ;
|
||||||
|
border-radius: 15px;
|
||||||
|
margin-right: 10px;
|
||||||
|
padding: 10px;
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
font-weight: bolder;
|
||||||
|
color: #89b4fa ;
|
||||||
|
transition: all 0.5s cubic-bezier(.55,-0.68,.48,1.68);
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active{
|
||||||
|
padding-right: 20px;
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.288) 2 2 5 2px;
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-bottom: 3px;
|
||||||
|
background: rgb(203,166,247);
|
||||||
|
background: radial-gradient(circle, rgba(203,166,247,1) 0%, rgba(193,168,247,1) 12%, rgba(249,226,175,1) 19%, rgba(189,169,247,1) 20%, rgba(182,171,247,1) 24%, rgba(198,255,194,1) 36%, rgba(177,172,247,1) 37%, rgba(170,173,248,1) 48%, rgba(255,255,255,1) 52%, rgba(166,174,248,1) 52%, rgba(160,175,248,1) 59%, rgba(148,226,213,1) 66%, rgba(155,176,248,1) 67%, rgba(152,177,248,1) 68%, rgba(205,214,244,1) 77%, rgba(148,178,249,1) 78%, rgba(144,179,250,1) 82%, rgba(180,190,254,1) 83%, rgba(141,179,250,1) 90%, rgba(137,180,250,1) 100%);
|
||||||
|
background-size: 400% 400%;
|
||||||
|
animation: gradient_f 20s ease-in-out infinite;
|
||||||
|
transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes gradient {
|
||||||
|
0% {
|
||||||
|
background-position: 0% 50%;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
background-position: 100% 30%;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
background-position: 0% 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes gradient_f {
|
||||||
|
0% {
|
||||||
|
background-position: 0% 200%;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
background-position: 200% 0%;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
background-position: 400% 200%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes gradient_f_nh {
|
||||||
|
0% {
|
||||||
|
background-position: 0% 200%;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
background-position: 200% 200%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#custom-dynamic_pill.low{
|
||||||
|
background: rgb(148,226,213);
|
||||||
|
background: linear-gradient(52deg, rgba(148,226,213,1) 0%, rgba(137,220,235,1) 19%, rgba(116,199,236,1) 43%, rgba(137,180,250,1) 56%, rgba(180,190,254,1) 80%, rgba(186,187,241,1) 100%);
|
||||||
|
background-size: 300% 300%;
|
||||||
|
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
||||||
|
animation: gradient 15s ease infinite;
|
||||||
|
font-weight: bolder;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
#custom-dynamic_pill.normal{
|
||||||
|
background: rgb(148,226,213);
|
||||||
|
background: radial-gradient(circle, rgba(148,226,213,1) 0%, rgba(156,227,191,1) 21%, rgba(249,226,175,1) 34%, rgba(158,227,186,1) 35%, rgba(163,227,169,1) 59%, rgba(148,226,213,1) 74%, rgba(164,227,167,1) 74%, rgba(166,227,161,1) 100%);
|
||||||
|
background-size: 400% 400%;
|
||||||
|
animation: gradient_f 4s ease infinite;
|
||||||
|
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
||||||
|
font-weight: bolder;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
#custom-dynamic_pill.critical{
|
||||||
|
background: rgb(235,160,172);
|
||||||
|
background: linear-gradient(52deg, rgba(235,160,172,1) 0%, rgba(243,139,168,1) 30%, rgba(231,130,132,1) 48%, rgba(250,179,135,1) 77%, rgba(249,226,175,1) 100%);
|
||||||
|
background-size: 300% 300%;
|
||||||
|
animation: gradient 15s cubic-bezier(.55,-0.68,.48,1.68) infinite;
|
||||||
|
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
||||||
|
font-weight: bolder;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-dynamic_pill.playing{
|
||||||
|
background: rgb(137,180,250);
|
||||||
|
background: radial-gradient(circle, rgba(137,180,250,120) 0%, rgba(142,179,250,120) 6%, rgba(148,226,213,1) 14%, rgba(147,178,250,1) 14%, rgba(155,176,249,1) 18%, rgba(245,194,231,1) 28%, rgba(158,175,249,1) 28%, rgba(181,170,248,1) 58%, rgba(205,214,244,1) 69%, rgba(186,169,248,1) 69%, rgba(195,167,247,1) 72%, rgba(137,220,235,1) 73%, rgba(198,167,247,1) 78%, rgba(203,166,247,1) 100%);
|
||||||
|
background-size: 400% 400%;
|
||||||
|
animation: gradient_f 9s cubic-bezier(.72,.39,.21,1) infinite;
|
||||||
|
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
||||||
|
font-weight: bold;
|
||||||
|
color: #fff ;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-dynamic_pill.paused{
|
||||||
|
background: #11111b ;
|
||||||
|
font-weight: bolder;
|
||||||
|
color: #b4befe;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-ss{
|
||||||
|
background: #11111b;
|
||||||
|
color: #89b4fa;
|
||||||
|
font-weight: bolder;
|
||||||
|
padding: 5px;
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
|
border-radius: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#custom-cycle_wall{
|
||||||
|
background: rgb(245,194,231);
|
||||||
|
background: linear-gradient(45deg, rgba(245,194,231,1) 0%, rgba(203,166,247,1) 0%, rgba(243,139,168,1) 13%, rgba(235,160,172,1) 26%, rgba(250,179,135,1) 34%, rgba(249,226,175,1) 49%, rgba(166,227,161,1) 65%, rgba(148,226,213,1) 77%, rgba(137,220,235,1) 82%, rgba(116,199,236,1) 88%, rgba(137,180,250,1) 95%);
|
||||||
|
color: #fff;
|
||||||
|
background-size: 500% 500%;
|
||||||
|
animation: gradient 7s linear infinite;
|
||||||
|
font-weight: bolder;
|
||||||
|
border-radius: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock label{
|
||||||
|
color: #11111b;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
#clock {
|
||||||
|
background: rgb(205,214,244);
|
||||||
|
background: linear-gradient(118deg, rgba(205,214,244,1) 5%, rgba(243,139,168,1) 5%, rgba(243,139,168,1) 20%, rgba(205,214,244,1) 20%, rgba(205,214,244,1) 40%, rgba(243,139,168,1) 40%, rgba(243,139,168,1) 60%, rgba(205,214,244,1) 60%, rgba(205,214,244,1) 80%, rgba(243,139,168,1) 80%, rgba(243,139,168,1) 95%, rgba(205,214,244,1) 95%);
|
||||||
|
|
||||||
|
background-size: 200% 300%;
|
||||||
|
|
||||||
|
animation: gradient_f_nh 4s linear infinite;
|
||||||
|
margin-right: 25px;
|
||||||
|
color: #fff ;
|
||||||
|
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
||||||
|
|
||||||
|
font-size: 15px;
|
||||||
|
padding-top: 5px;
|
||||||
|
padding-right: 21px;
|
||||||
|
font-weight: bolder;
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#battery.charging, #battery.plugged {
|
||||||
|
background-color: #94e2d5 ;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
background-color: #11111b;
|
||||||
|
color:#a6e3a1;
|
||||||
|
font-weight: bolder;
|
||||||
|
font-size: 20px;
|
||||||
|
padding-left: 15px;
|
||||||
|
padding-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink {
|
||||||
|
to {
|
||||||
|
background-color: #f9e2af;
|
||||||
|
color:#96804e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#battery.critical:not(.charging) {
|
||||||
|
background-color: #f38ba8;
|
||||||
|
color:#bf5673;
|
||||||
|
animation-name: blink;
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-direction: alternate;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu label{
|
||||||
|
color:#89dceb;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu {
|
||||||
|
background: rgb(30,30,46);
|
||||||
|
background: radial-gradient(circle, rgba(30,30,46,1) 30%, rgba(17,17,27,1) 100%);
|
||||||
|
color: #89b4fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
#memory {
|
||||||
|
background-color: #5f2966;
|
||||||
|
color: #9a75c7;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
#disk {
|
||||||
|
color: #964B00;
|
||||||
|
}
|
||||||
|
|
||||||
|
#backlight {
|
||||||
|
color: #90b1b1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network{
|
||||||
|
color:#000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.disabled{
|
||||||
|
background-color: #45475a;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.disconnected{
|
||||||
|
background: rgb(243,139,168);
|
||||||
|
background: linear-gradient(45deg, rgba(243,139,168,1) 0%, rgba(250,179,135,1) 100%);
|
||||||
|
color: #fff;
|
||||||
|
font-weight: bolder;
|
||||||
|
padding-top: 3px;
|
||||||
|
padding-right: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.linked, #network.wifi{
|
||||||
|
background-color: #a6e3a1 ;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.ethernet{
|
||||||
|
background-color:#f9e2af ;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio {
|
||||||
|
background-color: #f57f17;
|
||||||
|
color: white;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio.muted {
|
||||||
|
background-color: #90b1b1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-media {
|
||||||
|
color: #66cc99;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-media.custom-spotify {
|
||||||
|
background-color: #66cc99;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-media.custom-vlc {
|
||||||
|
background-color: #ffa000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature {
|
||||||
|
background-color: #f9e2af;
|
||||||
|
color:#96804e;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature.critical {
|
||||||
|
background-color: #f38ba8 ;
|
||||||
|
color:#bf5673;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray {
|
||||||
|
background-color: #2980b9;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray > .passive {
|
||||||
|
-gtk-icon-effect: dim;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray > .needs-attention {
|
||||||
|
-gtk-icon-effect: highlight;
|
||||||
|
background-color: #eb4d4b;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
18
home-manager/lf.nix
Normal file
18
home-manager/lf.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ user, pkgs, ... }:
|
||||||
|
{
|
||||||
|
home-manager.users.${user} = {
|
||||||
|
programs.lf = {
|
||||||
|
enable = true;
|
||||||
|
previewer.source = pkgs.writeShellScript "pv.sh" ''
|
||||||
|
#!/bin/sh
|
||||||
|
case "$(${pkgs.file}/bin/file -Lb --mime-type -- "$1")" in
|
||||||
|
#image/*|video/*) ${pkgs.chafa}/bin/chafa -f sixel -s "$2x$3" --animate false $1;;
|
||||||
|
application/x-tar) tar tf "$1";;
|
||||||
|
application/vnd.rar) ${pkgs.p7zip}/bin/7z l "$1";;
|
||||||
|
application/x-7z-compressed) ${pkgs.p7zip}/bin/7z l "$1";;
|
||||||
|
*) ${pkgs.ctpv}/bin/ctpv "$1";;
|
||||||
|
esac
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
{ user, pkgs, ... }:
|
{ user, pkgs, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.${user} = { pkgs, ...}: {
|
home-manager.users.${user} = {
|
||||||
home.file.".config/nvim" = {
|
home.file.".config/nvim" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
source = ../../../.config/nvim;
|
source = ../.config/nvim;
|
||||||
target = ".config/nvim";
|
target = ".config/nvim";
|
||||||
};
|
};
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
19
home-manager/zsh.nix
Normal file
19
home-manager/zsh.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{ user, pkgs, ... }:
|
||||||
|
{
|
||||||
|
home-manager.users.${user} = {
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
enableAutosuggestions = true;
|
||||||
|
shellAliases = {
|
||||||
|
ll = "ls -l";
|
||||||
|
update = "sudo nixos-rebuild switch";
|
||||||
|
};
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [ "git" ];
|
||||||
|
theme = "eastwood";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, lib, inputs, vars, ... }:
|
{ config, pkgs, lib, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
patchedWaybar = pkgs.waybar.overrideAttrs (oldAttrs: {
|
patchedWaybar = pkgs.waybar.overrideAttrs (oldAttrs: {
|
||||||
@@ -10,10 +10,13 @@ let
|
|||||||
#});
|
#});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
(import ../../home-manager/hyprland-settings.nix ({ user="${config.mainUser.name}"; pkgs = pkgs; layout = config.mainUser.layout; variant = config.mainUser.variant; }))
|
||||||
|
];
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
layout = vars.layout;
|
layout = config.mainUser.layout;
|
||||||
xkbVariant = vars.variant;
|
xkbVariant = config.mainUser.variant;
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager = lib.mkIf (!config.services.xserver.displayManager.gdm.enable) {
|
displayManager = lib.mkIf (!config.services.xserver.displayManager.gdm.enable) {
|
||||||
sddm.enable = true;
|
sddm.enable = true;
|
||||||
@@ -55,700 +58,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.kopatz = {
|
|
||||||
#systemd.user.services.waybar.Service.ExecStart = lib.mkForce "${pkgs.waybar}/bin/waybar -b 0";
|
|
||||||
|
|
||||||
programs.swaylock.enable = true;
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
enableNvidiaPatches = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
package = pkgs.unstable.hyprland;
|
|
||||||
settings = {
|
|
||||||
#
|
|
||||||
# Please note not all available settings / options are set here.
|
|
||||||
# For a full list, see the wiki
|
|
||||||
#
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
|
||||||
monitor = [
|
|
||||||
# PC
|
|
||||||
"HDMI-A-1,1920x1080@60,0x0,1"
|
|
||||||
"DP-1,2560x1440@144,1920x0,1"
|
|
||||||
# laptop
|
|
||||||
"eDP-1,3840x2160@60,0x0,2"
|
|
||||||
"DP-3,1920x1080@60,1920x0,1"
|
|
||||||
# Default
|
|
||||||
",preferred,auto,auto"
|
|
||||||
];
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
||||||
|
|
||||||
# Execute your favorite apps at launch
|
|
||||||
# exec-once = waybar & hyprpaper & firefox
|
|
||||||
|
|
||||||
# Source a file (multi-file configs)
|
|
||||||
# source = ~/.config/hypr/myColors.conf
|
|
||||||
|
|
||||||
# Some default env vars.
|
|
||||||
env = "XCURSOR_SIZE,24";
|
|
||||||
|
|
||||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
|
||||||
input = {
|
|
||||||
kb_layout = vars.layout;
|
|
||||||
kb_variant = vars.variant;
|
|
||||||
kb_model = "";
|
|
||||||
kb_options = "";
|
|
||||||
kb_rules = "";
|
|
||||||
|
|
||||||
follow_mouse = 1;
|
|
||||||
|
|
||||||
touchpad = {
|
|
||||||
natural_scroll = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
|
||||||
};
|
|
||||||
|
|
||||||
general = {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables
|
|
||||||
|
|
||||||
gaps_in = 5;
|
|
||||||
gaps_out = 5;
|
|
||||||
border_size = 2;
|
|
||||||
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
|
||||||
"col.inactive_border" = "rgba(595959aa)";
|
|
||||||
|
|
||||||
layout = "dwindle";
|
|
||||||
#allow_tearing = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
decoration = {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
||||||
|
|
||||||
rounding = 10;
|
|
||||||
#blur = yes
|
|
||||||
#blur_size = 3
|
|
||||||
#blur_passes = 1
|
|
||||||
#blur_new_optimizations = on
|
|
||||||
|
|
||||||
drop_shadow = true;
|
|
||||||
shadow_range = 4;
|
|
||||||
shadow_render_power = 3;
|
|
||||||
"col.shadow" = "rgba(1a1a1aee)";
|
|
||||||
};
|
|
||||||
|
|
||||||
animations = {
|
|
||||||
enabled = true;
|
|
||||||
|
|
||||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
|
||||||
|
|
||||||
#bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
|
||||||
|
|
||||||
#animation = windows, 1, 7, myBezier
|
|
||||||
#animation = windowsOut, 1, 7, default, popin 80%
|
|
||||||
#animation = border, 1, 10, default
|
|
||||||
#animation = borderangle, 1, 8, default
|
|
||||||
#animation = fade, 1, 7, default
|
|
||||||
animation = [
|
|
||||||
"workspaces, 0"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
dwindle = {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
||||||
pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = true; # you probably want this
|
|
||||||
};
|
|
||||||
|
|
||||||
master = {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
||||||
new_is_master = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
gestures = {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
||||||
workspace_swipe = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Example per-device config
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
|
||||||
#"device:epic-mouse-v1" = {
|
|
||||||
# sensitivity = -0.5;
|
|
||||||
#};
|
|
||||||
|
|
||||||
# Example windowrule v1
|
|
||||||
# windowrule = float, ^(kitty)$
|
|
||||||
# Example windowrule v2
|
|
||||||
# float,class:^(kitty)$,title:^(kitty)$
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
||||||
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
||||||
"$mainMod" = "SUPER";
|
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
||||||
bind = let
|
|
||||||
rofi = "${pkgs.rofi-wayland}/bin/rofi";
|
|
||||||
konsole = "${pkgs.konsole}/bin/konsole";
|
|
||||||
thunar = "${pkgs.xfce.thunar}/bin/thunar";
|
|
||||||
wl-copy = "${pkgs.wl-clipboard}/bin/wl-copy";
|
|
||||||
wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste";
|
|
||||||
grim = "${pkgs.grim}/bin/grim";
|
|
||||||
slurp = "${pkgs.slurp}/bin/slurp";
|
|
||||||
swww = "${pkgs.swww}/bin/swww";
|
|
||||||
pdfgrep = "${pkgs.pdfgrep}/bin/pdfgrep";
|
|
||||||
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
|
||||||
swaylock = "${pkgs.swaylock}/bin/swaylock";
|
|
||||||
in [
|
|
||||||
"$mainMod, Q, exec, ${konsole}"
|
|
||||||
"$mainMod, C, killactive"
|
|
||||||
"$mainMod, L, exec, ${swaylock} -f -c 000000"
|
|
||||||
"$mainMod, M, exit,"
|
|
||||||
"$mainMod, E, exec, ${thunar}"
|
|
||||||
"$mainMod, V, togglefloating"
|
|
||||||
"$mainMod, I, exec, ${rofi} -show drun -show-icons"
|
|
||||||
"$mainMod, S, exec, cat ~/songs | shuf -n 0 | sed \"s/^/b\.p /g\" | ${wl-copy}"
|
|
||||||
"$mainMod, R, exec, ${swww} img $(ls -d ~/Nextcloud/dinge/Bg/* | shuf -n 1)"
|
|
||||||
" , Print, exec, ${grim} -g \"$(${slurp} -d)\" - | ${wl-copy}"
|
|
||||||
"ALT, SPACE, exec, ${rofi} -show combi"
|
|
||||||
" , XF86MonBrightnessUp, exec, ${brightnessctl} s +5%"
|
|
||||||
" , XF86MonBrightnessDown, exec, ${brightnessctl} s 5%-"
|
|
||||||
"$mainMod, P, pseudo" # dwindle
|
|
||||||
"$mainMod, J, togglesplit" # dwindle
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
"$mainMod, left, movefocus, l"
|
|
||||||
"$mainMod, right, movefocus, r"
|
|
||||||
"$mainMod, up, movefocus, u"
|
|
||||||
"$mainMod, down, movefocus, d"
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
"$mainMod, 1, workspace, 1"
|
|
||||||
"$mainMod, 2, workspace, 2"
|
|
||||||
"$mainMod, 3, workspace, 3"
|
|
||||||
"$mainMod, 4, workspace, 4"
|
|
||||||
"$mainMod, 5, workspace, 5"
|
|
||||||
"$mainMod, 6, workspace, 6"
|
|
||||||
"$mainMod, 7, workspace, 7"
|
|
||||||
"$mainMod, 8, workspace, 8"
|
|
||||||
"$mainMod, 9, workspace, 9"
|
|
||||||
"$mainMod, 0, workspace, 10"
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
"$mainMod SHIFT, 1, movetoworkspace, 1"
|
|
||||||
"$mainMod SHIFT, 2, movetoworkspace, 2"
|
|
||||||
"$mainMod SHIFT, 3, movetoworkspace, 3"
|
|
||||||
"$mainMod SHIFT, 4, movetoworkspace, 4"
|
|
||||||
"$mainMod SHIFT, 5, movetoworkspace, 5"
|
|
||||||
"$mainMod SHIFT, 6, movetoworkspace, 6"
|
|
||||||
"$mainMod SHIFT, 7, movetoworkspace, 7"
|
|
||||||
"$mainMod SHIFT, 8, movetoworkspace, 8"
|
|
||||||
"$mainMod SHIFT, 9, movetoworkspace, 9"
|
|
||||||
"$mainMod SHIFT, 0, movetoworkspace, 10"
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
"$mainMod, mouse_down, workspace, e+1"
|
|
||||||
"$mainMod, mouse_up, workspace, e-1"
|
|
||||||
|
|
||||||
"ALT, Tab, cyclenext,"
|
|
||||||
"ALT, Tab, bringactivetotop,"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindm = [
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
"$mainMod, mouse:272, movewindow"
|
|
||||||
"$mainMod, mouse:273, resizewindow"
|
|
||||||
];
|
|
||||||
|
|
||||||
windowrulev2 = [
|
|
||||||
# -- Fix odd behaviors in IntelliJ IDEs --
|
|
||||||
#! Fix focus issues when dialogs are opened or closed
|
|
||||||
"windowdance,class:^(jetbrains-.*)$,floating:1"
|
|
||||||
#! Fix splash screen showing in weird places and prevent annoying focus takeovers
|
|
||||||
"center,class:^(jetbrains-.*)$,title:^(splash)$,floating:1"
|
|
||||||
"nofocus,class:^(jetbrains-.*)$,title:^(splash)$,floating:1"
|
|
||||||
"noborder,class:^(jetbrains-.*)$,title:^(splash)$,floating:1"
|
|
||||||
|
|
||||||
#! Center popups/find windows
|
|
||||||
"center,class:^(jetbrains-.*)$,title:^( )$,floating:1"
|
|
||||||
"stayfocused,class:^(jetbrains-.*)$,title:^( )$,floating:1"
|
|
||||||
"noborder,class:^(jetbrains-.*)$,title:^( )$,floating:1"
|
|
||||||
#! Disable window flicker when autocomplete or tooltips appear
|
|
||||||
"nofocus,class:^(jetbrains-.*)$,title:^(win.*)$,floating:1"
|
|
||||||
#"immediate, class:^(Risk.*)$"
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
exec-once = [
|
|
||||||
"${pkgs.swww}/bin/swww init; sleep 2;"
|
|
||||||
"${pkgs.swww} img $(ls -d ~/Nextcloud/dinge/Bg/* | shuf -n 1)"
|
|
||||||
"${pkgs.networkmanagerapplet}/bin/nm-applet --indicator &"
|
|
||||||
"${pkgs.waybar}/bin/waybar &"
|
|
||||||
"${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1 &"
|
|
||||||
#"${pkgs.dunst}/bin/dunst &"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
extraConfig = let
|
|
||||||
wl-copy = "${pkgs.wl-clipboard}/bin/wl-copy";
|
|
||||||
wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste";
|
|
||||||
dunstify = "${pkgs.dunst}/bin/dunstify";
|
|
||||||
dunstctl = "${pkgs.dunst}/bin/dunstctl";
|
|
||||||
in ''
|
|
||||||
bind = $mainMod, A, submap, notes
|
|
||||||
|
|
||||||
submap = notes
|
|
||||||
# below
|
|
||||||
bind = $mainMod, B, exec, ${wl-paste} | grep -B 15 -i -f - ~/Nextcloud/test.txt | sed 's/[ \t]*$//' | ${wl-copy}
|
|
||||||
# above
|
|
||||||
bind = $mainMod, A, exec, ${wl-paste} | grep -A 15 -i -f - ~/Nextcloud/test.txt | sed 's/[ \t]*$//' | ${wl-copy}
|
|
||||||
# context
|
|
||||||
bind = $mainMod, C, exec, ${wl-paste} | grep -C 15 -i -f - ~/Nextcloud/test.txt | sed 's/[ \t]*$//' | ${wl-copy}
|
|
||||||
# trim
|
|
||||||
bind = $mainMod, T, exec, ${wl-paste} | sed 's/[ \t]*$//' | sed 's/^[ \t]*//' | ${wl-copy}
|
|
||||||
bind = $mainMod, N, exec, ${dunstify} "$(${wl-paste})"
|
|
||||||
bind = $mainMod, D, exec, ${dunstctl} close-all
|
|
||||||
# notes
|
|
||||||
bind = $mainMod, 1, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
|
||||||
bind = $mainMod, 2, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
|
||||||
bind = $mainMod, 3, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
|
||||||
bind = $mainMod, 4, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
|
||||||
bind = $mainMod, 5, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
|
||||||
bind = $mainMod, 6, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
|
||||||
bind = $mainMod, 7, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
|
||||||
bind = $mainMod, 8, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
|
||||||
bind = $mainMod, 0, exec, cat ~/Nextcloud/test.txt | ${wl-copy}
|
|
||||||
|
|
||||||
bind = , escape, submap, reset
|
|
||||||
submap = reset
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
services.dunst = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
global = {
|
|
||||||
width = "(0,1000)";
|
|
||||||
height = "1000";
|
|
||||||
offset = "0x0";
|
|
||||||
origin = "bottom-center";
|
|
||||||
transparency = -1;
|
|
||||||
frame_color = "#1a1c1b";
|
|
||||||
font = "Monospace 8";
|
|
||||||
};
|
|
||||||
|
|
||||||
urgency_normal = {
|
|
||||||
background = "#1a1c1b";
|
|
||||||
foreground = "#eceff1";
|
|
||||||
timeout = 10;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
programs.waybar = {
|
|
||||||
enable = true;
|
|
||||||
#systemd.enable = true;
|
|
||||||
#systemd.target = "sway-session.target";
|
|
||||||
settings.main = {
|
|
||||||
layer = "top";
|
|
||||||
position = "top";
|
|
||||||
#output = lib.mapAttrsToList (n: v: v.monitor) outputs;
|
|
||||||
height = 25;
|
|
||||||
spacing = 4;
|
|
||||||
modules-left = [
|
|
||||||
"hyprland/workspaces"
|
|
||||||
];
|
|
||||||
modules-center = [];
|
|
||||||
modules-right = [
|
|
||||||
"network"
|
|
||||||
"cpu"
|
|
||||||
"memory"
|
|
||||||
"temperature"
|
|
||||||
"backlight"
|
|
||||||
"pulseaudio"
|
|
||||||
"battery"
|
|
||||||
"clock"
|
|
||||||
"tray"
|
|
||||||
];
|
|
||||||
"network".format-wifi = "{essid} ({signalStrength}%) ";
|
|
||||||
"network".format-ethernet = "{ifname}: {ipaddr}/{cidr} ";
|
|
||||||
"network".format-disconnected = "Disconnected ⚠";
|
|
||||||
"network".interval = 7;
|
|
||||||
"cpu".format = "CPU: {usage}% ";
|
|
||||||
"memory".format = "MEM: {}% ";
|
|
||||||
"temperature".critical-threshold = 80;
|
|
||||||
"temperature".format = "{temperatureC}°C ";
|
|
||||||
"backlight".format = "{percent}% {icon}";
|
|
||||||
"backlight".states = [0 50];
|
|
||||||
"backlight".format-icons = ["" ""];
|
|
||||||
"pulseaudio".format = "{volume}% {icon}";
|
|
||||||
"pulseaudio".format-bluetooth = ": {volume}% {icon}";
|
|
||||||
"pulseaudio".format-muted = "";
|
|
||||||
"pulseaudio".format-icons.headphones = "";
|
|
||||||
"pulseaudio".format-icons.handsfree = "";
|
|
||||||
"pulseaudio".format-icons.headset = "";
|
|
||||||
"pulseaudio".format-icons.phone = "";
|
|
||||||
"pulseaudio".format-icons.portable = "";
|
|
||||||
"pulseaudio".format-icons.car = "";
|
|
||||||
"pulseaudio".format-icons.default = ["" ""];
|
|
||||||
"pulseaudio".on-click = "${pkgs.pavucontrol}/bin/pavucontrol";
|
|
||||||
"battery".states.good = 95;
|
|
||||||
"battery".states.warning = 30;
|
|
||||||
"battery".states.critical = 15;
|
|
||||||
"battery".format = "{capacity}% / {power:.2}W {icon}";
|
|
||||||
"battery".format-icons = ["" "" "" "" ""];
|
|
||||||
"clock".format = "{:%F %H:%M}";
|
|
||||||
"tray".icon-size = 21;
|
|
||||||
"tray".spacing = 10;
|
|
||||||
"hyprland/workspaces" = {
|
|
||||||
"disable-scroll" = true;
|
|
||||||
"all-outputs" = true;
|
|
||||||
"active-only" = false;
|
|
||||||
"on-click" = "activate";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
style = ''
|
|
||||||
* {
|
|
||||||
font-family: FiraCode , Noto Sans,FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock,
|
|
||||||
#battery,
|
|
||||||
#cpu,
|
|
||||||
#memory,
|
|
||||||
#disk,
|
|
||||||
#temperature,
|
|
||||||
#backlight,
|
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
|
||||||
#custom-media,
|
|
||||||
#tray,
|
|
||||||
#mode,
|
|
||||||
#idle_inhibitor,
|
|
||||||
#custom-expand,
|
|
||||||
#custom-cycle_wall,
|
|
||||||
#custom-ss,
|
|
||||||
#custom-dynamic_pill,
|
|
||||||
#mpd {
|
|
||||||
padding: 0 10px;
|
|
||||||
border-radius: 15px;
|
|
||||||
background: #11111b;
|
|
||||||
color: #b4befe;
|
|
||||||
box-shadow: rgba(0, 0, 0, 0.116) 2 2 5 2px;
|
|
||||||
margin-top: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-dynamic_pill label {
|
|
||||||
color: #11111b;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-dynamic_pill.paused label {
|
|
||||||
color: #89b4fa ;
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button label{
|
|
||||||
color: #89b4fa ;
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active label{
|
|
||||||
color: #11111b;
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces{
|
|
||||||
background-color: transparent;
|
|
||||||
margin-top: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
margin-right: 10px;
|
|
||||||
margin-left: 25px;
|
|
||||||
}
|
|
||||||
#workspaces button{
|
|
||||||
box-shadow: rgba(0, 0, 0, 0.116) 2 2 5 2px;
|
|
||||||
background-color: #11111b ;
|
|
||||||
border-radius: 15px;
|
|
||||||
margin-right: 10px;
|
|
||||||
padding: 10px;
|
|
||||||
padding-top: 4px;
|
|
||||||
padding-bottom: 2px;
|
|
||||||
font-weight: bolder;
|
|
||||||
color: #89b4fa ;
|
|
||||||
transition: all 0.5s cubic-bezier(.55,-0.68,.48,1.68);
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active{
|
|
||||||
padding-right: 20px;
|
|
||||||
box-shadow: rgba(0, 0, 0, 0.288) 2 2 5 2px;
|
|
||||||
padding-left: 20px;
|
|
||||||
padding-bottom: 3px;
|
|
||||||
background: rgb(203,166,247);
|
|
||||||
background: radial-gradient(circle, rgba(203,166,247,1) 0%, rgba(193,168,247,1) 12%, rgba(249,226,175,1) 19%, rgba(189,169,247,1) 20%, rgba(182,171,247,1) 24%, rgba(198,255,194,1) 36%, rgba(177,172,247,1) 37%, rgba(170,173,248,1) 48%, rgba(255,255,255,1) 52%, rgba(166,174,248,1) 52%, rgba(160,175,248,1) 59%, rgba(148,226,213,1) 66%, rgba(155,176,248,1) 67%, rgba(152,177,248,1) 68%, rgba(205,214,244,1) 77%, rgba(148,178,249,1) 78%, rgba(144,179,250,1) 82%, rgba(180,190,254,1) 83%, rgba(141,179,250,1) 90%, rgba(137,180,250,1) 100%);
|
|
||||||
background-size: 400% 400%;
|
|
||||||
animation: gradient_f 20s ease-in-out infinite;
|
|
||||||
transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682);
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes gradient {
|
|
||||||
0% {
|
|
||||||
background-position: 0% 50%;
|
|
||||||
}
|
|
||||||
50% {
|
|
||||||
background-position: 100% 30%;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
background-position: 0% 50%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes gradient_f {
|
|
||||||
0% {
|
|
||||||
background-position: 0% 200%;
|
|
||||||
}
|
|
||||||
50% {
|
|
||||||
background-position: 200% 0%;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
background-position: 400% 200%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes gradient_f_nh {
|
|
||||||
0% {
|
|
||||||
background-position: 0% 200%;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
background-position: 200% 200%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#custom-dynamic_pill.low{
|
|
||||||
background: rgb(148,226,213);
|
|
||||||
background: linear-gradient(52deg, rgba(148,226,213,1) 0%, rgba(137,220,235,1) 19%, rgba(116,199,236,1) 43%, rgba(137,180,250,1) 56%, rgba(180,190,254,1) 80%, rgba(186,187,241,1) 100%);
|
|
||||||
background-size: 300% 300%;
|
|
||||||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
|
||||||
animation: gradient 15s ease infinite;
|
|
||||||
font-weight: bolder;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
#custom-dynamic_pill.normal{
|
|
||||||
background: rgb(148,226,213);
|
|
||||||
background: radial-gradient(circle, rgba(148,226,213,1) 0%, rgba(156,227,191,1) 21%, rgba(249,226,175,1) 34%, rgba(158,227,186,1) 35%, rgba(163,227,169,1) 59%, rgba(148,226,213,1) 74%, rgba(164,227,167,1) 74%, rgba(166,227,161,1) 100%);
|
|
||||||
background-size: 400% 400%;
|
|
||||||
animation: gradient_f 4s ease infinite;
|
|
||||||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
|
||||||
font-weight: bolder;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
#custom-dynamic_pill.critical{
|
|
||||||
background: rgb(235,160,172);
|
|
||||||
background: linear-gradient(52deg, rgba(235,160,172,1) 0%, rgba(243,139,168,1) 30%, rgba(231,130,132,1) 48%, rgba(250,179,135,1) 77%, rgba(249,226,175,1) 100%);
|
|
||||||
background-size: 300% 300%;
|
|
||||||
animation: gradient 15s cubic-bezier(.55,-0.68,.48,1.68) infinite;
|
|
||||||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
|
||||||
font-weight: bolder;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-dynamic_pill.playing{
|
|
||||||
background: rgb(137,180,250);
|
|
||||||
background: radial-gradient(circle, rgba(137,180,250,120) 0%, rgba(142,179,250,120) 6%, rgba(148,226,213,1) 14%, rgba(147,178,250,1) 14%, rgba(155,176,249,1) 18%, rgba(245,194,231,1) 28%, rgba(158,175,249,1) 28%, rgba(181,170,248,1) 58%, rgba(205,214,244,1) 69%, rgba(186,169,248,1) 69%, rgba(195,167,247,1) 72%, rgba(137,220,235,1) 73%, rgba(198,167,247,1) 78%, rgba(203,166,247,1) 100%);
|
|
||||||
background-size: 400% 400%;
|
|
||||||
animation: gradient_f 9s cubic-bezier(.72,.39,.21,1) infinite;
|
|
||||||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
|
||||||
font-weight: bold;
|
|
||||||
color: #fff ;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-dynamic_pill.paused{
|
|
||||||
background: #11111b ;
|
|
||||||
font-weight: bolder;
|
|
||||||
color: #b4befe;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-ss{
|
|
||||||
background: #11111b;
|
|
||||||
color: #89b4fa;
|
|
||||||
font-weight: bolder;
|
|
||||||
padding: 5px;
|
|
||||||
padding-left: 20px;
|
|
||||||
padding-right: 20px;
|
|
||||||
border-radius: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#custom-cycle_wall{
|
|
||||||
background: rgb(245,194,231);
|
|
||||||
background: linear-gradient(45deg, rgba(245,194,231,1) 0%, rgba(203,166,247,1) 0%, rgba(243,139,168,1) 13%, rgba(235,160,172,1) 26%, rgba(250,179,135,1) 34%, rgba(249,226,175,1) 49%, rgba(166,227,161,1) 65%, rgba(148,226,213,1) 77%, rgba(137,220,235,1) 82%, rgba(116,199,236,1) 88%, rgba(137,180,250,1) 95%);
|
|
||||||
color: #fff;
|
|
||||||
background-size: 500% 500%;
|
|
||||||
animation: gradient 7s linear infinite;
|
|
||||||
font-weight: bolder;
|
|
||||||
border-radius: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock label{
|
|
||||||
color: #11111b;
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
#clock {
|
|
||||||
background: rgb(205,214,244);
|
|
||||||
background: linear-gradient(118deg, rgba(205,214,244,1) 5%, rgba(243,139,168,1) 5%, rgba(243,139,168,1) 20%, rgba(205,214,244,1) 20%, rgba(205,214,244,1) 40%, rgba(243,139,168,1) 40%, rgba(243,139,168,1) 60%, rgba(205,214,244,1) 60%, rgba(205,214,244,1) 80%, rgba(243,139,168,1) 80%, rgba(243,139,168,1) 95%, rgba(205,214,244,1) 95%);
|
|
||||||
|
|
||||||
background-size: 200% 300%;
|
|
||||||
|
|
||||||
animation: gradient_f_nh 4s linear infinite;
|
|
||||||
margin-right: 25px;
|
|
||||||
color: #fff ;
|
|
||||||
text-shadow: 0 0 5px rgba(0, 0, 0, 0.377);
|
|
||||||
|
|
||||||
font-size: 15px;
|
|
||||||
padding-top: 5px;
|
|
||||||
padding-right: 21px;
|
|
||||||
font-weight: bolder;
|
|
||||||
padding-left: 20px;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
#battery.charging, #battery.plugged {
|
|
||||||
background-color: #94e2d5 ;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery {
|
|
||||||
background-color: #11111b;
|
|
||||||
color:#a6e3a1;
|
|
||||||
font-weight: bolder;
|
|
||||||
font-size: 15px;
|
|
||||||
padding-left: 15px;
|
|
||||||
padding-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes blink {
|
|
||||||
to {
|
|
||||||
background-color: #f9e2af;
|
|
||||||
color:#96804e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
|
||||||
background-color: #f38ba8;
|
|
||||||
color:#bf5673;
|
|
||||||
animation-name: blink;
|
|
||||||
animation-duration: 0.5s;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cpu label{
|
|
||||||
color:#89dceb;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cpu {
|
|
||||||
background: rgb(30,30,46);
|
|
||||||
background: radial-gradient(circle, rgba(30,30,46,1) 30%, rgba(17,17,27,1) 100%);
|
|
||||||
color: #89b4fa;
|
|
||||||
}
|
|
||||||
|
|
||||||
#memory {
|
|
||||||
background-color: #5f2966;
|
|
||||||
color: #9a75c7;
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
|
|
||||||
#disk {
|
|
||||||
color: #964B00;
|
|
||||||
}
|
|
||||||
|
|
||||||
#backlight {
|
|
||||||
color: #90b1b1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network{
|
|
||||||
color:#000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.disabled{
|
|
||||||
background-color: #45475a;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.disconnected{
|
|
||||||
background: rgb(243,139,168);
|
|
||||||
background: linear-gradient(45deg, rgba(243,139,168,1) 0%, rgba(250,179,135,1) 100%);
|
|
||||||
color: #fff;
|
|
||||||
font-weight: bolder;
|
|
||||||
padding-top: 3px;
|
|
||||||
padding-right: 11px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.linked, #network.wifi{
|
|
||||||
background-color: #a6e3a1 ;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.ethernet{
|
|
||||||
background-color:#f9e2af ;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio {
|
|
||||||
background-color: #f57f17;
|
|
||||||
color: white;
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio.muted {
|
|
||||||
background-color: #90b1b1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media {
|
|
||||||
color: #66cc99;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media.custom-spotify {
|
|
||||||
background-color: #66cc99;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-media.custom-vlc {
|
|
||||||
background-color: #ffa000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature {
|
|
||||||
background-color: #f9e2af;
|
|
||||||
color:#96804e;
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature.critical {
|
|
||||||
background-color: #f38ba8 ;
|
|
||||||
color:#bf5673;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray {
|
|
||||||
background-color: #2980b9;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray > .passive {
|
|
||||||
-gtk-icon-effect: dim;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray > .needs-attention {
|
|
||||||
-gtk-icon-effect: highlight;
|
|
||||||
background-color: #eb4d4b;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
15
modules/graphical/obs.nix
Normal file
15
modules/graphical/obs.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{ config, pkgs, ...}:
|
||||||
|
{
|
||||||
|
boot = {
|
||||||
|
kernelModules = ["v4l2loopback"]; # Autostart kernel modules on boot
|
||||||
|
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback]; # loopback module to make OBS virtual camera work
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
(wrapOBS {
|
||||||
|
plugins = with obs-studio-plugins; [
|
||||||
|
obs-pipewire-audio-capture
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -64,11 +64,6 @@ in
|
|||||||
brightnessctl
|
brightnessctl
|
||||||
wacomtablet
|
wacomtablet
|
||||||
osu-lazer-bin
|
osu-lazer-bin
|
||||||
(wrapOBS {
|
|
||||||
plugins = with obs-studio-plugins; [
|
|
||||||
obs-pipewire-audio-capture
|
|
||||||
];
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
#environment.sessionVariables = {
|
#environment.sessionVariables = {
|
||||||
|
|||||||
3
modules/logging.nix
Normal file
3
modules/logging.nix
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
services.journald.extraConfig = "SystemMaxUse=4G";
|
||||||
|
}
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
interface = "enp10s0u1u2";
|
interface = "enp10s0u1u2";
|
||||||
ipv4 = "192.168.0.4";
|
ipv4 = "192.168.0.4";
|
||||||
|
|||||||
@@ -10,6 +10,9 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
mainUser.layout = "de";
|
||||||
|
mainUser.variant = "us";
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
layout = "de";
|
|
||||||
variant = "us";
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
layout = "de";
|
|
||||||
variant = "";
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
{ pkgs, inputs, ... }:
|
{ pkgs, inputs, vars, ... }:
|
||||||
let
|
let
|
||||||
user = "anon";
|
user = "anon";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(
|
(import ../home-manager/nvim.nix ({ user="${user}"; pkgs = pkgs; }))
|
||||||
import ./home-manager/nvim/nvim.nix ({ user="${user}"; pkgs=pkgs; })
|
(import ../home-manager/direnv.nix ({ user="${user}"; pkgs = pkgs; }))
|
||||||
)
|
(import ../home-manager/zsh.nix ({ user="${user}"; pkgs = pkgs; }))
|
||||||
];
|
];
|
||||||
|
mainUser.name = user;
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
@@ -17,25 +19,6 @@ in
|
|||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.${user} = {
|
users.${user} = {
|
||||||
programs.git.enable = true;
|
programs.git.enable = true;
|
||||||
programs.direnv = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
nix-direnv.enable = true;
|
|
||||||
};
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
enableAutosuggestions = true;
|
|
||||||
shellAliases = {
|
|
||||||
ll = "ls -l";
|
|
||||||
update = "sudo nixos-rebuild switch";
|
|
||||||
};
|
|
||||||
oh-my-zsh = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [ "git" ];
|
|
||||||
theme = "eastwood";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
{ pkgs, inputs, ... }:
|
{ pkgs, inputs, vars, ... }:
|
||||||
let
|
let
|
||||||
user = "kopatz";
|
user = "kopatz";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(
|
(import ../home-manager/nvim.nix ({ user="${user}"; pkgs = pkgs; }))
|
||||||
import ./home-manager/nvim/nvim.nix ({ user="${user}"; pkgs = pkgs; })
|
(import ../home-manager/code.nix ({ user="${user}"; pkgs = pkgs; }))
|
||||||
)
|
(import ../home-manager/zsh.nix ({ user="${user}"; pkgs = pkgs; }))
|
||||||
(
|
(import ../home-manager/gtk-theme.nix ({ user="${user}"; pkgs = pkgs; }))
|
||||||
import ./home-manager/vscode/code.nix ({ user="${user}"; pkgs = pkgs; })
|
(import ../home-manager/direnv.nix ({ user="${user}"; pkgs = pkgs; }))
|
||||||
)
|
(import ../home-manager/lf.nix ({ user="${user}"; pkgs = pkgs; }))
|
||||||
];
|
];
|
||||||
|
|
||||||
|
mainUser.name = user;
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
@@ -19,51 +21,7 @@ in
|
|||||||
};
|
};
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.${user} = {
|
users.${user} = {
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
theme = {
|
|
||||||
name = "palenight";
|
|
||||||
package = pkgs.palenight-theme;
|
|
||||||
};
|
|
||||||
cursorTheme = {
|
|
||||||
package = pkgs.libsForQt5.breeze-gtk;
|
|
||||||
name = "Breeze-gtk";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
enableAutosuggestions = true;
|
|
||||||
shellAliases = {
|
|
||||||
ll = "ls -l";
|
|
||||||
update = "sudo nixos-rebuild switch";
|
|
||||||
};
|
|
||||||
oh-my-zsh = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [ "git" ];
|
|
||||||
theme = "eastwood";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
programs.git.enable = true;
|
programs.git.enable = true;
|
||||||
programs.direnv = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
nix-direnv.enable = true;
|
|
||||||
};
|
|
||||||
programs.lf = {
|
|
||||||
enable = true;
|
|
||||||
previewer.source = pkgs.writeShellScript "pv.sh" ''
|
|
||||||
#!/bin/sh
|
|
||||||
case "$(${pkgs.file}/bin/file -Lb --mime-type -- "$1")" in
|
|
||||||
#image/*|video/*) ${pkgs.chafa}/bin/chafa -f sixel -s "$2x$3" --animate false $1;;
|
|
||||||
application/x-tar) tar tf "$1";;
|
|
||||||
application/vnd.rar) ${pkgs.p7zip}/bin/7z l "$1";;
|
|
||||||
application/x-7z-compressed) ${pkgs.p7zip}/bin/7z l "$1";;
|
|
||||||
*) ${pkgs.ctpv}/bin/ctpv "$1";;
|
|
||||||
esac
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
19
users/option.nix
Normal file
19
users/option.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{lib, config, pkgs, ...}:
|
||||||
|
{
|
||||||
|
options.mainUser = {
|
||||||
|
name = lib.mkOption {
|
||||||
|
default = "mainuser";
|
||||||
|
description = ''
|
||||||
|
username
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
layout = lib.mkOption {
|
||||||
|
default = "de";
|
||||||
|
description = "keyboard layout";
|
||||||
|
};
|
||||||
|
variant = lib.mkOption {
|
||||||
|
default = "";
|
||||||
|
description = "keyboard variant";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user