From 5f044ef72e489cd7e8de27532313f9b65fad3305 Mon Sep 17 00:00:00 2001 From: paul-loedige <59517210+ploedige@users.noreply.github.com> Date: Fri, 24 May 2024 11:06:35 +0200 Subject: [PATCH] added autorandr for automatic screen rendering --- config.org | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/config.org b/config.org index 865ca3c..ddadde3 100644 --- a/config.org +++ b/config.org @@ -2194,6 +2194,37 @@ These settings are Wayland-specific. They have no effect when using X11 # where there are multiple screens with very different dpi values. per_monitor_dpi = false #+end_src +*** [[https://github.com/phillipberndt/autorandr][autorandr]] +**** Installation +#+begin_src config :tangle pkg-list.txt +autorandr +#+end_src +**** Configuration +***** Config File Header +#+begin_src shell :mkdirp yes :tangle ~/.config/autorandr/postswitch +#!/bin/sh +# DO NOT EDIT THIS FILE DIRECTLY +# This is a file generated from a literate programing source file +# You should make any changes there and regenerate it from Emacs org-mode +# using org-babel-tangle (C-c C-v t) +#+end_src +***** Restart Qtile after switching config +#+begin_src shell :mkdirp yes :tangle ~/.config/autorandr/postswitch +# Qtile restart +sleep 1 +qtile cmd-obj -o cmd -f restart +#+end_src +make the postswitch file executable +#+begin_src shell :tangle update.sh +FILE="$HOME/.config/autorandr/postswitch" + +# Check if the file is already executable +if [ ! -x "$FILE" ]; then + echo "Making $FILE script executable" + chmod +x "$FILE" +fi +#+end_src + * Text Editors ** Doom Emacs *** Installation