about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xmachines/base.nix3
-rw-r--r--machines/x220/configuration.nix1
-rw-r--r--pkgs/dwm/config.h4
-rw-r--r--pkgs/signal.nix10
4 files changed, 17 insertions, 1 deletions
diff --git a/machines/base.nix b/machines/base.nix
index 75935ec..e00ec97 100755
--- a/machines/base.nix
+++ b/machines/base.nix
@@ -37,6 +37,8 @@
 
   ## === XDG ===
   environment.variables = rec {
+    PATH = "$HOME/scripts:$PATH";
+
     XDG_CONFIG_HOME = "$HOME/.config";
     XDG_CACHE_HOME = "$HOME/.cache";
     XDG_DATA_HOME = "$HOME/.local/share";
@@ -79,6 +81,7 @@
     syntaxHighlighting.enable = true;
 
     promptInit = ''
+      [ "$(tty)" = "/dev/tty1" ] && startx
       any-nix-shell zsh --info-right | source /dev/stdin
       autoload -U colors && colors
       PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
diff --git a/machines/x220/configuration.nix b/machines/x220/configuration.nix
index c98548f..56d1d2f 100644
--- a/machines/x220/configuration.nix
+++ b/machines/x220/configuration.nix
@@ -1,6 +1,7 @@
 { pkgs, lib, ... }:
 
 let
+  signal = pkgs.callPackage ../../pkgs/signal.nix { };
   busybox_utils = pkgs.stdenv.mkDerivation {
     name = "strings";
     unpackPhase = "true";
diff --git a/pkgs/dwm/config.h b/pkgs/dwm/config.h
index 7a8b085..bdb3507 100644
--- a/pkgs/dwm/config.h
+++ b/pkgs/dwm/config.h
@@ -54,12 +54,14 @@ static const Rule rules[] = {
 	 *	WM_NAME(STRING) = title
 	*/
 	/* class    instance      title       	 tags mask    iscentered	isfloating   isterminal  noswallow  monitor */
-	{ "Gimp",     NULL,       NULL,       	    1 << 8,       0,  		  0,           0,         0,        -1 },
+	/* { "Gimp",     NULL,       NULL,       	    1 << 8,       0,  		  0,           0,         0,        -1 }, */
+	{ "Pidgin",     NULL,       NULL,       	    1 << 8,       0,  		  0,           0,         0,        -1 },
 	{ TERMCLASS,   NULL,       NULL,       	    0,            0,  		  0,           1,         0,        -1 },
 	{ NULL,       NULL,       "Event Tester",   0,            0,  		  0,           0,         1,        -1 },
 	{ NULL,      "spterm",    NULL,       	    SPTAG(0),     0,  		  1,           1,         0,        -1 },
 	{ NULL,      "spcalc",    NULL,       	    SPTAG(1),     0,  		  1,           1,         0,        -1 },
   { NULL,      "telegram-desktop",  NULL,     0,            1,        1,           0,         0,        -1 },
+  { NULL,      "signal",  NULL,     0,            1,        1,           0,         0,        -1 },
 };
 
 /* layout(s) */
diff --git a/pkgs/signal.nix b/pkgs/signal.nix
new file mode 100644
index 0000000..3a45a60
--- /dev/null
+++ b/pkgs/signal.nix
@@ -0,0 +1,10 @@
+{ makeWrapper, symlinkJoin, signal-desktop }:
+symlinkJoin {
+  name = "signal-desktop";
+  paths = [ signal-desktop ];
+  buildInputs = [ makeWrapper ];
+  postBuild = ''
+    wrapProgram $out/bin/signal-desktop \
+      --add-flags "--use-tray-icon"
+  '';
+}