]> git.sev.monster Git - dotfiles.git/commitdiff
add syslinux.cfg, update uc.js loader, dunstrc, ff
authords6 <git@ds6.pw>
Mon, 17 Dec 2018 06:54:43 +0000 (00:54 -0600)
committerds6 <git@ds6.pw>
Mon, 17 Dec 2018 06:54:43 +0000 (00:54 -0600)
updated user-overrides.js for ff 62+
updated dunstrc icon paths with actual paths instead of guessing
detached userChrome.js code from .css into .xml
added syslinux.cfg (no scripted install)

firefox/chrome/userChrome.css [new file with mode: 0644]
firefox/chrome/userChrome.xml [new file with mode: 0644]
firefox/user-overrides.js
root/syslinux.cfg [new file with mode: 0755]
xdg/dunst/dunstrc

diff --git a/firefox/chrome/userChrome.css b/firefox/chrome/userChrome.css
new file mode 100644 (file)
index 0000000..52b22dc
--- /dev/null
@@ -0,0 +1,89 @@
+@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+
+/*** userChrome.js ***
+ * https://github.com/Sporif/firefox-quantum-userchromejs
+ * Copyright (c) 2017 Haggai Nuchi
+ * Available for use under the MIT License:
+ * https://opensource.org/licenses/MIT
+ */
+ #PanelUI-menu-button {
+    -moz-binding: url("userChrome.xml#js");
+}
+
+
+/*** Settings ***/
+window {
+    --statusbar-height: 20px;
+}
+
+/*** Misc rules ***/
+/* Adjust padding from sidebar header */
+#sidebar-header {
+    padding: 0 3px !important;
+}
+
+/*** Tabs ***/
+/* Hide tab bar */
+window:not([tabsintitlebar="true"]):not([customizing])
+  /* #navigator-toolbox:not(:hover):not(:focus-within) */
+  #TabsToolbar {
+    visibility: collapse;
+}
+/* Hide tabs when in titlebar */
+window[tabsintitlebar="true"]:not([customizing])
+  /* #navigator-toolbox:not(:hover):not(:focus-within) */
+  #TabsToolbar {
+    opacity: 0;
+    pointer-events: none;
+}
+
+/*** Bottom bookmarks/personal toolbar ***/
+/* Adjust window size */
+window:not([inFullscreen="true"]) {
+    margin-bottom: calc(var(--statusbar-height) + 1px);
+}
+/* Move toolbar */
+window:not([inFullscreen="true"]) #PersonalToolbar
+{
+    position: fixed;
+    bottom: 0;
+    width: 100%;
+    height: var(--statusbar-height);
+}
+/* Move statuspanel to bar */
+/* XXX: opacity and collapse not really needed, just
+ * need to remove transitions.
+ * TODO: add box shadow to left of bar
+ * XXX: :hover doesn't fire because pointer disabled in xul?
+ */
+window:not([inFullscreen="true"]) #statuspanel:not(:hover) {
+    bottom: 0 !important;
+    offset-inline-start: auto;
+    offset-inline-end: 0;
+    margin-top: 0 !important;
+    max-width: 100% !important;
+    /* TODO: breaks it? thankfully fits as-is */
+    /* height: var(--statusbar-height) !important; */
+    opacity: 1 !important;
+}
+window:not([inFullscreen="true"]) #statuspanel-label {
+    margin: 0 !important;
+    border: none !important;
+    box-shadow: -5px 0 2px -2px var(--toolbar-bgcolor);
+}
+window:not([inFullscreen="true"]) #statuspanel[inactive] {
+    visibility: collapse;
+}
+
+/*** Tree Style Tabs */
+/* Hide sidebar with one tab */
+#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] {
+    transition: all 0.2s ease;
+}
+#main-window[titlepreface="[1] "]
+  #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:not(:hover) {
+    z-index: 2 !important;
+    overflow: hidden;
+    min-width: 30px !important;
+    max-width: 30px !important;
+}
diff --git a/firefox/chrome/userChrome.xml b/firefox/chrome/userChrome.xml
new file mode 100644 (file)
index 0000000..45c4745
--- /dev/null
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+<!-- Copyright (c) 2017 Haggai Nuchi
+Available for use under the MIT License:
+https://opensource.org/licenses/MIT
+ -->
+
+<!-- Run userChrome.js/userChrome.xul and .uc.js/.uc.xul/.css files  -->
+<bindings xmlns="http://www.mozilla.org/xbl">
+    <binding id="js" extends="chrome://global/content/bindings/toolbarbutton.xml#menu">
+        <implementation>
+            <constructor><![CDATA[
+                if(window.userChromeJsMod) return;
+                window.userChromeJsMod = true;
+                
+                var chromeFiles = FileUtils.getDir("UChrm", []).directoryEntries;
+                var xulFiles = [];
+                var sss = Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService);
+                
+                while(chromeFiles.hasMoreElements()) {
+                    var file = chromeFiles.getNext().QueryInterface(Ci.nsIFile);
+                    var fileURI = Services.io.newFileURI(file);
+                    
+                    if(file.isFile()) {
+                        if(/(^userChrome|\.uc)\.js$/i.test(file.leafName)) {
+                            Services.scriptloader.loadSubScriptWithOptions(fileURI.spec, {target: window, ignoreCache: true});
+                        }
+                        else if(/(^userChrome|\.uc)\.xul$/i.test(file.leafName)) {
+                            xulFiles.push(fileURI.spec);
+                        }
+                        else if(/\.as\.css$/i.test(file.leafName)) {
+                            if(!sss.sheetRegistered(fileURI, sss.AGENT_SHEET))
+                                sss.loadAndRegisterSheet(fileURI, sss.AGENT_SHEET);
+                        }
+                        else if(/^(?!(userChrome|userContent)\.css$).+\.css$/i.test(file.leafName)) {
+                            if(!sss.sheetRegistered(fileURI, sss.USER_SHEET))
+                                sss.loadAndRegisterSheet(fileURI, sss.USER_SHEET);
+                        }
+                    }
+                }
+                
+                setTimeout(function loadXUL() {
+                    if(xulFiles.length > 0) {
+                        document.loadOverlay(xulFiles.shift(), null);
+                        setTimeout(loadXUL, 5);
+                    }
+                }, 0);
+            ]]></constructor>
+        </implementation>
+    </binding>
+</bindings>
index 89129419296648b50ee6d5445ea2caa3e094f5d6..79a392e789926c4a5948b95083526d29737adf8a 100644 (file)
@@ -1,15 +1,11 @@
 // Custom user.js overrides
 user_pref("_user.js.parrot", "overrides section syntax error");
 
-// 0001
-user_pref("browser.privatebrowsing.autostart", false);
-
 // 0102
 user_pref("browser.startup.page", 3);
 
-// 0514b [CUSTOM]
+// 0105b [CUSTOM]
 user_pref("browser.newtabpage.activity-stream.default.sites", "");
-user_pref("browser.newtabpage.activity-stream.disableSnippets", true);
 user_pref("browser.newtabpage.activity-stream.feeds.aboutpreferences", false);
 user_pref("browser.newtabpage.activity-stream.feeds.asrouterfeed", false);
 user_pref("browser.newtabpage.activity-stream.feeds.favicon", false);
@@ -37,10 +33,21 @@ user_pref("browser.newtabpage.activity-stream.section.topstories.showDisclaimer"
 user_pref("browser.newtabpage.activity-stream.showSearch", false);
 user_pref("browser.newtabpage.activity-stream.showSponsored", false);
 user_pref("browser.newtabpage.activity-stream.telemetry", false);
-user_pref("browser.newtabpage.activity-stream.telemetry.ping.endpoint", "data:,");
-user_pref("browser.newtabpage.activity-stream.tippyTop.service.endpoint", "data:,");
+user_pref("browser.newtabpage.activity-stream.telemetry.ping.endpoint", "data:text/plain,");
+user_pref("browser.newtabpage.activity-stream.tippyTop.service.endpoint", "data:text/plain,");
+// 0105d
+user_pref("browser.library.activity-stream.enabled", false);
+
+// 0420: uMatrix
+user_pref("privacy.trackingprotection.pbmode.enabled", false);
+user_pref("privacy.trackingprotection.enabled", false);
+// 0422: uMatrix
+user_pref("urlclassifier.trackingTable", "");
+
+
 // 0515
 user_pref("extensions.screenshots.disabled", true);
+user_pref("extensions.screenshots.upload-disabled", true);
 
 // 0701
 user_pref("network.dns.disableIPv6", false);
@@ -68,10 +75,6 @@ user_pref("browser.sessionstore.max_tabs_undo", 50);
 user_pref("browser.sessionstore.max_windows_undo", 3);
 // 1021
 user_pref("browser.sessionstore.privacy_level", 0);
-// 1022
-user_pref("browser.sessionstore.resume_from_crash", true);
-// 1030
-user_pref("browser.shell.shortcutFavicons", true);
 
 // 1241: uMatrix
 user_pref("security.mixed_content.block_display_content", false);
@@ -100,15 +103,13 @@ user_pref("network.http.referer.XOriginPolicy", 0);
 // 1606: uMatrix
 user_pref("network.http.referer.spoofSource", true);
 
-// 2024
-user_pref("permissions.default.camera", 2);
-user_pref("permissions.default.microphone", 2);
 // 2212
 user_pref("dom.popup_allowed_events", "click dblclick notificationclick");
-// 2304
+// 2302: uMatrix
+user_pref("dom.serviceWorkers.enabled", true);
+// 2304: uMatrix
 user_pref("dom.webnotifications.enabled", true);
-// 2305
-user_pref("permissions.default.desktop-notification", 2);
+user_pref("dom.webnotifications.serviceworker.enabled", true);
 
 // 2401
 //user_pref("dom.event.contextmenu.enabled", false);
@@ -127,22 +128,15 @@ user_pref("ui.use_standins_for_native_colors", false);
 // 2662
 user_pref("extensions.webextensions.restrictedDomains", "");
 
-// 2701
-user_pref("network.cookie.cookieBehavior", 3);
-
-// 2703: use extensions for cookies
+// 2701: use extensions for cookies
+user_pref("network.cookie.cookieBehavior", 0);
 
 // 2803
 user_pref("privacy.clearOnShutdown.history", false);
 user_pref("privacy.clearOnShutdown.downloads", false);
-
-// 0420: uMatrix
-user_pref("privacy.trackingprotection.pbmode.enabled", false);
-user_pref("privacy.trackingprotection.enabled", false);
-// 0421: uMatrix
-user_pref("privacy.trackingprotection.ui.enabled", false);
-// 0422: uMatrix
-user_pref("urlclassifier.trackingTable", "");
+// 2804
+user_pref("privacy.cpd.history", false);
+user_pref("privacy.cpd.downloads", false);
 
 // 5000
 /* WELCOME & WHAT's NEW NOTICES ***/
@@ -150,13 +144,16 @@ user_pref("browser.startup.homepage_override.mstone", "ignore");
 user_pref("startup.homepage_welcome_url", "");
 user_pref("startup.homepage_welcome_url.additional", "");
 user_pref("startup.homepage_override_url", "");
+/* WARNINGS ***/
+user_pref("full-screen-api.warning.delay", 0);
+user_pref("full-screen-api.warning.timeout", 0);
 /* APPEARANCE ***/
+user_pref("browser.download.autohideButton", false);
 user_pref("toolkit.cosmeticAnimations.enabled", false);
 /* CONTENT BEHAVIOR ***/
 user_pref("layout.spellcheckDefault", 2);
 /* UX BEHAVIOR ***/
 user_pref("browser.backspace_action", 2);
-user_pref("browser.ctrlTab.previews", true);
 user_pref("browser.tabs.closeWindowWithLastTab", false);
 user_pref("browser.tabs.loadBookmarksInTabs", true);
 /* OTHER ***/
diff --git a/root/syslinux.cfg b/root/syslinux.cfg
new file mode 100755 (executable)
index 0000000..0a84369
--- /dev/null
@@ -0,0 +1,109 @@
+UI vesamenu.c32
+MENU MASTER PASSWD $4$o3HcoX5c$VKqMo4r1IPtDM3XwimY6zYx+SeM$
+MENU HIDDEN
+MENU CLEAR
+MENU IMMEDIATE
+
+MENU TITLE Syslinux Boot Menu
+MENU PASSPROMPT Password:
+
+MENU BACKGROUND #ff110800
+MENU COLOR screen      * #ff93a1a1 #00000000 std
+MENU COLOR border      * #ffcc6600 #00000000 std
+MENU COLOR title       * #ff93a1a1 #ff221100 std
+MENU COLOR unsel       * #c093a1a1 #00000000 std
+MENU COLOR hotkey      * #ffcb4b16 #00000000 std
+MENU COLOR sel         * #ffeee8d5 #ffaa5500 std
+MENU COLOR hotsel      * #ffcb4b16 #ffaa5500 std
+MENU COLOR disabled    * #ff93a1a1 #ff221100 std
+MENU COLOR scrollbar   * #ffcc6600 #00000000 std
+MENU COLOR tabmsg      * #ffb58900 #00000000 std
+MENU COLOR cmdmark     * #ff85c000 #00000000 std
+MENU COLOR cmdline     * #ffeee8d5 #00000000 std
+MENU COLOR pwdborder   * #ffcc6600 #ffaa5500 std
+MENU COLOR pwdheader   * #ff264db2 #ffaa5500 std
+MENU COLOR pwdentry    * #ffeee8d5 #ffaa5500 std
+MENU COLOR timeout_msg * #ffeee8d5 #ff110800 std
+MENU COLOR timeout     * #ffcc6600 #ff110800 std
+MENU COLOR help                * #ff93a1a1 #ff221100 std
+MENU MSGCOLOR            #ff93a1a1 #ff221100 std
+
+DEFAULT vanilla
+TIMEOUT 15
+
+LABEL _linux
+  MENU LABEL Linux
+  MENU DISABLED
+
+LABEL vanilla
+  MENU DEFAULT
+  MENU LABEL ^Alpine Linux
+  LINUX /vmlinuz-vanilla
+  APPEND root=UUID=21194c25-5a0a-410e-9f82-759441a8cfd9 rw modules=sd-mod,usb-storage,ext4
+  INITRD /initramfs-vanilla
+  TEXT HELP
+    Boot Alpine Linux in multi-user mode
+  ENDTEXT
+
+LABEL single-vanilla
+  MENU LABEL Alpine Linux (^maintenance)
+  MENU PASSWD
+  COM32 cmd.c32
+  APPEND vanilla single
+  TEXT HELP
+    Boot Alpine Linux in single-user (maintenance) mode
+  ENDTEXT
+
+LABEL _tools
+  MENU LABEL Tools
+  MENU DISABLED
+
+LABEL hdt
+  MENU LABEL ^HDT
+  KERNEL hdt.c32
+  APPEND pciids=hdt/pci.ids
+  TEXT HELP
+    Start the Hardware Detection Tool
+  ENDTEXT
+
+LABEL memtest
+  MENU LABEL Mem^test86+
+  LINUX /memtest86+-5.01.bin
+  TEXT HELP
+    Start Memtest86+ v5.01
+  ENDTEXT
+
+LABEL shell
+  MENU LABEL ^Shell (rosh)
+  MENU PASSWD
+  COM32 rosh.c32
+  TEXT HELP
+    Start the Read-Only Shell
+  ENDTEXT
+
+MENU SEPARATOR
+
+LABEL reboot
+  MENU LABEL ^Reboot
+  MENU PASSWD
+  COM32 reboot.c32
+  TEXT HELP
+    Perform a cold reboot
+  ENDTEXT
+
+LABEL warm-reboot
+  MENU LABEL Warm Reboot
+  MENU PASSWD
+  COM32 cmd.c32
+  APPEND reboot -w
+  TEXT HELP
+    Perform a software/warm reboot
+  ENDTEXT
+
+LABEL quit
+  MENU LABEL ^Quit
+  MENU PASSWD
+  MENU QUIT
+  TEXT HELP
+    Escape to the boot prompt
+  ENDTEXT
index d392f7e1fda0034c849b7e8e7a033491e58797a2..d278eb4c6c0df8a53ca5e9805d5e57175957b857 100644 (file)
@@ -14,10 +14,11 @@ separator_color = frame
 padding = 4
 horizontal_padding = 4
 icon_position = left
-icon_path = "~/.icons/Paper-Dark/16x16/status/:~/.icons/Paper-Dark/16x16/devices/:~/.icons/Paper-Dark/16x16/emblems/~/.icons/Paper/16x16/status/:~/.icons/Paper/16x16/devices/:~/.icons/Paper/16x16/emblems/:/usr/local/share/icons/Adwaita/16x16/status/:/usr/local/share/icons/Adwaita/16x16/devices/:/usr/local/share/icons/Adwaita/16x16/emblems/"
+# {~/.icons,/usr/share/icons,/usr/share/local/icons}/*/16x16/*
+icon_path = "~/.icons/Paper/16x16/actions:~/.icons/Paper/16x16/apps:~/.icons/Paper/16x16/categories:~/.icons/Paper/16x16/devices:~/.icons/Paper/16x16/emblems:~/.icons/Paper/16x16/emotes:~/.icons/Paper/16x16/mimetypes:~/.icons/Paper/16x16/panel:~/.icons/Paper/16x16/places:~/.icons/Paper/16x16/status:~/.icons/Paper/16x16/web:/usr/share/icons/hicolor/16x16/actions:/usr/share/icons/hicolor/16x16/animations:/usr/share/icons/hicolor/16x16/apps:/usr/share/icons/hicolor/16x16/categories:/usr/share/icons/hicolor/16x16/devices:/usr/share/icons/hicolor/16x16/emblems:/usr/share/icons/hicolor/16x16/emotes:/usr/share/icons/hicolor/16x16/filesystems:/usr/share/icons/hicolor/16x16/intl:/usr/share/icons/hicolor/16x16/mimetypes:/usr/share/icons/hicolor/16x16/places:/usr/share/icons/hicolor/16x16/status:/usr/share/icons/hicolor/16x16/stock:/usr/share/icons/locolor/16x16/apps"
 
 dmenu = "~/bin/dmenu -p dunst:"
-browser = /usr/local/bin/luakit
+browser = /usr/bin/firefox
 
 [shortcuts]
 close = mod4+shift+grave
This page took 0.053728 seconds and 4 git commands to generate.