diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-07-15 20:27:06 +0200 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-07-15 20:27:06 +0200 |
| commit | 1d28416b68aabef73987b543df9b71de4972d330 (patch) | |
| tree | fad1a6b8d1d303511c32be95283de803ca800f68 /x11 | |
| parent | ff4878e29d953f8c0a5135789763b42e25a44b5a (diff) | |
1
Diffstat (limited to 'x11')
| -rw-r--r-- | x11/.Xresources | 42 | ||||
| -rw-r--r-- | x11/.config/x11/xprofile | 10 |
2 files changed, 51 insertions, 1 deletions
diff --git a/x11/.Xresources b/x11/.Xresources new file mode 100644 index 0000000..d23370f --- /dev/null +++ b/x11/.Xresources @@ -0,0 +1,42 @@ +! special +*.foreground: #e1a15b +*.background: #0e0a05 +*.cursorColor: #e1a15b + +! black +*.color0: #222222 +*.color8: #000000 + +! red +*.color1: #e75c58 +*.color9: #b22b31 + +! green +*.color2: #00b800 +*.color10: #008100 + +! yellow +*.color3: #ebeb00 +*.color11: #d3d300 + +! blue +*.color4: #0082ff +*.color12: #0061c3 + +! magenta +*.color5: #d160c4 +*.color13: #a03196 + +! cyan +*.color6: #009393 +*.color14: #007e7e + +! white +*.color7: #d2d2d2 +*.color15: #787878 + +Xft.autohint: 0 +Xft.lcdfilter: lcddefault +Xft.hinting: 1 +Xft.antialias: 1 +Xft.rgba: rgb diff --git a/x11/.config/x11/xprofile b/x11/.config/x11/xprofile index 65d1fb1..8f25429 100644 --- a/x11/.config/x11/xprofile +++ b/x11/.config/x11/xprofile @@ -5,10 +5,18 @@ # generate .Xresources -$HOME/.local/bin/genxresources > $HOME/.Xresources +#$HOME/.local/bin/genxresources > $HOME/.Xresources xrdb $HOME/.Xresources + +dpi="92" +if [ $(xdpyinfo | awk '/dimensions/ {print $2}') == '3840x2160' ]; then + dpi="192" +fi +notify-send "Setting DPI $dpi" +xrdb -merge <<< "Xft.dpi: ${dpi}" xrdbpid=$! + # Ensure that xrdb has finished running before using xrdb and moving on to WM/DE [ -n "$xrdbpid" ] && wait "$xrdbpid" |
