hyprland: setup hyprpanel, fix nvidia issues, accomodate new shadow config
a big part of this was an accidental commit of the gitbutler integration commit that i accidently commited when it broke due to nix rust issues. the new server was also added in this, but further config happens in #1
This commit is contained in:
parent
83db829e19
commit
8f3c53dee5
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -1 +1,3 @@
|
|||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.webp filter=lfs diff=lfs merge=lfs -text
|
||||
*.jpg filter=lfs diff=lfs merge=lfs -text
|
||||
|
|
|
@ -38,9 +38,8 @@ in
|
|||
'';
|
||||
shellAliases = {
|
||||
vim = "hx";
|
||||
ls = "colorls --gs -A";
|
||||
ll = "ls -l";
|
||||
lt = "colorls --tree";
|
||||
ls = "eza -lh --icons --git";
|
||||
lss = "ls --total-size";
|
||||
};
|
||||
plugins = with pkgs.fishPlugins; [
|
||||
{
|
||||
|
|
|
@ -17,6 +17,27 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.kitty ];
|
||||
|
||||
home.sessionVariables.TERMINAL = "kitty";
|
||||
|
||||
# TODO: move this to a thunar specific module
|
||||
home.file.".config/Thunar/uca.xml".text = ''
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<actions>
|
||||
<action>
|
||||
<icon>kitty</icon>
|
||||
<name>Open Kitty here</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1726095927116900-1</unique-id>
|
||||
<command>${pkgs.kitty}/bin/kitty %f</command>
|
||||
<description>Example for a custom action</description>
|
||||
<range></range>
|
||||
<patterns>*</patterns>
|
||||
<startup-notify/>
|
||||
<directories/>
|
||||
</action>
|
||||
</actions>
|
||||
'';
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
themeFile = "tokyo_night_night";
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.1 MiB After Width: | Height: | Size: 132 B |
42
modules/nixos/desktop/addons/hyprpaper/default.nix
Normal file
42
modules/nixos/desktop/addons/hyprpaper/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
namespace,
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
# hyprpaper-package = inputs.hyprpaper.packages.${system}.hyprpaper;
|
||||
|
||||
cfg = config.${namespace}.desktop.addons.hyprpaper;
|
||||
|
||||
username = config.${namespace}.user.name;
|
||||
in
|
||||
{
|
||||
options.${namespace}.desktop.addons.hyprpaper = {
|
||||
enable = mkEnableOption "Enable Hyprpaper";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
snowfallorg.users.${username}.home.config = {
|
||||
home.file = {
|
||||
# https://www.reddit.com/r/WidescreenWallpaper/comments/13hib3t/purple_firewatch_3840x1620/
|
||||
"Pictures/firewatch.jpg".source = ./firewatch.jpg;
|
||||
};
|
||||
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings = {
|
||||
preload = [
|
||||
"/home/${username}/Pictures/firewatch.jpg"
|
||||
];
|
||||
wallpaper = "monitor DP-2, /home/${username}/Pictures/firewatch.jpg";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
BIN
modules/nixos/desktop/addons/hyprpaper/firewatch.jpg
(Stored with Git LFS)
Normal file
BIN
modules/nixos/desktop/addons/hyprpaper/firewatch.jpg
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -86,6 +86,7 @@ in
|
|||
package = pkgs.rofi-wayland-unwrapped;
|
||||
};
|
||||
hyprlock = enabled;
|
||||
hyprpaper = enabled;
|
||||
};
|
||||
|
||||
nix.extra-substituters.${cachix-url} = {
|
||||
|
@ -108,7 +109,7 @@ in
|
|||
];
|
||||
|
||||
exec-once = [
|
||||
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
||||
"hyprpaper"
|
||||
"waybar"
|
||||
"dunst"
|
||||
"systemctl --user start plasma-polkit-agent"
|
||||
|
@ -168,13 +169,16 @@ in
|
|||
popups_ignorealpha = 0.2;
|
||||
};
|
||||
|
||||
drop_shadow = true;
|
||||
shadow_ignore_window = true;
|
||||
shadow_offset = "0 15";
|
||||
shadow_range = 100;
|
||||
shadow_render_power = 2;
|
||||
shadow_scale = 0.97;
|
||||
"col.shadow" = "rgba(00000055)";
|
||||
shadow = {
|
||||
enabled = true;
|
||||
range = 100;
|
||||
render_power = 2;
|
||||
ignore_window = true;
|
||||
color = "rgba(00000055)";
|
||||
offset = "0 15";
|
||||
scale = 0.97;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
animations = {
|
||||
|
|
|
@ -23,7 +23,7 @@ in
|
|||
tree
|
||||
ripgrep
|
||||
fzf
|
||||
colorls
|
||||
eza
|
||||
|
||||
wslu
|
||||
wsl-open
|
||||
|
|
|
@ -24,7 +24,7 @@ in
|
|||
tree
|
||||
ripgrep
|
||||
fzf
|
||||
colorls
|
||||
eza
|
||||
|
||||
#optional
|
||||
pciutils
|
||||
|
|
|
@ -51,7 +51,14 @@ in
|
|||
};
|
||||
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [ ];
|
||||
environment.systemPackages = [ ];
|
||||
|
||||
# remove default nix alias
|
||||
environment.shellAliases = {
|
||||
l = null;
|
||||
ls = null;
|
||||
ll = null;
|
||||
};
|
||||
|
||||
programs.fish = enabled;
|
||||
users.defaultUserShell = pkgs.fish;
|
||||
|
|
Loading…
Reference in a new issue