Commit b1c75bd42cff

Vincent Demeester <vincent@sbr.pm>
2020-10-02 11:56:27
systems/hokkaido: add hidetopbar
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 5b6d79a
Changed files (4)
pkgs
gnome
extensions
hide-top-bar
users
vincent
pkgs/gnome/extensions/hide-top-bar/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchFromGitHub, glib, gettext, bash, nodePackages, gnome3, zip }:
+
+stdenv.mkDerivation rec {
+  pname = "hidetopbar";
+  version = "2020-09-21";
+
+  src = fetchFromGitHub {
+    owner = "mlutfy";
+    repo = "hidetopbar";
+    rev = "994937d37528aa25bac954e4f1607adc8d991f4c";
+    sha256 = "0cc4b3iid0fxrsrdwc9m1rnia7z9whbgdwkag0x1frlif4rknjrr";
+  };
+
+  nativeBuildInputs = [
+    glib
+    gettext
+    nodePackages.typescript
+    zip
+  ];
+
+  uuid = "hidetopbar@mathieu.bidon.ca";
+
+  installPhase = ''
+    mkdir -p $out/share/gnome-shell/extensions/${uuid}
+    cp -r * $out/share/gnome-shell/extensions/${uuid}
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Hide GNOME's top bar when it gets into your way.";
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ vdemeester ];
+    homepage = "https://github.com/mlutfy/hidetopbar";
+  };
+}
pkgs/default.nix
@@ -118,4 +118,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 { };
 }
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" ];
+      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" ];
     };
     # Extensions
     "org/gnome/shell/extensions/hidetopbar" = {
@@ -103,5 +103,11 @@ in
       mouse-sensitive = true;
       mouse-sensitive-fullscreen-window = false;
     };
+    "org/gnome/shell/extensions/hidetopbar" = {
+      enable-active-window = false;
+      enable-intellihide = true;
+      mouse-sensitive = true;
+      mouse-sensitive-fullscreen-window = false;
+    };
   };
 }
users/vincent/desktop/gnome.nix
@@ -28,9 +28,9 @@
     gnome3.gnome-usage
 
     gnomeExtensions.sound-output-device-chooser
-    gnomeExtensions.tilingnome
     my.gnome-shell-extension-shell
     my.gnome-bluetooth-quick-connect
+    my.hidetopbar
     gnome3.gnome-shell-extensions
 
     pop-gtk-theme