From 53bb4c8c79ebd645a205b089a04c2e93e8fd10aa Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Sun, 18 Sep 2016 11:11:56 +0200 Subject: [PATCH] Rename crontab to .crontab and activate it in .bash_profile Signed-off-by: Severin Kaderli --- .bash_profile | 3 +++ .config/i3/config | 4 ---- crontab => .crontab | 0 .gitconfig | 4 +++- bin/twitch.sh | 2 +- install.sh | 4 ++-- 6 files changed, 9 insertions(+), 8 deletions(-) rename crontab => .crontab (100%) diff --git a/.bash_profile b/.bash_profile index 871c71a..0cb078f 100644 --- a/.bash_profile +++ b/.bash_profile @@ -8,6 +8,9 @@ if [[ $- == *i* && -f $HOME/.bashrc ]]; then . $HOME/.bashrc fi +# Activate correct crontab file +crontab -u severin $HOME/.crontab + # If we are on tty1 we start the x-server if [ "$(tty)" = "/dev/tty1" ]; then startx && exit diff --git a/.config/i3/config b/.config/i3/config index f903b03..1339c9e 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -228,7 +228,3 @@ assign [class="Audacious"] $workspace10 # Disable window titlebars for_window [class="^.*"] border pixel 0 - -# Gaps -gaps inner 10 -gaps outer 10 diff --git a/crontab b/.crontab similarity index 100% rename from crontab rename to .crontab diff --git a/.gitconfig b/.gitconfig index 4a9ae5a..ab0caac 100644 --- a/.gitconfig +++ b/.gitconfig @@ -13,7 +13,7 @@ a = add --all # Create a commit and sign it off - c = commit -s -m + c = commit -s # Push to the master branch of the origin remote p = push origin master @@ -24,3 +24,5 @@ [color] # Activate color use in git commands ui = auto +[core] + editor = vim diff --git a/bin/twitch.sh b/bin/twitch.sh index e81ead7..f6c720d 100755 --- a/bin/twitch.sh +++ b/bin/twitch.sh @@ -17,4 +17,4 @@ else resolution="$2" fi -livestreamer "twitch.tv/$1" "$resolution" +livestreamer --http-header Client-ID=ewvlchtxgqq88ru9gmfp1gmyt6h2b93 "twitch.tv/$1" "$resolution" diff --git a/install.sh b/install.sh index 44fadc3..683d171 100644 --- a/install.sh +++ b/install.sh @@ -27,5 +27,5 @@ php composer-setup.php php -r "unlink('composer-setup.php');" mv "$DIR/composer.phar" "$HOME/bin/composer" -# Activate crontab file -crontab -u $USER "$DIR/.crontab" +# Link crontab file +ln -s "$DIR/.crontab" "$HOME/.crontab"