Compare commits
3 Commits
10-pdf-def
...
12-add-bet
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e305eb081 | |||
| b6d1be0efc | |||
| fff6779344 |
@@ -9,7 +9,20 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
modules.hyprland.enable = lib.mkEnableOption "hyprland";
|
modules.hyprland.enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Whether to enable the hyprland configuration module.
|
||||||
|
Warning: This does not include the installation of hyprland itself.
|
||||||
|
recommended dependencies:
|
||||||
|
hyprpaper
|
||||||
|
hypridle
|
||||||
|
hyprlock
|
||||||
|
hyprshot
|
||||||
|
https://github.com/WhySoBad/hyprland-preview-share-picker/tree/master
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.modules.hyprland.enable {
|
config = lib.mkIf config.modules.hyprland.enable {
|
||||||
@@ -22,11 +35,17 @@ in
|
|||||||
"hypr/hyprpaper.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hyprpaper.conf;
|
"hypr/hyprpaper.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hyprpaper.conf;
|
||||||
"hypr/hypridle.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hypridle.conf;
|
"hypr/hypridle.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hypridle.conf;
|
||||||
"hypr/hyprlock.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hyprlock.conf;
|
"hypr/hyprlock.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hyprlock.conf;
|
||||||
|
"hypr/xdph.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/xdph.conf;
|
||||||
"backgrounds".source = config.lib.file.mkOutOfStoreSymlink ./backgrounds;
|
"backgrounds".source = config.lib.file.mkOutOfStoreSymlink ./backgrounds;
|
||||||
|
|
||||||
"hypr/nix.conf".text = ''
|
"hypr/nix.conf".text = ''
|
||||||
$defaultBrowser=${defaultBrowser}
|
$defaultBrowser=${defaultBrowser}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
"hypr/scripts/gpu-screen-recorder/save-replay.sh".source =
|
||||||
|
config.lib.file.mkOutOfStoreSymlink ./hyprland/scripts/gpu-screen-recorder/save-replay.sh;
|
||||||
|
"hypr/scripts/gpu-screen-recorder/start-replay.sh".source =
|
||||||
|
config.lib.file.mkOutOfStoreSymlink ./hyprland/scripts/gpu-screen-recorder/start-replay.sh;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ exec-once = hyprpanel & hyprpaper & hypridle & elephant & walker --gapplication-
|
|||||||
exec-once = gsettings set org.gnome.desktop.interface cursor-theme 'Bibata-Modern-Classic'
|
exec-once = gsettings set org.gnome.desktop.interface cursor-theme 'Bibata-Modern-Classic'
|
||||||
exec-once = gsettings set org.gnome.desktop.interface cursor-size 24
|
exec-once = gsettings set org.gnome.desktop.interface cursor-size 24
|
||||||
|
|
||||||
|
# This requires gpu-screen-recorder to be installed. I installed it with this https://wiki.nixos.org/wiki/Gpu-screen-recorder.
|
||||||
|
exec-once = ~/.config/hypr/scripts/gpu-screen-recorder/start-replay.sh
|
||||||
|
|
||||||
|
|
||||||
exec-once = [workspace 4 silent] signal-desktop
|
exec-once = [workspace 4 silent] signal-desktop
|
||||||
exec-once = [workspace 4 silent] spotify
|
exec-once = [workspace 4 silent] spotify
|
||||||
@@ -226,6 +229,8 @@ bind = SUPER_ALT,L, exec, hyprlock
|
|||||||
bind = ,F10, exec, hyprlock
|
bind = ,F10, exec, hyprlock
|
||||||
bind = $mainMod ALT, Space, exec, hyprctl switchxkblayout current next
|
bind = $mainMod ALT, Space, exec, hyprctl switchxkblayout current next
|
||||||
bind = $mainMod SHIFT, S, exec, hyprshot -m region -z
|
bind = $mainMod SHIFT, S, exec, hyprshot -m region -z
|
||||||
|
# This requires gpu-screen-recorder to be installed. I installed it with this https://wiki.nixos.org/wiki/Gpu-screen-recorder.
|
||||||
|
bind = $mainMod SHIFT, V, exec, ~/.config/hypr/scripts/gpu-screen-recorder/save-replay.sh
|
||||||
bind = $mainMod SHIFT, C, exec, hyprpicker | wl-copy
|
bind = $mainMod SHIFT, C, exec, hyprpicker | wl-copy
|
||||||
bind = $mainMod, Y, exec, firefox
|
bind = $mainMod, Y, exec, firefox
|
||||||
|
|
||||||
|
|||||||
3
homemanager/hyprland/scripts/gpu-screen-recorder/save-replay.sh
Executable file
3
homemanager/hyprland/scripts/gpu-screen-recorder/save-replay.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh -e
|
||||||
|
killall -SIGUSR1 gpu-screen-recorder && sleep 0.5 && notify-send -t 1500 -u low -- "GPU Screen Recorder" "Replay saved"
|
||||||
|
|
||||||
6
homemanager/hyprland/scripts/gpu-screen-recorder/start-replay.sh
Executable file
6
homemanager/hyprland/scripts/gpu-screen-recorder/start-replay.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
pidof -q gpu-screen-recorder && exit 0
|
||||||
|
video_path="$HOME/Videos"
|
||||||
|
mkdir -p "$video_path"
|
||||||
|
gpu-screen-recorder -w screen -f 60 -a default_output -c mkv -bm cbr -q 40000 -r 60 -o "$video_path"
|
||||||
3
homemanager/hyprland/xdph.conf
Normal file
3
homemanager/hyprland/xdph.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
screencopy {
|
||||||
|
custom_picker_binary = hyprland-preview-share-picker
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user