switched to niri.

added basic 3/4 finger gestures.

nixos: gen 161 @ nix-pad — 2026-07-30 21:40
26.05.20260724.597283a (Yarara)

nixos: gen 162 @ nix-pad — 2026-07-30 21:45
26.05.20260724.597283a (Yarara)
This commit is contained in:
2026-07-30 21:50:31 -06:00
parent 504d4bab15
commit 0201fb5fcc
51 changed files with 863 additions and 905 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 664 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 924 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 731 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

+2 -1
View File
@@ -1,7 +1,8 @@
{ config, dms, pkgs, ... }:
{ config, pkgs, inputs, ... }:
{
imports = [
#./kde.nix
./niri.nix
#./dunst.nix
#./gnome.nix
-43
View File
@@ -1,43 +0,0 @@
{ 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
};
};
};
}
-37
View File
@@ -1,37 +0,0 @@
{ config, lib, pkgs, ... }:
{
gtk = {
enable = true;
theme = {
name = "Adwaita-dark";
package = pkgs.gnome-themes-extra;
};
};
dconf.settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
accent-color = "purple";
};
"org/gnome/shell" = {
enabled-extensions = [
pkgs.gnomeExtensions.blur-my-shell.extensionUuid
pkgs.gnomeExtensions.caffeine.extensionUuid
pkgs.gnomeExtensions.clipboard-indicator.extensionUuid
pkgs.gnomeExtensions.dash-to-panel.extensionUuid
pkgs.gnomeExtensions.gjs-osk.extensionUuid
pkgs.gnomeExtensions.gsconnect.extensionUuid
pkgs.gnomeExtensions.just-perfection.extensionUuid
pkgs.gnomeExtensions.removable-drive-menu.extensionUuid
];
};
};
qt = {
enable = true;
platformTheme.name = "adwaita";
style.name = "adwaita-dark";
};
}
-12
View File
@@ -1,12 +0,0 @@
{ 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}
exec --no-startup-id ${pkgs.picom}/bin/picom --backend glx --vsync
'';
};
}
-295
View File
@@ -1,295 +0,0 @@
# 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"
+96 -37
View File
@@ -1,50 +1,109 @@
{ config, lib, pkgs, inputs, ... }:
let
launch-lisgd = pkgs.writeShellScriptBin "launch-lisgd" ''
# Search for the capacitive touch layer and extract its event number.
# UPDATE 'Touchscreen' below to match the unique word you found in step 1.
TOUCH_EVENT=$(grep -i -E 'name=".*Finger.*"' -A 5 /proc/bus/input/devices | grep -o 'event[0-9]\+' | head -n 1)
if [ -n "$TOUCH_EVENT" ]; then
# Start lisgd locked exclusively to the finger digitizer
${pkgs.lisgd}/bin/lisgd -t 30 -m 150 -r 45 -d "/dev/input/$TOUCH_EVENT" \
-g "3,LR,*,*,P,niri msg action focus-column-left && sleep 0.4" \
-g "3,RL,*,*,P,niri msg action focus-column-right && sleep 0.4" \
-g "3,UD,*,*,P,niri msg action focus-workspace-up && sleep 0.4" \
-g "3,DU,*,*,P,niri msg action focus-workspace-down && sleep 0.4" \
-g "4,DU,*,*,P,dms ipc spotlight toggle && sleep 0.4"
fi
'';
in
{
imports = [
inputs.dms.homeModules.dank-material-shell
];
programs.dank-material-shell = {
enable = true;
systemd.enable = true;
};
#systemd.user.services.niri-flake-polkit.enable = false;
# 2. Enable & Configure Niri
programs.niri = {
# Declarative KDL configuration for Niri
settings = {
# Autostart DMS if you prefer launching it directly from Niri instead of systemd
# spawn-at-startup = [ { command = [ "dms" ]; } ];
spawn-at-startup = [
{ command = [ "dms" "run" ]; }
{ command = [ "${launch-lisgd}/bin/launch-lisgd" ]; } # Spawns the daemon
];
# Core keybindings
binds = {
"Mod+Return".action.spawn = "alacritty"; # Or your preferred terminal
"Mod+X".action.close-window = [];
"Mod+Shift+E".action.quit = [];
# Focus / Column movement
"Mod+H".action.focus-column-left = [];
"Mod+L".action.focus-column-right = [];
"Mod+J".action.focus-window-or-workspace-down = [];
"Mod+K".action.focus-window-or-workspace-up = [];
# DMS Launcher integration (if you want a hotkey bound directly)
"Mod+Space".action.spawn = [ "dms" "ipc" "call" "launcher" "toggle" ];
input = {
keyboard.xkb.layout = "us";
touchpad = {
tap = true;
natural-scroll = true;
};
};
# Window & Layer Rules (e.g. enable background blur for DMS components)
# layer-rules = [
# {
# geometry-corner-radius = 12;
# background-effect = {
# blur = true;
# };
# }
# ];
layout = {
gaps = 8;
center-focused-column = "never";
default-column-width.proportion = 0.985;
border.enable = false;
#tab-indicator.corner-radius = 18.0;
focus-ring = {
enable = false;
width = 2;
};
};
prefer-no-csd = true;
window-rules = [
{ # All windows
geometry-corner-radius = {
bottom-left = 25.0;
bottom-right = 0.0;
top-right = 0.0;
top-left = 25.0;
};
draw-border-with-background = true;
clip-to-geometry = true;
}
];
# Vim Keybindings & Built-in Features
binds = with config.lib.niri.actions; {
# Launchers & Session Control
"Mod+Return".action.spawn = [ "alacritty" ];
"Mod+Space".action.spawn = [ "dms" "ipc" "spotlight" "toggle" ];
"Mod+X".action.close-window = [];
"Mod+F".action.fullscreen-window = [];
"Mod+Shift+E".action.quit = [];
"Mod+Shift+P".action.toggle-overview = [];
# Vim Focus Movement
"Mod+H".action.focus-column-left = [];
"Mod+J".action.focus-window-down = [];
"Mod+K".action.focus-window-up = [];
"Mod+L".action.focus-column-right = [];
# Workspace Navigation
"Mod+N".action.focus-workspace-down = [];
"Mod+U".action.focus-workspace-up = [];
# Vim Window Reordering
"Mod+Shift+H".action.move-column-left = [];
"Mod+Shift+L".action.move-column-right = [];
"Mod+Shift+J".action.move-column-to-workspace-down = [];
"Mod+Shift+K".action.move-column-to-workspace-up = [];
# Volume & Brightness Media Controls
"XF86AudioRaiseVolume".action.spawn = [ "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+" ];
"XF86AudioLowerVolume".action.spawn = [ "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05-" ];
"XF86AudioMute".action.spawn = [ "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle" ];
"XF86MonBrightnessUp".action.spawn = [ "dms" "ipc" "call" "brightness" "increment" "5" "" ];
"XF86MonBrightnessDown".action.spawn = [ "dms" "ipc" "call" "brightness" "decrement" "5" "" ];
# Screenshots
"Print".action.screenshot = [];
"Ctrl+Print".action.screenshot-screen = [];
};
};
};
}
-138
View File
@@ -1,138 +0,0 @@
{ 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
@@ -1,83 +0,0 @@
{ 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";
};
};
};
}
+9 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }:
{ config, lib, pkgs, ... }:
{
imports = [
@@ -12,6 +12,13 @@
# Zsh is configured globally at the NixOS system level.
# This file exists solely to prevent the zsh-newuser-install prompt.
'';
home.sessionVariables = {
NIXOS_OZONE_WL = "1"; # Forces Electron/Chromium apps to use Wayland natively
GTK_IM_MODULE = "wayland"; # Forces GTK apps to use Wayland text-input protocols
QT_IM_MODULE = "wayland"; # Forces Qt apps to use Wayland text-input protocols
TEXT_INPUT_PRESENT = "1"; # Explicitly signals virtual keyboard capability to the shell
};
home.packages = with pkgs; [
aider-chat
@@ -28,6 +35,7 @@
libreoffice
mc
scrot
steam
spotify
vlc
yt-dlp
+2 -2
View File
@@ -7,8 +7,8 @@
settings = {
window = {
padding = { x = 10; y = 10; };
opacity = .9;
padding = { x = 20; y = 20; };
opacity = .85;
};
font = {