Add initial ironbar
This commit is contained in:
parent
f051d864a7
commit
bf5e7e9636
24
flake.lock
24
flake.lock
|
@ -147,6 +147,29 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"ironbar": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"rust-overlay": [
|
||||
"rust-overlay"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1687796165,
|
||||
"narHash": "sha256-DyPw8sIAQh5GzUbn0zyQrzpOYOF//jDUtAKLLMC8rrM=",
|
||||
"owner": "JakeStanger",
|
||||
"repo": "ironbar",
|
||||
"rev": "44313bfc75d1a8449f2ffb3d0731df167b80f8de",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "JakeStanger",
|
||||
"repo": "ironbar",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1687502512,
|
||||
|
@ -201,6 +224,7 @@
|
|||
"hyprland": "hyprland",
|
||||
"hyprland-hy3": "hyprland-hy3",
|
||||
"hyprpaper": "hyprpaper",
|
||||
"ironbar": "ironbar",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nur": "nur",
|
||||
"rust-overlay": "rust-overlay",
|
||||
|
|
|
@ -30,6 +30,12 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
ironbar = {
|
||||
url = "github:JakeStanger/ironbar";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.rust-overlay.follows = "rust-overlay";
|
||||
};
|
||||
|
||||
nur.url = "github:nix-community/NUR";
|
||||
|
||||
# devenv
|
||||
|
|
|
@ -31,6 +31,12 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
ironbar = {
|
||||
url = "github:JakeStanger/ironbar";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.rust-overlay.follows = "rust-overlay";
|
||||
};
|
||||
|
||||
nur.url = "github:nix-community/NUR";
|
||||
|
||||
# devenv
|
||||
|
|
|
@ -75,6 +75,7 @@ plugin {
|
|||
monitor = , preferred, auto, 1
|
||||
|
||||
layerrule = blur, wofi
|
||||
layerrule = blur, ironbar
|
||||
|
||||
windowrulev2 = float, class:^(opensnitch_ui)$
|
||||
windowrulev2 = dimaround, class:^(opensnitch_ui)$
|
||||
|
|
13
modules/ironbar/config.corn
Normal file
13
modules/ironbar/config.corn
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
position = "left"
|
||||
|
||||
margin = {
|
||||
top = 3
|
||||
bottom = 3
|
||||
right = 5
|
||||
}
|
||||
|
||||
start = [
|
||||
{ type = "workspaces" }
|
||||
]
|
||||
}
|
16
modules/ironbar/default.nix
Normal file
16
modules/ironbar/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ system, inputs, config, lib, impurity, ... }: {
|
||||
home-manager.users.${config.main-user} = {
|
||||
imports = [ inputs.ironbar.homeManagerModules.default ];
|
||||
|
||||
programs.ironbar = {
|
||||
enable = true;
|
||||
package = inputs.ironbar.packages.${system}.default;
|
||||
};
|
||||
|
||||
xdg.configFile = {
|
||||
"ironbar/config.json".enable = false;
|
||||
"ironbar/config.corn".source = (impurity.link ./config.corn);
|
||||
"ironbar/style.css".source = (impurity.link ./style.css);
|
||||
};
|
||||
};
|
||||
}
|
47
modules/ironbar/style.css
Normal file
47
modules/ironbar/style.css
Normal file
|
@ -0,0 +1,47 @@
|
|||
* {
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.background {
|
||||
background-color: rgba(0x00, 0x10, 0x17, 0.4);
|
||||
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
border-left-width: 0;
|
||||
border-radius: 10px;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-color: rgba(0x59, 0x59, 0x59, 0.7);
|
||||
}
|
||||
|
||||
#bar {
|
||||
margin: 7px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.popup {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.workspaces > .item {
|
||||
padding: 4px 0;
|
||||
border-radius: 0;
|
||||
border-left-width: 4px;
|
||||
border-style: solid;
|
||||
border-color: transparent;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
.workspaces > .item.focused {
|
||||
border-color: rgba(0x59, 0x59, 0x59, 0.5);
|
||||
background-color: rgba(0xff, 0xff, 0xff, 0.1);
|
||||
border-top-right-radius: 5px;
|
||||
border-bottom-right-radius: 5px;
|
||||
}
|
||||
|
||||
.clock {
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
}
|
|
@ -14,6 +14,9 @@
|
|||
# power management
|
||||
services.tlp.enable = true;
|
||||
|
||||
# battery status in ironbar
|
||||
services.upower.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
vim
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{ system, inputs, pkgs, config, ... }: {
|
||||
imports = [
|
||||
../ironbar
|
||||
];
|
||||
|
||||
system.extraDependencies = with pkgs; [ ungoogled-chromium ];
|
||||
|
||||
fonts = {
|
||||
|
|
Loading…
Reference in a new issue