aboutsummaryrefslogtreecommitdiff
path: root/hook
diff options
context:
space:
mode:
authorAndrea Schiavini <metalelf0@gmail.com>2017-11-22 20:14:03 +0100
committerJordi Pakey-Rodriguez <0xdec@users.noreply.github.com>2017-11-22 13:14:03 -0600
commit821a3d8730a3a1091e2af8f6c2395fe31c87c18d (patch)
tree425df8873f5a113a41a463601869fb1ec015b6cc /hook
parent6f8f3d45baf74a181b4f0a61d83eb01fd4ff894e (diff)
Base16 shell integration (#3)
Base16 shell integration
Diffstat (limited to 'hook')
-rwxr-xr-xhook/rofi.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/hook/rofi.sh b/hook/rofi.sh
new file mode 100755
index 0000000..816aac7
--- /dev/null
+++ b/hook/rofi.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+rofi_config_file=$HOME/.config/rofi/config
+rofi_themes_dir=$HOME/sources/base16-rofi/themes
+
+rofi_theme_file=$rofi_themes_dir/base16-$BASE16_THEME.config
+if [ -f "$rofi_theme_file" ] && [ -f $rofi_config_file ]; then
+ cp "$rofi_theme_file" "$rofi_config_file"
+ echo 'Rofi theme updated'
+fi