This is a continuation of an earlier post

It is done, almost1.

Sway config file

The only deviations from stock config were:

    # set default terminal to alacritty
    set $term alacritty

    # define monitors
    set $monL DP-1
    set $monR HDMI-A-2
    
    # monitor orientation and layout
    output $monL transform  270       position 0,0
    output $monR resolution 1920x1080 position 1080,0
    
    # wallpaper
    output $monL bg ~/Pictures/arch-linux-minimalism-4k-up-2160x3840.jpg fill
    output $monR bg ~/Pictures/archbtw.png fill
    
    # uk keyboard layout
    input * {
        xkb_layout "gb"
    }

    # Workspaces:

    workspace "1:Web" output $monL
    workspace "2:Shell" output $monR
    workspace "3:Cal" output $monR
    workspace "4:Play" output $monR
    workspace "5:Misc" output $monR
    workspace "6:IRC" output $monR
    workspace 7 output $monL
    workspace 8 output $monL
    
    # change default focus behaviour
    focus_follows_mouse "no"

Using i3blocks

i3blocks was a straight drop-in from the i3 config:

    # bar for left-sided monitor
    bar {
        output $monL
        position top
        tray_output none
        status_command i3blocks -c ~/.config/i3/i3blocks-left.conf
    }

    # bar for right-sided monitor
    bar {
        output $monR
        position top
        status_command i3blocks  -c ~/.config/i3/i3blocks.conf
    }

New terminal emulator

I’ve installed a wayland-friendly shell, alacritty, which works as I would like. I have customised shift-ctrl-enter to spawn to the pwd, am using a dracula theme and am using the hack-ttf font.

    # ~/.config/alacritty/alacritty.toml
    [colors.bright]
    black = "#6272a4"
    blue = "#d6acff"
    cyan = "#a4ffff"
    green = "#69ff94"
    magenta = "#ff92df"
    red = "#ff6e6e"
    white = "#ffffff"
    yellow = "#ffffa5"
    
    [colors.cursor]
    cursor = "CellForeground"
    text = "CellBackground"
    
    [colors.footer_bar]
    background = "#282a36"
    foreground = "#f8f8f2"
    
    [colors.hints.end]
    background = "#282a36"
    foreground = "#f1fa8c"
    
    [colors.hints.start]
    background = "#f1fa8c"
    foreground = "#282a36"
    
    [colors.line_indicator]
    background = "None"
    foreground = "None"
    
    [colors.normal]
    black = "#21222c"
    blue = "#bd93f9"
    cyan = "#8be9fd"
    green = "#50fa7b"
    magenta = "#ff79c6"
    red = "#ff5555"
    white = "#f8f8f2"
    yellow = "#f1fa8c"

    [colors.primary]
    background = "#282a36"
    bright_foreground = "#ffffff"
    foreground = "#f8f8f2"

    [colors.search.focused_match]
    background = "#ffb86c"
    foreground = "#44475a"

    [colors.search.matches]
    background = "#50fa7b"
    foreground = "#44475a"

    [colors.selection]
    background = "#44475a"
    text = "CellForeground"

    [colors.vi_mode_cursor]
    cursor = "CellForeground"
    text = "CellBackground"

    [font]
    size = 9.0

    [font.bold]
    family = "Hack Nerd Font Mono"
    style = "Bold"

    [font.bold_italic]
    family = "Hack Nerd Font Mono"
    style = "Bold Italic"

    [font.italic]
    family = "Hack Nerd Font Mono"
    style = "Italic"

    [font.normal]
    family = "Hack Nerd Font Mono"
    style = "Regular"

    [window.padding]
    x = 5
    y = 5

    [keyboard]
    bindings = [
        { key = "Return", mods = "Control|Shift", action = "SpawnNewInstance" }
    ]

Further steps

I’ve achieved my initial goal of a like-for-like environment with my existing i3 config. I think I’ll investigate using dunst, waybar and wofi 1 in February.

pix

Portrait desktop sway screenshot Landscape desktop sway screenshot


  1. In my researching stuff, I found a good looking setup which uses dunst, waybar, wofi and leans into the dracula theme nicely. I’ll be investigating next month. ↩︎ ↩︎