Keep going

This commit is contained in:
2023-02-08 23:02:36 +00:00
parent a7e729c29f
commit c8727a52d4
7 changed files with 55 additions and 16 deletions

View File

@@ -4,7 +4,7 @@
# ./i3status-rust
# ./polybar
./hyprland
./rofi
./waybar
];

View File

@@ -6,18 +6,7 @@
}: {
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland.overrideAttrs (finalAttrs: previousAttrs: {
buildInputs = previousAttrs.buildInputs ++ [pkgs.makeWrapper];
postInstall = ''
ls -lar $out
wrapProgram $out/bin/Hyprland \
--set LIBVA_DRIVER_NAME nvidia \
--set XDG_SESSION_TYPE wayland \
--set GBM_BACKEND nvidia-drm \
--set __GLX_VENDOR_LIBRARY_NAME nvidia \
--set WLR_NO_HARDWARE_CURSORS 1
'';
});
package = pkgs.hyprland;
xwayland = {
enable = true;
hidpi = true;

View File

@@ -4,7 +4,7 @@ monitor=,preferred,auto,auto
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
exec-once = waybar
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf

View File

@@ -0,0 +1,16 @@
{
"layer": "top",
"modules-left": ["wlr/workspaces", "hyprland/window"],
"modules-center": ["clock"],
"modules-right": ["clock"],
"hyprland/window": {
},
"wlr/workspaces": {
"format": "{icon}",
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1"
},
"clock": {
"format-alt": "{:%a, %d. %b %H:%M}"
}
}

View File

@@ -0,0 +1,14 @@
{
config,
pkgs,
lib,
hostname,
...
}: {
programs.waybar = {
enable = true;
settings = {
main = lib.importJSON ./config.json;
};
};
}