2020-01-11 22:04:45 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
|
|
|
<head>
|
2022-05-09 10:05:23 +02:00
|
|
|
<!-- 2022-05-09 lun. 10:04 -->
|
2020-01-11 22:04:45 +01:00
|
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
|
|
<title>Configuration Files related to Xorg</title>
|
|
|
|
<meta name="author" content="Dehaeze Thomas" />
|
2021-04-25 19:10:57 +02:00
|
|
|
<meta name="generator" content="Org Mode" />
|
2021-01-01 20:12:34 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
|
|
|
|
<script type="text/javascript" src="./dist/script.js"></script>
|
2020-01-11 22:04:45 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="org-div-home-and-up">
|
|
|
|
<a accesskey="h" href="./index.html"> UP </a>
|
|
|
|
|
|
|
|
|
<a accesskey="H" href="./index.html"> HOME </a>
|
2022-05-09 10:05:23 +02:00
|
|
|
</div><div id="content" class="content">
|
2020-01-11 22:04:45 +01:00
|
|
|
<h1 class="title">Configuration Files related to Xorg</h1>
|
2022-05-09 10:05:23 +02:00
|
|
|
<div id="table-of-contents" role="doc-toc">
|
2020-01-11 22:04:45 +01:00
|
|
|
<h2>Table of Contents</h2>
|
2022-05-09 10:05:23 +02:00
|
|
|
<div id="text-table-of-contents" role="doc-toc">
|
2020-01-11 22:04:45 +01:00
|
|
|
<ul>
|
2021-01-01 20:12:34 +01:00
|
|
|
<li><a href="#xresources"><code>~/.Xresources</code></a>
|
2020-01-11 22:04:45 +01:00
|
|
|
<ul>
|
2022-05-09 10:05:23 +02:00
|
|
|
<li><a href="#orga354a1d">Colors</a></li>
|
|
|
|
<li><a href="#org43e483a">Fonts</a></li>
|
|
|
|
<li><a href="#org593b86c">Cursor</a></li>
|
2020-01-11 22:04:45 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
2021-01-01 20:12:34 +01:00
|
|
|
<li><a href="#xinitrc"><code>~/.xinitrc</code></a></li>
|
|
|
|
<li><a href="#xprofile"><code>~/.xprofile</code></a></li>
|
2020-01-11 22:04:45 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-01-01 20:12:34 +01:00
|
|
|
<div id="outline-container-xresources" class="outline-2">
|
|
|
|
<h2 id="xresources"><code>~/.Xresources</code></h2>
|
|
|
|
<div class="outline-text-2" id="text-xresources">
|
2020-01-11 22:04:45 +01:00
|
|
|
</div>
|
|
|
|
|
2022-05-09 10:05:23 +02:00
|
|
|
<div id="outline-container-orga354a1d" class="outline-3">
|
|
|
|
<h3 id="orga354a1d">Colors</h3>
|
|
|
|
<div class="outline-text-3" id="text-orga354a1d">
|
2020-01-11 22:04:45 +01:00
|
|
|
<div class="org-src-container">
|
2022-05-09 10:05:23 +02:00
|
|
|
<pre class="src src-conf">*foreground: <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
|
2020-11-03 16:27:09 +01:00
|
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">ifdef background_opacity</span>
|
2022-05-09 10:05:23 +02:00
|
|
|
*background: [background_opacity]<span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
|
2020-11-03 16:27:09 +01:00
|
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">else</span>
|
2022-05-09 10:05:23 +02:00
|
|
|
*background: <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
|
2020-11-03 16:27:09 +01:00
|
|
|
<span class="org-comment-delimiter">#</span><span class="org-comment">endif</span>
|
2022-05-09 10:05:23 +02:00
|
|
|
*cursorColor: <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
|
|
|
|
|
|
|
|
*color0: <span class="org-comment-delimiter">#</span><span class="org-comment">32302f</span>
|
|
|
|
*color1: <span class="org-comment-delimiter">#</span><span class="org-comment">fb4934</span>
|
|
|
|
*color2: <span class="org-comment-delimiter">#</span><span class="org-comment">b8bb26</span>
|
|
|
|
*color3: <span class="org-comment-delimiter">#</span><span class="org-comment">fabd2f</span>
|
|
|
|
*color4: <span class="org-comment-delimiter">#</span><span class="org-comment">83a598</span>
|
|
|
|
*color5: <span class="org-comment-delimiter">#</span><span class="org-comment">d3869b</span>
|
|
|
|
*color6: <span class="org-comment-delimiter">#</span><span class="org-comment">8ec07c</span>
|
|
|
|
*color7: <span class="org-comment-delimiter">#</span><span class="org-comment">d5c4a1</span>
|
|
|
|
|
|
|
|
*color8: <span class="org-comment-delimiter">#</span><span class="org-comment">665c54</span>
|
|
|
|
*color9: <span class="org-comment-delimiter">#</span><span class="org-comment">fb4934</span>
|
|
|
|
*color10: <span class="org-comment-delimiter">#</span><span class="org-comment">b8bb26</span>
|
|
|
|
*color11: <span class="org-comment-delimiter">#</span><span class="org-comment">fabd2f</span>
|
|
|
|
*color12: <span class="org-comment-delimiter">#</span><span class="org-comment">83a598</span>
|
|
|
|
*color13: <span class="org-comment-delimiter">#</span><span class="org-comment">d3869b</span>
|
|
|
|
*color14: <span class="org-comment-delimiter">#</span><span class="org-comment">8ec07c</span>
|
|
|
|
*color15: <span class="org-comment-delimiter">#</span><span class="org-comment">fbf1c7</span>
|
2020-01-11 22:04:45 +01:00
|
|
|
|
2020-11-03 16:27:09 +01:00
|
|
|
! Note: colors beyond <span class="org-highlight-numbers-number">15</span> might not be loaded (e.g., xterm, urxvt),
|
|
|
|
! use <span class="org-string">'shell'</span> template to set these if necessary
|
2022-05-09 10:05:23 +02:00
|
|
|
*color16: <span class="org-comment-delimiter">#</span><span class="org-comment">fe8019</span>
|
|
|
|
*color17: <span class="org-comment-delimiter">#</span><span class="org-comment">d65d0e</span>
|
|
|
|
*color18: <span class="org-comment-delimiter">#</span><span class="org-comment">3c3836</span>
|
|
|
|
*color19: <span class="org-comment-delimiter">#</span><span class="org-comment">504945</span>
|
|
|
|
*color20: <span class="org-comment-delimiter">#</span><span class="org-comment">bdae93</span>
|
|
|
|
*color21: <span class="org-comment-delimiter">#</span><span class="org-comment">ebdbb2</span>
|
2020-01-11 22:04:45 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-05-09 10:05:23 +02:00
|
|
|
<div id="outline-container-org43e483a" class="outline-3">
|
|
|
|
<h3 id="org43e483a">Fonts</h3>
|
|
|
|
<div class="outline-text-3" id="text-org43e483a">
|
2020-01-11 22:04:45 +01:00
|
|
|
<div class="org-src-container">
|
2020-11-03 16:27:09 +01:00
|
|
|
<pre class="src src-conf">Xft.dpi: <span class="org-highlight-numbers-number">96</span>
|
|
|
|
Xft.autohint: <span class="org-highlight-numbers-number">0</span>
|
2020-01-11 22:04:45 +01:00
|
|
|
Xft.lcdfilter: lcddefault
|
|
|
|
Xft.hintstyle: hintfull
|
2020-11-03 16:27:09 +01:00
|
|
|
Xft.hinting: <span class="org-highlight-numbers-number">1</span>
|
|
|
|
Xft.antialias: <span class="org-highlight-numbers-number">1</span>
|
2020-01-11 22:04:45 +01:00
|
|
|
Xft.rgba: rgb
|
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-05-09 10:05:23 +02:00
|
|
|
<div id="outline-container-org593b86c" class="outline-3">
|
|
|
|
<h3 id="org593b86c">Cursor</h3>
|
|
|
|
<div class="outline-text-3" id="text-org593b86c">
|
2020-01-11 22:04:45 +01:00
|
|
|
<div class="org-src-container">
|
|
|
|
<pre class="src src-conf">Xcursor.theme: Breeze
|
2020-11-03 16:27:09 +01:00
|
|
|
Xcursor.size: <span class="org-highlight-numbers-number">0</span>
|
2020-01-11 22:04:45 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-01-01 20:12:34 +01:00
|
|
|
<div id="outline-container-xinitrc" class="outline-2">
|
|
|
|
<h2 id="xinitrc"><code>~/.xinitrc</code></h2>
|
|
|
|
<div class="outline-text-2" id="text-xinitrc">
|
2020-01-11 22:04:45 +01:00
|
|
|
<div class="org-src-container">
|
|
|
|
<pre class="src src-bash">dbus-update-activation-environment --systemd DISPLAY
|
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Fix for Matlab.
|
|
|
|
</p>
|
|
|
|
<div class="org-src-container">
|
2022-05-09 10:05:23 +02:00
|
|
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">export _JAVA_AWT_WM_NONREPARENTING=1</span>
|
2020-01-11 22:04:45 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
|
2020-01-28 21:32:38 +01:00
|
|
|
<p>
|
|
|
|
Set <code>DISPLAY</code> for <code>dunst</code> when started with <code>systemd</code>.
|
|
|
|
</p>
|
|
|
|
<div class="org-src-container">
|
2022-05-09 10:05:23 +02:00
|
|
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">systemctl --user import-environment DISPLAY</span>
|
2020-01-28 21:32:38 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
|
2020-01-11 22:04:45 +01:00
|
|
|
<p>
|
|
|
|
Merge in defaults and keymaps
|
|
|
|
</p>
|
|
|
|
<div class="org-src-container">
|
2020-11-03 16:27:09 +01:00
|
|
|
<pre class="src src-bash"><span class="org-variable-name">userresources</span>=$<span class="org-variable-name">HOME</span>/.Xresources
|
|
|
|
<span class="org-variable-name">usermodmap</span>=$<span class="org-variable-name">HOME</span>/.Xmodmap
|
|
|
|
<span class="org-variable-name">sysresources</span>=/etc/X11/xinit/.Xresources
|
|
|
|
<span class="org-variable-name">sysmodmap</span>=/etc/X11/xinit/.Xmodmap
|
|
|
|
|
|
|
|
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f $<span class="org-variable-name">sysresources</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
|
|
|
xrdb -merge $<span class="org-variable-name">sysresources</span>
|
|
|
|
<span class="org-keyword">fi</span>
|
|
|
|
|
|
|
|
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f $<span class="org-variable-name">sysmodmap</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
|
|
|
xmodmap $<span class="org-variable-name">sysmodmap</span>
|
|
|
|
<span class="org-keyword">fi</span>
|
|
|
|
|
|
|
|
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">userresources</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
|
|
|
xrdb -merge <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">userresources</span></span><span class="org-string">"</span>
|
|
|
|
<span class="org-keyword">fi</span>
|
|
|
|
|
|
|
|
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">usermodmap</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
|
|
|
|
xmodmap <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">usermodmap</span></span><span class="org-string">"</span>
|
|
|
|
<span class="org-keyword">fi</span>
|
2020-01-11 22:04:45 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
|
2021-01-01 20:12:34 +01:00
|
|
|
<p>
|
|
|
|
Start <code>gnome-keyring-daemon</code>.
|
|
|
|
</p>
|
|
|
|
<div class="org-src-container">
|
|
|
|
<pre class="src src-bash"><span class="org-builtin">eval</span> $<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">gnome-keyring-daemon</span> --start --components=pkcs11,secrets,ssh<span class="org-rainbow-delimiters-depth-1">)</span>
|
|
|
|
<span class="org-builtin">export</span> SSH_AUTH_SOCK
|
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
|
2020-01-11 22:04:45 +01:00
|
|
|
<div class="org-src-container">
|
2020-11-03 16:27:09 +01:00
|
|
|
<pre class="src src-bash"><span class="org-rainbow-delimiters-depth-1">[</span> -f ~/.xprofile <span class="org-rainbow-delimiters-depth-1">]</span> && <span class="org-builtin">.</span> ~/.xprofile
|
2020-01-11 22:04:45 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
2021-01-01 20:12:34 +01:00
|
|
|
|
|
|
|
<div class="org-src-container">
|
|
|
|
<pre class="src src-bash"><span class="org-keyword">exec</span> i3
|
|
|
|
</pre>
|
|
|
|
</div>
|
2020-01-11 22:04:45 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-01-01 20:12:34 +01:00
|
|
|
<div id="outline-container-xprofile" class="outline-2">
|
|
|
|
<h2 id="xprofile"><code>~/.xprofile</code></h2>
|
|
|
|
<div class="outline-text-2" id="text-xprofile">
|
2020-01-11 22:04:45 +01:00
|
|
|
<p>
|
2021-01-01 20:12:34 +01:00
|
|
|
Keyboard Options:
|
2020-01-11 22:04:45 +01:00
|
|
|
</p>
|
|
|
|
<div class="org-src-container">
|
2020-11-03 16:27:09 +01:00
|
|
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Set repetition keyboard rate</span>
|
|
|
|
xset r rate <span class="org-highlight-numbers-number">200</span> <span class="org-highlight-numbers-number">40</span> &
|
2020-05-26 08:40:15 +02:00
|
|
|
|
2020-11-03 16:27:09 +01:00
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Set International US keyboard layout</span>
|
2020-01-11 22:04:45 +01:00
|
|
|
setxkbmap -layout us -variant intl -option caps:escape &
|
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p>
|
2021-01-01 20:12:34 +01:00
|
|
|
Start programs related to display:
|
2020-01-11 22:04:45 +01:00
|
|
|
</p>
|
|
|
|
<div class="org-src-container">
|
2020-11-03 16:27:09 +01:00
|
|
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Screen options</span>
|
2022-05-09 10:05:23 +02:00
|
|
|
xrandr --output eDP-1 --mode 1920x1200 --dpi <span class="org-highlight-numbers-number">192</span> &
|
2020-01-11 22:04:45 +01:00
|
|
|
|
2021-01-01 20:12:34 +01:00
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Set random wallpaper</span>
|
|
|
|
setbg ~/.local/data/wallpapers/ &
|
2020-01-11 22:04:45 +01:00
|
|
|
|
2020-11-03 16:27:09 +01:00
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Hide mouse cursor after x seconds</span>
|
|
|
|
<span class="org-type">pgrep</span> -xu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">USER</span></span><span class="org-string">"</span> unclutter >/dev/null || <span class="org-sh-escaped-newline">\</span>
|
|
|
|
unclutter --timeout <span class="org-highlight-numbers-number">5</span> &
|
2020-01-11 22:04:45 +01:00
|
|
|
|
2020-11-03 16:27:09 +01:00
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Autolock screen after x minutes</span>
|
2022-05-09 10:05:23 +02:00
|
|
|
xautolock -locker <span class="org-string">"~/.local/bin/lockscreen"</span> -detectsleep -time <span class="org-highlight-numbers-number">30</span> -notify <span class="org-highlight-numbers-number">60</span> -notifier <span class="org-string">"notify-send -u critical -t 10000 -- 'Locking Screen' '60 seconds'"</span> &
|
2020-01-11 22:04:45 +01:00
|
|
|
|
2020-11-03 16:27:09 +01:00
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Redshift</span>
|
|
|
|
<span class="org-type">pgrep</span> -xu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">USER</span></span><span class="org-string">"</span> redshift >/dev/null || <span class="org-sh-escaped-newline">\</span>
|
2020-01-11 22:04:45 +01:00
|
|
|
redshift &
|
|
|
|
|
2020-11-03 16:27:09 +01:00
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Run Picom (compositor)</span>
|
2020-01-11 22:04:45 +01:00
|
|
|
picom --daemon &
|
2022-05-09 10:05:23 +02:00
|
|
|
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Network Manager Applet</span>
|
|
|
|
nm-applet &
|
2020-01-11 22:04:45 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p>
|
2021-01-01 20:12:34 +01:00
|
|
|
Manually start <code>mopidy</code> as it seems to not start automatically:
|
2020-01-11 22:04:45 +01:00
|
|
|
</p>
|
|
|
|
<div class="org-src-container">
|
2021-01-01 20:12:34 +01:00
|
|
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Mopidy</span>
|
|
|
|
mopidy --config ~/.config/mopidy/mopidy.conf >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> &
|
2020-03-01 22:51:16 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
|
2020-01-11 22:04:45 +01:00
|
|
|
<p>
|
2021-01-01 20:12:34 +01:00
|
|
|
Finally, run SXHKD for the key bindings:
|
2020-01-11 22:04:45 +01:00
|
|
|
</p>
|
|
|
|
<div class="org-src-container">
|
2020-11-03 16:27:09 +01:00
|
|
|
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Start sxhkd</span>
|
|
|
|
<span class="org-type">pgrep</span> -xu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">USER</span></span><span class="org-string">"</span> sxhkd >/dev/null || <span class="org-sh-escaped-newline">\</span>
|
|
|
|
sxhkd -m <span class="org-highlight-numbers-number">1</span> -c ~/.config/sxhkd/sxhkdrc &
|
2020-01-11 22:04:45 +01:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="postamble" class="status">
|
|
|
|
<p class="author">Author: Dehaeze Thomas</p>
|
2022-05-09 10:05:23 +02:00
|
|
|
<p class="date">Created: 2022-05-09 lun. 10:04</p>
|
2020-01-11 22:04:45 +01:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|