mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 07:15:37 +00:00
add picom
This commit is contained in:
parent
d32757924f
commit
7bfc3c68bd
@ -14,6 +14,7 @@
|
|||||||
x = 20;
|
x = 20;
|
||||||
y = 20;
|
y = 20;
|
||||||
};
|
};
|
||||||
|
opacity = 0.7;
|
||||||
};
|
};
|
||||||
scrolling.history = 10000;
|
scrolling.history = 10000;
|
||||||
font = {
|
font = {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
imports = [ ./xorg.nix ./fonts.nix ./i3.nix ./polybar.nix ];
|
imports = [ ./xorg.nix ./fonts.nix ./i3.nix ./polybar.nix ./picom.nix ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
floating.modifier = modifier;
|
floating.modifier = modifier;
|
||||||
focus = {
|
focus = {
|
||||||
mouseWarping = true;
|
mouseWarping = true;
|
||||||
newWindow = "smart";
|
newWindow = "urgent";
|
||||||
};
|
};
|
||||||
fonts = {
|
fonts = {
|
||||||
names = [ "pango:Victor Mono" "FontAwesome 12" ];
|
names = [ "pango:Victor Mono" "FontAwesome 12" ];
|
||||||
@ -201,7 +201,7 @@
|
|||||||
};
|
};
|
||||||
startup = [
|
startup = [
|
||||||
{
|
{
|
||||||
command = "feh --bg-scale $HOME/Downloads/nord-desert.png";
|
command = "feh --bg-scale $HOME/Downloads/carbon-fiber.jpg";
|
||||||
always = true;
|
always = true;
|
||||||
notification = false;
|
notification = false;
|
||||||
}
|
}
|
||||||
|
39
modules/desktop/picom.nix
Normal file
39
modules/desktop/picom.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{ config, lib, identity, ... }: {
|
||||||
|
|
||||||
|
config = lib.mkIf config.services.xserver.enable {
|
||||||
|
home-manager.users.${identity.user} = {
|
||||||
|
|
||||||
|
services.picom = {
|
||||||
|
enable = true;
|
||||||
|
blur = false;
|
||||||
|
blurExclude = [ ];
|
||||||
|
extraOptions = ''
|
||||||
|
shadow-radius = 60
|
||||||
|
corner-radius = 20
|
||||||
|
'';
|
||||||
|
fade = false;
|
||||||
|
experimentalBackends = true;
|
||||||
|
inactiveDim = "0.2";
|
||||||
|
inactiveOpacity = "1.0";
|
||||||
|
menuOpacity = "1.0";
|
||||||
|
noDNDShadow = false;
|
||||||
|
opacityRule = [
|
||||||
|
"0:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_HIDDEN'" # Hide tabbed windows
|
||||||
|
];
|
||||||
|
shadow = true;
|
||||||
|
shadowExclude = [ ];
|
||||||
|
shadowOffsets = [ (-30) (-30) ];
|
||||||
|
shadowOpacity = "0.25";
|
||||||
|
vSync = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
xsession.windowManager.i3.config.startup = [{
|
||||||
|
command = "systemctl --user restart picom";
|
||||||
|
always = true;
|
||||||
|
notification = false;
|
||||||
|
}];
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3,7 +3,8 @@
|
|||||||
config = lib.mkIf config.services.xserver.enable {
|
config = lib.mkIf config.services.xserver.enable {
|
||||||
|
|
||||||
# Used for icons
|
# Used for icons
|
||||||
fonts.fonts = with pkgs; [ jetbrains-mono font-awesome ];
|
fonts.fonts = with pkgs;
|
||||||
|
[ (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) ];
|
||||||
|
|
||||||
home-manager.users.${identity.user} = {
|
home-manager.users.${identity.user} = {
|
||||||
|
|
||||||
@ -46,11 +47,11 @@
|
|||||||
module-margin = 1;
|
module-margin = 1;
|
||||||
# separator = "|";
|
# separator = "|";
|
||||||
# separator-foreground = colors.disabled;
|
# separator-foreground = colors.disabled;
|
||||||
font-0 = "JetBrainsMono:size=10;2";
|
font-0 = "JetBrainsMono Nerd Font:size=10;2";
|
||||||
# font-0 = "monospace;2";
|
# font-0 = "monospace;2";
|
||||||
font-1 = "Font Awesome 5 Free:size=10";
|
# font-1 = "Font Awesome 5 Free:size=10";
|
||||||
font-2 = "Font Awesome 5 Free Solid:size=10";
|
# font-2 = "Font Awesome 5 Free Solid:size=10";
|
||||||
font-3 = "Font Awesome 5 Brands:size=10";
|
# font-3 = "Font Awesome 5 Brands:size=10";
|
||||||
modules-left = "xworkspaces";
|
modules-left = "xworkspaces";
|
||||||
modules-center = "xwindow";
|
modules-center = "xwindow";
|
||||||
modules-right = "pulseaudio date";
|
modules-right = "pulseaudio date";
|
||||||
@ -92,14 +93,14 @@
|
|||||||
# };
|
# };
|
||||||
"module/pulseaudio" = {
|
"module/pulseaudio" = {
|
||||||
type = "internal/pulseaudio";
|
type = "internal/pulseaudio";
|
||||||
format-volume-prefix = "VOL ";
|
# format-volume-prefix = "VOL ";
|
||||||
format-volume-prefix-foreground = colors.primary;
|
# format-volume-prefix-foreground = colors.primary;
|
||||||
format-volume = "<ramp-volume> <label-volume>";
|
format-volume = "<ramp-volume> <label-volume>";
|
||||||
label-volume = "%percentage%%";
|
label-volume = "%percentage%%";
|
||||||
label-muted = "";
|
label-muted = "ﱝ ---";
|
||||||
label-muted-foreground = colors.disabled;
|
label-muted-foreground = colors.disabled;
|
||||||
ramp-volume-0 = "";
|
ramp-volume-0 = "";
|
||||||
ramp-volume-1 = "";
|
ramp-volume-1 = "墳";
|
||||||
ramp-volume-2 = "";
|
ramp-volume-2 = "";
|
||||||
};
|
};
|
||||||
# "module/xkeyboard" = {
|
# "module/xkeyboard" = {
|
||||||
@ -146,7 +147,7 @@
|
|||||||
"module/date" = {
|
"module/date" = {
|
||||||
type = "internal/date";
|
type = "internal/date";
|
||||||
interval = 1;
|
interval = 1;
|
||||||
date = "%H:%M:%S";
|
date = "%H:%M";
|
||||||
date-alt = "%Y-%m-%d %H:%M:%S";
|
date-alt = "%Y-%m-%d %H:%M:%S";
|
||||||
label = " %date%";
|
label = " %date%";
|
||||||
label-foreground = colors.primary;
|
label-foreground = colors.primary;
|
||||||
|
Loading…
Reference in New Issue
Block a user