base niri config
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 21s
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 21s
This commit is contained in:
parent
e13d03d362
commit
a7781200a0
5 changed files with 193 additions and 12 deletions
|
|
@ -3,12 +3,39 @@
|
|||
./keybinds.nix
|
||||
];
|
||||
|
||||
catppuccin.hyprland.enable = false; # temp fix until i get things migrated to lua
|
||||
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
programs.niri = {
|
||||
settings = {
|
||||
outputs."eDP-1" = {
|
||||
mode = { width=1920; height=1080; refresh=60.006; };
|
||||
position = { x=0; y=0; };
|
||||
scale = 1.0;
|
||||
};
|
||||
environment = {
|
||||
XCURSOR_SIZE = "24";
|
||||
XCURSOR_THEME = "catppuccin-${ctp-opt.flavor}-light-cursors";
|
||||
|
||||
CLIPHIST_MAX_ITEMS = "36";
|
||||
|
||||
GTK_APPLICATION_PREFER_DARK_THEME = "1";
|
||||
GTK_THEME = "Adwaita:dark";
|
||||
QT_QPA_PLATFORMTHEME = "kvantum";
|
||||
QT_STYLE_OVERRIDE = "kvantum";
|
||||
};
|
||||
spawn-at-startup = map (sh: { inherit sh; }) [
|
||||
"wl-paste --type text --watch cliphist store"
|
||||
"wl-paste --type image --watch cliphist store"
|
||||
|
||||
"waybar &"
|
||||
"sunshine &"
|
||||
"blueman-applet &"
|
||||
"nm-applet &"
|
||||
"tailscale systray &"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
catppuccin.hyprland.enable = false; # temp fix until i get things migrated to lua
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = pkgs.hyprland; # inputs.hl.packages."${pkgs.system}".hyprland;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,31 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.niri.settings.binds = {
|
||||
"XF86AudioRaiseVolume" = { action.spawn = [ "wpctl" "set-volume" "-l" "1" "@DEFAULT_AUDIO_SINK@" "5%+" ]; allow-when-locked = true; };
|
||||
"XF86AudioLowerVolume" = { action.spawn = [ "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-" ]; allow-when-locked = true; };
|
||||
"XF86AudioMute" = { action.spawn = [ "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle" ]; allow-when-locked = true; };
|
||||
"XF86AudioMicMute" = { action.spawn = [ "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle" ]; allow-when-locked = true; };
|
||||
"XF86MonBrightnessUp" = { action.spawn = [ "brightnessctl" "s" "10%+" ]; allow-when-locked = true; };
|
||||
"XF86MonBrightnessDown" = { action.spawn = [ "brightnessctl" "s" "10%-" ]; allow-when-locked = true; };
|
||||
|
||||
"Mod+Q".action.close-window = {};
|
||||
"Mod+W".action.maximize-column = {};
|
||||
"Print".action.screenshot-screen = {};
|
||||
|
||||
"Mod+Up".action.focus-workspace-up = {};
|
||||
"Mod+Down".action.focus-workspace-down = {};
|
||||
"Mod+Left".action.focus-column-left = {};
|
||||
"Mod+Right".action.focus-column-right = {};
|
||||
|
||||
"Mod+R".action.spawn = [ "rofi" "-show" "drun" "-show-icons" "-display-drun" ":" "-run-command" "uwsm app -- {cmd}" ];
|
||||
"Mod+E".action.spawn = [ "pcmanfm-qt" ];
|
||||
"Mod+T".action.spawn = [ "kitty" ];
|
||||
"Mod+Y".action.spawn = [ "brave" "--restore-last-session" ];
|
||||
"Mod+Return".action.spawn-sh = "ls ~/Projects | rofi -dmenu -p \"Open Project\" | xargs -I {} sh -c 'mkdir -p ~/Projects/\"{}\" && zeditor ~/Projects/\"{}\"'";
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
gestures = {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
{ pkgs, enable-dm, ... }: {
|
||||
{ inputs, pkgs, enable-dm, ... }: {
|
||||
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
|
||||
imports = [
|
||||
inputs.niri.nixosModules.niri
|
||||
|
||||
./misc/programs.nix
|
||||
./misc/graphics.nix
|
||||
./misc/theme.nix
|
||||
|
|
@ -7,12 +10,15 @@
|
|||
./base.nix
|
||||
];
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
xwayland.enable = true;
|
||||
package = pkgs.hyprland; # if rice.enable then inputs.hl.packages."${pkgs.system}".hyprland else pkgs.hyprland;
|
||||
portalPackage = pkgs.xdg-desktop-portal-hyprland; # inputs.hl.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
|
||||
programs = {
|
||||
niri.enable = true;
|
||||
hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
xwayland.enable = true;
|
||||
package = pkgs.hyprland; # if rice.enable then inputs.hl.packages."${pkgs.system}".hyprland else pkgs.hyprland;
|
||||
portalPackage = pkgs.xdg-desktop-portal-hyprland; # inputs.hl.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue