summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-05-19 22:02:41 +0200
committerjohannst <johannes.stoelp@gmail.com>2020-05-19 22:02:41 +0200
commita0089cb4a117930f3b9c36bcbbd6be8cf3747ff8 (patch)
tree3b7d4588a99f569a4994b46e8c49550d3da0325f /install
parent1c2275c86563a103a53a3199d25808aa98ed62dd (diff)
downloaddotfiles-a0089cb4a117930f3b9c36bcbbd6be8cf3747ff8.tar.gz
dotfiles-a0089cb4a117930f3b9c36bcbbd6be8cf3747ff8.zip
added rofi config + installer
Diffstat (limited to 'install')
-rwxr-xr-xinstall28
1 files changed, 22 insertions, 6 deletions
diff --git a/install b/install
index d7bb343..bcbec99 100755
--- a/install
+++ b/install
@@ -20,6 +20,7 @@ gToolsConfig=(
"i3blocks:i3blocks:i3blocksConfigInstaller"
"termite:termite:termiteConfigInstaller"
"zshrc:zsh:zshrcInstaller"
+"rofi:rofi:rofiConfigInstaller"
)
gMagicNumber=e2718281
@@ -152,13 +153,13 @@ function xtermConfigInstaller() {
#{{{ i3ConfigInstaller
function i3ConfigInstaller() {
- local i3_home=~/.i3
+ local i3_home=~/.config/i3
local i3_conf=$i3_home/config
mkdir $i3_home 2> /dev/null
if [ -f $i3_conf ]; then
return 1
fi
- cp i3wm.conf $i3_conf
+ cp $ABS_BASE_DIR/i3wm.conf $i3_conf
return 0
}
@@ -166,13 +167,13 @@ function i3ConfigInstaller() {
#{{{ i3statusConfigInstaller
function i3statusConfigInstaller() {
- local i3_home=~/.i3
+ local i3_home=~/config/.i3
local i3_status_conf=$i3_home/i3status.conf
mkdir $i3_home 2> /dev/null
if [ -f $i3_status_conf ]; then
return 1
fi
- cp i3status.conf $i3_status_conf
+ cp $ABS_BASE_DIR/i3status.conf $i3_status_conf
local nif=$(ip link show | grep ^[1-9] | grep -v LOOPBACK | sed 's/ //g' | cut -d ':' -f 2)
@@ -203,13 +204,13 @@ function i3statusConfigInstaller() {
#{{{ i3blocksConfigInstaller
function i3blocksConfigInstaller() {
- local i3_home=~/.i3
+ local i3_home=~/.config/i3
local i3_blocks_conf=$i3_home/i3blocks.conf
mkdir $i3_home 2> /dev/null
if [ -f $i3_blocks_conf ]; then
return 1
fi
- cp i3blocks.conf $i3_blocks_conf
+ cp $ABS_BASE_DIR/i3blocks.conf $i3_blocks_conf
return 0
}
@@ -248,6 +249,21 @@ function zshrcInstaller() {
}
#}}}
+#{{{ i3blocksConfigInstaller
+
+function rofiConfigInstaller() {
+ local rofi_home=~/.config/rofi
+ local rofi_conf=$rofi_home/config.rasi
+ mkdir $rofi_home 2> /dev/null
+ if [ -f $rofi_conf ]; then
+ return 1
+ fi
+ ln -s $ABS_BASE_DIR/rofi.rasi $rofi_conf
+
+ return 0
+}
+
+#}}}
#{{{ Installer Main Loop