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
|
*.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 = {
|
shellAliases = {
|
||||||
vim = "hx";
|
vim = "hx";
|
||||||
ls = "colorls --gs -A";
|
ls = "eza -lh --icons --git";
|
||||||
ll = "ls -l";
|
lss = "ls --total-size";
|
||||||
lt = "colorls --tree";
|
|
||||||
};
|
};
|
||||||
plugins = with pkgs.fishPlugins; [
|
plugins = with pkgs.fishPlugins; [
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,27 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.kitty ];
|
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 = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
themeFile = "tokyo_night_night";
|
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;
|
package = pkgs.rofi-wayland-unwrapped;
|
||||||
};
|
};
|
||||||
hyprlock = enabled;
|
hyprlock = enabled;
|
||||||
|
hyprpaper = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.extra-substituters.${cachix-url} = {
|
nix.extra-substituters.${cachix-url} = {
|
||||||
|
@ -108,7 +109,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
"hyprpaper"
|
||||||
"waybar"
|
"waybar"
|
||||||
"dunst"
|
"dunst"
|
||||||
"systemctl --user start plasma-polkit-agent"
|
"systemctl --user start plasma-polkit-agent"
|
||||||
|
@ -168,13 +169,16 @@ in
|
||||||
popups_ignorealpha = 0.2;
|
popups_ignorealpha = 0.2;
|
||||||
};
|
};
|
||||||
|
|
||||||
drop_shadow = true;
|
shadow = {
|
||||||
shadow_ignore_window = true;
|
enabled = true;
|
||||||
shadow_offset = "0 15";
|
range = 100;
|
||||||
shadow_range = 100;
|
render_power = 2;
|
||||||
shadow_render_power = 2;
|
ignore_window = true;
|
||||||
shadow_scale = 0.97;
|
color = "rgba(00000055)";
|
||||||
"col.shadow" = "rgba(00000055)";
|
offset = "0 15";
|
||||||
|
scale = 0.97;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
animations = {
|
animations = {
|
||||||
|
|
|
@ -23,7 +23,7 @@ in
|
||||||
tree
|
tree
|
||||||
ripgrep
|
ripgrep
|
||||||
fzf
|
fzf
|
||||||
colorls
|
eza
|
||||||
|
|
||||||
wslu
|
wslu
|
||||||
wsl-open
|
wsl-open
|
||||||
|
|
|
@ -24,7 +24,7 @@ in
|
||||||
tree
|
tree
|
||||||
ripgrep
|
ripgrep
|
||||||
fzf
|
fzf
|
||||||
colorls
|
eza
|
||||||
|
|
||||||
#optional
|
#optional
|
||||||
pciutils
|
pciutils
|
||||||
|
|
|
@ -51,7 +51,14 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
environment.systemPackages = with pkgs; [ ];
|
environment.systemPackages = [ ];
|
||||||
|
|
||||||
|
# remove default nix alias
|
||||||
|
environment.shellAliases = {
|
||||||
|
l = null;
|
||||||
|
ls = null;
|
||||||
|
ll = null;
|
||||||
|
};
|
||||||
|
|
||||||
programs.fish = enabled;
|
programs.fish = enabled;
|
||||||
users.defaultUserShell = pkgs.fish;
|
users.defaultUserShell = pkgs.fish;
|
||||||
|
|
Loading…
Reference in a new issue