Adjust DPI, fix incorrect default variables usage in Polybar
parent
fcb5f5aa9d
commit
ea22f2a027
|
@ -0,0 +1,8 @@
|
||||||
|
Xft.dpi: 110
|
||||||
|
Xft.autohint: 0
|
||||||
|
Xft.lcdfilter: lcddefault
|
||||||
|
Xft.hintstyle: hintfull
|
||||||
|
Xft.hinting: 1
|
||||||
|
Xft.antialias: 1
|
||||||
|
Xft.rgba: rgb
|
||||||
|
|
|
@ -4,3 +4,6 @@ height = 27
|
||||||
top_left = powermenu system-uptime-pretty player-mpris
|
top_left = powermenu system-uptime-pretty player-mpris
|
||||||
top_center = xwindow
|
top_center = xwindow
|
||||||
top_right = system-usb-udev alsa date
|
top_right = system-usb-udev alsa date
|
||||||
|
bottom_left = i3
|
||||||
|
bottom_center = wired-network wireless-network updates-arch-combined
|
||||||
|
bottom_right = temperature cpu memory filesystem-custom
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
[variables]
|
[variables]
|
||||||
dpi = 110
|
dpi = 100
|
||||||
height = 70
|
height = 35
|
||||||
top_left = powermenu system-uptime-pretty battery player-mpris
|
top_left = powermenu system-uptime-pretty battery player-mpris
|
||||||
top_center = xwindow
|
top_center = xwindow
|
||||||
top_right = system-usb-udev backlight pulseaudio date
|
top_right = system-usb-udev backlight pulseaudio date
|
||||||
|
bottom_left = i3
|
||||||
|
bottom_center = wireless-network updates-arch-combined
|
||||||
|
bottom_right = temperature cpu memory filesystem-custom
|
||||||
|
|
|
@ -13,9 +13,9 @@ margin-top=50
|
||||||
; Common to top and bottom bars
|
; Common to top and bottom bars
|
||||||
[bar/common]
|
[bar/common]
|
||||||
width = 100%
|
width = 100%
|
||||||
dpi = ${variables.dpi:90}
|
dpi = ${variables.dpi}
|
||||||
enable-ipc = true
|
enable-ipc = true
|
||||||
height = ${variables.height:30}
|
height = ${variables.height}
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
line-size = 3
|
line-size = 3
|
||||||
|
@ -42,9 +42,9 @@ padding-right = 10
|
||||||
module-margin-left = 4
|
module-margin-left = 4
|
||||||
module-margin-right = 4
|
module-margin-right = 4
|
||||||
|
|
||||||
modules-left = ${variables.top_left:powermenu system-uptime-pretty player-mpris}
|
modules-left = ${variables.top_left}
|
||||||
modules-center = ${variables.top_center:xwindow}
|
modules-center = ${variables.top_center}
|
||||||
modules-right = ${variables.top_right:system-usb-udev alsa date}
|
modules-right = ${variables.top_right}
|
||||||
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
|
|
||||||
|
@ -70,9 +70,9 @@ font-2 = Symbola:size=5;1
|
||||||
font-3 = MaterialIcons-Regular:size=11;4
|
font-3 = MaterialIcons-Regular:size=11;4
|
||||||
font-4 = Font Awesome 5 Free:style=solid:size=10;2
|
font-4 = Font Awesome 5 Free:style=solid:size=10;2
|
||||||
|
|
||||||
modules-left = i3
|
modules-left = ${variables.bottom_left}
|
||||||
;modules-center =
|
modules-center = ${variables.bottom_center}
|
||||||
modules-right = wired-network wireless-network updates-arch-combined temperature cpu memory filesystem-custom
|
modules-right = ${variables.bottom_right}
|
||||||
|
|
||||||
[module/player-mpris]
|
[module/player-mpris]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
|
|
|
@ -67,12 +67,12 @@ However, depending on your machine you may want slightly different modules loade
|
||||||
|
|
||||||
This can be done in `~/.config/polybar/conf.d/<env>` (see [explanation for env](#managing-divergences-between-environments)).
|
This can be done in `~/.config/polybar/conf.d/<env>` (see [explanation for env](#managing-divergences-between-environments)).
|
||||||
|
|
||||||
This is optional for now as by default, polybar will use this fallback values :
|
If you want to test this setup, it will probably work with the `laptop` environnment. You can try these fallback values :
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
[variables]
|
[variables]
|
||||||
dpi = 90
|
dpi = 110
|
||||||
height = 27
|
height = 40
|
||||||
top_left = powermenu system-uptime-pretty player-mpris
|
top_left = powermenu system-uptime-pretty player-mpris
|
||||||
top_center = xwindow
|
top_center = xwindow
|
||||||
top_right = system-usb-udev alsa date
|
top_right = system-usb-udev alsa date
|
||||||
|
@ -169,6 +169,8 @@ Other times, you have a base configuration for all environment with specific add
|
||||||
|
|
||||||
In that case, the script will create a `<config_subdir>/config` file, which contains the concatenation of `config_common` and `config.d/<env>`, the later being optional. Filenames and path are hardcoded for now.
|
In that case, the script will create a `<config_subdir>/config` file, which contains the concatenation of `config_common` and `config.d/<env>`, the later being optional. Filenames and path are hardcoded for now.
|
||||||
|
|
||||||
|
If an `above` file is found in `config.d`, the per-environment configuration will be prepended to the base configuration. This is useful for e.g. setting base variables.
|
||||||
|
|
||||||
### Configuration outside XDG_CONFIG_HOME, e.g. /etc
|
### Configuration outside XDG_CONFIG_HOME, e.g. /etc
|
||||||
|
|
||||||
Some configuration files reside in `/etc` directory, but I want to keep track of them.
|
Some configuration files reside in `/etc` directory, but I want to keep track of them.
|
||||||
|
|
Loading…
Reference in New Issue