wip(home): refactor home modules *WILL NOT BUILD*

This commit is contained in:
ooks-io 2024-06-04 21:19:35 +12:00
parent 2033810429
commit 6a591ecbf7
115 changed files with 1028 additions and 791 deletions

View file

@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.gaming.bottles;
in
{
config = mkIf cfg.enable {
home.packages = with pkgs; [
bottles
];
};
}

View file

@ -1,17 +0,0 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.ooknet.desktop.gaming.bottles;
in
{
options.ooknet.desktop.gaming.bottles.enable = mkEnableOption "Enable bottles home-manager modules";
config = mkIf cfg.enable {
home.packages = with pkgs; [
bottles
];
};
}

View file

@ -1,17 +1,7 @@
{ lib, ... }:
{
imports = [
./factorio
./lutris
./bottles
./factorio.nix
./lutris.nix
./bottles.nix
];
options.ooknet.desktop.gaming = {
factorio = {
enable = lib.mkEnableOption "Enable factorio home module";
};
};
}

View file

@ -1,7 +1,7 @@
{ lib, config, pkgs, ... }:
let
cfg=config.ooknet.desktop.gaming.factorio;
cfg = config.ooknet.gaming.factorio;
in
{

View file

@ -1,13 +1,11 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.ooknet.desktop.gaming.lutris;
inherit (lib) mkIf;
cfg = config.ooknet.gaming.lutris;
in
{
options.ooknet.desktop.gaming.lutris.enable = mkEnableOption "Enable lutris home-manager module";
config = mkIf cfg.enable {
home.packages = with pkgs; [
(lutris.override {

View file

@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.ooknet.productivity.notes.obsidian;
notes = config.ooknet.desktop.notes;
in
{
options.ooknet.productivity.notes.obsidian.enable = mkEnableOption "";
config = mkIf (cfg.enable || notes == "obsidian") {
home.packages = [ pkgs.obsidian ];
};
}

View file

@ -1,11 +0,0 @@
{ lib, config, pkgs, ... }:
let
cfg = config.ooknet.desktop.productivity.obsidian;
in
{
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ obsidian ];
};
}

View file

@ -1,16 +0,0 @@
{ lib, config, inputs, ... }:
let
cfg = config.ooknet.desktop.wayland.bar.ags;
in
{
imports = [ inputs.ags.homeManagerModules.default ];
config = lib.mkIf cfg.enable {
programs.ags = {
enable = true;
};
};
}

View file

@ -1,14 +1,16 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, osConfig, ... }:
let
fonts = config.ooknet.theme.fonts;
cfg = config.ooknet.desktop.wayland.bar.waybar;
monitorWidth = (lib.head config.monitors).width - 20;
inherit (config.colorscheme) palette;
inherit (lib) mkIf head;
fonts = config.ooknet.fonts;
wayland = config.ooknet.wayland;
monitors = osConfig.ooknet.host.hardware.monitors;
monitorWidth = (head monitors).width - 20;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.bar == "waybar") {
programs.waybar = {
enable = true;
systemd.enable = true;

View file

@ -0,0 +1,5 @@
{
imports = [
./hyprland
];
}

View file

@ -1,8 +1,9 @@
{ lib, config, pkgs, inputs, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
wayland = config.ooknet.wayland;
inherit (import ./pkgs {inherit pkgs;}) hyprbrightness hyprvolume;
inherit (inputs.ooks-scripts.packages.${pkgs.system}) powermenu zellijmenu;
inherit (lib) mkIf;
in
{
imports = [
@ -11,7 +12,7 @@ in
./extras
];
config = lib.mkIf cfg.enable {
config = mkIf (wayland.compositor == "hyprland") {
home.packages = [
pkgs.hyprpicker
hyprvolume

View file

@ -0,0 +1,6 @@
{
imports = [
./hyprcapture.nix
./hyprshade.nix
];
}

View file

@ -1,11 +1,12 @@
{ lib, config, pkgs, inputs, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland.extras.hyprcapture;
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.compositor == "hyprland") {
home.packages = with inputs; [
# Screenshot tool

View file

@ -1,11 +1,12 @@
{ lib, config, pkgs, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland.extras.hyprshade;
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.compositor == "hyprland") {
home.packages = [ pkgs.hyprshade ];
# TODO: implement hyprshade configuration
};

View file

@ -1,13 +1,14 @@
{ config, lib, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
wayland = config.ooknet.wayland;
pointer = config.home.pointerCursor;
inherit (config.colorscheme) palette;
inherit (lib) mkIf;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland = {
settings = {
cursor = {

View file

@ -0,0 +1,131 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
in
{
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings = {
bind = let
terminal = config.home.sessionVariables.TERMINAL;
browser = config.home.sessionVariables.BROWSER;
editor = config.home.sessionVariables.EDITOR;
locker = config.home.sessionVariables.LOCKER;
spotifyctl = "${pkgs.spotify-player}/bin/spotify_player";
discord = "${pkgs.vesktop}/bin/vesktop";
explorer = "${pkgs.cinnamon.nemo-with-extensions}/bin/nemo";
password = "${pkgs._1password-gui}/bin/1password";
in [
# Program Launch
"SUPER, b, exec, ${browser}"
"SUPER, return, exec, ${terminal}"
"SUPER, e, exec, ${terminal} ${editor}"
"SUPERSHIFT, P, exec, ${password}"
"SUPER, d, exec, ${discord}"
"SUPERSHIFT, e, exec, ${explorer}"
"SUPERSHIFT, S, exec, steam"
"SUPER, escape, exec, ${terminal} --title=BTOP btop"
"SUPER CTRL, return, exec, zellijmenu -n"
"SUPER, delete, exec, powermenu -c dmenu"
# Spotify PLayer Controls
"SUPER, bracketright, exec, ${spotifyctl} playback next"
"SUPER, bracketleft, exec, ${spotifyctl} playback previous"
"SUPER, backslash, exec, ${spotifyctl} playback play-pause"
# Brightness
",XF86MonBrightnessUp, exec, hyprbrightness up"
",XF86MonBrightnessDown, exec, hyprbrightness down"
# Volume
",XF86AudioRaiseVolume, exec, hyprvolume up"
",XF86AudioLowerVolume, exec, hyprvolume down"
",XF86AudioMute, exec, hyprvolume mute"
# Window Management
"SUPER, Q, killactive"
"SUPER CTRL, backspace, killactive"
"SUPERSHIFT ALT, delete, exec, hyprkillsession"
"SUPER, F, fullscreen"
"SUPER CTRL, F, fakefullscreen"
"SUPER, Space, togglefloating"
"SUPER, P, pseudo" # dwindle
"SUPER, S, togglesplit" # dwindle
# Focus
"SUPER, left, movefocus,l"
"SUPER, right, movefocus,r"
"SUPER, up, movefocus,u"
"SUPER, down, movefocus,d"
# Move
"SUPERSHIFT, left, movewindow,l"
"SUPERSHIFT, right, movewindow,r"
"SUPERSHIFT, up, movewindow,u"
"SUPERSHIFT, down, movewindow,d"
#Resize
"SUPER CTRL, left, resizeactive,-20 0"
"SUPERCTRL, right, resizeactive,20 0"
"SUPER CTRL, up, resizeactive,0 -20"
"SUPERCTRL, down, resizeactive,0 20"
# Switch workspace
"SUPER, 1, workspace,1"
"SUPER, 2, workspace,2"
"SUPER, 3, workspace,3"
"SUPER, 4, workspace,4"
"SUPER, 5, workspace,5"
"SUPER, 6, workspace,6"
"SUPER, 7, workspace,7"
"SUPER, 8, workspace,8"
"SUPER, 9, workspace,9"
"SUPER, 0, workspace,10"
"SUPER, comma, workspace,e+1"
"SUPER, period, workspace,e-1"
"SUPER, tab, focusCurrentOrLast"
# Move workspace
"SUPERSHIFT, 1, movetoworkspace,1"
"SUPERSHIFT, 2, movetoworkspace,2"
"SUPERSHIFT, 3, movetoworkspace,3"
"SUPERSHIFT, 4, movetoworkspace,4"
"SUPERSHIFT, 5, movetoworkspace,5"
"SUPERSHIFT, 6, movetoworkspace,6"
"SUPERSHIFT, 7, movetoworkspace,7"
"SUPERSHIFT, 8, movetoworkspace,8"
"SUPERSHIFT, 9, movetoworkspace,9"
"SUPERSHIFT, 0, movetoworkspace,10"
# Lock Screen
"SUPER, Backspace, exec, ${locker}"
];
# Mouse
bindm = [
"SUPER, mouse:272, movewindow"
"SUPER, mouse:273, resizewindow"
];
# bindr = [
# "SUPER, SUPER_L, exec, killall rofi || rofi -show drun"
# ];
};
};
}

View file

@ -1,11 +1,12 @@
{ lib, config, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings.env = [
"XDG_SESSION_DESKTOP,hyprland"
"XDG_CURRENT_DESKTOP,hyprland"

View file

@ -1,11 +1,12 @@
{ config, lib, pkgs, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings = {
exec = [
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"

View file

@ -1,11 +1,12 @@
{ lib, config, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings.gestures = {
workspace_swipe = true;
workspace_swipe_forever = true;

View file

@ -0,0 +1,21 @@
{ lib, config, inputs, ... }:
let
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
wallpaperPath = config.ooknet.wallpaper.path;
in
{
config = mkIf (wayland.compositor == "hyprland") {
services.hyprpaper = {
enable = true;
};
xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ${wallpaperPath}
wallpaper = , ${wallpaperPath}
splash = false
ipc = off
'';
};
}

View file

@ -1,11 +1,12 @@
{ lib, config, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings.input = {
kb_layout = "us";
follow_mouse = 1;

View file

@ -1,11 +1,12 @@
{ lib, config, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings.misc = {
mouse_move_enables_dpms = true;
key_press_enables_dpms = true;

View file

@ -1,19 +1,21 @@
{ lib, config, ... }:
{ lib, config, osConfig, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
inherit (lib) mkIf concatMap;
wayland = config.ooknet.wayland;
monitors = osConfig.ooknet.host.hardware.monitors;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings = {
monitor = lib.concatMap (m: let
monitor = concatMap (m: let
resolution = "${toString m.width}x${toString m.height}@${toString m.refreshRate}";
position = "${toString m.x}x${toString m.y}";
basicConfig = "${m.name},${if m.enabled then "${resolution},${position},1" else "disable"}";
in
[ basicConfig ] ++ (if m.transform != 0 then ["${m.name},transform,${toString m.transform}"] else [])
) (config.monitors);
) (monitors);
};
};
}

View file

@ -1,10 +1,13 @@
{ lib, config, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
in
{
config = {
wayland.windowManager.hyprland.settings = lib.mkIf cfg.enable {
config = mkIf (wayland.compositor == "hyprland") {
wayland.windowManager.hyprland.settings = {
windowrulev2 = [
"float,move 191 15,size 924 396,class:^(1Password)$"

View file

@ -1,8 +1,11 @@
{ lib, config, ... }:
{ lib, config, osConfig, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.desktop.wayland;
gpu = osConfig.ooknet.host.hardware.gpu;
in
{
imports = [
./bar
@ -13,16 +16,7 @@ in
./launcher
];
options.ooknet.desktop.wayland = {
enable = lib.mkEnableOption "Enable wayland specific confurations";
nvidia = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable nvidia wayland configuration";
};
};
config = lib.mkIf cfg.enable {
config = mkIf cfg.enable {
home.sessionVariables = {
CLUTTER_BACKEND = "wayland";
NIXOS_OZONE_WL = "1";
@ -33,7 +27,7 @@ in
MOZ_DBUS_REMOTE = "1";
XDG_SESSION_TYPE = "wayland";
SDL_VIDEODRIVER = "wayland";
} // lib.mkIf cfg.nvidia {
} // mkIf (gpu == "nvidia") {
LIBVA_DRIVER_NAME = "nvidia";
GBM_BACKEND = "nvidia-drm";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";

View file

@ -1,34 +0,0 @@
{ config, lib, inputs, pkgs, ... }:
let
cfg = config.ooknet.desktop.wayland.launcher.anyrun;
in
{
imports = [
inputs.anyrun.homeManagerModules.default
];
config = lib.mkIf cfg.enable {
programs.anyrun = {
enable = true;
config = {
plugins = with inputs.anyrun.packages.${pkgs.system}; [
applications
randr
shell
rink
symbols
];
};
extraCss = /* css */ ''
* {
font-family: JetBrains Mono Nerd Font;
}
'';
};
};
}

View file

@ -1,21 +1,6 @@
{ lib, ... }:
{
imports = [
# ./anyrun
./rofi
./tofi
./rofi.nix
./tofi.nix
];
options.ooknet.desktop.wayland.launcher = {
anyrun = {
enable = lib.mkEnableOption "enable anyrun launcher module";
};
rofi = {
enable = lib.mkEnableOption "enable rofi launcher module";
};
tofi = {
enable = lib.mkEnableOption "enable tofi launcher module";
};
};
}

View file

@ -1,12 +1,13 @@
{ lib, config, pkgs, ... }:
let
fonts = config.ooknet.theme.fonts;
cfg = config.ooknet.desktop.wayland.launcher.rofi;
inherit (lib) mkIf;
fonts = config.ooknet.fonts;
wayland = config.ooknet.wayland;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.launcher == "rofi") {
programs.rofi = {
enable = true;
font = "${fonts.monospace.family}";

View file

@ -1,14 +1,14 @@
{ lib, config, pkgs, ... }:
let
cfg = config.ooknet.desktop.wayland.launcher.tofi;
fonts = config.ooknet.theme.fonts;
inherit (config.colorscheme) palette;
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
fonts = config.ooknet.fonts;
in
{
config = lib.mkIf cfg.enable {
config = mkIf (wayland.launcher == "tofi") {
home.packages = [pkgs.tofi];
xdg.configFile."tofi/config".text = /* config */ ''
history = false
@ -37,6 +37,5 @@ in
selection-color = ${palette.base04}
'';
};
}

View file

@ -1,21 +1,7 @@
{ lib, ... }:
{
imports = [
#./gtkLock --- still needs to be implemented
./swaylock
./hyprlock
./swaylock.nix
./hyprlock.nix
];
options.ooknet.desktop.wayland.lockscreen = {
swaylock = {
enable = lib.mkEnableOption "Enable Swaylock screen";
};
hyprlock = {
enable = lib.mkEnableOption "Enable hyprlock screen";
};
};
#TODO: make assertion to prevent 2 lockscreens
}

View file

@ -1,19 +1,15 @@
{ lib, config, inputs, pkgs, ... }:
let
cfg = config.ooknet.desktop.wayland.lockscreen.hyprlock;
fonts = config.ooknet.theme.fonts;
inherit (config.colorscheme) palette;
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
fonts = config.ooknet.fonts;
in
{
imports = [
# inputs.hyprlock.homeManagerModules.default
# inputs.hypridle.homeManagerModules.default
];
config = lib.mkIf cfg.enable {
home.sessionVariables.LOCKER = "hyprlock";
config = mkIf (wayland.locker == "hyprlock") {
ooknet.binds.locker = "hyprlock";
programs.hyprlock = {
settings = {
enable = true;

View file

@ -2,13 +2,14 @@
let
inherit (config.colorscheme) palette;
fonts = config.ooknet.theme.fonts;
wallpaperPath = config.ooknet.theme.wallpaper.path;
cfg = config.ooknet.desktop.wayland.lockscreen.swaylock;
inherit (lib) mkIf;
fonts = config.ooknet.fonts;
wallpaperPath = config.ooknet.wallpaper.path;
wayland = config.ooknet.wayland;
in
{
config = lib.mkIf cfg.enable {
home.sessionVariables.LOCKER = "swaylock";
config = mkIf (wayland.locker == "swaylock") {
ooknet.binds.locker = "swaylock";
programs.swaylock = {
enable = true;
settings = {

View file

@ -1,14 +1,5 @@
{ lib, ... }:
{
imports = [
./mako
#./dunst -- still needs to be implemented
./mako.nix
];
options.ooknet.desktop.wayland.notification = {
mako = {
enable = lib.mkEnableOption "Enable mako notification daemon";
};
};
}

View file

@ -1,10 +1,14 @@
{ config, lib, ... }:
let
inherit (config.colorscheme) palette variant;
fonts = config.ooknet.theme.fonts;
cfg = config.ooknet.desktop.wayland.notification.mako;
in {
config = lib.mkIf cfg.enable {
inherit (lib) mkIf;
fonts = config.ooknet.fonts;
wayland = config.ooknet.wayland;
in
{
config = mkIf (wayland.notification == "mako") {
services.mako = {
enable = true;
iconPath =

View file

@ -1,17 +1,6 @@
{ lib, ... }:
{
imports = [
./gammastep
./tools
./gammastep.nix
./tools.nix
];
options.ooknet.desktop.wayland.utility = {
tools = {
enable = lib.mkEnableOption "Enable wayland specific tools";
};
gammastep = {
enable = lib.mkEnableOption "Enable gammastep module";
};
};
}

View file

@ -1,11 +1,12 @@
{ lib, config, ... }:
let
cfg = config.ooknet.desktop.wayland.utility.gammastep;
inherit (lib) mkIf;
cfg = config.ooknet.wayland;
in
{
config = lib.mkIf cfg.enable {
config = mkIf cfg.enable {
services.gammastep = {
enable = true;
enableVerboseLogging = true;

View file

@ -1,7 +1,8 @@
{ lib, config, pkgs, ... }:
let
cfg = config.ooknet.desktop.wayland.utility.tools;
inherit (lib) mkIf;
cfg = config.ooknet.wayland;
in
{

View file

@ -1,14 +0,0 @@
{ lib, ... }:
{
imports = [
./hyprland
];
options.ooknet.desktop.wayland.windowManager = {
hyprland = {
enable = lib.mkEnableOption "Enable Hyprland window-manager";
};
};
}

View file

@ -1,17 +0,0 @@
{ lib, ... }:
{
imports = [
./hyprcapture
./hyprshade
];
options.ooknet.desktop.wayland.windowManager.hyprland.extras = {
hyprcapture = {
enable = lib.mkEnableOption "Enable hyprcapture screenshot/recording module";
};
hyprshade = {
enable = lib.mkEnableOption "Enable hyprshade tool module";
};
};
}

View file

@ -1,128 +0,0 @@
{ lib, config, pkgs, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
in
{
wayland.windowManager.hyprland.settings = lib.mkIf cfg.enable {
bind = let
terminal = config.home.sessionVariables.TERMINAL;
browser = config.home.sessionVariables.BROWSER;
editor = config.home.sessionVariables.EDITOR;
locker = config.home.sessionVariables.LOCKER;
spotifyctl = "${pkgs.spotify-player}/bin/spotify_player";
discord = "${pkgs.vesktop}/bin/vesktop";
explorer = "${pkgs.cinnamon.nemo-with-extensions}/bin/nemo";
password = "${pkgs._1password-gui}/bin/1password";
in [
# Program Launch
"SUPER, b, exec, ${browser}"
"SUPER, return, exec, ${terminal}"
"SUPER, e, exec, ${terminal} ${editor}"
"SUPERSHIFT, P, exec, ${password}"
"SUPER, d, exec, ${discord}"
"SUPERSHIFT, e, exec, ${explorer}"
"SUPERSHIFT, S, exec, steam"
"SUPER, escape, exec, ${terminal} --title=BTOP btop"
"SUPER CTRL, return, exec, zellijmenu -n"
"SUPER, delete, exec, powermenu -c dmenu"
# Spotify PLayer Controls
"SUPER, bracketright, exec, ${spotifyctl} playback next"
"SUPER, bracketleft, exec, ${spotifyctl} playback previous"
"SUPER, backslash, exec, ${spotifyctl} playback play-pause"
# Brightness
",XF86MonBrightnessUp, exec, hyprbrightness up"
",XF86MonBrightnessDown, exec, hyprbrightness down"
# Volume
",XF86AudioRaiseVolume, exec, hyprvolume up"
",XF86AudioLowerVolume, exec, hyprvolume down"
",XF86AudioMute, exec, hyprvolume mute"
# Window Management
"SUPER, Q, killactive"
"SUPER CTRL, backspace, killactive"
"SUPERSHIFT ALT, delete, exec, hyprkillsession"
"SUPER, F, fullscreen"
"SUPER CTRL, F, fakefullscreen"
"SUPER, Space, togglefloating"
"SUPER, P, pseudo" # dwindle
"SUPER, S, togglesplit" # dwindle
# Focus
"SUPER, left, movefocus,l"
"SUPER, right, movefocus,r"
"SUPER, up, movefocus,u"
"SUPER, down, movefocus,d"
# Move
"SUPERSHIFT, left, movewindow,l"
"SUPERSHIFT, right, movewindow,r"
"SUPERSHIFT, up, movewindow,u"
"SUPERSHIFT, down, movewindow,d"
#Resize
"SUPER CTRL, left, resizeactive,-20 0"
"SUPERCTRL, right, resizeactive,20 0"
"SUPER CTRL, up, resizeactive,0 -20"
"SUPERCTRL, down, resizeactive,0 20"
# Switch workspace
"SUPER, 1, workspace,1"
"SUPER, 2, workspace,2"
"SUPER, 3, workspace,3"
"SUPER, 4, workspace,4"
"SUPER, 5, workspace,5"
"SUPER, 6, workspace,6"
"SUPER, 7, workspace,7"
"SUPER, 8, workspace,8"
"SUPER, 9, workspace,9"
"SUPER, 0, workspace,10"
"SUPER, comma, workspace,e+1"
"SUPER, period, workspace,e-1"
"SUPER, tab, focusCurrentOrLast"
# Move workspace
"SUPERSHIFT, 1, movetoworkspace,1"
"SUPERSHIFT, 2, movetoworkspace,2"
"SUPERSHIFT, 3, movetoworkspace,3"
"SUPERSHIFT, 4, movetoworkspace,4"
"SUPERSHIFT, 5, movetoworkspace,5"
"SUPERSHIFT, 6, movetoworkspace,6"
"SUPERSHIFT, 7, movetoworkspace,7"
"SUPERSHIFT, 8, movetoworkspace,8"
"SUPERSHIFT, 9, movetoworkspace,9"
"SUPERSHIFT, 0, movetoworkspace,10"
# Lock Screen
"SUPER, Backspace, exec, ${locker}"
];
# Mouse
bindm = [
"SUPER, mouse:272, movewindow"
"SUPER, mouse:273, resizewindow"
];
# bindr = [
# "SUPER, SUPER_L, exec, killall rofi || rofi -show drun"
# ];
};
}

View file

@ -1,20 +0,0 @@
{ lib, config, inputs, ... }:
let
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
wallpaperPath = config.ooknet.theme.wallpaper.path;
in
{
config = lib.mkIf cfg.enable {
services.hyprpaper = {
enable = true;
};
xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ${wallpaperPath}
wallpaper = , ${wallpaperPath}
splash = false
ipc = off
'';
};
}