mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 21:19:07 +01:00
Rename namespace de to desktop and dm to login
This commit is contained in:
parent
5183f2bc39
commit
e87961276a
6 changed files with 12 additions and 12 deletions
52
modules/home/desktop/hyprland/classic.nix
Normal file
52
modules/home/desktop/hyprland/classic.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.custom.desktop.hyprland.classic.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.desktop.hyprland.classic.enable {
|
||||
custom = {
|
||||
programs = {
|
||||
hyprland.enable = true;
|
||||
rofi.enable = true;
|
||||
hyprlock.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
wpaperd.enable = true;
|
||||
hypridle.enable = true;
|
||||
waybar.enable = true;
|
||||
cliphist.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.dunst.enable = true;
|
||||
|
||||
home.packages = [
|
||||
pkgs.playerctl
|
||||
pkgs.grimblast
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland.extraConfig = lib.mkBefore ''
|
||||
# Variables
|
||||
$play-pause = playerctl --ignore-player=firefox play-pause
|
||||
$play-next = playerctl --ignore-player=firefox next
|
||||
$play-previous = playerctl --ignore-player=firefox previous
|
||||
$mute = wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
$volume-up = wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
||||
$volume-down = wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
$mute-mic = wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||
|
||||
# Launch programs
|
||||
bind = SUPER, R, exec, rofi -show drun
|
||||
bind = SUPER, V, exec, rofi-clipboard
|
||||
|
||||
# Manage session
|
||||
bindrl = SUPER CONTROL, L, exec, loginctl lock-session
|
||||
bindrl = SUPER CONTROL, S, exec, systemctl sleep
|
||||
'';
|
||||
};
|
||||
}
|
||||
42
modules/home/desktop/hyprland/noctalia.nix
Normal file
42
modules/home/desktop/hyprland/noctalia.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.custom.desktop.hyprland.noctalia.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.desktop.hyprland.noctalia.enable {
|
||||
custom = {
|
||||
programs = {
|
||||
hyprland.enable = true;
|
||||
noctalia-shell.enable = true;
|
||||
};
|
||||
|
||||
services.cliphist.enable = true;
|
||||
};
|
||||
|
||||
home.packages = [ pkgs.grimblast ];
|
||||
|
||||
wayland.windowManager.hyprland.extraConfig = lib.mkBefore ''
|
||||
# Variables
|
||||
$ipc = noctalia-shell ipc call
|
||||
$play-pause = $ipc media playPause
|
||||
$play-next = $ipc media next
|
||||
$play-previous = $ipc media previous
|
||||
$mute = $ipc volume muteOutput
|
||||
$volume-up = $ipc volume increase
|
||||
$volume-down = $ipc volume decrease
|
||||
$mute-mic = $ipc volume muteInput
|
||||
|
||||
# Launch programs
|
||||
bind = SUPER, R, exec, $ipc launcher toggle
|
||||
bind = SUPER, V, exec, $ipc launcher clipboard
|
||||
|
||||
# Manage session
|
||||
bindrl = SUPER CONTROL, L, exec, $ipc lockScreen lock
|
||||
bindrl = SUPER CONTROL, S, exec, $ipc sessionMenu lockAndSuspend
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue