mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-07-06 16:12:33 +02:00
@@ -17,7 +17,6 @@
|
||||
onlyoffice-desktopeditors # Office suite
|
||||
blanket # Listen to different sounds
|
||||
signal-desktop # Messaging app
|
||||
librewolf # Backup browser
|
||||
|
||||
# I love TUIs
|
||||
caligula # User-friendly, lightweight TUI for disk imaging (ISO, USB BOOT)
|
||||
|
||||
@@ -0,0 +1,186 @@
|
||||
{ config, pkgs, ... }: let
|
||||
c = config.lib.stylix.colors;
|
||||
font = config.stylix.fonts.sansSerif.name;
|
||||
theme = pkgs.writeText "launcher.rasi" ''
|
||||
configuration {
|
||||
modi: "drun,run,window";
|
||||
case-sensitive: false;
|
||||
cycle: true;
|
||||
normalize-match: true;
|
||||
show-icons: true;
|
||||
matching: "normal";
|
||||
tokenize: true;
|
||||
kb-cancel: "Escape,MousePrimary";
|
||||
drun-match-fields: "name,exec,generic,comment";
|
||||
drun-display-format: "{name} \n[<span size='small'><i>{comment}</i></span>]";
|
||||
drun-url-launcher: "xdg-open";
|
||||
drun-show-actions: false;
|
||||
disable-history: false;
|
||||
sorting-method: "normal";
|
||||
terminal: "ghostty";
|
||||
hover-select: true;
|
||||
me-select-entry: "";
|
||||
me-accept-entry: [ "MousePrimary" ];
|
||||
timeout {
|
||||
action: "kb-cancel";
|
||||
delay: 0;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
background: #${c.base00}e5;
|
||||
background-alt: #${c.base01}ff;
|
||||
background-sec: #${c.base03}ff;
|
||||
foreground: #${c.base05}ff;
|
||||
selected: #${c.base05}ff;
|
||||
active: #${c.base0B}ff;
|
||||
urgent: #${c.base08}ff;
|
||||
highlight: #${c.base03}28;
|
||||
font: "${font}, bold 12";
|
||||
}
|
||||
|
||||
window {
|
||||
transparency: "real";
|
||||
location: west;
|
||||
anchor: west;
|
||||
padding: 0;
|
||||
margin: 5px;
|
||||
border-radius: 15px;
|
||||
width: 450px;
|
||||
height: 100%;
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
spacing: 10px;
|
||||
padding: 10px;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview", "mode-switcher" ];
|
||||
}
|
||||
|
||||
inputbar {
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 10px 15px;
|
||||
border-radius: 16px;
|
||||
background-color: @background-alt;
|
||||
color: @foreground;
|
||||
children: [ "entry" ];
|
||||
}
|
||||
|
||||
entry {
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
placeholder-color: inherit;
|
||||
placeholder: "Search...";
|
||||
}
|
||||
|
||||
listview {
|
||||
columns: 1;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
spacing: 5px;
|
||||
margin: 0px;
|
||||
padding: 10px 8px;
|
||||
border-radius: 16px;
|
||||
background-color: @background-alt;
|
||||
color: @foreground;
|
||||
}
|
||||
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 8px;
|
||||
margin: 0px;
|
||||
padding: 3px 10px;
|
||||
border-radius: 16px;
|
||||
background-color: transparent;
|
||||
color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
element selected.normal {
|
||||
background-color: @highlight;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
background-color: transparent;
|
||||
size: 26px;
|
||||
margin: 0 5px 0 0;
|
||||
color: inherit;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
cursor: inherit;
|
||||
padding: 10px 0;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
enabled: true;
|
||||
spacing: 8px;
|
||||
margin: 0px;
|
||||
border-radius: 16px;
|
||||
padding: 8px 18px;
|
||||
background-color: @background-alt;
|
||||
color: @foreground;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 10px;
|
||||
margin: 0;
|
||||
border: 0px solid;
|
||||
border-radius: 16px;
|
||||
background-color: @highlight;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button selected {
|
||||
background-color: @foreground;
|
||||
color: @background;
|
||||
}
|
||||
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border-radius: 0px;
|
||||
background-color: transparent;
|
||||
color: @foreground;
|
||||
}
|
||||
|
||||
textbox {
|
||||
padding: 8px;
|
||||
border-radius: 4px;
|
||||
background-color: @background-alt;
|
||||
color: @foreground;
|
||||
placeholder-color: @foreground;
|
||||
vertical-align: 0.5;
|
||||
blink: true;
|
||||
markup: true;
|
||||
}
|
||||
|
||||
error-message {
|
||||
padding: 10px;
|
||||
border-radius: 0px;
|
||||
background-color: @background;
|
||||
color: @foreground;
|
||||
}
|
||||
'';
|
||||
in {
|
||||
stylix.targets.rofi.enable = false;
|
||||
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
theme = "${theme}";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,331 @@
|
||||
{ config, ... }: let
|
||||
c = config.lib.stylix.colors;
|
||||
font = config.stylix.fonts.sansSerif.name;
|
||||
in {
|
||||
services.swaync = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
positionX = "right";
|
||||
positionY = "top";
|
||||
cssPriority = "user";
|
||||
"control-center-width" = 450;
|
||||
"fit-to-screen" = true;
|
||||
"notification-window-width" = 400;
|
||||
"notification-icon-size" = 40;
|
||||
"notification-body-image-height" = 500;
|
||||
"notification-body-image-width" = 500;
|
||||
"notification-inline-replies" = true;
|
||||
"notification-2fa-action" = false;
|
||||
timeout = 3;
|
||||
"timeout-low" = 2;
|
||||
"timeout-critical" = 6;
|
||||
"keyboard-shortcuts" = true;
|
||||
"image-visibility" = "when-available";
|
||||
"transition-time" = 200;
|
||||
"hide-on-clear" = false;
|
||||
"hide-on-action" = false;
|
||||
"script-fail-notify" = true;
|
||||
widgets = [ "mpris" "dnd" "buttons-grid" "notifications" ];
|
||||
"widget-config" = {
|
||||
dnd.text = "Do not disturb";
|
||||
mpris = {
|
||||
"image-size" = 100;
|
||||
"image-radius" = 10;
|
||||
autohide = false;
|
||||
blacklist = [ "org.mpris.MediaPlayer2.playerctld" ];
|
||||
};
|
||||
"buttons-grid" = {
|
||||
actions = [
|
||||
{
|
||||
label = "";
|
||||
type = "toggle";
|
||||
command = "powerprofilesctl set power-saver";
|
||||
"update-command" = "powerprofilesctl get | grep -q power-saver && echo true || echo false";
|
||||
}
|
||||
{
|
||||
label = "";
|
||||
type = "toggle";
|
||||
command = "wpctl set-mute @DEFAULT_SOURCE@ toggle";
|
||||
"update-command" = "wpctl get-volume @DEFAULT_SOURCE@ | grep -q MUTED && echo true || echo false";
|
||||
}
|
||||
{
|
||||
label = "";
|
||||
command = "ghostty -- htop ; swaync-client -cp";
|
||||
}
|
||||
{
|
||||
label = "";
|
||||
command = "nwg-look ; swaync-client -cp";
|
||||
}
|
||||
{
|
||||
label = "";
|
||||
command = "swaync-client -cp ; hyprlock";
|
||||
}
|
||||
{
|
||||
label = "";
|
||||
command = "swaync-client -cp ; systemctl poweroff";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
style = ''
|
||||
@define-color center-bg #${c.base00}cc;
|
||||
@define-color notification-bg #${c.base00}e5;
|
||||
@define-color center-notification-bg #${c.base01};
|
||||
@define-color background #${c.base00}e5;
|
||||
@define-color background-alt #${c.base01};
|
||||
@define-color text #${c.base05};
|
||||
@define-color text-alt #${c.base03};
|
||||
@define-color selected #${c.base03}66;
|
||||
@define-color hover #${c.base03}28;
|
||||
@define-color urgent #${c.base08};
|
||||
|
||||
* {
|
||||
font-family: "${font}";
|
||||
font-weight: 700;
|
||||
all: unset;
|
||||
--border-radius: 16px;
|
||||
--border-radius-s: 8px;
|
||||
--border-radius-xl: 18px;
|
||||
--shadow: 2px 4px 10px rgba(0,0,0,0.15);
|
||||
}
|
||||
|
||||
.notification { padding: 5px; }
|
||||
|
||||
.notification-background {
|
||||
background: @notification-bg;
|
||||
border-radius: var(--border-radius);
|
||||
margin: 8px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.notification-background .close-button {
|
||||
margin: 6px;
|
||||
padding: 2px;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.notification-background .close-button:hover { background: @hover; }
|
||||
|
||||
.notification.critical {
|
||||
border: 2px solid @urgent;
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.notification-content {
|
||||
color: @text;
|
||||
margin: 10px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.notification-content .text-box { margin: 0 0 0 15px; }
|
||||
|
||||
.notification-content .time {
|
||||
padding: 2px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.notification-content .summary {
|
||||
font-size: 1rem;
|
||||
font-weight: 800;
|
||||
padding: 2px 0;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.notification-content .body {
|
||||
color: @text-alt;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.notification-row .inline-reply-entry,
|
||||
.notification-row .inline-reply-button {
|
||||
margin: 5px -5px -5px -5px;
|
||||
padding: 10px 15px;
|
||||
border-radius: var(--border-radius);
|
||||
background: @background-alt;
|
||||
}
|
||||
|
||||
.notification-row .inline-reply-entry { margin-right: 10px; }
|
||||
.notification-row .inline-reply-button:hover { background: @selected; }
|
||||
|
||||
.notification-alt-actions { padding: 5px 0; }
|
||||
|
||||
.notification-action {
|
||||
font-weight: 700;
|
||||
border-radius: var(--border-radius);
|
||||
background: @hover;
|
||||
color: @text;
|
||||
margin: 0 5px;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.notification-action:hover,
|
||||
.notification-action:active { background: @selected; }
|
||||
|
||||
.control-center {
|
||||
background: @center-bg;
|
||||
border-radius: var(--border-radius);
|
||||
margin: 5px;
|
||||
padding: 5px 5px 0 5px;
|
||||
}
|
||||
|
||||
.control-center .notification-background {
|
||||
background: @center-notification-bg;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.control-center .notification-background .close-button,
|
||||
.notification-group-close-button { opacity: 0; }
|
||||
|
||||
.notification-group { transition: 200ms; }
|
||||
|
||||
.notification-group:not(.collapsed) { margin: 8px; }
|
||||
|
||||
.notification-group-headers,
|
||||
.notification-group-buttons {
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
background: @background;
|
||||
border-radius: var(--border-radius);
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
.notification-group-headers > label {
|
||||
margin: 0 3px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.notification-group-icon { color: @text; }
|
||||
|
||||
.notification-group-buttons .image-button {
|
||||
background: transparent;
|
||||
color: @text;
|
||||
padding: 4px;
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.notification-group-buttons .image-button:hover { background: @hover; }
|
||||
|
||||
.widget {
|
||||
margin: 5px;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.widget-mpris-album-art {
|
||||
border-radius: var(--border-radius);
|
||||
margin: 6px 4px;
|
||||
}
|
||||
|
||||
.widget-mpris-title {
|
||||
font-weight: 700;
|
||||
font-size: 1.2rem;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.widget-mpris-subtitle {
|
||||
color: @text-alt;
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.mpris-background { border-radius: 14px; margin: 3px; }
|
||||
|
||||
.widget-mpris {
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.mpris-overlay {
|
||||
border-radius: var(--border-radius);
|
||||
padding: 10px;
|
||||
background: @background;
|
||||
}
|
||||
|
||||
.mpris-overlay > box:last-child {
|
||||
border-radius: var(--border-radius-xl);
|
||||
padding: 0 5px;
|
||||
background: alpha(@hover, .6);
|
||||
}
|
||||
|
||||
.widget-mpris-player button {
|
||||
padding: 5px;
|
||||
margin: 0 2.5px;
|
||||
}
|
||||
|
||||
.widget-mpris-player button:hover {
|
||||
border-radius: var(--border-radius-s);
|
||||
background: @hover;
|
||||
}
|
||||
|
||||
.widget-dnd {
|
||||
padding: 10px 15px;
|
||||
border-radius: var(--border-radius);
|
||||
background: @background-alt;
|
||||
box-shadow: var(--shadow);
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.widget-dnd > label {
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.widget-dnd switch {
|
||||
background: @hover;
|
||||
border-radius: var(--border-radius-s);
|
||||
box-shadow: none;
|
||||
padding: 2px;
|
||||
transition: 200ms;
|
||||
}
|
||||
|
||||
.widget-dnd switch slider {
|
||||
background: @text;
|
||||
border-radius: var(--border-radius-s);
|
||||
}
|
||||
|
||||
.widget-dnd switch:hover,
|
||||
.widget-dnd switch:checked { background-color: @selected; }
|
||||
|
||||
.widget-notifications { margin: 0; }
|
||||
|
||||
.widget-buttons-grid {
|
||||
border-radius: var(--border-radius);
|
||||
padding: 5px 15px;
|
||||
margin-bottom: 5px;
|
||||
background: @background-alt;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.widget-buttons-grid button {
|
||||
padding: 10px;
|
||||
margin: 3px;
|
||||
min-width: 2rem;
|
||||
background: @hover;
|
||||
border-radius: var(--border-radius);
|
||||
transition: 200ms;
|
||||
}
|
||||
|
||||
.widget-buttons-grid button > label {
|
||||
font-family: "Maple Mono NF";
|
||||
font-size: 16px;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.widget-buttons-grid button:hover { background: @selected; }
|
||||
|
||||
.widget-buttons-grid button:checked { background-color: @text; }
|
||||
|
||||
.widget-buttons-grid button:checked > label { color: @background; }
|
||||
|
||||
.control-center-list-placeholder { color: @text; }
|
||||
|
||||
.blank-window { background: transparent; }
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -91,14 +91,13 @@ in {
|
||||
"$mod,B, exec, uwsm app -- ${config.programs.helium.package}/bin/helium" # Browser
|
||||
|
||||
# Power
|
||||
"$mod, X, global, caelestia:session" # Powermenu
|
||||
(
|
||||
"$shiftMod, X, exec, "
|
||||
"$mod, X, exec, "
|
||||
+ lib.getExe (mkMenu [
|
||||
{
|
||||
key = "l";
|
||||
desc = "Lock";
|
||||
cmd = "hyprctl dispatch global caelestia:lock";
|
||||
cmd = "hyprlock";
|
||||
}
|
||||
{
|
||||
key = "s";
|
||||
@@ -120,21 +119,14 @@ in {
|
||||
desc = "Nightshift";
|
||||
cmd = "nightshift-toggle";
|
||||
}
|
||||
{
|
||||
key = "c";
|
||||
desc = "Restart caelestia";
|
||||
cmd = "hyprctl dispatch exec 'caelestia-shell kill | sleep 1 | caelestia-shell'";
|
||||
}
|
||||
])
|
||||
)
|
||||
|
||||
# Quick launch
|
||||
"$mod,RETURN, exec, uwsm app -- ${pkgs.ghostty}/bin/ghostty" # Ghostty (terminal)
|
||||
"$mod,E, exec, uwsm app -- ${pkgs.thunar}/bin/thunar" # Thunar
|
||||
"$shiftMod, E, exec, pkill fuzzel || caelestia emoji -p" # Emoji picker
|
||||
"$mod, SPACE, global, caelestia:launcher" # Launcher
|
||||
"$mod, N, exec, caelestia shell drawers toggle sidebar" # Sidebar (Notifications, quick actions)
|
||||
"$mod, D, exec, caelestia shell drawers toggle dashboard" # Dashboard
|
||||
"$mod, SPACE, exec, rofi -show drun" # Launcher
|
||||
"$mod, N, exec, swaync-client -t" # Notification center
|
||||
|
||||
# Windows
|
||||
"$mod,Q, killactive," # Close window
|
||||
@@ -152,10 +144,9 @@ in {
|
||||
"$shiftMod,L, focusmonitor, 1" # Focus next monitor
|
||||
|
||||
# Utilities
|
||||
"$shiftMod, SPACE, exec, caelestia shell gameMode toggle" # Toggle Focus/Game mode
|
||||
"$shiftMod, S, global, caelestia:screenshotFreeze" # Capture region (freeze)
|
||||
", Print, global, caelestia:screenshotFreeze" # Capture region (freeze)
|
||||
"$shiftMod+Alt, S, global, caelestia:screenshot" # Capture region
|
||||
"$shiftMod, S, exec, hyprshot -m region" # Capture region
|
||||
", Print, exec, hyprshot -m region" # Capture region
|
||||
"$shiftMod+Alt, S, exec, hyprshot -m output" # Capture screen
|
||||
]
|
||||
++ (builtins.concatLists (
|
||||
builtins.genList (
|
||||
@@ -176,32 +167,21 @@ in {
|
||||
|
||||
bindl = [
|
||||
# Brightness
|
||||
", XF86MonBrightnessUp, global, caelestia:brightnessUp"
|
||||
", XF86MonBrightnessDown, global, caelestia:brightnessDown"
|
||||
", XF86MonBrightnessUp, exec, swayosd-client --brightness raise"
|
||||
", XF86MonBrightnessDown, exec, swayosd-client --brightness lower"
|
||||
|
||||
# Media
|
||||
", XF86AudioPlay, global, caelestia:mediaToggle"
|
||||
", XF86AudioPause, global, caelestia:mediaToggle"
|
||||
", XF86AudioNext, global, caelestia:mediaNext"
|
||||
", XF86AudioPrev, global, caelestia:mediaPrev"
|
||||
", XF86AudioStop, global, caelestia:mediaStop"
|
||||
", XF86AudioPlay, exec, playerctl play-pause"
|
||||
", XF86AudioPause, exec, playerctl play-pause"
|
||||
", XF86AudioNext, exec, playerctl next"
|
||||
", XF86AudioPrev, exec, playerctl previous"
|
||||
", XF86AudioStop, exec, playerctl stop"
|
||||
|
||||
# Sound
|
||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||
", XF86AudioRaiseVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0; wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
|
||||
", XF86AudioLowerVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0; wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
];
|
||||
|
||||
bindin = [
|
||||
# Launcher
|
||||
"$mod, mouse:272, global, caelestia:launcherInterrupt"
|
||||
"$mod, mouse:273, global, caelestia:launcherInterrupt"
|
||||
"$mod, mouse:274, global, caelestia:launcherInterrupt"
|
||||
"$mod, mouse:275, global, caelestia:launcherInterrupt"
|
||||
"$mod, mouse:276, global, caelestia:launcherInterrupt"
|
||||
"$mod, mouse:277, global, caelestia:launcherInterrupt"
|
||||
"$mod, mouse_up, global, caelestia:launcherInterrupt"
|
||||
"$mod, mouse_down, global, caelestia:launcherInterrupt"
|
||||
", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
|
||||
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise"
|
||||
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower"
|
||||
", XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
./settings.nix
|
||||
./style.nix
|
||||
];
|
||||
|
||||
programs.waybar.enable = true;
|
||||
stylix.targets.waybar.enable = false;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
playerctl
|
||||
pavucontrol
|
||||
blueman
|
||||
swayosd
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland.settings.exec-once = [
|
||||
"waybar"
|
||||
"swayosd-server"
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,253 @@
|
||||
{ osConfig ? {}, lib, ... }: let
|
||||
hasBluetooth = osConfig.hardware.bluetooth.enable or false;
|
||||
in {
|
||||
programs.waybar.settings = [
|
||||
{
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 25;
|
||||
margin = "5 0";
|
||||
|
||||
modules-left = [ "group/left-hidden-top" "group/left" ];
|
||||
modules-center = [ "clock" ];
|
||||
modules-right = [ "group/right" "group/right-hidden-top" ];
|
||||
|
||||
# ── Groups ────────────────────────────────────────────────────────
|
||||
|
||||
"group/left" = {
|
||||
orientation = "horizontal";
|
||||
modules = [ "hyprland/workspaces" "mpris" ];
|
||||
};
|
||||
|
||||
# power-profiles-daemon visible + hidden drawer (arrow → battery cpu load)
|
||||
"group/left-hidden-top" = {
|
||||
orientation = "horizontal";
|
||||
modules = [ "power-profiles-daemon" "group/left-hidden" ];
|
||||
};
|
||||
|
||||
"group/left-hidden" = {
|
||||
orientation = "horizontal";
|
||||
drawer = {
|
||||
transition-duration = 500;
|
||||
transition-left-to-right = false;
|
||||
click-to-reveal = true;
|
||||
};
|
||||
modules = [ "custom/arrow-right" "battery" "cpu" "load" ];
|
||||
};
|
||||
|
||||
# bluetooth volume network tray (visible)
|
||||
"group/right" = {
|
||||
orientation = "horizontal";
|
||||
modules = lib.optional hasBluetooth "bluetooth" ++ [ "group/group-volume" "network" "tray" ];
|
||||
};
|
||||
|
||||
# hidden drawer (arrow ← memory temp) + ctlcenter visible
|
||||
"group/right-hidden-top" = {
|
||||
orientation = "horizontal";
|
||||
modules = [ "group/right-hidden" "custom/ctlcenter" ];
|
||||
};
|
||||
|
||||
"group/right-hidden" = {
|
||||
orientation = "horizontal";
|
||||
drawer = {
|
||||
transition-duration = 500;
|
||||
transition-left-to-right = true;
|
||||
click-to-reveal = true;
|
||||
};
|
||||
modules = [ "custom/arrow-left" "memory" "temperature" ];
|
||||
};
|
||||
|
||||
"group/group-volume" = {
|
||||
orientation = "horizontal";
|
||||
drawer = {
|
||||
transition-duration = 600;
|
||||
transition-left-to-right = true;
|
||||
reveal-delay = 450;
|
||||
};
|
||||
modules = [ "pulseaudio" "pulseaudio/slider" ];
|
||||
};
|
||||
|
||||
# ── Modules ─────────────────────────────────────────────────────────
|
||||
|
||||
"hyprland/workspaces" = {
|
||||
format = "{icon}";
|
||||
on-scroll-down = "hyprctl dispatch workspace e+1";
|
||||
on-scroll-up = "hyprctl dispatch workspace e-1";
|
||||
persistent-workspaces."*" = 5;
|
||||
cursor = true;
|
||||
format-icons = {
|
||||
active = "";
|
||||
persistent = "";
|
||||
empty = "";
|
||||
};
|
||||
};
|
||||
|
||||
mpris = {
|
||||
format = "{artist} - {title}";
|
||||
tooltip-format = "{album}";
|
||||
format-paused = " {artist} - {title}";
|
||||
on-click = "playerctl play-pause";
|
||||
on-scroll-up = "playerctl previous";
|
||||
on-scroll-down = "playerctl next";
|
||||
max-length = 45;
|
||||
};
|
||||
|
||||
battery = {
|
||||
interval = 20;
|
||||
full-at = 100;
|
||||
tooltip = true;
|
||||
format-full = "";
|
||||
format = "{icon} {capacity}%";
|
||||
format-time = "{H}:{M:02}";
|
||||
format-charging = " {capacity}% ({time})";
|
||||
format-icons = [ "" "" "" "" "" "" "" "" "" ];
|
||||
states = {
|
||||
warning = 30;
|
||||
critical = 15;
|
||||
};
|
||||
};
|
||||
|
||||
cpu = {
|
||||
interval = 30;
|
||||
format = " {usage}%";
|
||||
cursor = true;
|
||||
states = {
|
||||
warning = 80;
|
||||
critical = 90;
|
||||
};
|
||||
};
|
||||
|
||||
load = {
|
||||
interval = 30;
|
||||
format = " {load1}%";
|
||||
cursor = true;
|
||||
};
|
||||
|
||||
"power-profiles-daemon" = {
|
||||
format = "{icon}";
|
||||
tooltip-format = "Power profile: {profile}";
|
||||
format-icons = {
|
||||
performance = "";
|
||||
balanced = "";
|
||||
power-saver = "";
|
||||
};
|
||||
};
|
||||
|
||||
memory = {
|
||||
interval = 10;
|
||||
format = " {used:0.1f}G/{total:0.1f}G";
|
||||
states = {
|
||||
warning = 80;
|
||||
critical = 90;
|
||||
};
|
||||
};
|
||||
|
||||
temperature = {
|
||||
interval = 10;
|
||||
format = "{icon} {temperatureC}°";
|
||||
critical-threshold = 90;
|
||||
format-icons = [ "" "" "" "" "" ];
|
||||
};
|
||||
|
||||
bluetooth = {
|
||||
format = "{}";
|
||||
format-on = "";
|
||||
format-off = "";
|
||||
format-disabled = "";
|
||||
format-connected = "{device_alias}";
|
||||
format-connected-battery = "{device_alias}";
|
||||
tooltip-format = "{device_enumerate}";
|
||||
tooltip-format-enumerate-connected = "{device_alias}";
|
||||
tooltip-format-enumerate-connected-battery = "{device_alias} {device_battery_percentage}%";
|
||||
on-click-right = "blueman-manager &";
|
||||
};
|
||||
|
||||
pulseaudio = {
|
||||
format = "{icon}";
|
||||
format-bluetooth = "{icon}";
|
||||
tooltip-format = "{volume}%";
|
||||
format-muted = "<span size='12pt'></span>";
|
||||
scroll-step = 2;
|
||||
on-click = "swayosd-client --output-volume mute-toggle";
|
||||
on-click-right = "pavucontrol -t 4 &";
|
||||
format-icons = {
|
||||
headphone = "";
|
||||
hands-free = "";
|
||||
headset = "";
|
||||
phone = "";
|
||||
portable = "";
|
||||
car = "";
|
||||
default = [
|
||||
"<span size='12pt'></span>"
|
||||
"<span size='12pt'></span>"
|
||||
"<span size='12pt'></span>"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
"pulseaudio/slider" = {
|
||||
min = 0;
|
||||
max = 100;
|
||||
cursor = true;
|
||||
};
|
||||
|
||||
network = {
|
||||
interval = 10;
|
||||
format-disabled = "";
|
||||
format-disconnected = "";
|
||||
format-wifi = "";
|
||||
format-ethernet = "";
|
||||
tooltip-format = "{essid}
|
||||
|
||||
Frequency: {frequency}GHz
|
||||
Strength: {signalStrength}%
|
||||
|
||||
{bandwidthUpBytes} {bandwidthDownBytes}";
|
||||
on-click-right = "ghostty -e nmtui &";
|
||||
};
|
||||
|
||||
tray = {
|
||||
icon-size = 13;
|
||||
spacing = 12;
|
||||
cursor = true;
|
||||
};
|
||||
|
||||
clock = {
|
||||
timezone = "Europe/Paris";
|
||||
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
||||
format = "{:%H:%M}";
|
||||
format-alt = "{:%H:%M %d %B %Y}";
|
||||
calendar = {
|
||||
mode = "year";
|
||||
weeks-pos = "right";
|
||||
mode-mon-col = 3;
|
||||
format = {
|
||||
months = "<span color='#acb0d0'><b>{}</b></span>";
|
||||
weeks = "<span color='#7aa2f7'><b>W{}</b></span>";
|
||||
weekdays = "<span color='#e0af68'><b>{}</b></span>";
|
||||
days = "<span color='#acb0d0'><b>{}</b></span>";
|
||||
today = "<span color='#41a6b5'><b><u>{}</u></b></span>";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
"custom/ctlcenter" = {
|
||||
format = "";
|
||||
tooltip = false;
|
||||
on-click = "swaync-client -t &";
|
||||
};
|
||||
|
||||
"custom/arrow-left" = {
|
||||
format = "";
|
||||
tooltip = false;
|
||||
cursor = true;
|
||||
};
|
||||
|
||||
"custom/arrow-right" = {
|
||||
format = "";
|
||||
tooltip = false;
|
||||
cursor = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,204 @@
|
||||
{ config, ... }: let
|
||||
c = config.lib.stylix.colors;
|
||||
fg = "#${c.base05}";
|
||||
module-bg = "#${c.base01}";
|
||||
tooltip-bg = "#${c.base01}";
|
||||
red = "#${c.base08}";
|
||||
yellow = "#${c.base0A}";
|
||||
green = "#${c.base0B}";
|
||||
blue = "#${c.base0D}";
|
||||
inactive = "#${c.base03}";
|
||||
highlight = "#${c.base02}";
|
||||
in {
|
||||
programs.waybar.style = ''
|
||||
* {
|
||||
font-family: 'CaskaydiaCove Nerd Font Propo';
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
#waybar {
|
||||
font-weight: 700;
|
||||
background: transparent;
|
||||
font-size: 14px;
|
||||
color: ${fg};
|
||||
}
|
||||
|
||||
#temperature,
|
||||
#bluetooth,
|
||||
#battery,
|
||||
#memory,
|
||||
#mpris,
|
||||
#cpu,
|
||||
#load {
|
||||
padding: 1px 7px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#network,
|
||||
#tray {
|
||||
padding: 1px 6px;
|
||||
}
|
||||
|
||||
#backlight,
|
||||
#pulseaudio {
|
||||
padding: 1px 8px;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
#backlight-slider,
|
||||
#pulseaudio-slider {
|
||||
padding: 0 7px 0 2px;
|
||||
}
|
||||
|
||||
#workspaces,
|
||||
#bluetooth,
|
||||
#battery,
|
||||
#memory,
|
||||
#temperature,
|
||||
#cpu,
|
||||
#mpris,
|
||||
#load {
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
#right,
|
||||
#left,
|
||||
#right-hidden-top,
|
||||
#left-hidden-top {
|
||||
padding: 2px 10px;
|
||||
border-radius: 15px;
|
||||
background: ${module-bg};
|
||||
}
|
||||
|
||||
#right-hidden-top,
|
||||
#left-hidden-top {
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
#right, #left {
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background: ${module-bg};
|
||||
padding: 1px 18px;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
#custom-ctlcenter {
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
||||
#power-profiles-daemon {
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
#network.disabled,
|
||||
#bluetooth.disabled {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#cpu.critical,
|
||||
#memory.critical,
|
||||
#battery.critical,
|
||||
#temperature.critical,
|
||||
#network.disconnected,
|
||||
#power-profiles-daemon.performance {
|
||||
color: ${red};
|
||||
}
|
||||
|
||||
#cpu.warning,
|
||||
#memory.warning,
|
||||
#battery.warning,
|
||||
#temperature.warning {
|
||||
color: ${yellow};
|
||||
background: unset;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.power-saver {
|
||||
color: ${green};
|
||||
}
|
||||
|
||||
#custom-start,
|
||||
#custom-ctlcenter {
|
||||
color: ${blue};
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
color: ${fg};
|
||||
font-size: 14px;
|
||||
border-radius: 100%;
|
||||
padding: 0 2px;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#mpris.paused {
|
||||
color: ${inactive};
|
||||
}
|
||||
|
||||
tooltip {
|
||||
border-radius: 15px;
|
||||
background: ${tooltip-bg};
|
||||
}
|
||||
|
||||
tooltip label {
|
||||
padding: 3px 10px;
|
||||
color: ${fg};
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.popup * {
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
menu {
|
||||
border-radius: 10px;
|
||||
font-weight: 700;
|
||||
color: ${fg};
|
||||
background: ${tooltip-bg};
|
||||
}
|
||||
|
||||
menu > * {
|
||||
padding: 3px 0px;
|
||||
}
|
||||
|
||||
menu > *:hover {
|
||||
border-radius: 10px;
|
||||
background-color: ${highlight};
|
||||
}
|
||||
|
||||
slider {
|
||||
opacity: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
trough {
|
||||
min-width: 50px;
|
||||
min-height: 5px;
|
||||
border-radius: 8px;
|
||||
background: ${inactive};
|
||||
}
|
||||
|
||||
trough highlight {
|
||||
border-radius: 8px;
|
||||
background-color: ${fg};
|
||||
background-image: none;
|
||||
}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user