This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/run/current-system/sw/bin/bash | |
SEARCHED_WINDOW=$1 | |
WINDOW_ID=$(xdotool search --classname $SEARCHED_WINDOW|tail -n 1) | |
VISIBLE_WINDOW_ID=$(xdotool search --onlyvisible --classname $SEARCHED_WINDOW|tail -n 1) | |
if [ -z "$VISIBLE_WINDOW_ID" ]; then | |
xdotool windowmap $WINDOW_ID | |
xdotool windowsize $WINDOW_ID 100% 100% | |
xdotool windowactivate $WINDOW_ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; let | |
runtimeLibs = [ gmp nodejs haskellPackages.stack ghc ncurses ]; | |
libPaths = map (x: ":${x}/lib") runtimeLibs; | |
in rec { | |
env = stdenv.mkDerivation { | |
name = "purescript"; | |
buildInputs = [ stdenv haskellPackages.stack ghc ncurses ]; | |
LD_LIBRARY_PATH = lib.foldl (x: y: x + y) "" libPaths; | |
shellHook = '' | |
export PATH=$PATH:$HOME/.local/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; let | |
runtimeLibs = [ dbus glib gnome.gtk gnome.pango atk cairo freetype fontconfig gdk_pixbuf | |
xorg.libX11 xorg.libXrandr xorg.libXext xorg.libXi xorg.libXcursor xorg.libXfixes | |
xorg.libXrender xorg.libXcomposite xorg.libXdamage xorg.libXtst | |
gnome.GConf nss nspr alsaLib cups expat libcap systemd ]; | |
libPaths = map (x: ":${x}/lib") runtimeLibs; | |
in rec { | |
N1Env = stdenv.mkDerivation { | |
name = "N1"; | |
buildInputs = [ stdenv cmake pkgconfig libgnome_keyring nodejs python ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
allowUnfree = true; | |
packageOverrides = pkgs: rec { | |
# jre = pkgs.oraclejre8; | |
# jdk = pkgs.oraclejdk8; | |
sbt = pkgs.sbt.override { | |
jre = pkgs.oraclejre8; | |
}; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() { echo "Usage: $0 [-mh]" 1>&2; exit 1; } | |
while getopts ":mh" o; do | |
case "${o}" in | |
m) | |
echo "found m" | |
m="enabled" | |
;; |