Compare commits
6 Commits
b8f28a6277
...
8da1baea93
| Author | SHA1 | Date | |
|---|---|---|---|
| 8da1baea93 | |||
| 75d5fc850e | |||
| 283f6cd29f | |||
| d3d9371e71 | |||
| eec7fe5808 | |||
| 683ceefae3 |
@@ -16,7 +16,7 @@
|
||||
];
|
||||
|
||||
workspace = [
|
||||
"special:youtube, on-created-empty:uwsm app -- env TRIDACTYL_NEWTAB=https://youtube.com firefox -P YouTube --name youtube"
|
||||
"special:youtube, on-created-empty:uwsm app -- firefox -P YouTube --name youtube"
|
||||
];
|
||||
|
||||
windowrulev2 = [
|
||||
@@ -39,8 +39,8 @@
|
||||
bind K tabprev
|
||||
unbind <C-e>
|
||||
|
||||
" Set newtab from environment variable if available (provided by native messenger)
|
||||
js tri.native.run("printenv TRIDACTYL_NEWTAB").then(r => { if (r.stdout.trim()) tri.config.set("newtab", r.stdout.trim()) })
|
||||
" Force Tridactyl to yield new tab control to Firefox/Extensions
|
||||
set newtab about:newtab
|
||||
'';
|
||||
|
||||
programs.firefox = {
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
...
|
||||
}: {
|
||||
inherit id name;
|
||||
# Note: This profile relies on the global tridactylrc logic in default.nix
|
||||
# to dynamically set 'newtab' via the TRIDACTYL_NEWTAB environment variable.
|
||||
search.force = true;
|
||||
search.default = "ddg";
|
||||
extensions.force = true;
|
||||
@@ -75,19 +77,19 @@
|
||||
|
||||
:root{
|
||||
/* Height of Tabs + Nav Bar approx 80px */
|
||||
--uc-navbar-transform: -85px;
|
||||
--uc-navbar-transform: -85px;
|
||||
--uc-autohide-toolbar-delay: 0.1s;
|
||||
--uc-autohide-toolbar-duration: 200ms;
|
||||
}
|
||||
:root[uidensity="compact"]{ --uc-navbar-transform: -70px }
|
||||
|
||||
#navigator-toolbox > div{ display: contents; }
|
||||
|
||||
|
||||
/* Apply transform to TabsToolbar AND Nav-bar */
|
||||
:root[sessionrestored] :where(#nav-bar,#PersonalToolbar,#TabsToolbar,#tab-notification-deck,.global-notificationbox,#notifications-toolbar){
|
||||
transform: translateY(var(--uc-navbar-transform))
|
||||
}
|
||||
|
||||
|
||||
:root:is([customizing],[chromehidden*="toolbar"]) :where(#nav-bar,#PersonalToolbar,#TabsToolbar,#tab-notification-deck,.global-notificationbox,#notifications-toolbar){
|
||||
transform: none !important;
|
||||
opacity: 1 !important;
|
||||
@@ -99,6 +101,7 @@
|
||||
transition: transform var(--uc-autohide-toolbar-duration) ease var(--uc-autohide-toolbar-delay), opacity var(--uc-autohide-toolbar-duration) ease var(--uc-autohide-toolbar-delay) !important;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
background-color: #1c1b22 !important; /* Solid background */
|
||||
}
|
||||
|
||||
#navigator-toolbox,
|
||||
@@ -153,7 +156,7 @@
|
||||
z-index: 10000;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
|
||||
/* When hitbox is hovered, reveal bars */
|
||||
#navigator-toolbox:hover :where(#nav-bar,#PersonalToolbar,#TabsToolbar) {
|
||||
transform: translateY(0) !important;
|
||||
@@ -171,3 +174,4 @@
|
||||
#PersonalToolbar { visibility: collapse !important; }
|
||||
'';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user