https://github.com/axwtv/linux-config-manual
https://github.com/axwtv/linux-config-manual
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/axwtv/linux-config-manual
- Owner: AXWTV
- Created: 2023-07-11T05:44:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-16T13:35:57.000Z (almost 3 years ago)
- Last Synced: 2025-02-12T19:49:09.133Z (over 1 year ago)
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Linux-Config-Manual
Display Configuration
```bash
$ ps -e | grep Xorg
```
chack if xrandr is installed
```bash
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 410mm x 230mm
1366x768 59.79 +
1920x1080 60.00* 59.94
1280x1024 75.02
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x576i 50.00
720x480 60.00 59.94
720x480i 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.08
DP-1 disconnected (normal left inverted right x axis y axis)
$ xrandr --output HDMI-1 --mode 1920x1080
$ touch .xprofile .profile .xinitrc
$ echo "#!/bin/bash" >> .profile .xprofile .xinitric
$ echo "xrandr --output HDMI-1 --mode 1920x1080" >> .profile .xprofile .xinitric
$ touch /etc/X11/xorg.conf.d/10-monitor.conf
```
paste in /etc/X11/xorg.conf.d/10-monitor.conf
```bash
Section "Monitor"
Identifier "HDMI1"
Option "PreferredMode" "1920x1080"
Option "TargetRefresh" "60"
Option "Position" "0 0"
Option "Enable" "true"
EndSection
```
gdm 1920x1080
```bash
sudo cp ~/.config/monitors.xml /var/lib/gdm/.config/monitors.xml
```
also add https://linuxreviews.org/HOWTO_fix_screen_tearing#:~:text=Intel%20iGPUs%5B,if%20it%27s%20new. also help full https://askubuntu.com/questions/1347160/screen-tearing-when-using-xrandr-and-x11vnc-on-ubuntu-20-04 , https://christitus.com/fix-screen-tearing-linux/
```bash
sudo vim /etc/X11/xorg.conf.d/20-intel-gpu.conf
```
paste this in there
to find out the driver use: grep drivers /var/log/Xorg.0.log
```bsah
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
EndSection
OR
Section "Device"
Identifier "Intel Graphics"
Driver "modesettings"
Option "TripleBuffer" "true"
Option "TearFree" "true"
EndSection
```
After doing all that just
```bash
sudo reboot
```
Install
```bash
$ sudo install arandr
e.g
sudo apt install arandr
sudo dnf install arandr
sudo pacman -Ss arandr
```
Supported
Debian, Ubuntu, Fedora, CentOS, ...
or use https://github.com/phillipberndt/autorandr
Screen saver
You can disable the screen saver feature with:
```bash
sudo systemctl mask suspend.target && sudo systemctl mask sleep.target
```
GTK - Theme problems
```bash
$ touch $HOME/.gtkrc-2.0 $HOME/.config/gtk-3.0/settings.ini
```
paste in $HOME/.gtkrc-2.0
```bash
gtk-icon-theme-name = "Adwaita"
gtk-theme-name = "Adwaita"
gtk-font-name = "DejaVu Sans 11"
```
paste in $HOME/.config/gtk-3.0/settings.ini
```bash
[Settings]
gtk-icon-theme-name = Adwaita
gtk-theme-name = Adwaita
gtk-font-name = DejaVu Sans 11
gtk-application-prefer-dark-theme = true
```
other themes https://github.com/catppuccin/gtk
more details in https://wiki.archlinux.org/index.php/GTK#Dark_theme_variant
How to find a class of an application
https://unix.stackexchange.com/questions/96798/i3wm-start-applications-on-specific-workspaces-when-i3-starts#:~:text=%40Lu%C3%ADsdeSousa%20you-,xprop%20%7C%20grep%20CLASS,-in%20terminal%2C%20your