+
Skip to content

takamasa1999/dotfiles

Repository files navigation

Dotfiles

Personalized configurations and scripts for my beloved ROG Flow X13.
Powered by i3 and Fedora 42 — the ultimate combo. This setup is tailored specifically for my environment, as there's little documentation out there for it.
If you're referencing this repository, make sure to double-check whether the commands and configs fit your own system.

Installation

Each part of the setup is introduced separately, allowing you to install only what you need — ideal for selective setups on other environments like servers.

Terminal essentials

Zsh

~/dotfiles/zsh/install.sh

Nvim

ln -s ~/dotfiles/nvim ~/.config/nvim

Opencode

Config

ln -s ~/dotfiles/opencode/opencode.json ~/.config/opencode/opencode.json

Tmux

~/dotfiles/tmux/install.sh

Kitty

ln -s ~/dotfiles/kitty/kitty.conf ~/.config/kitty/kitty.conf
ln -s ~/dotfiles/kitty/current-theme.conf ~/.config/kitty/current-theme.conf

picom

ln -s ~/dotfiles/picom.conf ~/.config/picom.conf

rofi

ln -s ~/dotfiles/rofi ~/.config/rofi

i3 & i3rs & i3wsr

ln -s ~/dotfiles/i3 ~/.config/i3
ln -s ~/dotfiles/i3rs-config.toml ~/.config/i3rs-config.toml
ln -s ~/dotfiles/i3wsr ~/.config/i3wsr

Aerospace (i3 like window manager for macOS)

ln -s ~/dotfiles/aerospace.toml ~/.aerospace.toml

Sketchybar

ln -s ~/dotfiles/sketchybar ~/.config/sketchybar

Alacritty

Create a symbolic link for the main Alacritty configuration file and theme:

ln -s ~/dotfiles/alacritty/alacritty.toml ~/.config/alacritty/alacritty.toml
ln -s ~/dotfiles/alacritty/theme.toml ~/.config/alacritty/theme.toml

The main configuration includes an import statement for a machine-specific.toml file to define device-specific settings. Create this file in the same directory and customize it, for example, by setting the font size:

echo -e "[font]\nsize = 12" > ~/.config/alacritty/machine-specific.toml

Custom scripts

Add bin directory to your $PATH

Uninstallation

This section is a work in progress.
Be extra careful — these commands will remove config files and symlinks.
Read everything before you run anything.

cd ~/.config
rm -r i3 i3rs-config.toml i3wsr nvim rofi ./alacritty/alacritty.toml

cd ~
rm .zshrc .tmux.conf.local

Tips

How to configure input devices

xinput is used to change the configurations. To persist your settings even after plugging or unplugging devices, store the conf files in:

/etc/X11/xorg.conf.d/

Here’s an example configuration:

Section "InputClass"
 Identifier "BluetoothMouse3600"
 MatchProduct "BluetoothMouse3600 Mouse"
 MatchIsPointer "on"
 Driver "libinput"
 Option "AccelSpeed" "-0.5"
 Option "MiddleEmulation" "on"
EndSection

Use xinput list and xinput list-props <device-name> to find the full device name and its available settings.

How to configure displays

autorandr is used to automatically apply predefined display configurations.

  1. Arrange your displays using xrandr
  2. Save the current layout to a new profile (--force can be used to overwrite)
autorandr --forcce --save work

The appropriate setting in a setting will be automatically called. You can check the state by calling autorandr.

Key Events

Assigned Caps Lock key to display notification when it's active. https://wiki.archlinux.org/title/Xbindkeys

Used [keyd(https://github.com/rvaiya/keyd) to remap capslock to escape when pressed alone, and to control when held down.

How to Fibonacci Layout on i3?

https://www.reddit.com/r/i3wm/comments/4tw1jn/tip_quasi_alternatingfibonacci_layout/

Nvim settings etc.

How to keep remote sessions alive (mosh)

For better connectivity and resilience against unstable networks, I use Mosh instead of plain SSH.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载