diff --git a/README.md b/README.md new file mode 100644 index 0000000..27e2b9a --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# chezmoi + +[chezmoi.io](https://chezmoi.io) diff --git a/dot_wezterm.lua b/dot_wezterm.lua index 6ef0aaf..d6f5367 100644 --- a/dot_wezterm.lua +++ b/dot_wezterm.lua @@ -13,6 +13,8 @@ config.keys = { }, } +config.default_prog = { '/bin/fish', '-l' } + -- and finally, return the configuration to wezterm return config diff --git a/private_dot_config/private_fish/config.fish b/private_dot_config/private_fish/config.fish index 4f78d12..2defd85 100644 --- a/private_dot_config/private_fish/config.fish +++ b/private_dot_config/private_fish/config.fish @@ -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 diff --git a/private_dot_local/bin/executable_gnome.sh b/private_dot_local/bin/executable_gnome.sh new file mode 100644 index 0000000..ca8cdfa --- /dev/null +++ b/private_dot_local/bin/executable_gnome.sh @@ -0,0 +1,28 @@ +#! /usr/bin/env bash + +set -eu +set -o pipefail +# set -x + +dconf write '/org/gnome/desktop/wm/keybindings/switch-windows' "['Tab']" +dconf write '/org/gnome/desktop/wm/keybindings/switch-windows-backward' "['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 "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 "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 "['d', 'd']" + +# Lock screen +dconf write /org/gnome/settings-daemon/plugins/media-keys/screensaver "['l', 'Escape']" diff --git a/private_dot_local/bin/executable_setup.sh b/private_dot_local/bin/executable_setup.sh new file mode 100644 index 0000000..638a8ef --- /dev/null +++ b/private_dot_local/bin/executable_setup.sh @@ -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 diff --git a/private_dot_local/private_share/nautilus/tags/meta.db b/private_dot_local/private_share/nautilus/tags/meta.db new file mode 100644 index 0000000..c47fd31 Binary files /dev/null and b/private_dot_local/private_share/nautilus/tags/meta.db differ