diff options
author | lassulus <git@lassul.us> | 2023-09-07 12:26:31 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-09-07 12:40:43 +0200 |
commit | 2e5167de1560ad0d7b8e294c72e1913f694160c2 (patch) | |
tree | b618daa9f125650e9276bae7848f854c48d6c95e /lass/5pkgs/xephyrify | |
parent | 6a3a423dad19264c0c42821c7676e85ecc122d21 (diff) |
lass: migrate awayriplass
Diffstat (limited to 'lass/5pkgs/xephyrify')
-rw-r--r-- | lass/5pkgs/xephyrify/default.nix | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/lass/5pkgs/xephyrify/default.nix b/lass/5pkgs/xephyrify/default.nix deleted file mode 100644 index 20c546dbb..000000000 --- a/lass/5pkgs/xephyrify/default.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ writeDashBin, writeHaskellPackage, coreutils, xorg, virtualgl, ... }: - -let - - xephyrify-xmonad = writeHaskellPackage "xephyrify-xmonad" { - executables.xmonad = { - extra-depends = [ - "containers" - "unix" - "xmonad" - ]; - text = /* haskell */ '' - module Main where - import XMonad - import Data.Monoid - import System.Posix.Process (executeFile) - import qualified Data.Map as Map - - main :: IO () - main = do - xmonad def - { workspaces = [ "1" ] - , layoutHook = myLayoutHook - , keys = myKeys - , normalBorderColor = "#000000" - , focusedBorderColor = "#000000" - , handleEventHook = myEventHook - } - - myEventHook :: Event -> X All - - myEventHook (ConfigureEvent { ev_event_type = 22 }) = do - spawn "${xorg.xrandr}/bin/xrandr >/dev/null 2>&1" - return (All True) - - myEventHook _ = do - return (All True) - - myLayoutHook = Full - myKeys _ = Map.fromList [] - ''; - }; - }; - -in writeDashBin "xephyrify" '' - NDISPLAY=''${NDISPLAY:-$(${coreutils}/bin/shuf -i 100-65536 -n 1)} - echo "using DISPLAY $NDISPLAY" - ${xorg.xorgserver}/bin/Xephyr -br -ac -reset -terminate -resizeable -dpi 60 -nolisten local :$NDISPLAY & - if test -n $DROP_TO_USER; then - sleep 1 - ls /tmp/.X11-unix/ - id - ${coreutils}/bin/chgrp "$DROP_TO_USER" "/tmp/.X11-unix/X$NDISPLAY" - ${coreutils}/bin/chmod 770 "/tmp/.X11-unix/X$NDISPLAY" - fi - XEPHYR_PID=$! - DISPLAY=:$NDISPLAY ${xephyrify-xmonad}/bin/xmonad & - XMONAD_PID=$! - DISPLAY=:$NDISPLAY ${virtualgl}/bin/vglrun "$@" - kill $XMONAD_PID - kill $XEPHYR_PID -'' |