mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-28 11:10:42 +01:00
refactor: hyprland
This commit is contained in:
47
modules/hypr/hyprland/env.nix
Normal file
47
modules/hypr/hyprland/env.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user