minutiae
This commit is contained in:
parent
03df32095d
commit
6c0aa6cf9b
5 changed files with 73 additions and 67 deletions
|
|
@ -1,12 +1,13 @@
|
||||||
{ pkgs, config, hostName, lib, ... }:
|
{ pkgs, config, hostName, lib, ... }:
|
||||||
let
|
let
|
||||||
# execs
|
# execs
|
||||||
|
uwsm = "${pkgs.uwsm}/bin/uwsm-app --";
|
||||||
swaymsg = "${pkgs.sway}/bin/swaymsg";
|
swaymsg = "${pkgs.sway}/bin/swaymsg";
|
||||||
lock = "${pkgs.swaylock}/bin/swaylock --daemonize";
|
lock = "${pkgs.swaylock}/bin/swaylock --daemonize";
|
||||||
term = "${pkgs.kitty}/bin/kitty";
|
term = "${pkgs.kitty}/bin/kitty";
|
||||||
dmenu = "${pkgs.rofi}/bin/rofi -show drun";
|
|
||||||
notify = "${pkgs.libnotify}/bin/notify-send";
|
notify = "${pkgs.libnotify}/bin/notify-send";
|
||||||
nag = "${pkgs.sway}/bin/swaynag --edge bottom";
|
nag = "${pkgs.sway}/bin/swaynag --edge bottom";
|
||||||
|
dmenu = "${pkgs.rofi-unwrapped}/bin/rofi";
|
||||||
|
|
||||||
# keybinds
|
# keybinds
|
||||||
key_mod = "Mod4";
|
key_mod = "Mod4";
|
||||||
|
|
@ -110,11 +111,9 @@
|
||||||
modifier = "${key_mod}";
|
modifier = "${key_mod}";
|
||||||
startup = [
|
startup = [
|
||||||
{ command = "systemctl --user start libinput-gestures"; }
|
{ command = "systemctl --user start libinput-gestures"; }
|
||||||
{ command = "swaybg -m fill -i /home/alisceon/Pictures/system/bg.png";}
|
{ command = ''${uwsm} swaybg -m fill -i /home/alisceon/Pictures/system/bg.png'';}
|
||||||
];
|
|
||||||
bars = [
|
|
||||||
{ command = "${pkgs.waybar}/bin/waybar"; }
|
|
||||||
];
|
];
|
||||||
|
bars = [ ];
|
||||||
input = {
|
input = {
|
||||||
"type:touchpad" = {
|
"type:touchpad" = {
|
||||||
dwt = "enabled";
|
dwt = "enabled";
|
||||||
|
|
@ -196,17 +195,18 @@
|
||||||
"Mod4+space" = ''exec ${notify} -t 2000 "$(xonsh ~/.nixos_config/util/get_xkb.xsh)"'';
|
"Mod4+space" = ''exec ${notify} -t 2000 "$(xonsh ~/.nixos_config/util/get_xkb.xsh)"'';
|
||||||
"${key_mod}+Shift+r" = "reload";
|
"${key_mod}+Shift+r" = "reload";
|
||||||
"${key_mod}+Ctrl+r" = "restart";
|
"${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}+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";
|
"${key_mod}+Shift+q" = "kill";
|
||||||
"Alt+F4" = "kill";
|
"Alt+F4" = "kill";
|
||||||
|
|
||||||
# Locking and idle
|
# Locking and idle
|
||||||
"${key_mod}+L" = "exec ${lock}";
|
"${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
|
# Apps
|
||||||
"${key_mod}+d" = "exec ${dmenu}";
|
"${key_mod}+Return" = ''exec "${uwsm} ${term}"'';
|
||||||
|
"${key_mod}+d" = ''exec "${uwsm} ${dmenu} -show drun"'';
|
||||||
|
|
||||||
|
|
||||||
# Screenshot region
|
# Screenshot region
|
||||||
"${key_mod}+Shift+s" = "exec grimshot savecopy area";
|
"${key_mod}+Shift+s" = "exec grimshot savecopy area";
|
||||||
|
|
@ -270,14 +270,20 @@
|
||||||
programs = {
|
programs = {
|
||||||
rofi = {
|
rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.rofi-unwrapped;
|
||||||
|
terminal = term;
|
||||||
}; # end rofi
|
}; # end rofi
|
||||||
waybar = {
|
waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
systemd = {
|
||||||
|
enable = true;
|
||||||
|
target = "graphical-session.target";
|
||||||
|
};
|
||||||
settings = {
|
settings = {
|
||||||
mainBar = {
|
mainBar = {
|
||||||
layer = "bottom";
|
layer = "bottom";
|
||||||
position = "top";
|
position = "top";
|
||||||
height = 32;
|
height = 28;
|
||||||
spacing = 0;
|
spacing = 0;
|
||||||
modules-left = [
|
modules-left = [
|
||||||
"sway/workspaces"
|
"sway/workspaces"
|
||||||
|
|
@ -291,6 +297,7 @@
|
||||||
"network"
|
"network"
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"battery"
|
"battery"
|
||||||
|
"sway/language"
|
||||||
"clock"
|
"clock"
|
||||||
];
|
];
|
||||||
"sway/workspaces" = {
|
"sway/workspaces" = {
|
||||||
|
|
@ -307,11 +314,15 @@
|
||||||
};
|
};
|
||||||
"idle_inhibitor" = {
|
"idle_inhibitor" = {
|
||||||
format = "| {icon}";
|
format = "| {icon}";
|
||||||
|
start-activated = true;
|
||||||
format-icons = {
|
format-icons = {
|
||||||
activated = "OuO";
|
activated = "🫨";
|
||||||
deactivated = "=w=";
|
deactivated = "😴";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"sway/language" = {
|
||||||
|
format = "| {flag}";
|
||||||
|
};
|
||||||
"clock" = {
|
"clock" = {
|
||||||
interval = 60;
|
interval = 60;
|
||||||
tooltip = true;
|
tooltip = true;
|
||||||
|
|
@ -319,34 +330,42 @@
|
||||||
tooltip-format = "{:%A}";
|
tooltip-format = "{:%A}";
|
||||||
};
|
};
|
||||||
"battery" = {
|
"battery" = {
|
||||||
|
interval = 60;
|
||||||
|
format = "| {icon}{capacity}%";
|
||||||
|
format-charging = "| {icon}⚡{capacity}%";
|
||||||
|
format-plugged = "| {icon}🔌{capacity}%";
|
||||||
states = {
|
states = {
|
||||||
critical = 10;
|
critical = 10;
|
||||||
warning = 20;
|
warning = 20;
|
||||||
good = 90;
|
good = 100;
|
||||||
full = 100;
|
full = 100;
|
||||||
over = 101;
|
over = 101;
|
||||||
};
|
};
|
||||||
interval = 30;
|
format-icons = [ "🪫" "🪫" "🔋" "🔋" "🔋"];
|
||||||
format = "| Bat {capacity}% ";
|
|
||||||
format-charging = "| Chr {capacity}% ";
|
|
||||||
format-plugged = "| Plg {capacity}% ";
|
|
||||||
};
|
};
|
||||||
"network" = {
|
"network" = {
|
||||||
format-wifi = "| WiFi up ";
|
|
||||||
format-ethernet = "";
|
|
||||||
tooltip-format = "{ifname} = {ipaddr}/{cidr}";
|
tooltip-format = "{ifname} = {ipaddr}/{cidr}";
|
||||||
format-linked = "| {ifname} (no ip) ";
|
format-wifi = "| ᯤ";
|
||||||
format-disconnected = "| Disconnected ";
|
format-ethernet = "| ⇄";
|
||||||
|
format-linked = "| 🔗";
|
||||||
|
format-disconnected = "| ⛓️💥";
|
||||||
format-alt = "| {essid}: {ipaddr}";
|
format-alt = "| {essid}: {ipaddr}";
|
||||||
interval = 10;
|
interval = 15;
|
||||||
};
|
};
|
||||||
"pulseaudio" = {
|
"pulseaudio" = {
|
||||||
# "scroll-step" = 1; # %; can be a float
|
format = "| 🔊{volume}%";
|
||||||
format = "| Sound: {volume}% ";
|
format-muted = "| 🔈0%";
|
||||||
format-muted = "| Sound: x% ";
|
format-bluetooth = "| 🎧{volume}%";
|
||||||
};
|
};
|
||||||
}; # end mainbar
|
}; # end mainbar
|
||||||
}; # end settings
|
}; # end settings
|
||||||
|
style = ''
|
||||||
|
button {
|
||||||
|
box-shadow: inset 0 -8px transparent;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
''; # end style
|
||||||
}; # end waybar
|
}; # end waybar
|
||||||
swaylock = {
|
swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -4,28 +4,8 @@ stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoEnable = true;
|
autoEnable = true;
|
||||||
enableReleaseChecks = false;
|
enableReleaseChecks = false;
|
||||||
base16Scheme = {
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/selenized-black.yaml";
|
||||||
scheme = "My Custom Theme";
|
|
||||||
author = "you";
|
|
||||||
|
|
||||||
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";
|
polarity = "dark";
|
||||||
fonts = {
|
fonts = {
|
||||||
monospace = {
|
monospace = {
|
||||||
|
|
@ -33,12 +13,12 @@ stylix = {
|
||||||
name = "Inconsolata";
|
name = "Inconsolata";
|
||||||
};
|
};
|
||||||
sansSerif = {
|
sansSerif = {
|
||||||
package = pkgs.inter;
|
package = pkgs.noto-fonts;
|
||||||
name = "Inter";
|
name = "NotoSans";
|
||||||
};
|
};
|
||||||
serif = {
|
serif = {
|
||||||
package = pkgs.source-serif;
|
package = pkgs.noto-fonts;
|
||||||
name = "Source Serif 4";
|
name = "NotoSerif";
|
||||||
};
|
};
|
||||||
emoji = {
|
emoji = {
|
||||||
package = pkgs.noto-fonts-color-emoji;
|
package = pkgs.noto-fonts-color-emoji;
|
||||||
|
|
|
||||||
|
|
@ -40,10 +40,8 @@
|
||||||
pulseaudio # pulseaudio support
|
pulseaudio # pulseaudio support
|
||||||
sway-contrib.grimshot # screenshot tool
|
sway-contrib.grimshot # screenshot tool
|
||||||
kitty # terminal emulator
|
kitty # terminal emulator
|
||||||
kitty-themes
|
|
||||||
dotool # tool to send keyboard/mouse input to wayland apps
|
dotool # tool to send keyboard/mouse input to wayland apps
|
||||||
mako # notification system developed by swaywm maintainer
|
mako # notification system developed by swaywm maintainer
|
||||||
rofi # application launcher
|
|
||||||
];
|
];
|
||||||
}; # end sway
|
}; # end sway
|
||||||
uwsm = { # responsible for creating xdg-portal and systemd insteraction for sway
|
uwsm = { # responsible for creating xdg-portal and systemd insteraction for sway
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,14 @@
|
||||||
{ config, pkgs, pkgs-unstable, ... }:
|
{ config, pkgs, pkgs-unstable, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
boot = {
|
||||||
|
plymouth.enable = true;
|
||||||
|
kernelParams = [
|
||||||
|
"quiet"
|
||||||
|
"udev.log_level=3"
|
||||||
|
"systemd.show_status=auto"
|
||||||
|
];
|
||||||
|
};
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
@ -66,6 +74,7 @@
|
||||||
pkgs.gparted
|
pkgs.gparted
|
||||||
pkgs.vlc
|
pkgs.vlc
|
||||||
pkgs.via
|
pkgs.via
|
||||||
|
pkgs.plymouth
|
||||||
]; # end systemPackages
|
]; # end systemPackages
|
||||||
sessionVariables.NIXOS_OZONE_WL = "1";
|
sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
}; # end environment
|
}; # end environment
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue