Hopefully only for now. As it gains popularity maybe it will gain some translations.
Just wanted to thank you again, as I’ve been able to fix all of my issues with Workstation. All the shortcut function keys are properly mapped and functional.
It took a couple of days, but I’m very happy with this setup.
One quick thing I’ve found is that when rebooting your sink source can change. If you use @DEFAULT_SINK@ instead of 0 (or any other number for that matter) you wont have issues upon reboot. Your volume keys should always just work.
I am using i3 window manager on Fedora 35. Though this thread is about Ubuntu. Maybe the content could be similar between Ubuntu and Fedora. So let me post here.
Note I checked each media key’s symbol by xev -event keyboard. For print screen key, I am using gnome-screenshot command as I also have Gnome environment. To use mpc, you need to install mpd from RPMFusion. I haven’t tested the mpc settings by myself.
# Media keys
# $ xev -event keyboard
# Use pactl.
# Framework Laptop F1: XF86AudioMute
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
# Framework Laptop F2: XF86AudioRaiseVolume
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +10%
# Framework Laptop F3: XF86AudioLowerVolume
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -10%
# Use mpc (Music Playing Client) and mpd (Music Playing Daemon) from RPM Fusion.
# https://fedoramagazine.org/playing-music-on-your-fedora-terminal-with-mpd-and-ncmpcpp/
# Framework Laptop F4: XF86AudioPrev
bindsym XF86AudioPrev exec mpc prev
# Framework Laptop F5: XF86AudioPlay
bindsym XF86AudioPlay exec mpc toggle
# Framework Laptop F6: XF86AudioNext
bindsym XF86AudioNext exec mpc next
# Framework Laptop F7: XF86MonBrightnessDown
# The --min-value option is important to prevent the complete darkness.
bindsym XF86MonBrightnessDown exec "brightnessctl --device intel_backlight --min-value=5 set 5%-"
# Framework Laptop F8: XF86MonBrightnessUp
bindsym XF86MonBrightnessUp exec "brightnessctl --device intel_backlight set 5%+"
# Framework Laptop F9: Super_L + p
# TODO: Assign this multiple screen key with the toggle multiple screens when using it.
# https://fedoramagazine.org/using-i3-with-multiple-monitors/
bindsym $mod+p exec firefox https://fedoramagazine.org/using-i3-with-multiple-monitors/
# Framework Laptop F10: XF86RFKill (already available)
# $ rfkill list all
# $ nmcli radio all
# Framework Laptop F11: Print
# https://unix.stackexchange.com/questions/497897/print-screen-key-in-i3
bindsym Print exec gnome-screenshot -i
# Framework Laptop F12: XF86AudioMedia
bindsym XF86AudioMedia exec firefox https://community.frame.work/
Seeing the GitHub repository of i3 and sway, sway has more stars than i3. But both seems well-maintained. I have been using i3 on my ThinkPad Carbon, and now customizing the i3 on my Framework Laptop.
My experience in general is that Sway works better than i3 on the Framework Laptop, but both work. I have noticed better performance on swap and zero tearing.
The cool thing about i3 and sway is that sway was designed to be a drop in replacement for it. It is i3 for Wayland basically. So your i3 config will work with Sway, with perhaps minimal updates.
Thanks for the info. After checking both sway and i3’s GitHub repositories and Wikipedia pages, sway is on Wayland and completely written in C. The performance might be better in C. And i3 is on X-Window system written in C + some script languages. And the Wayland looks more modern than X Window system. Maybe I will try sway.
I am playing on Sway now on Fedora 35 on my Framework Laptop. I found Sway setting up guide on Fedora . It seems the Sway default config file /etc/sway/config has i3 compatibility + Sway specific features. Sway looks really good for people to start tiling window manager. I see Sway’s default terminal is alacritty. And this terminal is one of the best and fastest terminals nowadays watching the Youtube videos. The behaviors of i3 and Sway about tiling is a little different. I also have to migrate the X windows system config files (/etc/X11/xorg.conf.d/*.conf) for keyboard and touchpad to config in Sway or Wayland. I am learning Sway and Alacritty now.
I am trying to setup Sway on Fedora 35 on the Framework Laptop (Batch 2, the BIOS version is default. Maybe 3.02). Below is the screenshot. The issue is that Firefox and Firefox’s tab, menu bar and Sway’s status bar on the top by waybar are too big. Firefox is 100% scale.
Could you tell me how to modify the .config/sway/config to show the display properly with thin and small title bars? Thanks.
Edited at December 29 2021: Sorry I noticed I did set wrong device ID eDP1 instead of correct ID eDP-1 seeing the output of swaymsg -t get_outputs. So, the following setting gave me a better experience.
output eDP-1 scale 1.2
@2disbetter by the way, shall we change this thread title name to a name to describe Sway / i3 common thread that is not Ubuntu specific?
Yeah what I meant was that I started it with that intention. I know that running sway or i3 on other distros can have other things necessary that are specific to them. (missing dependencies or repos, for example) However, I too see nothing here that is specific to Ubuntu.
whatever floats your boat. To me an I is an i whether it is capitalized or not.
Thanks though!
I’m finding Sway to be excellent, but there are things about i3 I really like and miss. Being able to hide your bar and show it only when pushing a bound key was excellent. Far better than the on / off state that waybar has. BUT apparently this functionality has been merged and we might be seeing it in a repo in a day or two.
Are you talking about a bar setting by i3status? Personally I don’t have a need to hide the bar. So, I didn’t notice it. Sway can also use i3status for the bar setting. You meant we might be seeing the hiding feature in the repo of Sway default bar? The Sway default bar might have the feature. (man 5 sway-bar - mode hide', hidden_state hide`)
Sway is great, and the functionality is better than i3. But for the stability, i3 is better than Sway in my experience so far. I saw Firefox on Sway crashed when adding a bookmark. Alacritty still doesn’t work with a language input engine fcitx5 in my use of Japanese input.
By the way, as I finished the Sway, i3 settings on Framework for now, I would share the config files related to Sway, i3, Alacritty and Termnator on the following GitHub repository. It might be useful for someone to try it on Framework Laptop.
Alacritty: You can create the config file ~/.config/alacritty/alacritty.yml adding the font setting in the file. Here is my config file as a reference. In my case, importing ~/.config/alacritty/framework.yml from ~/.config/alacritty/alacritty.yml to use the common setting file alacritty.yml from both Framework and Thinkpad.