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