mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 20:20:43 +02:00
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{
|
|
userConfig,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
uwsm_run = "${pkgs.uwsm}/bin/uwsm";
|
|
exe = pkg: bin: if userConfig.isNixOS then "${pkg}/bin/${bin}" else "/usr/bin/${bin}";
|
|
jq = exe pkgs.jq "jq";
|
|
grim = exe pkgs.grim "grim";
|
|
satty = exe pkgs.satty "satty";
|
|
wl_copy = exe pkgs.wl-clipboard "wl-copy";
|
|
notify_send = exe pkgs.libnotify "notify-send";
|
|
playerctl = exe pkgs.playerctl "playerctl";
|
|
in
|
|
{
|
|
wayland.windowManager.hyprland = {
|
|
settings = {
|
|
"$mainMod" = "SUPER";
|
|
"$terminal" = "${uwsm_run} -- ${pkgs.kitty}/bin/kitty";
|
|
"$menu" = "${pkgs.hyprlauncher}/bin/hyprlauncher";
|
|
"$music_player" =
|
|
if userConfig.isNixOS then "${pkgs.spotify}/bin/spotify" else "flatpak run com.spotify.Client";
|
|
"$notes" = "${pkgs.obsidian}/bin/obsidian";
|
|
"$browser" = if userConfig.isNixOS then "zen-beta" else "zen-browser"; # beta on nixos
|
|
"$openrgb_color" = "09ce30";
|
|
|
|
env = [
|
|
"XCURSOR_SIZE, 32"
|
|
"HYPRCURSOR_SIZE, 32"
|
|
"HYPRCURSOR_THEME, theme_phinger-cursors-light"
|
|
"XDG_CURRENT_DESKTOP,Hyprland"
|
|
];
|
|
|
|
general = {
|
|
gaps_in = 4;
|
|
gaps_out = 6;
|
|
border_size = 4;
|
|
"col.active_border" = "$blue $sky";
|
|
"col.inactive_border" = "$overlay1";
|
|
resize_on_border = false;
|
|
allow_tearing = false;
|
|
layout = "scrolling";
|
|
};
|
|
};
|
|
};
|
|
}
|