Zoom Xephyr
This commit is contained in:
parent
2c054f2395
commit
19896f29ca
|
@ -2,9 +2,21 @@
|
|||
let
|
||||
modes = pkgs.lib.attrNames (import ../machines.nix).apollo;
|
||||
configPath = "${config.home.homeDirectory}/git/config";
|
||||
xinitRc = pkgs.writeScript "zoom-xinitrc" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
unset WAYLAND_DISPLAY
|
||||
export QT_QPA_PLATFORM=xcb
|
||||
export DISPLAY=":99"
|
||||
${pkgs.zoom-us}/bin/zoom-us &
|
||||
exec ${pkgs.icewm}/bin/icewm
|
||||
'';
|
||||
in {
|
||||
|
||||
home.packages = builtins.attrValues rec {
|
||||
zoom = pkgs.writeScriptBin "zoom-wrapper" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
exec ${pkgs.xorg.xinit}/bin/xinit ${xinitRc} -- ${pkgs.xorg.xorgserver}/bin/Xephyr :99 -screen 1366x768 -resizeable
|
||||
'';
|
||||
maintenance = pkgs.writeShellScriptBin "maintenance" ''
|
||||
set -e
|
||||
git -C ~/git/config pull --ff-only
|
||||
|
@ -44,8 +56,8 @@ in {
|
|||
} ''
|
||||
main = do
|
||||
mode <- decodeUtf8 <$> (dialog "--menu" "Select Mode" "20" "80" "5" ${
|
||||
lib.concatStrings (map (mode: "\"${mode}\" \"\" ") modes)
|
||||
} |!> captureTrim)
|
||||
lib.concatStrings (map (mode: ''"${mode}" "" '') modes)
|
||||
} |!> captureTrim)
|
||||
clear
|
||||
writeFile "/home/maralorn/volatile/mode" mode
|
||||
activate_mode
|
||||
|
|
Loading…
Reference in a new issue