From 96915ca023393c19f6090edfbf9eae079f8c017b Mon Sep 17 00:00:00 2001 From: Carolyn Saunders Date: Sun, 12 Feb 2017 20:15:21 -0800 Subject: [PATCH] Minor changes and added compton config --- .config/admiral.d/admiral.toml | 2 +- .config/sxhkd/sxhkdrc | 2 +- .scripts/wink.sh | 35 ------------------------------ compton.conf | 39 ++++++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+), 37 deletions(-) delete mode 100755 .scripts/wink.sh create mode 100644 compton.conf diff --git a/.config/admiral.d/admiral.toml b/.config/admiral.d/admiral.toml index 9720fc3..1cbcf9b 100644 --- a/.config/admiral.d/admiral.toml +++ b/.config/admiral.d/admiral.toml @@ -29,7 +29,7 @@ reload = 5 path = "$HOME/.scripts/workspaces.sh" [title] -path = "xtitle -s | roller -t 40" +path = "zscroll -n -u 'xtitle -u'" [clock] path = "date '+%m/%d %H:%M' " diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 03d4418..51ab383 100755 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -17,7 +17,7 @@ XF86MonBrightness{Up,Down} # terminal emulator super + Return - st + termite # program launcher super + p diff --git a/.scripts/wink.sh b/.scripts/wink.sh deleted file mode 100755 index 90a904e..0000000 --- a/.scripts/wink.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -## From github user 84adam - -# Bitcoin price script using WINKDEX API (https://winkdex.com/) -# WARNING: Run no more than once per minute. - -# Create local wink folder "$HOME/bin/wink" if it doesn't exist yet - -if [ ! -d /$HOME/bin/wink ]; - then - mkdir -p /$HOME/bin/wink -fi - -# get current BTC price in cents, log to wink.log - -curl -s -H "User-Agent: wink-sh" "https://winkdex.com/api/v0/price" > $HOME/bin/wink.log - -# cut and print BTC value in 'cents', log to cents.log - -cat $HOME/bin/wink.log | cut -d ":" -f 5 | cut -d "," -f 1 > $HOME/bin/cents.log - -# set variable PRICE and calculate dollars and cents using 'bc' - -PRICE=$(echo "`cat $HOME/bin/cents.log` * .01" | bc) - -# print PRICE along with current time and attribution - -echo "BTC: \$$PRICE" - -# store DOLLAR value in dollars.log - -DOLLARS=$(echo $PRICE | cut -d '.' -f1) - -echo "$DOLLARS/btc" > $HOME/bin/wink/dollars.log diff --git a/compton.conf b/compton.conf new file mode 100644 index 0000000..be48a72 --- /dev/null +++ b/compton.conf @@ -0,0 +1,39 @@ +# Inspired by (copied from) github.com/kbrgl/dotfiles + +# Shadow +shadow = true; # Enabled client-side shadows on windows. +no-dock-shadow = false; # Avoid drawing shadows on dock/panel windows. +no-dnd-shadow = false; # Don't draw shadows on DND windows. +clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental). +shadow-radius = 7; # The blur radius for shadows. (default 12) +shadow-offset-x = -12; # The left offset for shadows. (default -15) +shadow-offset-y = -7; # The top offset for shadows. (default -15) +shadow-opacity = 0.9; # The translucency for shadows. (default .75) +# shadow-red = 0.0; # Red color value of shadow. (0.0 - 1.0, defaults to 0) +# shadow-green = 0.0; # Green color value of shadow. (0.0 - 1.0, defaults to 0) +# shadow-blue = 0.0; # Blue color value of shadow. (0.0 - 1.0, defaults to 0) +# shadow-exclude = '!focused' ; # Exclude conditions for shadows. +shadow-exclude = "g:ei:Notify-osd"; +shadow-ignore-shaped = true; + +# Opacity +menu-opacity = 1.0; # The opacity for menus. (default 1.0) +inactive-opacity = 1.0; # Opacity of inactive windows. (0.1 - 1.0) +frame-opacity = 1.0; # Opacity of window titlebars and borders. (0.1 - 1.0) +inactive-opacity-override = true; # Inactive opacity set by 'inactive-opacity' overrides value of _NET_WM_OPACITY. + +# Fading +fading = true; # Fade windows during opacity changes. +fade-delta = 4; # The time between steps in a fade in milliseconds. (default 10). + +# Other +inactive-dim = 0; # Dim inactive windows. (0.0 - 1.0, defaults to 0). +mark-wmwin-focused = false; # Try to detect WM windows and mark them as active. +mark-ovredir-focused = false; +detect-rounded-corners = false; + +# Window type settings +wintypes: +{ + tooltip = { fade = true; shadow = false; opacity = 0.75; }; +};