added autorandr for automatic screen rendering
This commit is contained in:
+31
@@ -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.
|
# where there are multiple screens with very different dpi values.
|
||||||
per_monitor_dpi = false
|
per_monitor_dpi = false
|
||||||
#+end_src
|
#+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
|
* Text Editors
|
||||||
** Doom Emacs
|
** Doom Emacs
|
||||||
*** Installation
|
*** Installation
|
||||||
|
|||||||
Reference in New Issue
Block a user