Commit graph

58 commits

Author SHA1 Message Date
Vincent Bernat
b186b19f58 xsettingsd: mkdir XDG_RUNTIME_DIR/i3 2025-06-13 06:24:20 +02:00
Vincent Bernat
e7e0714b92 xsettingsd: move configuration file in runtime directory
This is a generated file.
2024-11-01 23:33:22 +01:00
Vincent Bernat
c8ffca837a xsettingsd: trigger an update for things listening to RR events
This includes dunst.
2024-09-03 21:17:04 +02:00
Vincent Bernat
7f40044fd0 xsettings: on AMD GPU, eDP is just eDP 2022-09-13 23:46:51 +02:00
Vincent Bernat
9874735f98 xsettingsd: more comments 2021-10-10 01:03:33 +02:00
Vincent Bernat
93348863a3 xsettingsd: allow 1.25 scale for text 2021-09-26 15:46:58 +02:00
Vincent Bernat
30c8f78f70 xsettings: also set Xft.rgba
Emacs with Harfbuzz is not using XSETTINGS for that... There is a code
path enabled only with XFT. It seems the settings is ignored by
Cairo, despite code for parsing that being here...
2021-08-23 14:56:41 +02:00
Vincent Bernat
16aa98a7fb xsettings: format 2021-07-21 09:44:12 +02:00
Vincent Bernat
739885fcd1 xsettings: fix xsettings script 2021-07-21 09:43:38 +02:00
Vincent Bernat
11044c6f3e xsettingsd: optimize a bit the shell script 2021-07-15 18:17:18 +02:00
Vincent Bernat
5141bf86cd xsettinsd: restart i3-cmd on DPI change as well
It reads DPI value from Xft.dpi.
2021-07-08 17:54:34 +02:00
Vincent Bernat
b6291798e4 xsettingsd: do not restart polybar if it is not already running 2021-07-05 10:05:34 +02:00
Vincent Bernat
fa58f9f7eb xsettingsd: fix creation of ~/.xsettingsd 2021-07-05 09:46:41 +02:00
Vincent Bernat
662db00e36 More configuration
Notably polybar
2021-07-04 18:25:28 +02:00
Vincent Bernat
f306d92a0d More initial configuration
Notably add Dunst for notifications.
2021-07-04 14:54:07 +02:00
Vincent Bernat
d85a504c53 Initial i3 configuration
This is derived from my Awesome configuration. Still a lot to do from
a WM perspective. The organization is a bit different and I am giving
it up on the per-display systemd units as it does not really work due
to the fact we only have one user DBus and one environment.
2021-07-04 08:38:39 +02:00
Vincent Bernat
675ae761df xsettings: remove reference to xsettingsd.local 2020-02-08 16:44:17 +01:00
Vincent Bernat
0d3dca998b xsettingsd: fix selected dpi 2020-01-31 10:08:37 +01:00
Vincent Bernat
9eab93570d xsettingsd: use first screen DPI as DPI for the session 2020-01-31 07:24:52 +01:00
Vincent Bernat
498606b38e xsettingsd: don't use a subshell when computing DPI
This is to be able to use `dpi` variable. Also, for some reason, the
journal doesn't keep the output of short-lived processes.
2020-01-31 07:14:28 +01:00
Vincent Bernat
139af6fed5 xsettingsd: fix typo in case 2020-01-31 00:00:07 +01:00
Vincent Bernat
c944c7855d xsettingsd: fix inlining of the change() function 2020-01-30 08:22:36 +01:00
Vincent Bernat
6625f42128 xsettingsd: explain more the problem with automatic DPI detection 2020-01-30 08:09:05 +01:00
Vincent Bernat
db5f5743b9 xsettingsd: improve automatic DPI detection
For laptops, we don't want the same as for regular screens.
2020-01-29 23:47:03 +01:00
Vincent Bernat
57af83356b xsettingsd: remove "change()" function 2020-01-29 23:12:55 +01:00
Vincent Bernat
96a9b401a4 xsettingsd: also set RandR DPI 2020-01-29 11:37:23 +01:00
Vincent Bernat
1902a4f0b5 xsettingsd: compute best DPI value for each screen 2020-01-29 11:37:12 +01:00
Vincent Bernat
1411929ead xsettings: fix DPI computation 2020-01-29 11:34:00 +01:00
Vincent Bernat
08fa9a63d0 xrandr: don't poll hardware when it's not needed 2020-01-29 11:16:05 +01:00
Vincent Bernat
2fa5ff7a38 xsettingsd: compute DPI for each screen
We don't use the information yet.
2020-01-29 04:59:12 +01:00
Vincent Bernat
2511f41461 xsettingsd: don't use autorandr --skip-options
Instead, move it in settings.ini.
2020-01-29 04:44:46 +01:00
Vincent Bernat
d1879ae338 xsettingsd: correct DISPLAY for the whole script 2020-01-22 22:38:57 +01:00
Vincent Bernat
2452fb6bcb xsettingsd: remove extra .0 awesome puts at the end of DISPLAY
Awesome likes to use :0.0 for DISPLAY because it thinks we are using
Zaphod and not Xinerama.
2020-01-22 22:34:28 +01:00
Vincent Bernat
ae691bb025 systemd: tentative to manage session with systemd
To me, I think it was cleaner to have a parameter with the current
display. This way, the session is specific to the current display. It
seems BindsTo doesn't think this way.
2020-01-19 19:06:49 +01:00
Vincent Bernat
846566c70f xsettingsd: skip gamma when getting current profile with xrandr 2020-01-17 11:05:50 +01:00
Vincent Bernat
5ab1f901dd xsettingsd: use autorandr current profile 2020-01-16 21:31:23 +01:00
Vincent Bernat
1adb48052d xsettingsd: simplify DPI settings 2020-01-12 17:29:20 +01:00
Vincent Bernat
6b987d45c2 Revert "xsettings: change DPI twice again"
This reverts commit 1aa3f19a7d. This
doesn't work. For some reason.
2019-07-18 17:36:46 +02:00
Vincent Bernat
1aa3f19a7d xsettings: change DPI twice again 2019-07-18 10:52:10 +02:00
Vincent Bernat
b7150025e0 xsettings: don't change DPI twice
Firefox only uses window scaling during runtime.
2019-05-28 21:13:22 +02:00
Vincent Bernat
cb25670d97 xsettings: set RGBA depending on the DPI setting
When using low DPI, it's still useful to have it.
2019-05-28 11:55:48 +02:00
Vincent Bernat
efb006065b xsettings: make Firefox more happy with DPI changes
See https://bugzilla.mozilla.org/show_bug.cgi?id=1554850
2019-05-28 09:23:31 +02:00
Vincent Bernat
bf0483f610 xsettings: correctly compute Gdk/UnscaledDPI value
For fractional scaling factor, it's not always 96dpi.
2018-07-29 00:02:45 +02:00
Vincent Bernat
d52488e1c9 xsettings: always set Gdk/* properties
It shouldn't hurt if we use 1 as scaling factor.
2018-07-27 22:53:54 +02:00
Vincent Bernat
387c6d0078 xsettings: use xsettings to set scale factor 2018-07-27 22:50:05 +02:00
Vincent Bernat
1aa03a9044 xsettings: configure neo for new 4K screens 2018-07-27 21:44:16 +02:00
Vincent Bernat
01d65673ca xsettings: when using display port adapter, keep HiDPI settings too
In fact, we should detect we have some videoprojector and do that.
2016-04-17 19:07:04 +02:00
Vincent Bernat
cb7763f070 xsettings: when using HDMI output only, keep HiDPI
The HDMI output is used mostly for presentations.
2016-03-30 14:48:14 +02:00
Vincent Bernat
f3f3754336 xsettings: compatibility with modeset driver 2016-02-19 10:06:22 +01:00
Vincent Bernat
f5954001cf xsettings: handle connected but unused screens as well 2015-08-05 19:09:39 +02:00