From 34e14fdd0f331112f57e49cc6c4ce34721a15064 Mon Sep 17 00:00:00 2001 From: Fernando Araoz Date: Wed, 15 Jan 2025 05:57:33 -0500 Subject: [PATCH] feat: add script for install --- {.config => config}/foot/foot.ini | 0 config/fuzzel/fuzzel.ini | 116 ++++++++++++++++++++++++++++++ {.config => config}/river/init | 0 install.sh | 23 ++++++ 4 files changed, 139 insertions(+) rename {.config => config}/foot/foot.ini (100%) create mode 100644 config/fuzzel/fuzzel.ini rename {.config => config}/river/init (100%) create mode 100755 install.sh diff --git a/.config/foot/foot.ini b/config/foot/foot.ini similarity index 100% rename from .config/foot/foot.ini rename to config/foot/foot.ini diff --git a/config/fuzzel/fuzzel.ini b/config/fuzzel/fuzzel.ini new file mode 100644 index 0000000..1943d56 --- /dev/null +++ b/config/fuzzel/fuzzel.ini @@ -0,0 +1,116 @@ +output=DP-1 +font=IosevkaTermSlab:size=14 +# dpi-aware=auto +# use-bold=no +# prompt="> " +# placeholder= +# icon-theme=hicolor +# icons-enabled=yes +# hide-before-typing=no +# fields=filename,name,generic +# password-character=* +# filter-desktop=no +# match-mode=fzf +# sort-result=yes +# match-counter=no +# delayed-filter-ms=300 +# delayed-filter-limit=20000 +# show-actions=no +terminal=foot +# launch-prefix= +# list-executables-in-path=no + +# anchor=center +# x-margin=0 +# y-margin=0 +# lines=15 +# width=30 +# tabs=8 +# horizontal-pad=40 +# vertical-pad=8 +# inner-pad=0 + +# image-size-ratio=0.5 + +# line-height= +# letter-spacing=0 + +# layer=overlay +# exit-on-keyboard-focus-loss=yes + +# cache= + +# render-workers= +# match-workers= + +[colors] +# background=fdf6e3ff +# text=657b83ff +# prompt=586e75ff +# placeholder=93a1a1ff +# input=657b83ff +# match=cb4b16ff +# selection=eee8d5ff +# selection-text=586e75ff +# selection-match=cb4b16ff +# counter=93a1a1ff +# border=002b36ff + +[border] +# width=1 +# radius=10 + +[dmenu] +# mode=text # text|index +# exit-immediately-if-empty=no + +[key-bindings] +# cancel=Escape Control+g Control+c Control+bracketleft +# execute=Return KP_Enter Control+y +# execute-or-next=Tab +# execute-input=Shift+Return Shift+KP_Enter +# cursor-left=Left Control+b +# cursor-left-word=Control+Left Mod1+b +# cursor-right=Right Control+f +# cursor-right-word=Control+Right Mod1+f +# cursor-home=Home Control+a +# cursor-end=End Control+e +# delete-prev=BackSpace Control+h +# delete-prev-word=Mod1+BackSpace Control+BackSpace Control+w +# delete-line-backward=Control+u +# delete-next=Delete KP_Delete Control+d +# delete-next-word=Mod1+d Control+Delete Control+KP_Delete +# delete-line-forward=Control+k +# prev=Up Control+p +# prev-with-wrap=ISO_Left_Tab +# prev-page=Page_Up KP_Page_Up +# next=Down Control+n +# next-with-wrap=none +# next-page=Page_Down KP_Page_Down +# expunge=Shift+Delete +# clipboard-paste=Control+v XF86Paste +# primary-paste=Shift+Insert Shift+KP_Insert + +# custom-N: *dmenu mode only*. Like execute, but with a non-zero +# exit-code; custom-1 exits with code 10, custom-2 with 11, custom-3 +# with 12, and so on. + +# custom-1=Mod1+1 +# custom-2=Mod1+2 +# custom-3=Mod1+3 +# custom-4=Mod1+4 +# custom-5=Mod1+5 +# custom-6=Mod1+6 +# custom-7=Mod1+7 +# custom-8=Mod1+8 +# custom-9=Mod1+9 +# custom-10=Mod1+0 +# custom-11=Mod1+exclam +# custom-12=Mod1+at +# custom-13=Mod1+numbersign +# custom-14=Mod1+dollar +# custom-15=Mod1+percent +# custom-16=Mod1+dead_circumflex +# custom-17=Mod1+ampersand +# custom-18=Mod1+asterix +# custom-19=Mod1+parentleft diff --git a/.config/river/init b/config/river/init similarity index 100% rename from .config/river/init rename to config/river/init diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..8a4c1fb --- /dev/null +++ b/install.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# ~/dotfiles/install.sh + +set -e + +mkdir -p "$HOME/.config" + +cd "$HOME/dotfiles/config" || exit 1 +for dir in *; do + [ -d "$dir" ] || continue + + target="$HOME/.config/$dir" + if [ -L "$target" ]; then + echo "Skipping $dir (symlink already exists)" + continue + elif [ -e "$target" ]; then + echo "Skipping $dir (target exists and is not a symlink)" + continue + fi + + ln -sf "$PWD/$dir" "$target" + echo "Linked $dir" +done