From 3b901cb10d449d5dc332d498d4b3ba82430bde22 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Fri, 6 Aug 2021 15:00:03 -0400 Subject: [PATCH] Add sc-im --- Makefile | 23 +++++++++++++++++++++-- src/sc-im/scimrc | 6 ++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/sc-im/scimrc diff --git a/Makefile b/Makefile index 88cbc22..cd3f5a4 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # SRC = ./src -PROGRAMS = calcurse nvim newsboat mpv bash compton +PROGRAMS = calcurse nvim newsboat mpv bash compton sc-im .PHONY : install update clean @@ -56,6 +56,13 @@ install : [ -f ~/.config/compton.conf ] && mv ~/.config/compton.conf ~/.config/compton.conf.old; \ cp $(SRC)/compton/compton.conf ~/.config/compton.conf; \ fi + #sc-im + @which sc-im > /dev/null 2>&1 + @if [ $$? -eq 0 ];then \ + echo "sc-im found! Installing config..."; \ + [ -f ~/.config/sc-im/scimrc ] && mv ~/.config/sc-im/scimrc ~/.config/sc-im/scimrc.old; \ + cp $(SRC)/sc-im/scimrc ~/.config/sc-im/scimrc; \ + fi update: #vim @@ -96,6 +103,12 @@ update: echo "compton found! Updating config files with existing versions..."; \ [ -f ~/.config/compton.conf ] && cp ~/.config/compton.conf $(SRC)/compton/compton.conf; \ fi + #sc-im + @which sc-im > /dev/null 2>&1 + @if [ $$? -eq 0 ]; then \ + echo "sc-im found! Updating config files with existing versions..."; \ + [ -f ~/.config/sc-im/scimrc ] && cp ~/.config/sc-im/scimrc $(SRC)/sc-im/scimrc; \ + fi clean : #vim @@ -133,6 +146,12 @@ clean : #compton @which compton > /dev/null 2>&1 @if [ $$? -eq 0 ]; then \ - echo "compton found! remvoing existing confi files and reinstalling *.old"; \ + echo "compton found! remvoing existing config files and reinstalling *.old"; \ [ -f ~/.config/compton.old ] && mv ~/.config/compton.conf.old ~/.config/compton.conf; \ fi + #sc-im + @which sc-im > /dev/null 2>&1 + @if [ $$? -eq 0 ]; then \ + echo "sc-im found! removing existing config files and reinstalling *.old"; \ + [ if ~/.config/sc-im/scimrc ] && mv ~/.config/sc-im/scimrc.old ~/.config/sc-im/scimrc; \ + fi diff --git a/src/sc-im/scimrc b/src/sc-im/scimrc new file mode 100644 index 0000000..193d4cb --- /dev/null +++ b/src/sc-im/scimrc @@ -0,0 +1,6 @@ +set autocalc +set numeric=1 +set newline_action=j +set filename_with_mode=1 +set input_bar_bottom +set ignorecase