init commit, ly, i3, polybar, neovim, alacritty, NixOS Flakes + Home-Manager

This commit is contained in:
2026-07-16 00:05:44 -06:00
commit d1e1c5b60c
34 changed files with 1395 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 KiB

+10
View File
@@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
imports = [
./dunst.nix
./i3.nix
./polybar.nix
./rofi.nix
];
}
+43
View File
@@ -0,0 +1,43 @@
{ config, lib, pkgs, ... }:
{
services.dunst = {
enable = true;
settings = {
global = {
width = 300;
height = 300;
offset = "14x50";
origin = "top-right";
transparency = 10;
font = "Hack Nerd Font Mono 12";
# Geometry and base borders
frame_width = 2;
separator_color = "#2c2137"; # Midnight Violet
};
urgency_low = {
background = "#1e1f21"; # Carbon Black
foreground = "#7e6790"; # Vintage Lavender 2 (Subtle text for low priority)
frame_color = "#2c2137"; # Midnight Violet (Darkest accent)
timeout = 5;
};
urgency_normal = {
background = "#1e1f21"; # Carbon Black
foreground = "#8d739c"; # Vintage Lavender 1 (Primary readable text)
frame_color = "#4f3963"; # Vintage Grape (Your primary accent)
timeout = 10;
};
urgency_critical = {
# Flipping the background to Midnight Violet to make it pop slightly
background = "#2c2137";
foreground = "#8d739c"; # Vintage Lavender 1
frame_color = "#847397"; # Vintage Lavender 3 (Brightest accent for critical)
timeout = 0; # Stays on screen until explicitly dismissed
};
};
};
}
+11
View File
@@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
xsession.windowManager.i3 = {
enable = true;
config = null;
extraConfig = (builtins.readFile ./i3/config) + ''
exec --no-startup-id ${pkgs.feh}/bin/feh --bg-fill ${./assets/samuraii.jpg}
'';
};
}
+295
View File
@@ -0,0 +1,295 @@
# Set modifier key as Alt
set $mod Mod4
# Set purple theming & fonts
set $base #08090B
set $accent #8D739C
set $hover #4F3963
font pango: Lato 15
# Start i3
exec --no-startup-id dex --autostart --environment i3
exec --no-startup-id bash -c "pkill -x polybar; sleep 0.5; polybar main &"
exec --no-startup-id nm-applet
exec alacritty
# Lock screen with i3lock-color
bindsym $mod+q exec ~/.config/i3scripts/lock
# Default gaps between windows
gaps outer 10
gaps inner 5
# Adjust floating windows
floating_modifier $mod
tiling_drag modifier titlebar
bindsym $mod+Return exec alacritty
bindsym $mod+x kill
bindsym $mod+d exec "rofi -show drun -show-icons"
# Restart i3 in place
bindsym $mod+Shift+c restart
# Adapt i3 to external monitors.
bindsym $mod+Shift+r exec --no-startup-id autorandr --change
# Exit i3 & logout
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# --------------------- WORKSPACES ------------------------- #
# Define workspaces
set $ws1 "1:%{T3}%{T-}"
set $ws2 "2:%{T3}󰏬%{T-}"
set $ws3 "3:%{T3}%{T-}"
set $ws4 "4:%{T3}%{T-}"
set $ws5 "5:%{T3}󰈙%{T-}"
set $ws6 "6:%{T3}%{T-}"
set $ws7 "7:%{T3}󰇮%{T-}"
set $ws8 "8:%{T3}󰎆%{T-}"
set $ws9 "9:%{T3}󰭹%{T-}"
set $ws10 "10:%{T3}󰈹%{T-}"
# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# ------------------------ STARTUP APPS ---------------------- #
# ------------------------ WINDOWS --------------------------- #
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+v layout splitv
bindsym $mod+b layout splith
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# Window color customization:
# class border backgr. text indicator child_border
client.focused $base $base $base $base $accent
client.focused_inactive $base $base $hover $base $accent
client.unfocused $accent $accent $base $base $accent
client.urgent #2f343a #900000 $hover $base #900000
client.placeholder #000000 #0c0c0c $hover $base #0c0c0c
client.background #635380
default_border pixel 4
# ------------------------- FUNCTION KEY BINDING ---------------------------- #
# Volume control
# ------------------------- FUNCTION KEY BINDING ---------------------------- #
# Volume control (using native PulseAudio commands)
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
# Brightness control (using brightnessctl)
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set 5%+
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%-
# Screenshot
bindsym XF86AudioRecord exec flameshot gui
#bindsym XF86Search workspace number $ws10
# Audio control
#bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# --------------------- MODES ----------------------#
set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_left Left Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym h mode "$mode_gaps_horiz"
bindsym v mode "$mode_gaps_verti"
bindsym t mode "$mode_gaps_top"
bindsym r mode "$mode_gaps_right"
bindsym b mode "$mode_gaps_bottom"
bindsym l mode "$mode_gaps_left"
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
bindsym Shift+plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
bindsym Shift+plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_horiz" {
bindsym plus gaps horizontal current plus 5
bindsym minus gaps horizontal current minus 5
bindsym 0 gaps horizontal current set 0
bindsym Shift+plus gaps horizontal all plus 5
bindsym Shift+minus gaps horizontal all minus 5
bindsym Shift+0 gaps horizontal all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_verti" {
bindsym plus gaps vertical current plus 5
bindsym minus gaps vertical current minus 5
bindsym 0 gaps vertical current set 0
bindsym Shift+plus gaps vertical all plus 5
bindsym Shift+minus gaps vertical all minus 5
bindsym Shift+0 gaps vertical all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_top" {
bindsym plus gaps top current plus 5
bindsym minus gaps top current minus 5
bindsym 0 gaps top current set 0
bindsym Shift+plus gaps top all plus 5
bindsym Shift+minus gaps top all minus 5
bindsym Shift+0 gaps top all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_right" {
bindsym plus gaps right current plus 5
bindsym minus gaps right current minus 5
bindsym 0 gaps right current set 0
bindsym Shift+plus gaps right all plus 5
bindsym Shift+minus gaps right all minus 5
bindsym Shift+0 gaps right all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_bottom" {
bindsym plus gaps bottom current plus 5
bindsym minus gaps bottom current minus 5
bindsym 0 gaps bottom current set 0
bindsym Shift+plus gaps bottom all plus 5
bindsym Shift+minus gaps bottom all minus 5
bindsym Shift+0 gaps bottom all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_left" {
bindsym plus gaps left current plus 5
bindsym minus gaps left current minus 5
bindsym 0 gaps left current set 0
bindsym Shift+plus gaps left all plus 5
bindsym Shift+minus gaps left all minus 5
bindsym Shift+0 gaps left all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
# Resize mode
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym j resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# Creating ability to lock, logout, suspend, hibernate, reboot, and shutdown.
set $mode_system System (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id lock-screen, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym s exec --no-startup-id i3exit suspend, mode "default"
bindsym h exec --no-startup-id i3exit hibernate, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+Escape mode "$mode_system"
+138
View File
@@ -0,0 +1,138 @@
{ config, pkgs, ... }:
{
services.polybar = {
enable = true;
script = "polybar main &";
package = pkgs.polybar.override {
i3Support = true;
pulseSupport = true;
};
config = {
"colors" = {
background = "#08090b";
foreground = "#8d739c";
bg-alt1 = "#1e1f21";
bg-alt2 = "#2c2137";
accent = "#4f3963";
text-light = "#847397";
};
"bar/main" = {
width = "100%";
height = "24pt";
background = "\${colors.background}";
foreground = "\${colors.foreground}";
# This gives you the gap between the screen edge and your blocks
padding-left = 0;
padding-right = 0;
# The physical empty space between each pill
module-margin = 1;
# True Center Alignment!
modules-left = "i3 weather";
modules-center = "date";
modules-right = "spotify pulseaudio wlan battery";
font-0 = "Hack Nerd Font Mono:size=12;3";
font-1 = "Noto Color Emoji:scale=12;3";
font-2 = "Hack Nerd Font Mono:size=16;3";
};
# --- NATIVE INTERNAL MODULES --- #
"module/i3" = {
type = "internal/i3";
format = "<label-state>";
strip-wsnumbers = true;
# Adding padding creates the "pill" width
label-focused = "%name%";
label-focused-background = "\${colors.bg-alt2}";
label-focused-foreground = "\${colors.text-light}";
label-focused-padding = 1;
label-unfocused = "%name%";
label-unfocused-background = "\${colors.background}";
label-unfocused-padding = 1;
};
"module/date" = {
type = "internal/date";
interval = 1;
date = "%a, %b %d";
time = "%I:%M %p";
label = " %date% %time% ";
label-background = "\${colors.accent}";
label-foreground = "#08090b";
};
"module/pulseaudio" = {
type = "internal/pulseaudio";
format-volume = "<label-volume>";
label-volume = " %percentage%% ";
label-volume-background = "\${colors.bg-alt2}";
label-volume-foreground = "\${colors.text-light}";
label-muted = " Muted ";
label-muted-background = "\${colors.bg-alt2}";
label-muted-foreground = "#4f3963";
};
"module/wlan" = {
type = "internal/network";
# Polybar automatically detects your wireless interface
interface-type = "wireless";
interval = 3;
# Action Tag: Left-click launches Alacritty with NetworkManager TUI
format-connected = "<label-connected>";
label-connected = "%{A1:alacritty -e nmtui:} %{T3}%{T-} %essid% %{A}";
label-connected-background = "\${colors.bg-alt1}";
label-connected-padding = 1;
format-disconnected = "<label-disconnected>";
label-disconnected = "%{A1:alacritty -e nmtui:} %{T3}󰖪%{T-} Offline %{A}";
label-disconnected-background = "\${colors.bg-alt1}";
label-disconnected-foreground = "#900000"; # Red alert when down
label-disconnected-padding = 1;
};
"module/battery" = {
type = "internal/battery";
full-at = 99;
low-at = 10;
battery = "BAT0";
adapter = "AC";
format-charging = "<label-charging>";
label-charging = "%{A1:power-menu:} %percentage%% %{A1}";
label-charging-background = "\${colors.bg-alt1}";
format-notcharging = "<label-notcharging>";
label-notcharging = "%{A1:power-menu:} %percentage%% %{A}";
label-notcharging-background = "\${colors.bg-alt1}";
format-discharging = "<label-discharging>";
label-discharging = "%{A1:power-menu:} %percentage%% %{A1}";
label-discharging-background = "\${colors.bg-alt1}";
};
# --- CUSTOM SCRIPT MODULES --- #
"module/weather" = {
type = "custom/script";
# Call the script we just built in home.packages
exec = "weather-cache";
interval = 3600;
label = " %output% ";
format-background = "\${colors.bg-alt1}";
};
};
};
}
+83
View File
@@ -0,0 +1,83 @@
{ config, pkgs, ... }:
{
programs.rofi = {
enable = true;
# Optional: ensure it uses your configured terminal
terminal = "${pkgs.alacritty}/bin/alacritty";
font = "Hack Nerd Font Mono 12";
theme = let
# Pulls in the mkLiteral function specifically for Rofi
inherit (config.lib.formats.rasi) mkLiteral;
in {
"*" = {
# Your Vintage Lavender Palette
bg0 = mkLiteral "#08090b"; # Black
bg1 = mkLiteral "#1e1f21"; # Carbon Black
bg2 = mkLiteral "#2c2137"; # Midnight Violet
fg0 = mkLiteral "#8d739c"; # Vintage Lavender 1
fg1 = mkLiteral "#847397"; # Vintage Lavender 3
accent = mkLiteral "#4f3963"; # Vintage Grape
background-color = mkLiteral "transparent";
text-color = mkLiteral "@fg0";
margin = mkLiteral "0px";
padding = mkLiteral "0px";
spacing = mkLiteral "0px";
};
"window" = {
background-color = mkLiteral "@bg0";
border = mkLiteral "2px";
border-color = mkLiteral "@accent";
border-radius = mkLiteral "6px";
width = mkLiteral "600px";
};
"inputbar" = {
padding = mkLiteral "12px";
background-color = mkLiteral "@bg1";
border = mkLiteral "0px 0px 2px 0px";
border-color = mkLiteral "@accent";
};
"entry" = {
padding = mkLiteral "0px 12px";
vertical-align = mkLiteral "0.5";
};
"prompt" = {
vertical-align = mkLiteral "0.5";
text-color = mkLiteral "@accent";
};
"listview" = {
padding = mkLiteral "8px";
lines = 8;
columns = 1;
fixed-height = mkLiteral "false";
};
"element" = {
padding = mkLiteral "8px";
spacing = mkLiteral "8px";
border-radius = mkLiteral "4px";
};
"element-text, element-icon" = {
vertical-align = mkLiteral "0.5";
background-color = mkLiteral "inherit";
text-color = mkLiteral "inherit";
};
"element selected" = {
background-color = mkLiteral "@bg2";
text-color = mkLiteral "@fg0";
border = mkLiteral "1px";
border-color = mkLiteral "@accent";
};
};
};
}