show top bar on deck
This commit is contained in:
parent
b02a1c6c90
commit
0d77068f9f
2 changed files with 29 additions and 13 deletions
|
|
@ -13,6 +13,9 @@
|
|||
../../../modules/gnome.nix
|
||||
];
|
||||
|
||||
# Always show GNOME top bar on Steam Deck
|
||||
gnome-custom.alwaysShowTopBar = true;
|
||||
|
||||
# Enable Ghostty terminal with OSC-52 clipboard support
|
||||
programs.ghostty-custom = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,22 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.gnome-custom;
|
||||
# Import gvariant helpers for dconf types
|
||||
mkTuple = lib.hm.gvariant.mkTuple;
|
||||
mkUint32 = lib.hm.gvariant.mkUint32;
|
||||
in
|
||||
|
||||
{
|
||||
options.gnome-custom = {
|
||||
alwaysShowTopBar = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Always show the GNOME top bar (status bar). When false, uses Hide Top Bar extension to auto-hide it.";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
# GNOME configuration via dconf
|
||||
dconf.settings = {
|
||||
# Interface settings
|
||||
|
|
@ -42,8 +52,9 @@ in
|
|||
# GNOME Shell configuration
|
||||
"org/gnome/shell" = {
|
||||
disable-user-extensions = false;
|
||||
enabled-extensions = [
|
||||
"hidetopbar@mathieu.bidon.ca"
|
||||
enabled-extensions =
|
||||
(lib.optionals (!cfg.alwaysShowTopBar) [ "hidetopbar@mathieu.bidon.ca" ])
|
||||
++ [
|
||||
"pano@elhan.io"
|
||||
"tiling-assistant@leleat-on-github"
|
||||
"rounded-window-corners@fxgn"
|
||||
|
|
@ -61,7 +72,7 @@ in
|
|||
|
||||
# Hide Top Bar extension configuration
|
||||
# Always hide the top bar except in Activities Overview (Super key)
|
||||
"org/gnome/shell/extensions/hidetopbar" = {
|
||||
"org/gnome/shell/extensions/hidetopbar" = lib.mkIf (!cfg.alwaysShowTopBar) {
|
||||
enable-intellihide = false;
|
||||
enable-active-window = false;
|
||||
mouse-sensitive = false;
|
||||
|
|
@ -178,8 +189,9 @@ in
|
|||
};
|
||||
|
||||
# GNOME Shell extensions and Qt theming packages
|
||||
home.packages = with pkgs; [
|
||||
gnomeExtensions.hide-top-bar
|
||||
home.packages = with pkgs;
|
||||
(lib.optionals (!cfg.alwaysShowTopBar) [ gnomeExtensions.hide-top-bar ])
|
||||
++ [
|
||||
gnomeExtensions.pano
|
||||
gnomeExtensions.tiling-assistant
|
||||
gnomeExtensions.rounded-window-corners-reborn
|
||||
|
|
@ -331,4 +343,5 @@ in
|
|||
fi
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue