Hello,
I migrated from vanilla Arch Linux and Endeavour OS, after a pink screen bug I could not solve, now I am using Manjaro Sway Edition, maintained by @boredland and @simonb.
As I wanted to fully customise my Sway and Waybar, I worked a lot on editing, modifying and readjusting the user files, commented all files included by Swayβs and Waybarβs system files. I copied the whole files and folders from /etc/sway
to ~/.config/sway
, then modified all. Everything worked, except the Manjaro icon (to open the menu) and help icon because the definitions
file has variables as:
set $share_dir /usr/share/sway
set $config_dir /etc/sway
set $user_config_dir $HOME/.config/sway/
set $theme_dir $share_dir/themes
set $script_dir $share_dir/scripts
set $term kitty
set $term_float_portrait $term --name=floating_shell_portrait --exec
set $term_float_landscape $term --name=floating_shell_landscape --exec
set $menu exec $term_float_portrait sway-launcher-desktop
set $locking swaylock --daemonize --config $theme/swaylock
set $pulseaudio $term_float_landscape pulsemixer
set $help $term_float_landscape "man $user_config_dir/help.man"
set $onscreen_bar bash $script_dir/wob.sh
These variables canβt be exported or sourced by Sway. It is why Waybar config searched and did not find the variables. I tried to set #!/bin/bash
or #!/bin.zsh
at the start of the definitions
file, but they canβt be exported or sourced by Sway. If I uncommented all these Sway system files, everything would work, but Sway prevents me from overwriting the system files with user files and limits me to system customisation files, then I want a full customisation.
See how the ~/.config/sway
tree looks like:
βββ config
βββ config.d
β βββ 00-workspaces.conf
β βββ 01-applications.conf
β βββ 02-keybindgs.conf
β βββ 03-rofi.conf
β βββ 04-appearance.conf
β βββ 50-systemd-user.conf
β βββ 90-enable-gtk-theme
β βββ 91-enable-kvantum-theme
β βββ 92-enable-mako-theme
β βββ 93-link-theme-files
β βββ 94-enable-xterm-emulation
β βββ 95-generate-help
β βββ 98-application-defaults
β βββ 99-autostart-applications
βββ definitions
βββ help.man
βββ inputs
β βββ default-keyboard
β βββ default-touchpad
βββ modes
β βββ default
β βββ recording
β βββ resize
β βββ scratchpad
β βββ screenshot
βββ outputs
β βββ default-screen
βββ scripts
βββ insync.sh