From 794e8484e849fa5a5dec91dc5394aea0112f7190 Mon Sep 17 00:00:00 2001 From: Leon Kowarschick <5300871+elkowar@users.noreply.github.com> Date: Fri, 10 Jul 2020 15:16:46 +0200 Subject: [PATCH] Add cool-retro-term to nix --- files/.xmonad/lib/Config.hs | 8 ++++---- files/nix-stuff/nixpkgs/home.nix | 7 +++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/files/.xmonad/lib/Config.hs b/files/.xmonad/lib/Config.hs index 48356d6..bf0740b 100644 --- a/files/.xmonad/lib/Config.hs +++ b/files/.xmonad/lib/Config.hs @@ -526,8 +526,8 @@ main = do -- }}} -mySwallowEventHook = WindowSwallowing.swallowEventHook - (className =? "Alacritty" <||> className =? "Termite" <||> className =? "Thunar") +mySwallowEventHook = WindowSwallowing.swallowEventHook + (className =? "Alacritty" <||> className =? "Termite" <||> className =? "Thunar") (return True) @@ -551,7 +551,7 @@ activateWindowEventHook _ = return $ All True -- | Fixes fullscreen behaviour of chromium based apps by quickly applying and undoing a resize. --- This causes chromium to recalculate the fullscreen window +-- This causes chromium to recalculate the fullscreen window -- dimensions to match the actual "windowed fullscreen" dimensions. fullscreenFixEventHook :: Event -> X All fullscreenFixEventHook (ClientMessageEvent _ _ _ dpy win typ (_:dats)) = do @@ -564,7 +564,7 @@ fullscreenFixEventHook (ClientMessageEvent _ _ _ dpy win typ (_:dats)) = do liftIO $ resizeWindow dpy win (fromIntegral $ wa_width attrs + 1) (fromIntegral $ wa_height attrs) return $ All True fullscreenFixEventHook _ = return $ All True - + diff --git a/files/nix-stuff/nixpkgs/home.nix b/files/nix-stuff/nixpkgs/home.nix index c66e6fb..9a7ab71 100644 --- a/files/nix-stuff/nixpkgs/home.nix +++ b/files/nix-stuff/nixpkgs/home.nix @@ -16,6 +16,12 @@ in nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; }; + cool-retro-term = ( + pkgs.writeScriptBin "cool-retro-term" '' + #!/bin/sh + exec nixGLIntel ${pkgs.cool-retro-term}/bin/cool-retro-term "$@" + '' + ); }; @@ -32,6 +38,7 @@ in exa gromit-mpx zsh-completions + cool-retro-term ];