This commit is contained in:
alisceon 2026-01-19 18:22:45 +01:00
parent 03df32095d
commit 6c0aa6cf9b
5 changed files with 73 additions and 67 deletions

View file

@ -1,12 +1,13 @@
{ pkgs, config, hostName, lib, ... }:
let
# execs
uwsm = "${pkgs.uwsm}/bin/uwsm-app --";
swaymsg = "${pkgs.sway}/bin/swaymsg";
lock = "${pkgs.swaylock}/bin/swaylock --daemonize";
term = "${pkgs.kitty}/bin/kitty";
dmenu = "${pkgs.rofi}/bin/rofi -show drun";
notify = "${pkgs.libnotify}/bin/notify-send";
nag = "${pkgs.sway}/bin/swaynag --edge bottom";
dmenu = "${pkgs.rofi-unwrapped}/bin/rofi";
# keybinds
key_mod = "Mod4";
@ -110,11 +111,9 @@
modifier = "${key_mod}";
startup = [
{ command = "systemctl --user start libinput-gestures"; }
{ command = "swaybg -m fill -i /home/alisceon/Pictures/system/bg.png";}
];
bars = [
{ command = "${pkgs.waybar}/bin/waybar"; }
{ command = ''${uwsm} swaybg -m fill -i /home/alisceon/Pictures/system/bg.png'';}
];
bars = [ ];
input = {
"type:touchpad" = {
dwt = "enabled";
@ -196,17 +195,18 @@
"Mod4+space" = ''exec ${notify} -t 2000 "$(xonsh ~/.nixos_config/util/get_xkb.xsh)"'';
"${key_mod}+Shift+r" = "reload";
"${key_mod}+Ctrl+r" = "restart";
"${key_mod}+Escape" = "exec ${nag} -m 'Shutdown options:' -Z 'Power Off' 'systemctl poweroff' -Z 'Reboot' 'systemctl reboot' -Z 'Logout' 'swaymsg exit'";
"${key_mod}+Shift+Backspace" = "exec ${nag} -m 'TuneD profiles:' -Z 'Performance' 'tuned-adm profile accelerator-performance' -Z 'Balanced' 'tuned-adm profile balanced' -Z 'Power Save' 'tuned-adm profile powersave'";
"${key_mod}+Return" = "exec ${term}";
"${key_mod}+Shift+q" = "kill";
"Alt+F4" = "kill";
# Locking and idle
"${key_mod}+L" = "exec ${lock}";
"${key_mod}+Escape" = "exec ${nag} -m 'Shutdown options:' -Z 'Power Off' 'systemctl poweroff' -Z 'Reboot' 'systemctl reboot' -Z 'Logout' 'swaymsg exit'";
# Apps
"${key_mod}+d" = "exec ${dmenu}";
"${key_mod}+Return" = ''exec "${uwsm} ${term}"'';
"${key_mod}+d" = ''exec "${uwsm} ${dmenu} -show drun"'';
# Screenshot region
"${key_mod}+Shift+s" = "exec grimshot savecopy area";
@ -270,14 +270,20 @@
programs = {
rofi = {
enable = true;
package = pkgs.rofi-unwrapped;
terminal = term;
}; # end rofi
waybar = {
enable = true;
systemd = {
enable = true;
target = "graphical-session.target";
};
settings = {
mainBar = {
layer = "bottom";
position = "top";
height = 32;
height = 28;
spacing = 0;
modules-left = [
"sway/workspaces"
@ -291,6 +297,7 @@
"network"
"pulseaudio"
"battery"
"sway/language"
"clock"
];
"sway/workspaces" = {
@ -307,11 +314,15 @@
};
"idle_inhibitor" = {
format = "| {icon}";
start-activated = true;
format-icons = {
activated = "OuO";
deactivated = "=w=";
activated = "🫨";
deactivated = "😴";
};
};
"sway/language" = {
format = "| {flag}";
};
"clock" = {
interval = 60;
tooltip = true;
@ -319,34 +330,42 @@
tooltip-format = "{:%A}";
};
"battery" = {
interval = 60;
format = "| {icon}{capacity}%";
format-charging = "| {icon}{capacity}%";
format-plugged = "| {icon}🔌{capacity}%";
states = {
critical = 10;
warning = 20;
good = 90;
good = 100;
full = 100;
over = 101;
};
interval = 30;
format = "| Bat {capacity}% ";
format-charging = "| Chr {capacity}% ";
format-plugged = "| Plg {capacity}% ";
format-icons = [ "🪫" "🪫" "🔋" "🔋" "🔋"];
};
"network" = {
format-wifi = "| WiFi up ";
format-ethernet = "";
tooltip-format = "{ifname} = {ipaddr}/{cidr}";
format-linked = "| {ifname} (no ip) ";
format-disconnected = "| Disconnected ";
format-wifi = "| ";
format-ethernet = "| ";
format-linked = "| 🔗";
format-disconnected = "| 💥";
format-alt = "| {essid}: {ipaddr}";
interval = 10;
interval = 15;
};
"pulseaudio" = {
# "scroll-step" = 1; # %; can be a float
format = "| Sound: {volume}% ";
format-muted = "| Sound: x% ";
format = "| 🔊{volume}%";
format-muted = "| 🔈0%";
format-bluetooth = "| 🎧{volume}%";
};
}; # end mainbar
}; # end settings
style = ''
button {
box-shadow: inset 0 -8px transparent;
border: none;
border-radius: 0;
}
''; # end style
}; # end waybar
swaylock = {
enable = true;

View file

@ -4,28 +4,8 @@ stylix = {
enable = true;
autoEnable = true;
enableReleaseChecks = false;
base16Scheme = {
scheme = "My Custom Theme";
author = "you";
base16Scheme = "${pkgs.base16-schemes}/share/themes/selenized-black.yaml";
base00 = "#0f0f14";
base01 = "#16161e";
base02 = "#1f1f2a";
base03 = "#2a2a37";
base04 = "#a0a0b0";
base05 = "#c0c0d0";
base06 = "#e0e0f0";
base07 = "#ffffff";
base08 = "#f7768e"; # red
base09 = "#ff9e64"; # orange
base0A = "#e0af68"; # yellow
base0B = "#9ece6a"; # green
base0C = "#7dcfff"; # cyan
base0D = "#7aa2f7"; # blue
base0E = "#bb9af7"; # purple
base0F = "#db4b4b"; # brown
};
polarity = "dark";
fonts = {
monospace = {
@ -33,12 +13,12 @@ stylix = {
name = "Inconsolata";
};
sansSerif = {
package = pkgs.inter;
name = "Inter";
package = pkgs.noto-fonts;
name = "NotoSans";
};
serif = {
package = pkgs.source-serif;
name = "Source Serif 4";
package = pkgs.noto-fonts;
name = "NotoSerif";
};
emoji = {
package = pkgs.noto-fonts-color-emoji;

View file

@ -40,10 +40,8 @@
pulseaudio # pulseaudio support
sway-contrib.grimshot # screenshot tool
kitty # terminal emulator
kitty-themes
dotool # tool to send keyboard/mouse input to wayland apps
mako # notification system developed by swaywm maintainer
rofi # application launcher
];
}; # end sway
uwsm = { # responsible for creating xdg-portal and systemd insteraction for sway

View file

@ -1,6 +1,14 @@
{ config, pkgs, pkgs-unstable, ... }:
{
boot = {
plymouth.enable = true;
kernelParams = [
"quiet"
"udev.log_level=3"
"systemd.show_status=auto"
];
};
security.sudo.wheelNeedsPassword = false;
services = {
@ -66,6 +74,7 @@
pkgs.gparted
pkgs.vlc
pkgs.via
pkgs.plymouth
]; # end systemPackages
sessionVariables.NIXOS_OZONE_WL = "1";
}; # end environment