remove hyprland from config

This commit is contained in:
Noa Aarts 2024-11-19 22:49:29 +01:00
parent c3a4fc2bb2
commit 3c0896e976
Signed by: noa
GPG key ID: 1850932741EFF672
24 changed files with 235 additions and 1134 deletions

View file

@ -76,7 +76,8 @@ in
margin-top = 8;
margin-left = 10;
margin-right = 10;
output = builtins.map (display: display.name) config.modules.hyprland.displays;
# TODO: find a new way to do outputs nicely
# output = builtins.map (display: display.name) config.modules.hyprland.displays;
modules-left = cfg.modules.left;
modules-center = cfg.modules.center;
modules-right = cfg.modules.right;

View file

@ -1,4 +1,10 @@
{ lib, config, ... }:
{
lib,
config,
pkgs,
inputs,
...
}:
let
name = "custom/poweroff";
in
@ -9,16 +15,12 @@ in
enable = lib.mkEnableOption "enable ${name} waybar module";
};
};
imports = [
../wofi.nix
];
config = lib.mkIf config.modules.waybar.enabled.${name}.enable {
modules.wofi.enable = true;
programs.waybar = {
settings.mainBar."${name}" = {
format = "";
on-click = "wofi-power";
on-click-right = "swaylock"; # TODO: change to whatever lock screen i want
on-click = "${inputs.self.packages.${pkgs.system}.fuzzel-launch}";
on-click-right = "${pkgs.swaylock}/bin/swaylock"; # TODO: change to whatever lock screen i want
};
style = ''
#custom-poweroff {

View file

@ -1,6 +1,6 @@
{ lib, config, ... }:
let
name = "hyprland/window";
name = "niri/window";
in
{
options.modules.waybar = {

View file

@ -1,6 +1,6 @@
{ lib, config, ... }:
let
name = "hyprland/workspaces";
name = "niri/workspaces";
in
{
options.modules.waybar = {