This commit is contained in:
c c 2025-03-13 11:21:55 +01:00
parent 4ac9c221ca
commit 3f0851da96
6 changed files with 62 additions and 0 deletions

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# chezmoi
[chezmoi.io](https://chezmoi.io)

View File

@ -13,6 +13,8 @@ config.keys = {
},
}
config.default_prog = { '/bin/fish', '-l' }
-- and finally, return the configuration to wezterm
return config

View File

@ -4,3 +4,12 @@ end
fish_add_path ~/.local/bin
abbr -a -- hx helix
set -gx EDITOR helix
# Workaround bug https://github.com/fish-shell/fish-shell/issues/11204
# Numbers don't work in azerty/dvorak
set -Ua fish_features no-keyboard-protocols
# Setup starship
starship init fish | source

View File

@ -0,0 +1,28 @@
#! /usr/bin/env bash
set -eu
set -o pipefail
# set -x
dconf write '/org/gnome/desktop/wm/keybindings/switch-windows' "['<Alt>Tab']"
dconf write '/org/gnome/desktop/wm/keybindings/switch-windows-backward' "['<Shift><Alt>Tab']"
dconf write '/org/gnome/desktop/wm/keybindings/switch-applications' "@as []"
dconf write '/org/gnome/desktop/wm/keybindings/switch-applications-backward' "@as []"
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']"
# Keybind 0
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding "<Super>t"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command "wezterm"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name "Terminal"
# Keybind 1
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding "<Ctrl><Alt>t"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command "wezterm"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name "Terminal"
# Go to desktop
dconf write /org/gnome/desktop/wm/keybindings/show-desktop "['<Super>d', '<Ctrl><Alt>d']"
# Lock screen
dconf write /org/gnome/settings-daemon/plugins/media-keys/screensaver "['<Super>l', '<Super>Escape']"

View File

@ -0,0 +1,20 @@
#! /usr/bin/env bash
set -eu
set -o pipefail
install_optional() {
pacman -S --needed --quiet --asdeps $(expac -1S "%n\n%o" $1)
}
if [ ! $EUID -eq 0 ]; then
sudo "$0" "$@"
"$(dirname "$0")"/gnome.sh
exit $?
fi
pacman -Sy --quiet
pacman -S --needed --quiet zellij fish tmux vim helix htop chezmoi lsd wezterm micro starship torbrowser-launcher qbittorrent vlc gajim libayatana-appindicator
pacman -S --needed --quiet gvfs-{goa,wsdd}
pacman -S --needed --quiet gnome-shell-extensions gnome-shell-extension-appindicator gnome-shell-extension-desktop-icons-ng gnome-shell-extension-dash-to-panel
install_optional wezterm

Binary file not shown.