wip: dnsc-machine setup
This commit is contained in:
parent
199007d0ad
commit
a91167b34e
6 changed files with 91 additions and 43 deletions
|
|
@ -12,10 +12,6 @@
|
||||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
ip-whitelist.url = "github:Oak-Digital/nixos-ip-whitelist-firewall";
|
ip-whitelist.url = "github:Oak-Digital/nixos-ip-whitelist-firewall";
|
||||||
nix-homebrew.url = "github:zhaofengli/nix-homebrew";
|
nix-homebrew.url = "github:zhaofengli/nix-homebrew";
|
||||||
ironbar = {
|
|
||||||
url = "github:JakeStanger/ironbar";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
|
@ -26,7 +22,6 @@
|
||||||
nix-darwin,
|
nix-darwin,
|
||||||
nix-homebrew,
|
nix-homebrew,
|
||||||
agenix,
|
agenix,
|
||||||
ironbar,
|
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
|
|
@ -37,7 +32,6 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { inherit inputs outputs; };
|
specialArgs = { inherit inputs outputs; };
|
||||||
modules = [
|
modules = [
|
||||||
ironbar.homeManagerModules.default
|
|
||||||
./hosts/dnsc-machine
|
./hosts/dnsc-machine
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@
|
||||||
nautilus
|
nautilus
|
||||||
nautilus-open-any-terminal
|
nautilus-open-any-terminal
|
||||||
swaynotificationcenter
|
swaynotificationcenter
|
||||||
|
ironbar
|
||||||
];
|
];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
||||||
20
modules/wm/ironbar/config/config.toml
Normal file
20
modules/wm/ironbar/config/config.toml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
position = "left"
|
||||||
|
height = 24
|
||||||
|
icon_theme = "Reversal-dark"
|
||||||
|
|
||||||
|
[[start]]
|
||||||
|
type = "workspaces"
|
||||||
|
|
||||||
|
[[center]]
|
||||||
|
type = "focused"
|
||||||
|
icon_size = 16
|
||||||
|
|
||||||
|
[[end]]
|
||||||
|
type = "volume"
|
||||||
|
|
||||||
|
[[end]]
|
||||||
|
type = "tray"
|
||||||
|
|
||||||
|
[[end]]
|
||||||
|
type = "clock"
|
||||||
|
|
||||||
67
modules/wm/ironbar/config/style.css
Normal file
67
modules/wm/ironbar/config/style.css
Normal file
|
|
@ -0,0 +1,67 @@
|
||||||
|
:root {
|
||||||
|
--color-dark-primary: #1c1c1c;
|
||||||
|
--color-dark-secondary: #2d2d2d;
|
||||||
|
--color-white: #fff;
|
||||||
|
--color-active: #6699cc;
|
||||||
|
--color-urgent: #8f0a0a;
|
||||||
|
|
||||||
|
--margin-lg: 1em;
|
||||||
|
--margin-sm: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
border-radius: 0;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
#bar, popover, popover contents, calendar {
|
||||||
|
background-color: var(--color-dark-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
box, button, label {
|
||||||
|
background-color: #0000;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding-left: var(--margin-sm);
|
||||||
|
padding-right: var(--margin-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover, button:active {
|
||||||
|
background-color: var(--color-dark-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
#end > * + * {
|
||||||
|
margin-left: var(--margin-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sysinfo > * + * {
|
||||||
|
margin-left: var(--margin-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.clock {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-clock .calendar-clock {
|
||||||
|
font-size: 2.0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-clock .calendar .today {
|
||||||
|
background-color: var(--color-active);
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspaces .item.visible {
|
||||||
|
box-shadow: inset 0 -1px var(--color-white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspaces .item.focused {
|
||||||
|
box-shadow: inset 0 -1px var(--color-active);
|
||||||
|
background-color: var(--color-dark-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspaces .item.urgent {
|
||||||
|
background-color: var(--color-urgent);
|
||||||
|
}
|
||||||
|
|
@ -1,42 +1,7 @@
|
||||||
{ pkgs, inputs, ... }:
|
{ pkgs, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.ironbar = {
|
xdg.configFile."ironbar" = {
|
||||||
enable = true;
|
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/wm/ironbar/config";
|
||||||
systemd = true;
|
|
||||||
config = {
|
|
||||||
# An example:
|
|
||||||
monitors = {
|
|
||||||
DP-3 = {
|
|
||||||
anchor_to_edges = true;
|
|
||||||
position = "left";
|
|
||||||
height = 16;
|
|
||||||
start = [
|
|
||||||
{ type = "workspaces"; }
|
|
||||||
];
|
|
||||||
center = [
|
|
||||||
{ type = "focused"; }
|
|
||||||
];
|
|
||||||
end = [
|
|
||||||
{ type = "volume"; }
|
|
||||||
{
|
|
||||||
type = "tray";
|
|
||||||
icon_size = 16;
|
|
||||||
}
|
|
||||||
{ type = "clock"; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
style = /* css */ ''
|
|
||||||
/* An example */
|
|
||||||
* {
|
|
||||||
/* font-family: Noto Sans Nerd Font, sans-serif; */
|
|
||||||
font-size: 14px;
|
|
||||||
border: none;
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
package = inputs.ironbar;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -186,6 +186,7 @@ layout {
|
||||||
|
|
||||||
// Wallpaper Setup
|
// Wallpaper Setup
|
||||||
spawn-at-startup "swaync"
|
spawn-at-startup "swaync"
|
||||||
|
spawn-at-startup "ironbar"
|
||||||
spawn-at-startup "swww-daemon" // Wallpaper
|
spawn-at-startup "swww-daemon" // Wallpaper
|
||||||
spawn-sh-at-startup "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"
|
spawn-sh-at-startup "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue