From eec5ba2fff0dc1b8fa504fe5810860fc707b6232 Mon Sep 17 00:00:00 2001 From: Gregor Feierabend <23300469@sun.ac.za> Date: Sun, 4 Jul 2021 19:45:18 +0200 Subject: [PATCH] config update --- .compton.conf | 2 +- .config/cmus/autosave | 4 +-- .config/i3/i3blocks.conf | 2 +- .config/vifm/vifmrc | 2 +- .scripts/emulator.sh | 3 ++- .scripts/headless.sh | 3 ++- userChrome.css | 18 +++++++++++++ userChrome2.css | 56 ++++++++++++++++++++++++++++++++++++++++ 8 files changed, 83 insertions(+), 7 deletions(-) create mode 100644 userChrome.css create mode 100644 userChrome2.css diff --git a/.compton.conf b/.compton.conf index f047f2f..4b7cdb1 100644 --- a/.compton.conf +++ b/.compton.conf @@ -1,4 +1,4 @@ -shadow-opacity = 0.8; +shadow-opacity = 1; shadow = true; shadow-radius = 0; shadow-offset-x = -2; diff --git a/.config/cmus/autosave b/.config/cmus/autosave index 9b97060..ff06b3c 100644 --- a/.config/cmus/autosave +++ b/.config/cmus/autosave @@ -46,7 +46,7 @@ set color_win_title_attr=default set color_win_title_bg=default set color_win_title_fg=white set confirm_run=true -set continue=true +set continue=false set continue_album=true set device=/dev/cdrom set display_artist_sort_name=false @@ -92,7 +92,7 @@ set mpris=false set output_plugin=pulse set passwd= set pl_sort= -set play_library=false +set play_library=true set play_sorted=false set repeat=true set repeat_current=false diff --git a/.config/i3/i3blocks.conf b/.config/i3/i3blocks.conf index 89e5dcb..1433dfc 100644 --- a/.config/i3/i3blocks.conf +++ b/.config/i3/i3blocks.conf @@ -10,8 +10,8 @@ #color=#A4C2F4 [notifications] +full_text=available command=~/.scripts/togglenotify.sh -interval=3600 color=#91E78B # exchange rate(s) diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 82bf554..67b0f81 100755 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -170,7 +170,7 @@ command! reload :write | restart " program. " Pdf -filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c +filextype *.pdf qpdfview %f &> /dev/null &, zathura %c %i &, apvlv %c, xpdf %c fileviewer *.pdf pdftotext -nopgbrk %c - " Xournal diff --git a/.scripts/emulator.sh b/.scripts/emulator.sh index ab07f4a..01f7a5a 100755 --- a/.scripts/emulator.sh +++ b/.scripts/emulator.sh @@ -1,4 +1,5 @@ #!/bin/zsh -emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-snapshot-load +#emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-snapshot-load +emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-snapshot-load #emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-window adb kill-server diff --git a/.scripts/headless.sh b/.scripts/headless.sh index 4dc3595..8804695 100755 --- a/.scripts/headless.sh +++ b/.scripts/headless.sh @@ -6,6 +6,7 @@ export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH #emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window -no-snapshot-load -detect-image-hang -use-system-libs -cores 4 #emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window -emulator -accel on -avd thePhone -gpu host -no-boot-anim -no-window -no-snapshot-load +#emulator -accel on -avd thePhone -gpu host -no-boot-anim -no-window -no-snapshot-load +emulator -accel on -avd thePhone -gpu host -no-boot-anim -no-audio -no-skin -no-window -cores 4 -no-snapshot-load adb kill-server diff --git a/userChrome.css b/userChrome.css new file mode 100644 index 0000000..92b63e9 --- /dev/null +++ b/userChrome.css @@ -0,0 +1,18 @@ +:root:not([customizing]) #navigator-toolbox:not(:hover):not(:focus-within) #TabsToolbar { + visibility: collapse; +} + +:root:not([customizing]) #navigator-toolbox:not(:hover):not(:focus-within) { + max-height: 1px; + min-height: calc(0px); + overflow: hidden; +} + +tabs { + counter-reset: tab-counter; +} + +.tab-label::before { + counter-increment: tab-counter; + content: counter(tab-counter) " - "; +} \ No newline at end of file diff --git a/userChrome2.css b/userChrome2.css new file mode 100644 index 0000000..a087489 --- /dev/null +++ b/userChrome2.css @@ -0,0 +1,56 @@ +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); + +/* + * From https://gist.github.com/BenoitAverty/af633ee20e27f48f9ba7178451432206 + */ + +#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox { + min-height: 0 !important; +} + +#tabbrowser-tabs tab[first-visible-tab="true"][last-visible-tab="true"] { + visibility: collapse; +} + +#tabbrowser-tabs .tabs-newtab-button { + visibility: collapse !important; +} + +#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox main-window[privatebrowsingmode="temporary"]{ + min-height: var(--tab-min-height) +} + +#tabbrowser-tabs tab { + min-height: var(--tab-min-height) +} + +/* + * From https://support.mozilla.org/en-US/questions/1185426 + */ + +#nav-bar { + -moz-box-ordinal-group: 1 !important; + border-top-width: 0 !important; +} + +#PersonalToolbar { + -moz-box-ordinal-group: 2 !important; +} + +#TabsToolbar { + -moz-box-ordinal-group: 3 !important; +} + +/* + * Based on firefox own behavior while in fullscreen + */ + +#navigator-toolbox { + margin-top: -60px; /* has to be adjusted depending on density */ + transition: margin-top 0.1s; +} + +#navigator-toolbox:hover, #navigator-toolbox:focus-within { + margin-top: 0px; + transition: margin-top 0.1s; +}