Hi all,
Below are my notes (written in markdown) about the tweaks I made after installing the new F34 i3 spin.
Perhaps some of them are interesting either for integration into F35 version, or perhaps as part of a write-up about using the i3 spin.
Cheers, Casey
# Essential Tweaks to Fedora 34 i3 Spin
(essential for me at least)
1. general system update
``` sudo dnf update ``` 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 ``` 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 ``` 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 ``` 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 ``` 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 ``` 7. configure trackpad natural scrolling and tap to click
``` sudo cat > /etc/X11/xorg.conf.d/40-trackpad.conf <<EOF Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Option "Tapping" "True" Option "TappingDrag" "True" Option "NaturalScrolling" "True" Driver "libinput" EndSection EOF ```
Hello Casey,
First of all, thanks for taking the time to give us feedback about the Spin.
Perhaps some of them are interesting either for integration into F35
version, or perhaps as part of a write-up about using the i3 spin.
This is very useful since we are looking for the custom settings we will include in F35.
1. general system update
sudo dnf update
It can't be avoided, it depends usually on the time since the RC is chosen and converted into GA, and the release time, it's usually like a week, and that's why are updates available even in the release day.
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.
- 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.
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.
- 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.
- 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,
configure trackpad natural scrolling and tap to click
sudo cat > /etc/X11/xorg.conf.d/40-trackpad.conf <<EOF Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Option "Tapping" "True" Option "TappingDrag" "True" Option "NaturalScrolling" "True" Driver "libinput" EndSection EOF
I never understood why this isn't added as default in Fedora. I need to check Workstation, because you can configure this in the Gnome configuration center.
Again thanks for taking the time to write this, we will definitely check this for next release.
Br,
update the ks files and we can make this happen for the f34 respins (planned next spin is 20210514)
On Sat, May 8, 2021 at 1:17 PM Eduard Lucena x3mboy@fedoraproject.org wrote:
Hello Casey,
First of all, thanks for taking the time to give us feedback about the Spin.
Perhaps some of them are interesting either for integration into F35
version, or perhaps as part of a write-up about using the i3 spin.
This is very useful since we are looking for the custom settings we will include in F35.
- general system update
sudo dnf update
It can't be avoided, it depends usually on the time since the RC is chosen and converted into GA, and the release time, it's usually like a week, and that's why are updates available even in the release day.
- 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.
- 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.
- 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.
- 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.
- 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,
configure trackpad natural scrolling and tap to click
sudo cat > /etc/X11/xorg.conf.d/40-trackpad.conf <<EOF Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Option "Tapping" "True" Option "TappingDrag" "True" Option "NaturalScrolling" "True" Driver "libinput" EndSection EOF
I never understood why this isn't added as default in Fedora. I need to check Workstation, because you can configure this in the Gnome configuration center.
Again thanks for taking the time to write this, we will definitely check this for next release.
Br,
Eduard Lucena Móvil: +56962318010 GNU/Linux User #589060 Ubuntu User #8749 Fedora Marketing Representative _______________________________________________ Fedora i3 SIG mailing list -- i3wm@lists.fedoraproject.org To unsubscribe send an email to i3wm-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/i3wm@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
Eduard Lucena x3mboy@fedoraproject.org writes:
- 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?
- 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.
- 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.
- 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.
- 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.
On Sun, May 9, 2021 at 4:27 PM Dan Čermák dan.cermak@cgc-instruments.com wrote:
Eduard Lucena x3mboy@fedoraproject.org writes:
- 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.
I am not necessarily pro-alacritty (usually I use xfce4-terminal, and was
just trying alacritty because I heard some good things about it) - but I am 100% against urxvt because it is so frustrating to configure [for me, and I assume all new urxvt users]. Also, urxvt doesn't play nice with powerline fonts.
My logic is that anybody who wants urxvt knows why they want it, and how to configure it to meet their needs; so they would have no issues installing it. For the rest of us I suggest we find a suitable terminal that is presentable out of the box.
- 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.
Agreed, but how about 'Deja Vu', which is actually included in the default
i3 config, but commented out.
I think that everybody agrees it is not wise to modify the upstream i3 config directly (especially since it is generated on first run), so it seems there are two options for actioning some of these user preference type issues:
1. just describe them in documentation somewhere, or 2. prepare a script that can update the configs (such as by using `sed` commands or something similar) and include it in a separate installable package, or 3. a combination of both the above
When is the next meeting where we can have a group discussion?
Cheers, Casey
Hi Dan,
On Sun, May 9, 2021 at 4:27 PM Dan Čermák dan.cermak@cgc-instruments.com wrote:
Eduard Lucena x3mboy@fedoraproject.org writes:
- 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.
I tried `st` terminal emulator and first impressions are great. The colors look great, and so far it has worked well with ssh on all my remote servers (alacritty causes 'terminal not fully functional' on some ssh sessions for me for some reason which I am not much interested in investigating).
Based on my very limited experience with `st` I would definitely think that it should be considered as the default terminal for the i3 spin because "it just works" (for me so far at least, so others experiences would be useful to know also).
You mention it's "not a terminal emulator for everyone". Is there anything specific you had in mind?
Thanks, Casey
Hi Casey,
Casey Witt kcwitt@gmail.com writes:
Hi Dan,
On Sun, May 9, 2021 at 4:27 PM Dan Čermák dan.cermak@cgc-instruments.com wrote:
Eduard Lucena x3mboy@fedoraproject.org writes:
- 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.
I tried `st` terminal emulator and first impressions are great. The colors look great, and so far it has worked well with ssh on all my remote servers (alacritty causes 'terminal not fully functional' on some ssh sessions for me for some reason which I am not much interested in investigating).
Based on my very limited experience with `st` I would definitely think that it should be considered as the default terminal for the i3 spin because "it just works" (for me so far at least, so others experiences would be useful to know also).
You mention it's "not a terminal emulator for everyone". Is there anything specific you had in mind?
Yes, have you tried changing the font size ;-) ? If you want to do that, you have to recompile st. Same goes for changing the colors, or the font type. And there is absolutely no scrollback support. Fortunately the Fedora package has some handy scripts to do that yourself, but it's still an inconvenience.
st works for me, because I like the defaults (or have grown accustomed to them) and use tmux, so the lack of scrollback does not bother me. But I still think that st is a bad default, because it just does not support all the features that as a new user you'd expect from a terminal emulator. If alacritty wouldn't cause issues here and there, I'd vote for that being the default. But unfortunately alacritty *needs* hardware acceleration and will not start on old machines.
Cheers,
Dan
Hi Dan,
You mention it's "not a terminal emulator for everyone". Is there anything specific you had in mind?
Yes, have you tried changing the font size ;-) ? If you want to do that, you have to recompile st. Same goes for changing the colors, or the font type. And there is absolutely no scrollback support. Fortunately the Fedora package has some handy scripts to do that yourself, but it's still an inconvenience.
st works for me, because I like the defaults (or have grown accustomed to them) and use tmux, so the lack of scrollback does not bother me. But I still think that st is a bad default, because it just does not support all the features that as a new user you'd expect from a terminal emulator. If alacritty wouldn't cause issues here and there, I'd vote for that being the default. But unfortunately alacritty *needs* hardware acceleration and will not start on old machines.
Cheers,
Dan
Yeah, I noticed those issues also.
Regarding scrollback, I started using `tmux` with `st` (this is specifically discussed/recommended in the `st` docs), so I put the following in my i3 config file: 'bindsym $mod+Return exec st -e tmux'.
Regarding font size, I created the following wrapper at '/usr/local/bin/st': ```sh #!/usr/bin/env sh exec /usr/bin/st -f "DejaVu Sans Mono:size=11" "$@" ```
The reason for creating a wrapper script to set the font size (instead of in the i3 config file) is so it will apply to all other ways `st` might be launched (such as running `ssh` from `rofi`).
I spent weeks trying to get `urxvt` to meet my minimum requirements and it was not straightforward, and ultimately I was never able to get it to work with 'powerline' fonts (ie. vim status line) - so I strongly vote against `urxvt`.
With the two hacks noted above `st` provides a great terminal, and has a very small footprint.
I think the plan was to write some guidance for the i3 spin anyway, so it would be easy enough to mention these tips.
`st` colors look great (including solarized and gruvbox light/dark themes in vim), but unfortunately, there is no way to change the color theme in the terminal itself (ie. switch between light and dark background). This is something I need because I use my laptop outside sometimes (so need the light background). My workaround for this is to add the following line in my i3 config to use `xfce4-terminal` when I need a light background: 'bindsym $mod+Shift+Return exec xfce4-terminal -e tmux' (note the Shift key in the keybinding).
The only reason I am using both `st` and `xfce4-terminal` at the same time is because I want to test `st` in my daily use (except when I NEED a light background).
At this point I definitely recommend to include `st` in the base i3 spin, with a note about the hacks above, and another note that if the user has additional requirements they should install the terminal emulator that meets their specific requirements (ie. for me that would be `xfce4-terminal` since it's light/dark themes meet my needs - but I am also considering to recompile a second version of `st` with light theme via config.h, but I think that is totally outside the scope of the i3 spin).
Also, note that `st` is relatively low on the precedence list for `i3-sensible-terminal` so the user could `dnf` install most other terminal emulators, and they would 'automagically' start working from the i3 perspective. Whereas since `urxvt` is the highest precedence, installing any other terminal emulator necessarily requires i3 config changes to get it to start with `$mod+Return`.
Cheers, Casey
Casey Witt kcwitt@gmail.com writes:
Hi Dan,
You mention it's "not a terminal emulator for everyone". Is there anything specific you had in mind?
Yes, have you tried changing the font size ;-) ? If you want to do that, you have to recompile st. Same goes for changing the colors, or the font type. And there is absolutely no scrollback support. Fortunately the Fedora package has some handy scripts to do that yourself, but it's still an inconvenience.
st works for me, because I like the defaults (or have grown accustomed to them) and use tmux, so the lack of scrollback does not bother me. But I still think that st is a bad default, because it just does not support all the features that as a new user you'd expect from a terminal emulator. If alacritty wouldn't cause issues here and there, I'd vote for that being the default. But unfortunately alacritty *needs* hardware acceleration and will not start on old machines.
Cheers,
Dan
Yeah, I noticed those issues also.
Regarding scrollback, I started using `tmux` with `st` (this is specifically discussed/recommended in the `st` docs), so I put the following in my i3 config file: 'bindsym $mod+Return exec st -e tmux'.
Regarding font size, I created the following wrapper at '/usr/local/bin/st':
#!/usr/bin/env sh exec /usr/bin/st -f "DejaVu Sans Mono:size=11" "$@"
Interesting, I was not aware of this being an option!
Is there an option to change the font at runtime in an existing terminal?
The reason for creating a wrapper script to set the font size (instead of in the i3 config file) is so it will apply to all other ways `st` might be launched (such as running `ssh` from `rofi`).
I spent weeks trying to get `urxvt` to meet my minimum requirements and it was not straightforward, and ultimately I was never able to get it to work with 'powerline' fonts (ie. vim status line) - so I strongly vote against `urxvt`.
urxvt is imho a pretty terrible terminal, but because of that everyone will replace it with their favorite and won't be mad that we didn't choose their favorite ;-) (I honestly don't know why upstream uses urxvt as the default)
Cheers,
Dan
Thanks for the tips! I started to try the tips on my i3 environment.
configure trackpad natural scrolling and tap to click
sudo cat > /etc/X11/xorg.conf.d/40-trackpad.conf <<EOF Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Option "Tapping" "True" Option "TappingDrag" "True" Option "NaturalScrolling" "True" Driver "libinput" EndSection EOF
I never understood why this isn't added as default in Fedora. I need to check Workstation, because you can configure this in the Gnome configuration center.
I was looking for how to set the natural scrolling like Mac OSX, and found this tip here. I hope this setting is a default of Fedora i3.
Jun Aruga jaruga@redhat.com writes:
Thanks for the tips! I started to try the tips on my i3 environment.
configure trackpad natural scrolling and tap to click
sudo cat > /etc/X11/xorg.conf.d/40-trackpad.conf <<EOF Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Option "Tapping" "True" Option "TappingDrag" "True" Option "NaturalScrolling" "True" Driver "libinput" EndSection EOF
I never understood why this isn't added as default in Fedora. I need to check Workstation, because you can configure this in the Gnome configuration center.
I was looking for how to set the natural scrolling like Mac OSX, and found this tip here. I hope this setting is a default of Fedora i3.
Well, you hope it's the default and I hope it isn't ;-)
FYI, you can also set this via xinput: --8<---------------cut here---------------start------------->8--- xinput set-prop $ID_OF_YOUR_TOUCHPAD "libinput Natural Scrolling Enabled" 1 --8<---------------cut here---------------end--------------->8--- where you replace $ID_OF_YOUR_TOUCHPAD with the value behind id= when you run xinput.
Cheers,
Dan
Hi Casey,
Casey Witt kcwitt@gmail.com writes:
- 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
Out of curiosity, why don't you use: --8<---------------cut here---------------start------------->8--- bindcode $mod+Shift+33 exec --no-startup-id i3lock && sleep 1 --8<---------------cut here---------------end--------------->8--- as upstream suggests?
Cheers,
Dan
Hi Dan,
It just seemed like the 'systemd' way to lock the session is with `loginctl lock-session` and I wasn't sure whether there were any side effects that would be skipped if `i3lock` were run directly.
Also, it seemed to me that the `&& sleep 1` looks hackish.
So since upstream i3 included the `xss-lock` config line I ran with it.
Cheers, Casey
On Sun, May 9, 2021 at 4:30 PM Dan Čermák dan.cermak@cgc-instruments.com wrote:
Hi Casey,
Casey Witt kcwitt@gmail.com writes:
- 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
Out of curiosity, why don't you use: --8<---------------cut here---------------start------------->8--- bindcode $mod+Shift+33 exec --no-startup-id i3lock && sleep 1 --8<---------------cut here---------------end--------------->8--- as upstream suggests?
Cheers,
Dan