Some more hyprland customization.
This commit is contained in:
parent
12a2486b07
commit
23abcd7c1d
2 changed files with 22 additions and 1 deletions
|
@ -35,6 +35,7 @@
|
||||||
protonup-qt
|
protonup-qt
|
||||||
protontricks
|
protontricks
|
||||||
jellyfin-mpv-shim
|
jellyfin-mpv-shim
|
||||||
|
fractal
|
||||||
];
|
];
|
||||||
|
|
||||||
# Install librewolf
|
# Install librewolf
|
||||||
|
|
|
@ -3,7 +3,24 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
gamemode = pkgs.writeShellScriptBin "gamemode" ''
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
|
||||||
|
if [ "$HYPRGAMEMODE" = 1 ] ; then
|
||||||
|
hyprctl --batch "\
|
||||||
|
keyword animations:enabled 0;\
|
||||||
|
keyword decoration:shadow:enabled 0;\
|
||||||
|
keyword decoration:blur:enabled 0;\
|
||||||
|
keyword general:gaps_in 0;\
|
||||||
|
keyword general:gaps_out 0;\
|
||||||
|
keyword general:border_size 1;\
|
||||||
|
keyword decoration:rounding 0"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
hyprctl reload
|
||||||
|
'';
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
crony.hyprland.enable = lib.mkEnableOption "Enable hyprland and configure it for me";
|
crony.hyprland.enable = lib.mkEnableOption "Enable hyprland and configure it for me";
|
||||||
};
|
};
|
||||||
|
@ -161,6 +178,7 @@
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "us";
|
kb_layout = "us";
|
||||||
kb_options = "caps:escape";
|
kb_options = "caps:escape";
|
||||||
|
accel_profile = "flat";
|
||||||
};
|
};
|
||||||
|
|
||||||
master = {
|
master = {
|
||||||
|
@ -182,6 +200,8 @@
|
||||||
|
|
||||||
"$mod, L, exec, hyprlock --immediate"
|
"$mod, L, exec, hyprlock --immediate"
|
||||||
|
|
||||||
|
"$mod, G, exec, ${gamemode}"
|
||||||
|
|
||||||
"$mod, V, exec, cliphist list | tofi --horizontal false --height 380 | cliphist decode | wl-copy"
|
"$mod, V, exec, cliphist list | tofi --horizontal false --height 380 | cliphist decode | wl-copy"
|
||||||
|
|
||||||
"$mod, j, layoutmsg, cyclenext"
|
"$mod, j, layoutmsg, cyclenext"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue