/dotfiles-swayfx

dotfiles swayfx fork

Primary LanguageCSS

My configs for swayfx (sway fork)

❤️ This dotfiles fully compatible with vanilla sway, just remove ./config/sway/config.d/swayfx config file

Also check my 'sway keybindings helper' project

🗿 Info

🚀 Automatically installation (arch based distros)

You can use installation script (using 'yay' package manager to resolve dependencies)

curl -L https://raw.githubusercontent.com/owpk/dotfiles-swayfx/main/install.sh | bash

🚀 Manual installation (copy and paste to terminal)

  1. install all needed apps
sudo pacman -S --needed swaybg jq cmake cmocka ranger wofi waybar mtools vim neovim zsh \
papirus-icon-theme noto-fonts-emoji wl-clipboard translate-shell slurp \
grim pamixer wmname xdg-desktop-portal-wlr xdg-desktop-portal-gtk kanshi alacritty \
kitty pavucontrol playerctl imv mpv wayvnc swayidle mako gnome-themes-extra \
gtk-engine-murrine ttf-jetbrains-mono ttf-nerd-fonts-symbols

sudo usermod -a -G video $USER
  1. clone dotfiles and change current directory to project directory (do any steps below from it)
git clone --depth 1 https://github.com/owpk/dotfiles-swayfx
cd dotfiles-swayfx
  1. change shell to zsh
chsh -s /bin/zsh $USER
  1. create your config backups if needed (hide errors)
mkdir ~/sway_backups.old

mv ~/.zshenv ~/sway_backups.old/.zshenv.bak 2> /dev/null
mv ~/.zshrc ~/sway_backups.old/.zshrc.bak 2> /dev/null
mv ~/.p10k.zsh ~/sway_backups.old/.p10k.zsh.bak 2> /dev/null
mv ~/.config ~/sway_backups.old/.config.bak 2> /dev/null
mv ~/.vim ~/sway_backups.old/.vim.bak 2> /dev/null
mv ~/.themes/ ~/sway_backups.old/.themes.bak 2> /dev/null
mv ~/.azotebg ~/sway_backups.old/.azote.bak 2> /dev/null

4.1 create all needed links and copy fonts

sudo mkdir -p /usr/share/fonts/TTF 2> /dev/null
sudo cp ./fonts/* /usr/share/fonts/TTF/
sudo cp ./config/sway/scripts/floating /usr/local/bin

fc-cache

ln -s `pwd`/.config ~/.config
ln -s `pwd`/.themes ~/.themes
  1. install 'yay' package manager
pacman -Sy --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
  1. install menus/toolbars/utils etc for sway
  • use gpg --receive-keys if any errors occures
yay -S --needed swww avizo nwg-launchers nwg-panel wlsunset sworkstyle audio-recorder waybar-mpris-git

(Optional) install ranger devicons

git clone https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons

Reboot your system

Configuration

  • default sway config: ~/.config/sway/config
include $HOME/.config/sway/config.d/*
include /etc/sway/outputs/*

status bar

  • edit ~/.config/sway/config.d/10-autostart-applications config file:

waybar

comment nwg-panel to enable waybar

#exec_always nwg-panel

nwg-panel

comment waybar to enable nwg-panel

bar {
   #swaybar_command waybar
}

keyboard

  • edit .config/sway/config.d/input to change keyboard layout and other kb settings
  • edit .config/sway/config.d/default to change key bindings config

change output properties (check man page for more info)

  • create config file in /etc/sway/outputs/example
    example:
# Default wallpaper
output * scale 1.3

Issues

  • vmware: black screen after sway launch
    adding WLR_NO_HARDWARE_CURSORS=1 to /etc/environment may fix the problem