Sway DE configuration
This repo aimed to backup my configuration, including configuration of sway, waybar, neovim, alacritty, zsh and ranger. Introductions are as follows.
Configuration
WM(sway + waybar)
sway
- Assign different workspaces to different applications
- Set the font to Firacode Nerd Font
- Please modify the wallpaper path in sway/config by yourself
- Use rofi as the menu for application launch
- Use slurp with wl-copy to achieve convenient and fast screenshot copy function (Ctrl+Alt+a)
- Utilize
|
to make a simple translation tool (Ctrl+Alt+z) - A bunch of keys are set. In addition, there are some small tips :
- alt+tab allows users to quickly switch to the previous workspace
- alt+1/2 focus on the left/right workspace, using mod+num to switch workspace is also supported
- use
custom-pc
keyboard layout for my personal usb keyboard, you can delete or customize it by yourself - Set
smart_gaps
to fill a little gap between windows and not waste space when there is only one window autotiling
automatically determine started window direction according to the aspect ratio of the previous window
waybar
Including:
- battery
- ram
- temprature
- pulseaudio
- bluetooth
- network
- workspaces
- mini-forest : My personal application
- NOTE shortcut : To open my note with nvim-qt
- book search : search books in specific directory
- date & clock
The complete collection of symbols is in Nerd Font
terminal environment(zsh + alacritty)
zsh
- Add todo.sh command, every time you open the terminal, it will list the to-do items of the day
- fzf option setting, cooperate with bat to realize fuzzy file preview, and define xdg_fzf function to fuzzy query and open the query result file with xdg-open
- The installed plugins are as follows
- zsh-syntax-highlighting for command line parameter highlighting
- zsh-history-substring-search for history search
- zsh-autosuggestions for command promote
- zsh-extract for fast decompression of all types of archives using the
x
command - zsh-autoswitch-virtualenv is used to automatically activate the virtual environment when entering a project with a python virtual environment, and automatically end the virtual environment when leaving
- powerlevel10k theme
- Set up some aliases and replace some tools
Alacritty
Using the Tokyonight theme and Firacode Nerd Font, the profile file has been given
browser(firefox)
firefox
- custom toolbar --> title bar --> density
about:config
--> setbrowser.compactmode.show
to true --> go toolbar adjust, selectdensity
tocompact
about:config
--> clearextensions.webextensions.restrictedDomains
and setprivacy.resistFingerprinting.block_mozAddonManager
to true , thus Vimium can be used in almost all pages.about:config
--> setbrowser.display.background_color
andbrowser.display.background_color.dark
to change the color ofdefault:blank
, I use#212124
or#1A1B26
ps: if firefox's font looks extremely small after change scale in sway, try to delete ~/.mozilla
and restart firefox, then all things will become normal.
filemanager(ranger + dolphin)
ranger
- use ranger_devicon_plugin to show icons,customize icons for some folders
- use fzf & ag for fuzz file finder in ranger
- press f to start finding from current directory
- press ctrl-h to show hidden files
- see https://github.com/ranger/ranger/wiki/Custom-Commands#fzf-integration for details
- use ranger_udisk_menu to mount usb device
- customize copy paste and cut command to let ranger paste file in different instances
reader(zathura+zotero)
zathura
as okular will occupy more and more memory after open for a while, and developer team didn't solve this problem since 2018, I finally decided to swith to zathura.
theme: https://github.com/catppuccin/zathura
zotero
use dark theme zotero-night
Others
All background wallpapers are under image/wallpaper