fix screensharing and add workspaces

This commit is contained in:
Kopatz
2024-07-24 20:44:14 +02:00
parent bbcc7320be
commit 76a395149d
5 changed files with 30 additions and 11 deletions

View File

@@ -31,6 +31,17 @@ in {
",preferred,auto,auto"
];
workspace =
lib.lists.optionals (osConfig.networking.hostName == "kop-pc") [
"1,monitor:DP-1"
"2,monitor:DP-1"
"3,monitor:DP-1"
"4,monitor:DP-1"
"5,monitor:DP-1"
"9,monitor:HDMI-A-1"
"10,monitor:HDMI-A-1"
];
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
@@ -50,12 +61,15 @@ in {
kb_options = "";
kb_rules = "";
follow_mouse = 2;
follow_mouse = 1;
float_switch_override_focus = 2;
touchpad = { natural_scroll = true; };
sensitivity = if osConfig.networking.hostName == "kop-pc" then -0.3 else 0; # -1.0 - 1.0, 0 means no modification.
sensitivity = if osConfig.networking.hostName == "kop-pc" then
-0.3
else
0; # -1.0 - 1.0, 0 means no modification.
};
general = {
@@ -249,8 +263,12 @@ in {
"${pkgs.swww} img $(ls -d /synced/default/dinge/Bg/* | shuf -n 1)"
"${pkgs.networkmanagerapplet}/bin/nm-applet --indicator &"
"${pkgs.waybar}/bin/waybar &"
"dex --autostart --environment Hyprland"
"hypridle &"
#"${pkgs.dunst}/bin/dunst &"
] ++ lib.lists.optionals (osConfig.networking.hostName == "kop-pc") [
"[workspace 9 silent] vesktop"
"[workspace 10 silent] firefox"
];
};
extraConfig = let

View File

@@ -14,6 +14,7 @@ in
man-pages
kate
jetbrains.idea-ultimate
typescript
#jetbrains.clion
insomnia
nodejs_22 # needed for tabby extension

View File

@@ -45,7 +45,7 @@ in {
};
xdg.portal.enable = true;
xdg.portal.extraPortals = lib.mkDefault [ pkgs.xdg-desktop-portal-gtk ];
xdg.portal.extraPortals = lib.mkDefault [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-hyprland ];
programs.hyprland = { enable = true; };
@@ -62,6 +62,7 @@ in {
networkmanagerapplet
wayland
wl-clipboard
dex # starts applications according to .desktop files
#qt5.qtwayland
#qt6.qmake
#qt6.qtwayland

View File

@@ -1,17 +1,15 @@
{config, lib, pkgs, ...}:
with lib;
{config, pkgs, lib, ...}:
let
cfg = config.custom.graphical.noise-supression;
in
{
options.custom.graphical.noise-supression = {
enable = mkEnableOption "Enables noise-supression";
enable = lib.mkEnableOption "Enables noise-supression";
};
config = mkIf cfg.enable {
programs.noisetorch.enable = true;
environment.systemPackages = [
pkgs.easyeffects
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
easyeffects
];
};
}

View File

@@ -15,6 +15,7 @@
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
});
hyprland = inputs.hyprland.packages.${prev.stdenv.hostPlatform.system}.hyprland;
xdg-desktop-portal-hyprland = inputs.hyprland.packages.${prev.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
# .png doesnt work :(
#fastfetch = prev.fastfetch.overrideAttrs (oldAttrs: {