From 0737d5f9eda273e57697af0b559bb82f5978ce96 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Wed, 6 Nov 2019 19:25:05 +0500 Subject: Updates. --- files/.config/redshift.conf | 58 +++++++++++++++++++++++++++++++++++++++++++++ files/.gitconfig | 1 + files/.zsh/rc/S50_aliases | 6 ++++- install-packages.sh | 8 +++++++ install.conf.yaml | 11 +-------- 5 files changed, 73 insertions(+), 11 deletions(-) create mode 100644 files/.config/redshift.conf create mode 100755 install-packages.sh diff --git a/files/.config/redshift.conf b/files/.config/redshift.conf new file mode 100644 index 0000000..c897d1a --- /dev/null +++ b/files/.config/redshift.conf @@ -0,0 +1,58 @@ +; Global settings for redshift +[redshift] +; Set the day and night screen temperatures +temp-day=6500 +temp-night=4300 + +; Enable/Disable a smooth transition between day and night +; 0 will cause a direct change from day to night screen temperature. +; 1 will gradually increase or decrease the screen temperature. +transition=1 + +; Set the screen brightness. Default is 1.0. +;brightness=0.9 +; It is also possible to use different settings for day and night +; since version 1.8. +;brightness-day=0.7 +;brightness-night=0.4 +; Set the screen gamma (for all colors, or each color channel +; individually) +;gamma=0.8 +;gamma=0.8:0.7:0.8 +; This can also be set individually for day and night since +; version 1.10. +;gamma-day=0.8:0.7:0.8 +;gamma-night=0.6 + +; Set the location-provider: 'geoclue', 'geoclue2', 'manual' +; type 'redshift -l list' to see possible values. +; The location provider settings are in a different section. +location-provider=manual + +; Set the adjustment-method: 'randr', 'vidmode' +; type 'redshift -m list' to see all possible values. +; 'randr' is the preferred method, 'vidmode' is an older API. +; but works in some cases when 'randr' does not. +; The adjustment method settings are in a different section. +adjustment-method=randr + +; Configuration of the location-provider: +; type 'redshift -l PROVIDER:help' to see the settings. +; ex: 'redshift -l manual:help' +; Keep in mind that longitudes west of Greenwich (e.g. the Americas) +; are negative numbers. +[manual] +; Tyumen +lat=57.12 +lon=65.56 + + +; Configuration of the adjustment-method +; type 'redshift -m METHOD:help' to see the settings. +; ex: 'redshift -m randr:help' +; In this example, randr is configured to adjust screen 1. +; Note that the numbering starts from 0, so this is actually the +; second screen. If this option is not specified, Redshift will try +; to adjust _all_ screens. +;[randr] +;screen=1 diff --git a/files/.gitconfig b/files/.gitconfig index db8a092..b85bb0e 100644 --- a/files/.gitconfig +++ b/files/.gitconfig @@ -46,6 +46,7 @@ # https://github.com/anishathalye/dotfiles/blob/master/gitconfig update-submodules = submodule update --init --recursive upgrade-submodules = submodule update --init --remote + wc = whatchanged -p --abbrev-commit --pretty=medium [advice] statusHints = false detachedHead = false diff --git a/files/.zsh/rc/S50_aliases b/files/.zsh/rc/S50_aliases index 9b94368..73ebfc2 100644 --- a/files/.zsh/rc/S50_aliases +++ b/files/.zsh/rc/S50_aliases @@ -107,6 +107,10 @@ alias dlog='docker logs --tail 100 --follow' alias dc='docker-compose' alias dc-down='dc down --volumes --rmi local --remove-orphans' alias dc-logs='dc logs --tail 100 --follow' +function dc-stats() { + dc $@ ps -q | xargs --no-run-if-empty docker stats +} + alias portcheck='nc -z -v -w 5' alias jq='jq --color-output' @@ -123,7 +127,7 @@ elif $(which libreoffice >/dev/null) ; then alias 2pdf='libreoffice --headless --convert-to pdf' fi -alias http='http --timeout=99999' +alias http='http --timeout=99999 --style=solarized --body' #[[ -s /etc/grc.zsh ]] && source /etc/grc.zsh diff --git a/install-packages.sh b/install-packages.sh new file mode 100755 index 0000000..10bcb12 --- /dev/null +++ b/install-packages.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +echo Installing base packages +xargs -a packages.debian sudo apt-get install -y +echo Changing shell to zsh +[ -n "$ZSH_VERSION" ] || chsh -s $(which zsh) diff --git a/install.conf.yaml b/install.conf.yaml index c24bab3..5aaf15b 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -30,18 +30,9 @@ ~/.config/devilspie2: files/.config/devilspie2 ~/.config/youtube-dl: files/.config/youtube-dl ~/.config/xfce4/terminal: files/.config/xfce4/terminal + ~/.config/redshift.conf: files/.config/redshift.conf - shell: - [git submodule update --init --recursive, Installing submodules] - - - command: xargs -a packages.debian sudo apt-get install -y - description: Installing packages - stderr: true - - - command: '[ -n "$ZSH_VERSION" ] || chsh -s $(which zsh)' - description: Making zsh the default shell - stdin: true - stdout: true - stderr: true - [vim -c 'PluginInstall' +qall, Installing vim plugins] - [~/.tmux/plugins/tpm/bin/install_plugins, Installing tmux plugins] -- cgit v1.2.3