mirror of
https://github.com/Cametendo/MyI3Config-fork.git
synced 2026-03-18 03:40:20 +01:00
Change i3 config copy to symbolic link
This commit is contained in:
@@ -99,14 +99,15 @@ echo "$CALCULATOR" > "$CFG_ROOT/settings/calculator.sh"
|
|||||||
find "$CFG_ROOT/settings" -type f -name "*.sh" -exec chmod +x {} \;
|
find "$CFG_ROOT/settings" -type f -name "*.sh" -exec chmod +x {} \;
|
||||||
|
|
||||||
# ----------------------------
|
# ----------------------------
|
||||||
# Copy i3 config to ~/.config/i3/config
|
# Link i3 config to ~/.config/i3/config
|
||||||
# ----------------------------
|
# ----------------------------
|
||||||
echo
|
echo
|
||||||
echo "Installing i3 config → ~/.config/i3/config"
|
echo "Linking i3 config → ~/.config/i3/config"
|
||||||
|
|
||||||
mkdir -p "$I3_DIR"
|
mkdir -p "$I3_DIR"
|
||||||
|
|
||||||
if [ -f "$CFG_ROOT/i3/config" ]; then
|
if [ -f "$CFG_ROOT/i3/config" ]; then
|
||||||
cp "$CFG_ROOT/i3/config" "$I3_DIR/config"
|
ln -sf "$CFG_ROOT/i3/config" "$I3_DIR/config"
|
||||||
else
|
else
|
||||||
echo "Error: i3 config file not found in $CFG_ROOT/i3/"
|
echo "Error: i3 config file not found in $CFG_ROOT/i3/"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -118,4 +119,4 @@ fi
|
|||||||
echo
|
echo
|
||||||
echo "✓ Done"
|
echo "✓ Done"
|
||||||
echo
|
echo
|
||||||
echo "Reload i3 with: Super + Shift + C"
|
echo "Reload i3 with: Super + Shift + C"
|
||||||
|
|||||||
Reference in New Issue
Block a user