Skip to content

Commit

Permalink
Disable Hyprland animations
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudlena committed Jan 18, 2025
1 parent 165d96a commit 014f733
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 41 deletions.
43 changes: 22 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,28 @@ The whole setup follows the [Tokyo Night](https://github.com/folke/tokyonight.nv

## Keybindings

| Function | Keys |
| :------------------------ | :------------------------------------------------------ |
| Open App Launcher | `Super + Space` |
| Open Terminal | `Super + Enter` |
| Focus Last Window | `Super + Tab` |
| Open Web Browser | `Super + W` |
| Kill Active Window | `Super + Q` |
| Toggle Fullscreen Window | `Super + F` |
| Toggle Floating Window | `Super + S` |
| Open Clipboard History | `Super + C` |
| Open Emoji Picker | `Super + E` |
| Open Color Picker | `Super + P` |
| Lock Screen | `Super + Ctrl + Q` |
| Open Empty Workspace | `Super + N` |
| Switch to Workspace | `Super + [1-9]` |
| Move Window to Workspace | `Super + Shift + [1-9]` |
| Switch to Scratchpad | `Super + 0` |
| Move Window to Scratchpad | `Super + Shift + 0` |
| Switch to Window | `Super + [hjkl]` or `Move Mouse` |
| Move Window | `Super + Shift + [hjkl]` or `Super + Left Mouse Button` |
| Resize Window | `Super + Right Mouse Button` |
| Function | Keys |
| :----------------------------- | :------------------------------------------------------ |
| Open App Launcher | `Super + Space` |
| Open Terminal | `Super + Enter` |
| Focus Last Window | `Super + Tab` |
| Open Web Browser | `Super + W` |
| Kill Active Window | `Super + Q` |
| Toggle Fullscreen Window | `Super + F` |
| Toggle Floating Window | `Super + S` |
| Open Clipboard History | `Super + C` |
| Open Emoji Picker | `Super + E` |
| Open Color Picker | `Super + P` |
| Lock Screen | `Super + Ctrl + Q` |
| Open Empty Workspace | `Super + N` |
| Switch to Workspace | `Super + [1-9]` |
| Move Window to Empty Workspace | `Super + Shift + N` |
| Move Window to Workspace | `Super + Shift + [1-9]` |
| Switch to Scratchpad | `Super + 0` |
| Move Window to Scratchpad | `Super + Shift + 0` |
| Switch to Window | `Super + [hjkl]` or `Move Mouse` |
| Move Window | `Super + Shift + [hjkl]` or `Super + Left Mouse Button` |
| Resize Window | `Super + Right Mouse Button` |

## Terminal Commands

Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 16 additions & 9 deletions home/window-manager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
monitor = "eDP-1,preferred,auto,1.5";
# Smart gaps
windowrulev2 = [ "bordersize 0, floating:0, onworkspace:w[tv1]" ];
animations.enabled = false;
dwindle = {
# Put new splits on the right/bottom
force_split = 2;
Expand Down Expand Up @@ -66,7 +67,7 @@
", XF86Search, exec, $launcherCmd"

# Screenshots
", Print , exec, ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" ${config.xdg.userDirs.pictures}/screenshot-$(date +'%F-%H-%M-%S').png"
", Print, exec, mkdir -p ${config.xdg.userDirs.pictures}; ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" \"${config.xdg.userDirs.pictures}/Screenshot-$(date +'%F-%H-%M-%S').png\""

# Move window focus
"$mod, H, movefocus, l"
Expand All @@ -81,7 +82,7 @@
"$mod SHIFT, L, movewindow, r"

# Switch workspaces
"$mod, N, workspace, empty"
"$mod, N, workspace, emptym"
"$mod, 1, workspace, 1"
"$mod, 2, workspace, 2"
"$mod, 3, workspace, 3"
Expand All @@ -96,6 +97,7 @@
"$mod, mouse_up, workspace, m-1"

# Move active window to workspace
"$mod SHIFT, N, movetoworkspace, emptym"
"$mod SHIFT, 1, movetoworkspace, 1"
"$mod SHIFT, 2, movetoworkspace, 2"
"$mod SHIFT, 3, movetoworkspace, 3"
Expand Down Expand Up @@ -351,15 +353,16 @@
inner-pad = 10;
line-height = 25;
};
border.width = 3;
colors = {
background = "1a1b26ff";
background = "15161eff";
text = "c0caf5ff";
match = "ffffffff";
selection = "bb9af7ff";
selection-text = "ffffffff";
selection-match = "1a1b26ff";
match = "bb9af7ff";
selection = "343a55ff";
selection-match = "bb9af7ff";
selection-text = "c0caf5ff";
border = "bb9af7ff";
};
border.radius = 0;
};
};

Expand Down Expand Up @@ -444,7 +447,11 @@
mako = {
enable = true;
font = "FiraCode Nerd Font 9";
backgroundColor = "#1a1b26";
backgroundColor = "#15161e";
borderRadius = 5;
width = 350;
height = 120;
padding = "8,10";
textColor = "#c0caf5";
borderColor = "#bb9af7";
defaultTimeout = 8000;
Expand Down
11 changes: 9 additions & 2 deletions system/disks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@
mountpoint = "/boot";
};
};
luks = {
swap = {
size = "24G"; # 1.5x RAM
content = {
type = "swap";
randomEncryption = true;
};
};
root = {
size = "100%";
content = {
type = "luks";
name = "crypted";
name = "root";
passwordFile = "/tmp/secret.key";
content = {
type = "filesystem";
Expand Down

0 comments on commit 014f733

Please sign in to comment.