From 00a3c0b0cd463b387293d7036c4272dc5dc71dd3 Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Mon, 6 Jan 2025 19:16:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=9F=20Resize=20by=20using=20arrow=20ke?= =?UTF-8?q?ys,=20Cowsay=20fortune=20on=20shell=20open?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configuration.nix | 2 ++ home-manager/hyprland/hyprland.conf | 6 ++++++ modules/terminal/shell.nix | 2 ++ 3 files changed, 10 insertions(+) diff --git a/configuration.nix b/configuration.nix index 4c15034..fafd928 100644 --- a/configuration.nix +++ b/configuration.nix @@ -54,6 +54,8 @@ nix-prefetch-github # Cmd to get rev and hash from GitHub gimp vlc + fortune + cowsay ]; nix.settings.experimental-features = [ diff --git a/home-manager/hyprland/hyprland.conf b/home-manager/hyprland/hyprland.conf index 1ec6e75..d404070 100644 --- a/home-manager/hyprland/hyprland.conf +++ b/home-manager/hyprland/hyprland.conf @@ -326,6 +326,12 @@ bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d +# Resize the focused window +binde = $shiftMod, right, resizeactive, 20 0 +binde = $shiftMod, left, resizeactive, -20 0 +binde = $shiftMod, up, resizeactive, 0 -20 +binde = $shiftMod, down, resizeactive, 0 20 + # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 diff --git a/modules/terminal/shell.nix b/modules/terminal/shell.nix index 1121878..7db3e6e 100644 --- a/modules/terminal/shell.nix +++ b/modules/terminal/shell.nix @@ -1,3 +1,4 @@ +# For Fish dotfiles, see: /home-manager/fish.nix and home-manager/starship.nix { pkgs, ... }: { @@ -18,6 +19,7 @@ # Start starship when creating a new shell interactiveShellInit = '' starship init fish | source + fortune | cowsay -f tux ''; shellAliases = { # Transfer shell config to target device