thinkpad: user.js disable letterboxing and also set the css viewpixels to a lower number due to the 720p display being too crowded

This commit is contained in:
Barna Máté 2025-01-12 17:31:13 +01:00
parent 26d4fb1152
commit 89166e284b
4 changed files with 60 additions and 292 deletions

View file

@ -799,7 +799,7 @@ user_pref("privacy.resistFingerprinting.block_mozAddonManager", true);
* [WARNING] DO NOT USE: the dimension pref is only meant for testing
* [1] https://bugzilla.mozilla.org/1407366
* [2] https://hg.mozilla.org/mozilla-central/rev/6d2d7856e468#l2.32 ***/
user_pref("privacy.resistFingerprinting.letterboxing", true); // [HIDDEN PREF]
user_pref("privacy.resistFingerprinting.letterboxing", false); // [HIDDEN PREF]
// user_pref("privacy.resistFingerprinting.letterboxing.dimensions", ""); // [HIDDEN PREF]
/* 4505: experimental RFP [FF91+]
* [WARNING] DO NOT USE unless testing, see [1] comment 12
@ -1223,3 +1223,5 @@ user_pref("network.dns.skipTRR-when-parental-control-enabled", false);
/* END: internal custom pref to test for syntax errors ***/
user_pref("_user.js.parrot", "SUCCESS: No no he's not dead, he's, he's restin'!");
user_pref("layout.css.devPixelsPerPx", 0.8);

View file

@ -1,237 +0,0 @@
[bar/bottom]
background=#00191830
border-color=#00400080
border-size=10px
bottom=true
font-0=Jetbrains Mono Nerd font:size=11;3
font-1=Jetbrains Mono Nerd font:size=22;5
foreground=#FFFFFF
height=34
modules-center=cava
modules-left=audio-capsule a music-capsule
modules-right=" wired-network a wireless-network a replay"
padding-left=5
padding-right=5
radius=20
width=100%
[bar/default]
background=#00191830
border-color=#00400080
border-size=10px
bottom=false
font-0=Jetbrains Mono Nerd font:size=11;3
font-1=Jetbrains Mono Nerd font:size=22;5
foreground=#FFFFFF
height=34
modules-center=ewmh
modules-left=date s keyboard battery
modules-right= fs-data s fs-system s memory s start gpu-temp gpu-usage end s cpu-temp cpu-usage
padding-left=2
padding-right=2
radius=15
width=100%
[global/wm]
override-redirect=false
[module/a]
label=" "
label-foreground=#FAD000
type=custom/text
[module/audio-capsule]
click-right=pavucontrol
format-muted=%{T2}%{F#191830}%{F-}%{T-}<label-muted>%{T2}%{F#191830}%{F-}%{T-}
format-volume=%{T2}%{F#191830}%{F-}%{T-}<label-volume>%{T2}%{F#191830}%{F-}%{T-}
label-muted=muted
label-muted-background=#191830
label-muted-foreground=#FF0
label-volume=%percentage%%
label-volume-background=#191830
type=internal/alsa
use-ui-max=true
[module/battery]
adapter=AC0
battery=BAT0
format-charging=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}BAT %{F-}%{B-}<label-charging>%{T2}%{F#191830}%{F-}%{T-}
full-at=95
label-background=#191830
label-foreground=#FFFFFF
label-charging = Charging %percentage%%
label-charging-background=#191830
label-charging-foreground=#FFFFFF
low-at=20
poll-interval=4
type=internal/battery
[module/cava]
exec=~/dotfiles/scripts/cava.sh
format=%{T2}%{F#191830}%{F-}%{T-}<label>%{T2}%{F#191830}%{F-}%{T-}
format-font=5
label=" %{T1}%output%%{T-}"
label-background=#191830
label-foreground=#FFFFFF
tail=true
type=custom/script
[module/cpu-temp]
base-temperature=20
format="%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}CPU %{F-}<label>%{B-}"
format-warn="%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}CPU %{F-}<label-warn>%{B-}"
hwmon-path=/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
label-background=#191830
label-foreground=#FFFFFF
label-warn-foreground=#f00
label= "%temperature% "
thermal-zone=0
type=internal/temperature
warn-temperature=85
zone-type=x86_pkg_temp
[module/cpu-usage]
format="<label>%{T2}%{F#191830}%{F-}%{T-}"
format-foreground=#FFFFFF
interval=1.5
label=%percentage%%
label-background=#191830
type=internal/cpu
[module/date]
date=%Y-%m-%d %A
font-1=Jetbrains Mono Nerd font
format=%{T2}%{F#191830}%{F-}%{T-}<label>%{T2}%{F#191830}%{F-}%{T-}
interval=1
label=%time% %date%
label-background=#191830
label-foreground=#FFFFFF
time=%I:%M:%S
type=internal/date
[module/ewmh]
format=%{T2}%{F#191830}%{F-}%{T-}<label-state>%{T2}%{F#191830}%{F-}%{T-}
label-active-background=#191830
label-active-foreground=#FAD000
label-empty-background=#191830
label-inactive-background=#191830
label-occupied-background=#191830
label-urgent-foreground=#f00
pin-workspaces=false
type=internal/xworkspaces
[module/fs-data]
format-mounted=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}DAT %{F-}%{B-}<label-mounted>%{T2}%{F#191830}%{F-}%{T-}
format-prefix-foreground=#FFFFFF
interval=30
label-mounted=%free%(%total%)
label-mounted-background=#191830
label-unmounted=?
label-warn=%{F#f00} !%free%!%{F-}(%total%)
mount-0=/media/terra
type=internal/fs
warn-precentage=80%
[module/fs-label-data]
label="DAT "
label-foreground=#FAD000
type=custom/text
[module/fs-label-system]
label="SYS "
label-foreground=#FAD000
type=custom/text
[module/fs-system]
format-mounted=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}SYS %{F-}%{B-}<label-mounted>%{T2}%{F#191830}%{F-}%{T-}
format-prefix-foreground=#FFFFFF
interval=30
label-mounted=%free%(%total%)
label-mounted-background=#191830
label-unmounted=?
label-warn=%{F#f00} !%free%!%{F-}(%total%)
mount-0=/
type=internal/fs
warn-precentage=80%
[module/gpu-temp]
exec=nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits
#format=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{B#191830}%{F#FAD000}GPU%{F-}%{B-} <label>%{B-}%{T2}%{F#191830}%{F-}%{T-}
format=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}GPU%{F-}<label>c%{B-}
interval=1.5
label-background=#191830
label-foreground=#FFFFFF
type=custom/script
[module/gpu-usage]
exec=nvidia-smi --query-gpu=memory.used --format=csv,noheader,nounits
format=<label> mb
interval=1.5
label-background=#191830
label-foreground=#FFFFFF
type=custom/script
[module/keyboard]
format=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}<label-layout>%{B-}%{B#191830}%{F#FAD000} <label-indicator>%{T-}%{B-}%{T2}%{F#191830}%{F-}%{T-}
label-layout-background=#191830
label-layout-foreground=#FFFFFF
label-indicator-on-capslock = CAPS
type=internal/xkeyboard
[module/memory]
format=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}RAM %{F-}%{B-}<label>%{T2}%{F#191830}%{F-}%{T-}
interval=1
label=%used%
label-background=#191830
label-warn=%used%
label-warn-foreground=#f00
type=internal/memory
warn-percentage=60
[module/music-capsule]
exec=~/dotfiles/scripts/music.sh
format=%{T2}%{F#191830}%{F-}%{T-}<label>%{T2}%{F#191830}%{F-}%{T-}
interval=.5
label-background=#191830
type=custom/script
[module/replay]
exec=~/.config/scripts/status.sh
format=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}REPLAY %{F-}%{B-}<label>%{T2}%{F#191830}%{F-}%{T-}
interval=1
label-background=#191830
type=custom/script
[module/s]
label=" "
type=custom/text
[module/wired-network]
format-connected=%{T2}%{F#191830}%{F-}%{T-}<label-connected>%{T2}%{F#191830}%{F-}%{T-}
format-disconnected=%{T2}%{F#191830}%{F-}%{T-}<label-disconnected>%{T2}%{F#191830}%{F-}%{T-}
format-packetloss=%{T2}%{F#191830}%{F-}%{T-}PL!: <label-packetloss>%{T2}%{F#191830}%{F-}%{T-}
interface=eno2
interval=.5
label-background=#191830
label-connected=%ifname% %{F#FAD000}%{F-} %downspeed% %{F#FAD000}%{F-} %upspeed%
label-packetloss=%ifname% %{F#FAD000}%{F-} %downspeed% %{F#FAD000}%{F-} %upspeed%
label-connected-background=#191830
label-disconnected-background=#191830
type=internal/network
animation-packetloss-framerate = 500
[module/wireless-network]
format-connected=%{T2}%{F#191830}%{F-}%{T-}<label-connected>%{T2}%{F#191830}%{F-}%{T-}
format-disconnected=%{T2}%{F#191830}%{F-}%{T-}<label-disconnected>%{T2}%{F#191830}%{F-}%{T-}
interface=wlo1
interval=.5
label-background=#191830
label-connected=%{F#FAD000}%{F-} %downspeed% %{F#FAD000}%{F-} %upspeed%
label-disconnected="%ifname% offline"
label-connected-background=#191830
label-disconnected-background=#191830
type=internal/network

View file

@ -26,10 +26,10 @@ in
command = "picom -b";
}
{
command = "polybar default";
command = "polybar default -c ${dotfilepath}/hosts/thinkpad/opt/poly.ini";
}
{
command = "polybar bottom";
command = "polybar bottm -c ${dotfilepath}/hosts/thinkpad/opt/poly.ini";
}
{
command = "aw-server";

View file

@ -10,7 +10,7 @@ foreground=#FFFFFF
height=34
modules-center=cava
modules-left=audio-capsule a music-capsule
modules-right=" wired-network a wireless-network a replay"
modules-right="wired-network a wireless-network "
padding-left=5
padding-right=5
radius=20
@ -27,18 +27,12 @@ foreground=#FFFFFF
height=34
modules-center=ewmh
modules-left=date s keyboard battery
modules-right="fs-data s fs-system s memory s cpu-temp cpu-usage"
modules-right= fs-system s memory s cpu-temp cpu-usage
padding-left=2
padding-right=2
radius=15
width=100%
[fs-base]
format-prefix-foreground=#FFFFFF
label-unmounted=?
type=internal/fs
warn-precentage=80%
[global/wm]
override-redirect=false
@ -62,13 +56,19 @@ use-ui-max=true
[module/battery]
adapter=AC0
battery=BAT0
format-charging=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}BAT %{F-}%{B-}<label-charging>%{T2}%{F#191830}%{F-}%{T-}
full-at=95
label-background=#191830
label-foreground=#FFFFFF
label-charging = Charging %percentage%%
label-charging-background=#191830
label-charging-foreground=#FFFFFF
low-at=20
poll-interval=4
type=internal/battery
[module/cava]
exec=~/home/peach/dotfiles/scripts/cava.sh
exec=~/dotfiles/scripts/cava.sh
format=%{T2}%{F#191830}%{F-}%{T-}<label>%{T2}%{F#191830}%{F-}%{T-}
format-font=5
label=" %{T1}%output%%{T-}"
@ -79,48 +79,59 @@ type=custom/script
[module/cpu-temp]
base-temperature=20
format=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}CPU %{F-}<label>%{B-}
format-warn=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}CPU %{F-}<label-warn>%{B-}
format="%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}CPU %{F-}<label>%{B-}"
format-warn="%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}CPU %{F-}<label-warn>%{B-}"
hwmon-path=/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
label="%temperature% "
label-background=#191830
label-foreground=#FFFFFF
label-warn-foreground=#f00
label= "%temperature% "
thermal-zone=0
type=internal/temperature
warn-temperature=85
zone-type=x86_pkg_temp
[module/cpu-usage]
format=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}<label>
format="<label>%{T2}%{F#191830}%{F-}%{T-}"
format-foreground=#FFFFFF
interval=1.5
label=CPU %percentage%%
label-background=#FFFFFF
label-foreground=#FFFFFF
label=%percentage%%
label-background=#191830
type=internal/cpu
[module/date]
date=%Y-%m-%d%
date=%Y-%m-%d %A
font-1=Jetbrains Mono Nerd font
format=%{T2}%{F#191830}%{F-}%{T-}<label>%{T2}%{F#191830}%{F-}%{T-}
interval=1
label=%time% %date%
label-background=#FFFFFF
label-background=#191830
label-foreground=#FFFFFF
time=%I:%M:%S
type=internal/date
[module/ewmh]
format=%{T2}%{F#191830}%{F-}%{T-}<label-state>%{T2}%{F#191830}%{F-}%{T-}
label-active-background=#191830
label-active-foreground=#FAD000
background = #191830
label-empty-background=#191830
label-inactive-background=#191830
label-occupied-background=#191830
label-urgent-foreground=#f00
pin-workspaces=false
type=internal/xworkspaces
[module/fs-data]
inherit=fs-base
format-mounted=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}DAT %{F-}%{B-}<label-mounted>%{T2}%{F#191830}%{F-}%{T-}
format-prefix-foreground=#FFFFFF
interval=30
label-mounted=%free%(%total%)
mount-0=/mnt/terra
label-mounted-background=#191830
label-unmounted=?
label-warn=%{F#f00} !%free%!%{F-}(%total%)
mount-0=/media/terra
type=internal/fs
warn-precentage=80%
[module/fs-label-data]
label="DAT "
@ -133,74 +144,66 @@ label-foreground=#FAD000
type=custom/text
[module/fs-system]
inherit=fs-base
format-mounted=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}SYS %{F-}%{B-}<label-mounted>%{T2}%{F#191830}%{F-}%{T-}
format-prefix-foreground=#FFFFFF
interval=30
label-mounted=%free%(%total%)
label-mounted-background=#191830
label-unmounted=?
label-warn=%{F#f00} !%free%!%{F-}(%total%)
mount-0=/
[module/gpu-temp]
exec=nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits
format=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}GPU %{F-}%{B-}<label>
format-suffix="°C "
interval=1.5
label-foreground=#FFFFFF
type=custom/script
[module/gpu-usage]
exec=nvidia-smi --query-gpu=memory.used --format=csv,noheader,nounits
format=<label> mb%{T2}%{F#191830}%{F-}%{T-}
interval=1.5
type=custom/script
type=internal/fs
warn-precentage=80%
[module/keyboard]
format=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}<label-layout>%{B-}%{B#191830}%{F#FAD000} <label-indicator>%{T-}%{B-}%{T2}%{F#191830}%{F-}%{T-}
label-indicator-on-capslock=CAPS
label-layout-background=#191830
label-layout-foreground=#FFFFFF
label-indicator-on-capslock = CAPS
type=internal/xkeyboard
[module/memory]
format=%{F#FAD000}RAM%{F-} <label>
format=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}RAM %{F-}%{B-}<label>%{T2}%{F#191830}%{F-}%{T-}
interval=1
label=%used%
label-background=#191830
label-warn=%used%
label-warn-foreground=#f00
type=internal/memory
warn-percentage=60
[module/music-capsule]
exec=~/home/peach/dotfiles/scripts/music.sh
exec=~/dotfiles/scripts/music.sh
format=%{T2}%{F#191830}%{F-}%{T-}<label>%{T2}%{F#191830}%{F-}%{T-}
interval=.5
label-background=#191830
type=custom/script
[module/replay]
exec=~/.config/scripts/status.sh
format=%{T2}%{F#191830}%{F-}%{T-}%{B#191830}%{F#FAD000}REPLAY %{F-}%{B-}<label>%{T2}%{F#191830}%{F-}%{T-}
interval=1
label-background=#191830
type=custom/script
[module/s]
label=" "
type=custom/text
[module/wired-network]
format-connected=%{T2}%{F#191830}%{F-}%{T-}<label-connected>%{T2}%{F#191830}%{F-}%{T-}
format-disconnected=%{T2}%{F#191830}%{F-}%{T-}<label-disconnected>%{T2}%{F#191830}%{F-}%{T-}
format-packetloss=<animation-packetloss> <label-connected>
interface=eno2
format-packetloss=%{T2}%{F#191830}%{F-}%{T-}PL!: <label-packetloss>%{T2}%{F#191830}%{F-}%{T-}
interface=eno0
interval=.5
label-background=#191830
label-connected=%{F#FAD000}%{F-} %downspeed% %{F#FAD000}%{F-} %upspeed%
label-connected=%ifname% %{F#FAD000}%{F-} %downspeed% %{F#FAD000}%{F-} %upspeed%
label-packetloss=%ifname% %{F#FAD000}%{F-} %downspeed% %{F#FAD000}%{F-} %upspeed%
label-connected-background=#191830
label-disconnected-background=#191830
label-disconnected-background=#00191830
type=internal/network
animation-packetloss-framerate = 500
[module/wireless-network]
format-connected=%{T2}%{F#191830}%{F-}%{T-}<label-connected>%{T2}%{F#191830}%{F-}%{T-}
format-disconnected=%{T2}%{F#191830}%{F-}%{T-}%{F#f00}wlo1%{F-}%{T2}%{F#191830}%{F-}%{T-}
interface=wlo1
format-disconnected=%{T2}%{F#191830}%{F-}%{T-}<label-disconnected>%{T2}%{F#191830}%{F-}%{T-}
interface=wlp1s0
interval=.5
label-background=#191830
label-connected=%{F#FAD000}%{F-} %downspeed% %{F#FAD000}%{F-} %upspeed%
label-disconnected="%ifname% offline"
label-connected-background=#191830
label-disconnected-background=#191830
type=internal/network