From 7cad2202ff5366baeea3a0d391651a412e9e8d34 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 20 Apr 2017 08:16:02 -0500 Subject: [PATCH] Prep for adding dunst, add print screen hotkey --- apps/neovim/init.vim | 1 + de/bar/bar.bash | 7 ++++++- de/dunst/build_config.bash | 10 ++++++++++ de/sxhkdrc | 3 +++ readme.md | 1 + 5 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 de/dunst/build_config.bash diff --git a/apps/neovim/init.vim b/apps/neovim/init.vim index 4a9fad6..9ada286 100644 --- a/apps/neovim/init.vim +++ b/apps/neovim/init.vim @@ -144,6 +144,7 @@ Plug 'elixir-lang/vim-elixir', {'for': ['elixir']} Plug 'mattn/emmet-vim', {'for': ['html']} Plug 'wavded/vim-stylus', {'for': ['styl', 'stylus', 'vue']} Plug 'rust-lang/rust.vim', {'for': ['rs', 'rust']} +Plug 'mustache/vim-mustache-handlebars', {'for': ['html.handlebars', 'handlebars', 'hbs']} " Plug 'plasticboy/vim-markdown', {'for': ['md', 'markdown']} " Plug 'euclio/vim-markdown-composer', { 'do': function('BuildComposer'), 'for': ['md', 'markdown'] } Plug 'digitaltoad/vim-jade', {'for': ['pug', 'jade', 'vue']} diff --git a/de/bar/bar.bash b/de/bar/bar.bash index 9ef6b2a..ef116e9 100755 --- a/de/bar/bar.bash +++ b/de/bar/bar.bash @@ -27,7 +27,12 @@ fi export BAR_WIDTH=$((MONITOR_WIDTH - GAP - GAP - BAR_SIDE_MARGIN - BAR_SIDE_MARGIN)) export POS_X=$((GAP + BAR_SIDE_MARGIN)) -EHEIGHT=$((BAR_HEIGHT + GAP)) +export EHEIGHT=$((BAR_HEIGHT + GAP)) + +# if we just want the variables set here, pass an argument +if [ $# -gt 0 ]; then + return +fi if [ $BAR_ON_TOP -eq 1 ]; then export BAR_BOTTOM="false" diff --git a/de/dunst/build_config.bash b/de/dunst/build_config.bash new file mode 100755 index 0000000..1fca1bc --- /dev/null +++ b/de/dunst/build_config.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd) + +source "$DOTFILES_PATH/de/bar/bar.bash" --just-vars=1 + +export BG_COLOR=$(xrdb -query | sed -ne 's/.*color0:\s*\(.*\).*$/\1/p' | head -n 1) +export FG_COLOR=$(xrdb -query | sed -ne 's/.*color7:\s*\(.*\).*$/\1/p' | head -n 1) + +envsubst < "$DIR/dunst-config.dev.h.template" > "$DIR/config.dev.h" diff --git a/de/sxhkdrc b/de/sxhkdrc index 95ed8f5..c2cd398 100755 --- a/de/sxhkdrc +++ b/de/sxhkdrc @@ -226,6 +226,9 @@ super + ctrl + {alt +,_} Escape {bspc wm -d > "$BSPWM_STATE_FILE" && bspc quit, \ bspc quit 1} +Print + scrot + # make sxhkd reload its configuration files: super + Escape pkill -USR1 -x sxhkd diff --git a/readme.md b/readme.md index 7a0eedf..406bebd 100644 --- a/readme.md +++ b/readme.md @@ -77,3 +77,4 @@ Here are some bullet points on my workflow as a Web Developer: ## To Do and Improvements * Unify all the common variables... somehow? +* Dunst and notifications