From 1d28416b68aabef73987b543df9b71de4972d330 Mon Sep 17 00:00:00 2001 From: ivan-boikov Date: Fri, 15 Jul 2022 20:27:06 +0200 Subject: 1 --- x11/.Xresources | 42 ++++++++++++++++++++++++++++++++++++++++++ x11/.config/x11/xprofile | 10 +++++++++- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 x11/.Xresources (limited to 'x11') 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" -- cgit v1.2.3