Skip to content

Commit

Permalink
Merge branch 'main' into ags/fix-icons
Browse files Browse the repository at this point in the history
  • Loading branch information
brckd authored Jul 3, 2024
2 parents e148ef7 + c5dda60 commit 9bdba53
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 11 deletions.
46 changes: 46 additions & 0 deletions configs/home/personal/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{...}: {
home = {
username = "personal";
homeDirectory = "/home/personal";
};

# Terminal
programs.zsh.enable = true;
programs.starship.enable = true;
programs.kitty.enable = true;
programs.fastfetch.enable = true;
programs.git = {
enable = true;
extraConfig = {
push.autoSetupRemote = true;
pull.rebase = true;
};
};
programs.gh.enable = true;

# Desktop environment
wayland.windowManager.hyprland = {
enable = true;
settings.input.kb_layout = "de";
};
programs.wpaperd.enable = true;
programs.ags.enable = true;
programs.rofi = {
enable = true;
keybind.enable = true;
};
services.cliphist.enable = true;

# Editor
programs.nixvim = {
enable = true;
defaultEditor = true;
};

# Music
programs.spotify-player.enable = true;
programs.cava.enable = true;

# Apps
programs.librewolf.enable = true;
}
5 changes: 5 additions & 0 deletions configs/nixos/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
description = "Bricked";
extraGroups = ["networkmanager" "wheel"];
};
personal = {
isNormalUser = true;
description = "Personal";
extraGroups = ["networkmanager" "wheel"];
};
john = {
isNormalUser = true;
description = "John";
Expand Down
2 changes: 1 addition & 1 deletion modules/home/ags/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ in {
configDir = pkgs.buildNpmPackage {
name = "ags-dots";
src = ./.;
npmDepsHash = "sha256-0Phl7IrrKSd8j4yQ3nefJ4xT/QgrvDnlN68G7bDHCfE=";
npmDepsHash = "sha256-0Phl7IrrKSd8j4yQ3nefJ4xT/QgrvDnlN68G7bDHCfE=";

nativeBuildInputs = with pkgs; [bun];
postPatch = ''
Expand Down
2 changes: 1 addition & 1 deletion modules/home/ags/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bricked/ags-dots",
"version": "0.1.0",
"version": "0.1.0",
"module": "src/index.ts",
"devDependencies": {
"@types/bun": "latest",
Expand Down
2 changes: 1 addition & 1 deletion modules/home/ags/widget/Bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const End = () =>
Widget.Box({
hexpand: true,
hpack: "end",
children: [VolumeSlider(), PowerMenu()]
children: [VolumeSlider(), PowerMenu()],
});

export const Bar = (monitor = 0) =>
Expand Down
9 changes: 5 additions & 4 deletions modules/home/ags/widget/PowerMenu.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export const PowerButton = (command: string, icon: string) => Widget.Button({
onClicked: () => Utils.exec(command),
child: Widget.Icon(icon)
})
export const PowerButton = (command: string, icon: string) =>
Widget.Button({
onClicked: () => Utils.exec(command),
child: Widget.Icon(icon),
});

export const PowerMenu = () => Widget.Box({
className: "powermenu",
Expand Down
10 changes: 6 additions & 4 deletions modules/home/ags/widget/VolumeSlider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ const audio = await Service.import("audio");

export const VolumeSlider = (type: "speaker" | "microphone" = "speaker") =>
Widget.Box({
className: "volume-slider",
className: "volume-slider",
children: [
Widget.Label({
label: audio[type].bind("volume").transform(v => Math.round(v * 100).toString()),
}),
Widget.Label({
label: audio[type]
.bind("volume")
.transform((v) => Math.round(v * 100).toString()),
}),
Widget.Slider({
className: "slider",
hexpand: true,
Expand Down

0 comments on commit 9bdba53

Please sign in to comment.