update, add hyprland plugin

This commit is contained in:
Kopatz
2025-02-15 16:32:56 +01:00
parent 865527d74b
commit c9fdecc704
6 changed files with 118 additions and 82 deletions

View File

@@ -1,8 +1,9 @@
{
imports = [
./hyprland-settings.nix
./hyprland-settings.nix
./hyprspace.nix
#./hyprland-xwaylandvideobridge.nix not needed anymore
./waybar.nix
./hyprlock.nix
./waybar.nix
./hyprlock.nix
];
}

View File

@@ -77,10 +77,8 @@ in {
touchpad = { natural_scroll = true; };
sensitivity = if osConfig.networking.hostName == "kop-pc" then
-0.4
else
0; # -1.0 - 1.0, 0 means no modification.
accel_profile = "flat";
sensitivity = 0;
};
cursor = { no_hardware_cursors = true; };
@@ -115,7 +113,7 @@ in {
#blur_passes = 1
#blur_new_optimizations = on
shadow = {
shadow = {
enabled = true;
range = 4;
render_power = 3;

View File

@@ -0,0 +1,26 @@
{ config, osConfig, pkgs, inputs, lib, ... }:
let cfg = osConfig.custom.graphical.hyprland;
in {
config = lib.mkIf cfg.enable {
wayland.windowManager.hyprland = {
plugins = [ pkgs.hyprlandPlugins.hyprspace ];
settings = {
bind = [
"$mainMod, TAB, overview:toggle"
"$mainMod SHIFT, TAB, overview:toggle, all"
];
plugin = [{
overview = {
affectStrut = false;
hideTopLayers = true;
panelHeight = 250;
showEmptyWorkspace = false;
showNewWorkspace = true;
disableBlur = true;
};
}];
};
};
};
}

View File

@@ -11,7 +11,7 @@
shellAliases = {
# TODO: gifsicle -O3 --lossy=30 noita-20240328-191617-1612416266-00316616.gif -o noita-20240328-191617-1612416266.gif
backupNoita =
"cp -r ~/.local/share/Steam/steamapps/compatdata/881100/pfx/drive_c/users/steamuser/AppData/LocalLow/Nolla_Games_Noita/save00 /synced/default/backups/noita_save";
"cp -r ~/.local/share/Steam/steamapps/compatdata/881100/pfx/drive_c/users/steamuser/AppData/LocalLow/Nolla_Games_Noita/* /synced/default/backups/noita_save";
checkTime = "(cd /synced/work_drive/TS && nix run)";
checkWaylandWindowsKDE =
"qdbus org.kde.KWin /KWin org.kde.KWin.showDebugConsole";
@@ -28,7 +28,15 @@
dev = "nix-shell --run zsh";
rmt = "trash put";
bat = "bat -P --style plain";
cdf = "cd $(fd --type d --exclude node_modules --exclude bin --exclude target --exclude .cache . | fzf)";
cdf =
"cd $(fd --type d --exclude node_modules --exclude bin --exclude target --exclude .cache . | fzf)";
cpu_performance =
"echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor";
cpu_powersave =
"echo powersave | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor";
cpu_schedutil =
"echo schedutil | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor";
cpu_freq = ''watch -n 1 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""'';
};
#plugins = with pkgs; [
# {