From 50c6cf5e52edbd5501da4d76c08bc50b9073f3d3 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Wed, 8 Jun 2022 14:34:25 +0000 Subject: [PATCH] ff chrome tweak --- firefox/centered_top_statuspanel.css | 20 ++++++++++++++++++++ firefox/userChrome.css | 1 + xorg/xinitrc | 1 + 3 files changed, 22 insertions(+) create mode 100644 firefox/centered_top_statuspanel.css diff --git a/firefox/centered_top_statuspanel.css b/firefox/centered_top_statuspanel.css new file mode 100644 index 0000000..6a5ffb4 --- /dev/null +++ b/firefox/centered_top_statuspanel.css @@ -0,0 +1,20 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/centered_top_statuspanel.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +#tabbrowser-tabpanels .browserContainer{ -moz-box-direction: reverse !important } +#tabbrowser-tabpanels .browserContainer > notificationbox{ -moz-box-ordinal-group: 2 } +#statuspanel{ + margin-top: 0 !important; + margin-left: 50%; +} +#statuspanel-inner{ + -moz-box-align: start !important; + margin-left: -50%; +} +#statuspanel-label{ + border-width: 0 1px 1px 1px; + border-style: none solid solid solid !important; +} + +/* Not sure if this has some performance impact but or if it would cause other problems, but it allows the statuspanel to be centered to content even if sidebar is visible */ +.browserContainer{ transform: translateX(0) } \ No newline at end of file diff --git a/firefox/userChrome.css b/firefox/userChrome.css index 43d2ff2..7aee890 100644 --- a/firefox/userChrome.css +++ b/firefox/userChrome.css @@ -1,2 +1,3 @@ @import url(autohide_bookmarks_and_main_toolbars.css); @import url(compact_proton.css); +@import url(centered_top_statuspanel.css); diff --git a/xorg/xinitrc b/xorg/xinitrc index 5042264..0fdb0f4 100644 --- a/xorg/xinitrc +++ b/xorg/xinitrc @@ -17,4 +17,5 @@ fi clipmenud & pipewire & pipewire-pulse & +wireplumber & exec dbus-run-session herbstluftwm