Eduard Lucena <x3mboy(a)fedoraproject.org> writes:
2. fix 4k display issues (to scale the display by 2X)
>
> ```
> # install xrandr which is used to change display properties
> sudo dnf install xrandr
>
> # create a shell script to scale the display
> sudo cat > /usr/share/lightdm/display.sh <<EOF
> #!/usr/bin/env sh
> [ -n "$DISPLAY" ] && /usr/bin/xrandr --output eDP --scale
0.5x0.5
> EOF
> sudo chmod +x /usr/share/lightdm/display.sh
>
> # configure lightdm to run the shell script when showing the greeter
> and when starting a new session
> sudo sed -i '/greeter-setup-script=/
> s/.*/greeter-setup-script=\/usr\/share\/lightdm\/display.sh/'
> /etc/lightdm/lightdm.conf
> sudo sed -i '/session-setup-script=/
> s/.*/session-setup-script=\/usr\/share\/lightdm\/display.sh/'
> /etc/lightdm/lightdm.conf
> ```
>
Custom scripts are hard to include, we usually use packages, and also, not
all screens are HiDPI. I think we can include this like a recommendation in
docs.
Or we add this to a contrib folder to a i3-spin-scripts package?
> 3. install `xss-lock` (this is already included in the default i3
config
> file) to enable auto start of i3lock when the display is locked; and add a
> keybinding (mod+shift+p - but use a keycode since I am using Dvorak
> keyboard layout (which maps this to mod+shift+l in Dvorak)) to lock the
> screen
>
> ```
> sudo dnf install xss-lock
> echo 'bindcode $mod+Shift+33 exec --no-startup-id loginctl
> lock-session' >> ~/.config/i3/config
> ```
>
We can discuss xss-lock, it looks like a good idea.
We really shouldn't recommend xss-lock, it's been dead upstream for
nearly a decade now:
https://bitbucket.org/raymonad/xss-lock/commits/
Afaik you can use systemd nowadays instead of xss-lock.
> 4. replace urxvt terminal with alacritty (why bother configuring
uxrvt to
> be usable when there are other terminals that work out of the box?).
>
> ```
> sudo dnf install alacritty
> sudo dnf remove rxvt-unicode
> ```
>
rxvt-unicode has half of the size of alacritty. We discuss this a lot in
the early days, and we choose rxvt-unicode because it's likeweight and it's
the most used in i3 default installations.
I am personally against alacritty, because it causes ugly screen tearing
on my Precision 5530 and does not even start on my Thinkpad x200t. I
usually use st, but that's not a terminal emulator for everyone.
> 5. replace dmenu with rofi (using the default config included in
the
> default i3 config file)
>
> ```
> sudo dnf install rofi
> # comment out the line that exec's dmenu
> sed -i '/exec --no-startup-id dmenu_run/ s/^/# /' ~/.config/i3/config
> # uncomment the line that runs rofi
> sed -i '/rofi -modi-drun/ s/^# //' ~/.config/i3/config
> ```
>
It's a taste decision.
I use rofi too and wouldn't mind including it in the spin.
> 6. use Hack font instead of monospace for i3 title bars and
i3status (it
> seems Hack is installed by default but I don't really understand how fonts
> work or how to verify this)
>
> ```
> sed -i '/^font / s/.*/font pango: Hack Regular 10/' ~/.config/i3/config
> ```
>
It's a taste decision. Also, hack is not in the Fedora repositories,
Yeah, then that's a nogo.