mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-08-31 14:49:37 +00:00
Compare commits
4 commits
8dc22335bc
...
c2cc95fd81
| Author | SHA1 | Date | |
|---|---|---|---|
| c2cc95fd81 | |||
| 70a2041378 | |||
| 2fda7c2621 | |||
| 4a308d2d90 |
8 changed files with 26 additions and 35 deletions
|
|
@ -33,7 +33,7 @@ This repo contains my preferred configurations for:
|
|||
Installs various CLI utilities based on OS availability. Supports Arch, Debian, Fedora, and macOS
|
||||
(brew). I recommend quickly reading what you're getting.
|
||||
|
||||
### `install_arch`
|
||||
### `archiso/install_arch`
|
||||
|
||||
Dependencies
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ set -gx PNPM_HOME $HOME/.local/share/pnpm
|
|||
|
||||
set -gx LIBVIRT_DEFAULT_URI 'qemu:///system'
|
||||
|
||||
set -gx SSH_AUTH_SOCK $XDG_RUNTIME_DIR/ssh-agent.socket
|
||||
|
||||
if test (uname) = Darwin
|
||||
set -gx ANDROID_HOME $HOME/Library/Android/Sdk
|
||||
else
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
ssh_agent_startup
|
||||
|
||||
test -e /opt/homebrew/bin/brew
|
||||
and /opt/homebrew/bin/brew shellenv | source -
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
function commit -d 'Commit staged changes using Opencode'
|
||||
opencode run Commit the staged changes with conventional style.
|
||||
function commit -d 'Generate commit message for staged changes using LMC'
|
||||
git diff --staged | lmc --new --git-message --stdin --model qwen3.6-35b-a3b
|
||||
end
|
||||
|
|
|
|||
|
|
@ -37,12 +37,13 @@ base_pkgs=(
|
|||
zoxide
|
||||
git-delta
|
||||
stow
|
||||
mise
|
||||
)
|
||||
|
||||
# OS specific arrays
|
||||
mac_pkgs=("${base_pkgs[@]}" fd yazi)
|
||||
arch_pkgs=("${base_pkgs[@]}" fd yazi ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols-common ttf-nerd-fonts-symbols-mono)
|
||||
debian_pkgs=("${base_pkgs[@]}" fd-find extrepo)
|
||||
arch_pkgs=("${base_pkgs[@]}" fd yazi ttf-nerd-fonts-symbols ttf-nerd-fonts-symbols-common ttf-nerd-fonts-symbols-mono usage)
|
||||
debian_pkgs=("${base_pkgs[@]}" fd-find)
|
||||
fedora_pkgs=("${base_pkgs[@]}" fd-find)
|
||||
|
||||
case "$distro" in
|
||||
|
|
@ -80,12 +81,16 @@ debian | ubuntu)
|
|||
log 'Installing packages with APT'
|
||||
sudo apt-get --quiet --yes update
|
||||
sudo apt-get --quiet --yes upgrade
|
||||
sudo apt-get --quiet --yes install extrepo
|
||||
sudo extrepo enable mise
|
||||
sudo apt-get --quiet --yes update
|
||||
sudo apt-get --quiet --yes install "${debian_pkgs[@]}"
|
||||
;;
|
||||
fedora | rhel | rocky | almalinux | centos)
|
||||
log 'Installing packages with DNF'
|
||||
sudo dnf upgrade --assumeyes
|
||||
sudo dnf install --assumeyes --skip-broken "${fedora_pkgs[@]}"
|
||||
sudo dnf --assumeyes upgrade
|
||||
sudo dnf --assumeyes copr enable jdxcode/mise
|
||||
sudo dnf --assumeyes install --skip-broken "${fedora_pkgs[@]}"
|
||||
;;
|
||||
*)
|
||||
echo 'Your OS is unsupported. Supported: Arch, Debian, Fedora, Mac (Brew)'
|
||||
|
|
|
|||
|
|
@ -85,21 +85,4 @@ return {
|
|||
vim.g["pencil#map#suspend_af"] = "K"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"folke/zen-mode.nvim",
|
||||
opts = {
|
||||
window = { backdrop = 0.95, options = { number = false } },
|
||||
plugins = { twilight = { enabled = false } },
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>z", "<cmd>ZenMode<cr>", desc = "Zen Mode", silent = true },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/twilight.nvim",
|
||||
opts = {},
|
||||
keys = {
|
||||
{ "<leader>l", "<cmd>Twilight<cr>", desc = "Twilight", silent = true },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,6 +60,10 @@ gaps inner 8
|
|||
# You can also configure each device individually.
|
||||
# Read `man 5 sway-input` for more information about this section.
|
||||
|
||||
input type:pointer {
|
||||
accel_profile "flat"
|
||||
}
|
||||
|
||||
### Key bindings
|
||||
#
|
||||
# Basics:
|
||||
|
|
@ -168,7 +172,8 @@ gaps inner 8
|
|||
bindsym $mod+f fullscreen
|
||||
|
||||
# Toggle the current focus between tiling and floating mode
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
bindsym $mod+Shift+space floating toggle; move position center
|
||||
bindsym $mod+Control+space floating enable; move position center; resize set 65 ppt 100 ppt
|
||||
|
||||
# Swap focus between the tiling area and the floating area
|
||||
bindsym $mod+Mod1+space focus mode_toggle
|
||||
|
|
@ -223,12 +228,12 @@ bindsym $mod+r mode "resize"
|
|||
bindsym --locked XF86AudioLowerVolume exec $ipc volume-down
|
||||
bindsym --locked XF86AudioMute exec $ipc volume-mute
|
||||
|
||||
# Special keys to control media via playerctl
|
||||
bindsym --locked XF86AudioPlay exec playerctl play-pause
|
||||
bindsym --locked XF86AudioPause exec playerctl play-pause
|
||||
bindsym --locked XF86AudioPrev exec playerctl previous
|
||||
bindsym --locked XF86AudioNext exec playerctl next
|
||||
bindsym --locked XF86AudioStop exec playerctl stop
|
||||
# Special keys to control media
|
||||
bindsym --locked XF86AudioPlay exec $ipc media toggle
|
||||
bindsym --locked XF86AudioPause exec $ipc media pause
|
||||
bindsym --locked XF86AudioPrev exec $ipc media previous
|
||||
bindsym --locked XF86AudioNext exec $ipc media next
|
||||
bindsym --locked XF86AudioStop exec $ipc media stop
|
||||
|
||||
# Special keys to adjust brightness via brightnessctl
|
||||
bindsym --locked XF86MonBrightnessUp exec $ipc brightness-up
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ if is_darwin() then
|
|||
config.default_prog = { "/opt/homebrew/bin/fish", "-l" }
|
||||
end
|
||||
|
||||
config.window_decorations = "RESIZE"
|
||||
|
||||
config.color_scheme = 'Kanagawa (Gogh)'
|
||||
|
||||
config.window_background_opacity = is_darwin() and 0.85 or 0.95
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue