mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-23 21:12:22 +00:00
Add cool-retro-term to nix
This commit is contained in:
parent
72c6115634
commit
794e8484e8
2 changed files with 11 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue