some niri and waybar tweaks
This commit is contained in:
parent
b4c0daf345
commit
3e1a2d075f
7 changed files with 149 additions and 94 deletions
|
@ -31,16 +31,13 @@
|
|||
|
||||
soundconverter
|
||||
wmctrl
|
||||
# colloid-icon-theme
|
||||
bibata-cursors
|
||||
adwaita-qt
|
||||
|
||||
godot_4
|
||||
gdtoolkit_4
|
||||
sane-airscan
|
||||
xsane
|
||||
|
||||
# bitwarden-cli
|
||||
nix-config.pkgs-stable.bitwarden-cli
|
||||
bitwarden-desktop
|
||||
tailscale
|
||||
trayscale
|
||||
|
@ -80,7 +77,7 @@
|
|||
|
||||
switcheroo
|
||||
|
||||
# blender
|
||||
nix-config.pkgs-stable.blender
|
||||
davinci-resolve-studio
|
||||
steam
|
||||
processing
|
||||
|
@ -131,10 +128,27 @@
|
|||
name = pkgs.rice.cursor.name;
|
||||
package = pkgs.bibata-cursors;
|
||||
};
|
||||
theme = {
|
||||
name = "Colloid-Dark";
|
||||
package = pkgs.colloid-gtk-theme.override {
|
||||
tweaks = [ "normal" "nord" ];
|
||||
themeVariants = [ "grey" ];
|
||||
|
||||
};
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Colloid";
|
||||
package = nix-config.pkgs-stable.colloid-icon-theme;
|
||||
};
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme.name = "gtk3";
|
||||
style = {
|
||||
package = pkgs.adwaita-qt;
|
||||
name = "adwaita-dark";
|
||||
};
|
||||
};
|
||||
|
||||
fonts = {
|
||||
|
@ -151,51 +165,11 @@
|
|||
];
|
||||
};
|
||||
|
||||
services.swaync = {
|
||||
enable = true;
|
||||
settings = {
|
||||
positionX = "right";
|
||||
positionY = "top";
|
||||
layer = "overlay";
|
||||
control-center-layer = "top";
|
||||
layer-shell = true;
|
||||
cssPriority = "application";
|
||||
control-center-margin-top = 0;
|
||||
control-center-margin-bottom = 0;
|
||||
control-center-margin-right = 0;
|
||||
control-center-margin-left = 0;
|
||||
notification-2fa-action = true;
|
||||
notification-inline-replies = false;
|
||||
notification-icon-size = 64;
|
||||
notification-body-image-height = 100;
|
||||
notification-body-image-width = 200;
|
||||
};
|
||||
style =
|
||||
''
|
||||
.notification-row {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.notification-row:focus,
|
||||
.notification-row:hover {
|
||||
background: @noti-bg-focus;
|
||||
}
|
||||
|
||||
.notification {
|
||||
border-radius: 12px;
|
||||
margin: 6px 12px;
|
||||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7),
|
||||
0 2px 6px 2px rgba(0, 0, 0, 0.3);
|
||||
padding: 0;
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
programs = {
|
||||
eww = {
|
||||
enable = true;
|
||||
configDir = ../../homes/emenel/dotfiles/dot_config/eww;
|
||||
};
|
||||
# eww = {
|
||||
# enable = true;
|
||||
# configDir = ../../homes/emenel/dotfiles/dot_config/eww;
|
||||
# };
|
||||
firefox.enable = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ in {
|
|||
{ command = ["clipse" "-listen"]; }
|
||||
{ command = ["swayosd-server"]; }
|
||||
{ command = ["waybar"]; }
|
||||
# { command = ["eww" "daemon"]; }
|
||||
{ command = [ "systemctl" "--user" "restart" "hypridle.service" "xwayland-satellite.service" ]; }
|
||||
];
|
||||
|
||||
|
@ -165,12 +166,19 @@ in {
|
|||
};
|
||||
}
|
||||
|
||||
# Open the Firefox picture-in-picture player as floating by default.
|
||||
{ # This app-id regular expression will work for both:
|
||||
{ # Open the Firefox picture-in-picture player as floating by default.
|
||||
# This app-id regular expression will work for both:
|
||||
# host Firefox (app-id is "firefox")
|
||||
# Flatpak Firefox (app-id is "org.mozilla.firefox")
|
||||
matches = [ { app-id= "r#\"firefox$\"# title=\"^Picture-in-Picture$\""; } ];
|
||||
open-floating = true; }
|
||||
open-floating = true;
|
||||
}
|
||||
|
||||
{ matches = [ { app-id="Renoise"; }
|
||||
{ app-id="Bitwig"; }
|
||||
{ app-id="labwc"; }];
|
||||
open-maximized = true;
|
||||
}
|
||||
];
|
||||
|
||||
switch-events = with config.lib.niri.actions; {
|
||||
|
@ -273,8 +281,8 @@ in {
|
|||
"Mod+Page_Up".action = focus-workspace-up;
|
||||
"Mod+U".action = focus-workspace-down;
|
||||
"Mod+I".action = focus-workspace-up;
|
||||
"Mod+Alt+Down".action = move-column-to-workspace-down;
|
||||
"Mod+Alt+Up".action = move-column-to-workspace-up;
|
||||
"Mod+Ctrl+Page_Down".action = move-column-to-workspace-down;
|
||||
"Mod+Ctrl+Page_Up".action = move-column-to-workspace-up;
|
||||
"Mod+Ctrl+U".action = move-column-to-workspace-down;
|
||||
"Mod+Ctrl+I".action = move-column-to-workspace-up;
|
||||
|
||||
|
|
76
modules/home/swaync.nix
Normal file
76
modules/home/swaync.nix
Normal file
|
@ -0,0 +1,76 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.swaync = {
|
||||
enable = true;
|
||||
settings = {
|
||||
positionX = "right";
|
||||
positionY = "top";
|
||||
layer = "overlay";
|
||||
control-center-layer = "top";
|
||||
layer-shell = true;
|
||||
cssPriority = "application";
|
||||
control-center-margin-top = 0;
|
||||
control-center-margin-bottom = 0;
|
||||
control-center-margin-right = 0;
|
||||
control-center-margin-left = 0;
|
||||
notification-2fa-action = true;
|
||||
notification-inline-replies = false;
|
||||
notification-icon-size = 64;
|
||||
notification-body-image-height = 100;
|
||||
notification-body-image-width = 200;
|
||||
image-visibility = "when-available";
|
||||
|
||||
widgets = [
|
||||
"inhibitors"
|
||||
"dnd"
|
||||
"notifications"
|
||||
];
|
||||
|
||||
widget-config = {
|
||||
inhibitors = {
|
||||
"text" = "Inhibitors";
|
||||
"button-text" = "Clear All";
|
||||
"clear-all-button" = true;
|
||||
};
|
||||
title = {
|
||||
"text" = "Notifications";
|
||||
"clear-all-button" = false;
|
||||
"button-text" = "Clear All";
|
||||
};
|
||||
dnd = {
|
||||
"text" = "Do Not Disturb";
|
||||
};
|
||||
label = {
|
||||
"max-lines" = 5;
|
||||
"text" = "Label Text";
|
||||
};
|
||||
};
|
||||
};
|
||||
style =
|
||||
''
|
||||
.control-center {
|
||||
background: #111111;
|
||||
border-radius: 6px;
|
||||
padding: 6px;
|
||||
border: 2px solid #34548a;
|
||||
}
|
||||
.notification-row {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.notification-row:focus,
|
||||
.notification-row:hover {
|
||||
background: @noti-bg-focus;
|
||||
}
|
||||
|
||||
.notification {
|
||||
border-radius: 6px;
|
||||
margin: 6px 12px;
|
||||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7),
|
||||
0 2px 6px 2px rgba(0, 0, 0, 0.3);
|
||||
padding: 0;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue