1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-31 07:03:36 +00:00
This commit is contained in:
Rae 5e 2024-12-20 13:56:07 -05:00
parent 25f2cc1a6e
commit c1a57e52f4
4 changed files with 125 additions and 120 deletions

View file

@ -38,126 +38,6 @@
};
};
services = {
polybar = {
enable = true;
script = "polybar &";
settings =
let
background = "#0000";
foreground = "#030910";
color0 = "#d9eafd";
color1 = "#bcccdc";
color2 = "#9aa6b2";
in {
"global/wm" = {
margin-top = 2;
margin-bottom = 2;
};
"bar/top" = {
background = background;
foreground = foreground;
width = "100%";
height = 32;
font-0 = "GohuFont:style=Regular:size=14;3";
modules-left = "cpu memory";
modules-center = "xworkspaces";
modules-right = "battery audio date";
module-margin = 1;
offset-y = 14;
padding = 2;
};
"module/cpu" = {
type = "internal/cpu";
label = "CPU: %percentage%%";
label-background = color0;
label-padding = 2;
interval = 2;
};
"module/memory" = {
type = "internal/memory";
label = "RAM: %percentage_used%%";
label-background = color1;
label-padding = 2;
interval = 2;
};
"module/xwindow" = {
type = "internal/xwindow";
label-active-font = 0;
};
"module/xworkspaces" = {
type = "internal/xworkspaces";
enable-scroll = false;
label-active = "%name%";
label-active-background = color2;
label-active-padding = 1;
label-occupied = "%name%";
label-occupied-foreground = "#fff";
label-occupied-padding = 1;
label-empty = "%name%";
label-empty-foreground = "#fff";
label-empty-padding = 1;
label-urgent = "%name%";
label-urgent-background = color0;
label-urgent-padding = 1;
};
"module/audio" = {
type = "internal/pulseaudio";
};
"module/battery" = {
type = "internal/battery";
battery = "BAT0";
adapter = "ADP1";
label-charging = "BAT: %percentage%%++";
label-discharging = "BAT: %percentage%%";
label-background = color1;
label-padding = 2;
};
"module/date" = {
type = "internal/date";
date = "%b %d %y";
time = "%I:%M %p";
label-background = color0;
label-padding = 2;
interval = 5;
};
};
};
};
dconf.settings = {
"io/elementary/code/settings" = {
font = "Fira Code Light 10";
use-system-font = false;
};
"net/launchpad/plank/docks/dock1" = {
dock-items = [
"gala-multitaskingview.dockitem"
"firefox.dockitem"
"io.elementary.terminal.dockitem"
"codium.dockitem"
"io.elementary.settings.dockitem"
];
};
"org/gnome/desktop/background" = {
picture-uri = "file://" + builtins.toString /home/rae/.dotfiles/assets/wallpapers/current;
};
"org/gnome/desktop/interface" = {
accent-color = "blue";
color-scheme = "prefer-dark";
};
"org/gnome/desktop/wm/preferences" = {
button-layout = ":minimize,maximize,close";
};
"org/pantheon/desktop/gala/appearance" = {
button-layout = ":minimize,maximize,close";
};
"org/pantheon/desktop/gala/behavior" = {
hotcorner-bottomright = "show-workspace-view";
};
};
gtk = {
enable = true;
cursorTheme.name = "Posy's Cursor";

34
nixos/home/dconf.nix Normal file
View file

@ -0,0 +1,34 @@
{ ... }:
{
dconf.settings = {
"io/elementary/code/settings" = {
font = "Fira Code Light 10";
use-system-font = false;
};
"net/launchpad/plank/docks/dock1" = {
dock-items = [
"gala-multitaskingview.dockitem"
"firefox.dockitem"
"io.elementary.terminal.dockitem"
"codium.dockitem"
"io.elementary.settings.dockitem"
];
};
"org/gnome/desktop/background" = {
picture-uri = "file://" + builtins.toString /home/rae/.dotfiles/assets/wallpapers/current;
};
"org/gnome/desktop/interface" = {
accent-color = "blue";
color-scheme = "prefer-dark";
};
"org/gnome/desktop/wm/preferences" = {
button-layout = ":minimize,maximize,close";
};
"org/pantheon/desktop/gala/appearance" = {
button-layout = ":minimize,maximize,close";
};
"org/pantheon/desktop/gala/behavior" = {
hotcorner-bottomright = "show-workspace-view";
};
};
}

View file

@ -2,7 +2,10 @@
{
imports = [
./base.nix
./dconf.nix
./firefox.nix
./neovim.nix
./polybar.nix
];
}

88
nixos/home/polybar.nix Normal file
View file

@ -0,0 +1,88 @@
{ ... }:
{
services.polybar = {
enable = true;
script = "polybar &";
settings =
let
background = "#0000";
foreground = "#030910";
color0 = "#d9eafd";
color1 = "#bcccdc";
color2 = "#9aa6b2";
in {
"global/wm" = {
margin-top = 2;
margin-bottom = 2;
};
"bar/top" = {
background = background;
foreground = foreground;
width = "100%";
height = 32;
font-0 = "GohuFont:style=Regular:size=14;3";
modules-left = "cpu memory";
modules-center = "xworkspaces";
modules-right = "battery audio date";
module-margin = 1;
offset-y = 14;
padding = 2;
};
"module/cpu" = {
type = "internal/cpu";
label = "CPU: %percentage%%";
label-background = color0;
label-padding = 2;
interval = 2;
};
"module/memory" = {
type = "internal/memory";
label = "RAM: %percentage_used%%";
label-background = color1;
label-padding = 2;
interval = 2;
};
"module/xwindow" = {
type = "internal/xwindow";
label-active-font = 0;
};
"module/xworkspaces" = {
type = "internal/xworkspaces";
enable-scroll = false;
label-active = "%name%";
label-active-background = color2;
label-active-padding = 1;
label-occupied = "%name%";
label-occupied-foreground = "#fff";
label-occupied-padding = 1;
label-empty = "%name%";
label-empty-foreground = "#fff";
label-empty-padding = 1;
label-urgent = "%name%";
label-urgent-background = color0;
label-urgent-padding = 1;
};
"module/audio" = {
type = "internal/pulseaudio";
};
"module/battery" = {
type = "internal/battery";
battery = "BAT0";
adapter = "ADP1";
label-charging = "BAT: %percentage%%++";
label-discharging = "BAT: %percentage%%";
label-background = color1;
label-padding = 2;
};
"module/date" = {
type = "internal/date";
date = "%b %d %y";
time = "%I:%M %p";
label-background = color0;
label-padding = 2;
interval = 5;
};
};
};
}