summaryrefslogtreecommitdiff
path: root/home-manager/resources
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/resources')
-rw-r--r--home-manager/resources/firefox/userChrome.css175
-rw-r--r--home-manager/resources/pcmanfm/root.desktop11
-rw-r--r--home-manager/resources/xdg-mime/audio65
-rw-r--r--home-manager/resources/xdg-mime/directory2
-rw-r--r--home-manager/resources/xdg-mime/email6
-rw-r--r--home-manager/resources/xdg-mime/image21
-rw-r--r--home-manager/resources/xdg-mime/pdf4
-rw-r--r--home-manager/resources/xdg-mime/text15
-rw-r--r--home-manager/resources/xdg-mime/video55
9 files changed, 354 insertions, 0 deletions
diff --git a/home-manager/resources/firefox/userChrome.css b/home-manager/resources/firefox/userChrome.css
new file mode 100644
index 0000000..7ec4588
--- /dev/null
+++ b/home-manager/resources/firefox/userChrome.css
@@ -0,0 +1,175 @@
+/* TODO create separate repo for this */
+/* TOP BAR */
+#navigator-toolbox {
+ --uc-navigationbar-width: 40vw;
+
+ #TabsToolbar {
+ /* Move new tab to far right */
+ #tabbrowser-arrowscrollbox-periphery { margin-left: auto }
+ /* remove alltabs button */
+ #alltabs-button { display: none }
+ }
+
+ #nav-bar {
+ /* Remove overflow button */
+ #nav-bar-overflow-button { display: none }
+ }
+
+ #PersonalToolbar {
+ /* Change background color of bookmarks toolbar */
+ background: var(--toolbox-bgcolor) !important;
+ /* Adjust spacing of toolbar items */
+ #PlacesToolbarItems { gap: .35rem; margin-block: .2rem }
+ }
+}
+
+/* Media queries for width of nav bar */
+@media screen and (max-width: 1000px) {
+ #navigator-toolbox { --uc-navigationbar-width: 50vw }
+}
+@media screen and (max-width: 800px) {
+ #navigator-toolbox { --uc-navigationbar-width: 60vw }
+}
+
+/* Change look of tabs in smaller view */
+@media screen and (max-width: 800px) {
+ #TabsToolbar-customization-target {
+ /* TODO fix w/o. Don't allow tabbar to move up when moving tabs */
+ height: 37px;
+ /* Make tabs fill more vertical space */
+ .tab-background { margin-block: 1px !important }
+ }
+}
+
+
+/* COMBINE TOP BAR */
+/* Combine top bar into single line if width >= 800px */
+@media screen and (min-width: 800px) {
+ /* Half height bar */
+ :root { --uc-toolbar-height: 36px }
+
+ /* Modify these to change relative widths or default height */
+ #navigator-toolbox {
+ margin-bottom: 0px;
+ padding-top: 1px; /* Top bar is cut off otherwise */
+
+ #TabsToolbar {
+ margin-left: calc(var(--uc-navigationbar-width) + 2px); /* Resize tab bar */
+ margin-top: -4px;
+ margin-bottom: 2px;
+
+ #TabsToolbar-customization-target {
+ height: var(--uc-toolbar-height);
+
+ /* Tabs extend to bottom of bar */
+ .tab-background {
+ margin-bottom: 0 !important;
+ margin-top: 3px !important; /* See above navigator-toolbox rule. Avoid cutting off top */
+ }
+
+ /* 1px margin on touch density causes tabs to be too high */
+ .tab-close-button { margin-top: 0 !important }
+ }
+
+ /* Center tab buttons */
+ #tabs-newtab-button, #alltabs-button { margin-top: 4px !important }
+ }
+
+ /* Integrate url / nav bar */
+ #nav-bar {
+ margin-right:calc(100vw - var(--uc-navigationbar-width));
+ margin-top: calc(0px - var(--uc-toolbar-height));
+ border-radius: 0 var(--tab-border-radius) var(--tab-border-radius) 0;
+ border-right: 1px solid ThreeDShadow !important;
+ box-shadow: 0 0 4px rgba(0,0,0,.4) !important;
+ /* Fix spacing around tabs by removing nav bar top border */
+ border: none !important;
+
+ #urlbar-container {
+ /* Remove min and max width of urlbar */
+ width: 0 !important;
+ /* Make opened urlbar overlay the toolbar */
+ #urlbar[open]:focus-within { min-width: 50vw !important }
+ }
+ }
+
+ /* Bottom of tags is cut off by 1px without this */
+ #PersonalToolbar { margin-top: 1px }
+ }
+
+ /* Fix customization view */
+ #customization-panelWrapper .panel-arrowbox .panel-arrow {
+ margin-inline-end: initial !important;
+ }
+
+ /* Shorten findbar */
+ findbar {
+ width: 600px !important;
+ border-radius: 0 0 0 5px;
+ border-bottom: none !important;
+ box-shadow: 0 2px 4px rgba(0,0,0,.4); /* Move down 2px so it doesn't go over the tab bar */
+ }
+}
+
+
+/* FINDBAR */
+findbar {
+ width: 100vw;
+ position: absolute;
+ top: 0;
+ right: 0;
+ padding: 0 !important;
+ padding-top: 1px !important;
+ background: -moz-headerbar Field !important;
+ border-top-width: 0px !important;
+ border-bottom: 1px solid ThreeDShadow;
+
+ .findbar-container {
+ padding-bottom: 5px !important; /* Move search bar closer to left edge */
+ padding-top: 2px !important; /* Move search bar closer to left edge */
+ height: max-content !important;
+ gap: 2px;
+ justify-content: space-between;
+ flex-wrap: wrap;
+
+ /* Force textbox to fill up first line */
+ .findbar-textbox {
+ width: 100% !important;
+ background: Field !important; /* Set the background color to be consistent with found-matches label when unfocused */
+ }
+
+ description {
+ /* Hide description showing wrap conditions etc. */
+ display: none;
+ /* Show description when it says "Phrase Not Found" */
+ &[status=notfound] { display: inline-block }
+ }
+
+ /* Move found matches label (roughly) into the textbox */
+ label.found-matches,
+ description {
+ position: absolute;
+ top: 6.5px;
+ right: 110px;
+ color: color-mix(in srgb, -moz-headerbartext, transparent 46%) !important;
+ /* So this text overrides the text below, TODO find a more elegant solution */
+ padding-inline: 1ex;
+ background: Field;
+ }
+
+ /* Force checkboxes onto second line */
+ hbox { width: 100% }
+ }
+}
+
+
+/* BOOKMARK BAR */
+@-moz-document url(chrome://browser/content/browser.xhtml) {
+ #PersonalToolbar {
+ background: -moz-headerbar Field !important;
+ border-top: 1px solid ThreeDShadow !important;
+ z-index: 1000; /* To not be affected by shadow from navbar */
+ /* Space out bookmark items */
+ .bookmark-item .toolbarbutton-text { padding: 2.5px 4px }
+ }
+}
diff --git a/home-manager/resources/pcmanfm/root.desktop b/home-manager/resources/pcmanfm/root.desktop
new file mode 100644
index 0000000..f5863e9
--- /dev/null
+++ b/home-manager/resources/pcmanfm/root.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Action
+Tooltip=Open Directory As Root
+Name=Open Directory As Root
+Profiles=profile-zero;
+Icon=gtk-dialog-authentication
+
+[X-Action-Profile profile-zero]
+MimeTypes=inode/directory;
+Exec=pkexec env DISPLAY="$DISPLAY" XAUTHORITY="$XAUTHORITY" XDG_DATA_DIRS="$XDG_DATA_DIRS" XDG_CONFIG_HOME="$XDG_CONFIG_HOME" pcmanfm %u
+Name=Default profile
diff --git a/home-manager/resources/xdg-mime/audio b/home-manager/resources/xdg-mime/audio
new file mode 100644
index 0000000..fd00b26
--- /dev/null
+++ b/home-manager/resources/xdg-mime/audio
@@ -0,0 +1,65 @@
+application/x-cue
+application/x-extension-m4a
+application/x-ogm-audio
+application/x-shorten
+audio/3gpp
+audio/3gpp2
+audio/AMR
+audio/aac
+audio/ac3
+audio/aiff
+audio/amr-wb
+audio/dv
+audio/eac3
+audio/flac
+audio/m3u
+audio/m4a
+audio/mp1
+audio/mp2
+audio/mp3
+audio/mp4
+audio/mpeg
+audio/mpeg2
+audio/mpeg3
+audio/mpegurl
+audio/mpg
+audio/musepack
+audio/ogg
+audio/opus
+audio/rn-mpeg
+audio/scpls
+audio/vnd.dolby.heaac.1
+audio/vnd.dolby.heaac.2
+audio/vnd.dts
+audio/vnd.dts.hd
+audio/vnd.rn-realaudio
+audio/vorbis
+audio/wav
+audio/webm
+audio/x-aac
+audio/x-adpcm
+audio/x-aiff
+audio/x-ape
+audio/x-m4a
+audio/x-matroska
+audio/x-mp1
+audio/x-mp2
+audio/x-mp3
+audio/x-mpegurl
+audio/x-mpg
+audio/x-ms-asf
+audio/x-ms-wma
+audio/x-musepack
+audio/x-pls
+audio/x-pn-au
+audio/x-pn-realaudio
+audio/x-pn-wav
+audio/x-pn-windows-pcm
+audio/x-realaudio
+audio/x-scpls
+audio/x-shorten
+audio/x-tta
+audio/x-vorbis
+audio/x-vorbis+ogg
+audio/x-wav
+audio/x-wavpack
diff --git a/home-manager/resources/xdg-mime/directory b/home-manager/resources/xdg-mime/directory
new file mode 100644
index 0000000..4284766
--- /dev/null
+++ b/home-manager/resources/xdg-mime/directory
@@ -0,0 +1,2 @@
+inode/directory
+inode/mount-point
diff --git a/home-manager/resources/xdg-mime/email b/home-manager/resources/xdg-mime/email
new file mode 100644
index 0000000..db65256
--- /dev/null
+++ b/home-manager/resources/xdg-mime/email
@@ -0,0 +1,6 @@
+application/mbox
+application/vnd.ms-outlook
+message/rfc822
+text/calendar
+x-scheme-handler/mailto
+x-scheme-handler/mid
diff --git a/home-manager/resources/xdg-mime/image b/home-manager/resources/xdg-mime/image
new file mode 100644
index 0000000..1e2623b
--- /dev/null
+++ b/home-manager/resources/xdg-mime/image
@@ -0,0 +1,21 @@
+application/postscript
+image/avif
+image/bmp
+image/gif
+image/heic
+image/heif
+image/jp2
+image/jpeg
+image/jpg
+image/jxl
+image/png
+image/svg+xml
+image/svg+xml-compressed
+image/tiff
+image/webp
+image/x-bmp
+image/x-portable-anymap
+image/x-portable-bitmap
+image/x-portable-graymap
+image/x-tga
+image/x-xpixmap
diff --git a/home-manager/resources/xdg-mime/pdf b/home-manager/resources/xdg-mime/pdf
new file mode 100644
index 0000000..73bd5d0
--- /dev/null
+++ b/home-manager/resources/xdg-mime/pdf
@@ -0,0 +1,4 @@
+application/epub+zip
+application/oxps
+application/pdf
+application/x-fictionbook
diff --git a/home-manager/resources/xdg-mime/text b/home-manager/resources/xdg-mime/text
new file mode 100644
index 0000000..709cb57
--- /dev/null
+++ b/home-manager/resources/xdg-mime/text
@@ -0,0 +1,15 @@
+application/x-shellscript
+text/english
+text/plain
+text/x-c
+text/x-c++
+text/x-c++hdr
+text/x-c++src
+text/x-chdr
+text/x-csrc
+text/x-java
+text/x-makefile
+text/x-moc
+text/x-pascal
+text/x-tcl
+text/x-tex
diff --git a/home-manager/resources/xdg-mime/video b/home-manager/resources/xdg-mime/video
new file mode 100644
index 0000000..6a0839e
--- /dev/null
+++ b/home-manager/resources/xdg-mime/video
@@ -0,0 +1,55 @@
+application/mxf
+application/ogg
+application/sdp
+application/smil
+application/streamingmedia
+application/vnd.apple.mpegurl
+application/vnd.ms-asf
+application/vnd.rn-realmedia
+application/vnd.rn-realmedia-vbr
+application/x-extension-mp4
+application/x-matroska
+application/x-mpegurl
+application/x-ogg
+application/x-ogm
+application/x-ogm-video
+application/x-smil
+application/x-streamingmedia
+video/3gp
+video/3gpp
+video/3gpp2
+video/avi
+video/divx
+video/dv
+video/fli
+video/flv
+video/mkv
+video/mp2t
+video/mp4
+video/mp4v-es
+video/mpeg
+video/msvideo
+video/ogg
+video/quicktime
+video/vnd.divx
+video/vnd.mpegurl
+video/vnd.rn-realvideo
+video/webm
+video/x-avi
+video/x-flc
+video/x-flic
+video/x-flv
+video/x-m4v
+video/x-matroska
+video/x-mpeg2
+video/x-mpeg3
+video/x-ms-afs
+video/x-ms-asf
+video/x-ms-wmv
+video/x-ms-wmx
+video/x-ms-wvxvideo
+video/x-msvideo
+video/x-ogm
+video/x-ogm+ogg
+video/x-theora
+video/x-theora+ogg