Commit ed54bd622e3b

Vincent Demeester <vincent@sbr.pm>
2020-10-02 12:01:55
systems/hokkaido: add no-annoyance
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent b1c75bd
Changed files (5)
pkgs
gnome
extensions
noannoyance
users
vincent
pkgs/gnome/extensions/noannoyance/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchFromGitHub, glib, gettext, bash, nodePackages, gnome3 }:
+
+stdenv.mkDerivation rec {
+  pname = "noannoyance";
+  version = "2020-05-17";
+
+  src = fetchFromGitHub {
+    owner = "sindex";
+    repo = "no-annoyance";
+    rev = "9cc6aaf85cce8e434e58a9caa1b8abb077fdf2e3";
+    sha256 = "1p0y871616rvd3wfw12nn8ybc8z76fcb7gcd13zf1q53wnwk5ynr";
+  };
+
+  nativeBuildInputs = [
+    glib
+    gettext
+    nodePackages.typescript
+  ];
+
+  uuid = "noannoyance@sindex.com";
+
+  installPhase = ''
+    mkdir -p $out/share/gnome-shell/extensions/${uuid}
+    cp -r * $out/share/gnome-shell/extensions/${uuid}
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Disables the “Window Is Ready” notification and changes the policy of the window manager so that new windows are always focused.";
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ vdemeester ];
+    homepage = "https://github.com/sindex/no-annoyance";
+  };
+}
pkgs/default.nix
@@ -119,4 +119,5 @@ rec {
   gnome-shell-extension-shell = pkgs.callPackage ./gnome/extensions/shell { };
   gnome-bluetooth-quick-connect = pkgs.callPackage ./gnome/extensions/bluetooth-quick-connect { };
   hidetopbar = pkgs.callPackage ./gnome/extensions/hide-top-bar { };
+  noannoyance = pkgs.callPackage ./gnome/extensions/noannoyance { };
 }
users/vincent/desktop/dconf.nix
@@ -94,7 +94,7 @@ in
     };
     # Shell
     "org/gnome/shell" = {
-      enabled-extensions = [ "drive-menu@gnome-shell-extensions.gcampax.github.com" "sound-output-device-chooser@kgshank.net" "user-theme@gnome-shell-extensions.gcampax.github.com" "launch-new-instance@gnome-shell-extensions.gcampax.github.com" "bluetooth-quick-connect@bjarosze.gmail.com" "hidetopbar@mathieu.bidon.ca" ];
+      enabled-extensions = [ "drive-menu@gnome-shell-extensions.gcampax.github.com" "sound-output-device-chooser@kgshank.net" "user-theme@gnome-shell-extensions.gcampax.github.com" "launch-new-instance@gnome-shell-extensions.gcampax.github.com" "bluetooth-quick-connect@bjarosze.gmail.com" "hidetopbar@mathieu.bidon.ca" "noannoyance@sindex.com" ];
     };
     # Extensions
     "org/gnome/shell/extensions/hidetopbar" = {
users/vincent/desktop/gnome.nix
@@ -31,6 +31,7 @@
     my.gnome-shell-extension-shell
     my.gnome-bluetooth-quick-connect
     my.hidetopbar
+    my.noannoyance
     gnome3.gnome-shell-extensions
 
     pop-gtk-theme
tasks.org
@@ -47,8 +47,8 @@
 - [-] pomodoro (fixing it ?)
 - [X] [[https://github.com/bjarosze/gnome-bluetooth-quick-connect][bluetooth quick connect]]
 - [-] [[https://framagit.org/abakkk/DrawOnYourScreen][draw on you screen]]
-- [ ] [[https://github.com/mlutfy/hidetopbar][hide top bar]]
-- [ ] [[https://github.com/sindex/no-annoyance][noannoyance]]
+- [X] [[https://github.com/mlutfy/hidetopbar][hide top bar]]
+- [X] [[https://github.com/sindex/no-annoyance][noannoyance]]
 - [X] pop-os/shell
 - [X] tilingnome
 - [X] sound-output-device-chooser