mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
more stuff
This commit is contained in:
8
desktops/hyprland/dunst.nix
Normal file
8
desktops/hyprland/dunst.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
origin = "top-left";
|
||||
};
|
||||
};
|
||||
}
|
||||
64
desktops/hyprland/hyprland.nix
Normal file
64
desktops/hyprland/hyprland.nix
Normal file
@@ -0,0 +1,64 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
enableNvidiaPatches = true;
|
||||
settings = {
|
||||
env = [
|
||||
"LIBVA_DRIVER_NAME,nvidia"
|
||||
"XDG_SESSION_TYPE,wayland"
|
||||
"GBM_BACKEND,nvidia-drm"
|
||||
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||
"WLR_NO_HARDWARE_CURSORS,1"
|
||||
];
|
||||
exec-once = [
|
||||
"dunst"
|
||||
"waybar"
|
||||
"swww init"
|
||||
"swww img ~/Pictures/Wallpapers/wallpaper.jpg --transition-type center"
|
||||
];
|
||||
input = {
|
||||
accel_profile = "flat";
|
||||
};
|
||||
bind = import ./keybinds.nix;
|
||||
bindm = import ./mousebinds.nix;
|
||||
monitor = import ./monitors.nix;
|
||||
windowrule = [
|
||||
"pseudo,^(alacritty)$"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.dunst = import ./dunst.nix;
|
||||
|
||||
programs.alacritty.enable = true;
|
||||
programs.waybar = import ./waybar.nix;
|
||||
programs.wofi = import ./wofi.nix;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
xwaylandvideobridge
|
||||
hyprpicker
|
||||
wttrbar
|
||||
swww
|
||||
];
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Adwaita";
|
||||
package = pkgs.adw-gtk3;
|
||||
};
|
||||
};
|
||||
|
||||
home.file.profile = {
|
||||
enable = true;
|
||||
target = ".zprofile"; # change to .profile if you're not using zsh
|
||||
text = ''
|
||||
Hyprland && echo "goodbye" && exit 0 \
|
||||
|| echo "$? couldn't launch Hyprland" && tty | grep tty1 \
|
||||
&& echo "refusing to autologin without Hyprland on tty1" && exit 0 \
|
||||
|| echo "not on tty1, letting in"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
6
desktops/hyprland/keybinds.nix
Normal file
6
desktops/hyprland/keybinds.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
[
|
||||
"SUPER,Q,killactive"
|
||||
"SUPER,T,exec,alacritty"
|
||||
",SUPER,exec,wofi --show=dmenu"
|
||||
"SUPER_SHIFT,C,exec,hyprpicker"
|
||||
]
|
||||
5
desktops/hyprland/monitors.nix
Normal file
5
desktops/hyprland/monitors.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
[
|
||||
"DP-1,1920x1080@240,0x0,1,vrr,1"
|
||||
"DP-3,2560x1440@75,1920x0,1,vrr,1"
|
||||
"HDMI-A-1,1920x1080@75,0x1080,1,transform,2"
|
||||
]
|
||||
4
desktops/hyprland/mousebinds.nix
Normal file
4
desktops/hyprland/mousebinds.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
[
|
||||
"SUPER,mouse:272,movewindow"
|
||||
"SUPER,mouse:273,resizewindow"
|
||||
]
|
||||
30
desktops/hyprland/waybar.nix
Normal file
30
desktops/hyprland/waybar.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
enable = true;
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 48;
|
||||
output = "HDMI-A-1";
|
||||
modules-center = [ "wlr/taskbar" ];
|
||||
modules-right = [ "custom/weather" "clock" ];
|
||||
|
||||
"wlr/taskbar" = {
|
||||
all-outputs = true;
|
||||
};
|
||||
|
||||
"custom/weather" = {
|
||||
format = "{}";
|
||||
tooltip = true;
|
||||
interval = 3600;
|
||||
exec = "wttrbar --location Berlin";
|
||||
return-type = "json";
|
||||
};
|
||||
};
|
||||
};
|
||||
style = ''
|
||||
window#waybar {
|
||||
background: black;
|
||||
}
|
||||
'';
|
||||
}
|
||||
6
desktops/hyprland/wofi.nix
Normal file
6
desktops/hyprland/wofi.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
enable = true;
|
||||
settings = {};
|
||||
style = ''
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user