From 45bf8188d22b0493cabc5b9d713e8c990cddf5fd Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Wed, 16 Dec 2020 20:53:40 +0100 Subject: [PATCH] Update --- picom/picom.conf | 8 +++---- polybar/config | 59 +++++++++++++++++------------------------------- polybar/launch | 17 ++++++++++++++ termite/config | 6 ++--- 4 files changed, 45 insertions(+), 45 deletions(-) create mode 100755 polybar/launch diff --git a/picom/picom.conf b/picom/picom.conf index f86ac9e..df2241f 100644 --- a/picom/picom.conf +++ b/picom/picom.conf @@ -19,11 +19,11 @@ shadow-radius = 12; # The left offset for shadows, in pixels. (defaults to -15) # shadow-offset-x = -15 -shadow-offset-x = -15; +shadow-offset-x = -8; # The top offset for shadows, in pixels. (defaults to -15) # shadow-offset-y = -15 -shadow-offset-y = -15; +shadow-offset-y = -8; # Red color value of shadow (0.0 - 1.0, defaults to 0). # shadow-red = 0 @@ -141,7 +141,7 @@ focus-exclude = [ "class_g = 'Cairo-clock'" ]; # Parameters for background blurring, see the *BLUR* section for more information. blur-method = "dual_kawase"; -blur-strength = 0; +blur-strength = 8; # blur-size = 2; # # blur-deviation = false @@ -177,7 +177,7 @@ blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; # Exclude conditions for background blur. # blur-background-exclude = [] blur-background-exclude = [ - "window_type = 'dock'", + #"window_type = 'dock'", "window_type = 'desktop'", "_GTK_FRAME_EXTENTS@:c" ]; diff --git a/polybar/config b/polybar/config index a336d9d..d47d743 100644 --- a/polybar/config +++ b/polybar/config @@ -1,64 +1,46 @@ [settings] -compositing-foreground = difference +#compositing-foreground = difference [colors] -background = #00000000 -#df151515 -# ef1d1f21 -foreground = #151515 -#a4abb3 -# 707880 -line = #d1111111 -border = #ef272727 -accent = #c2bf616a -selected = #a84222 -#cc6666 +background = #c7222222 +foreground = #bbb +line = #bbb +border = #bbb +accent = #434d5e +accent2 = #637291 +selected = #2590db focused = #f0c674 [global/wm] -margin-top = 0 -margin-bottom = 21 +margin-top = 20 +margin-bottom = 20 [bar/top] -font-0 = "Overpass Mono:pixelsize=12#2.25" +font-0 = "Source Code Pro:pixelsize=9#1" font-1 = "siji:pixelsize=10#1" -line-size = 1 - monitor = ${env:MONITOR} -#scroll-up = i3wm-wsnext -#scroll-down = i3wm-wsprev - fixed-center = true override-redirect = false width = 100% -height = 21 +height = 24 background = ${colors.background} foreground = ${colors.foreground} -#radius = 0.0 - -# line-size = 1 -# line-color = ${colors.line} - -# border-size = 1 -# border-color = ${colors.border} - -padding-left = 18 -padding-right = 18 +padding-left = 8 +padding-right = 8 module-margin = 1 -#modules-left = dwm title modules-left = dwm -modules-center = -modules-right = cmus pavolume time date +modules-center = time +modules-right = cmus pavolume date -################################################################################# +############################################# # MODULES # -################################################################################# +############################################# [module/dwm] type = internal/dwm @@ -96,7 +78,7 @@ secondary-layout-symbol = [M] # %title% label-title = %title% label-title-padding = 1 -label-title-foreground = ${colors.selected} +label-title-foreground = ${colors.accent2} label-title-maxlen = 50 # Symbol of current layout @@ -108,7 +90,7 @@ label-layout-foreground = ${colors.foreground} label-layout-background = ${colors.background} # Text to show when currently focused window is floating -label-floating = * +label-floating = ~ # States: focused, unfocused, visible, urgent, empty # Available tokens: @@ -128,6 +110,7 @@ label-unfocused-padding = 1 # visible = Unselected tag, but occupied tag on any monitor label-visible = %name% label-visible-background = ${self.label-focused-background} +label-visible-foreground = ${colors.accent} label-visible-underline = ${self.label-focused-underline} label-visible-padding = ${self.label-focused-padding} diff --git a/polybar/launch b/polybar/launch new file mode 100755 index 0000000..e683c56 --- /dev/null +++ b/polybar/launch @@ -0,0 +1,17 @@ +#!/bin/bash + +# Terminate already running bar instances +killall -q polybar + +# Wait until the processes have been shut down +while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done + +# polybar top >>/tmp/polybar-main.log -c $HOME/.config/polybar/config & + +if type "xrandr"; then + for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do + MONITOR=$m polybar --reload top & + done +else + polybar --reload top & +fi diff --git a/termite/config b/termite/config index e3d1487..bf1f8ee 100644 --- a/termite/config +++ b/termite/config @@ -1,6 +1,6 @@ [options] -font = Ubuntu Mono 12 -# font = Source Code Pro 11 +# font = Ubuntu Mono 12 +font = Source Code Pro 10 size_hints = true [colors] @@ -10,7 +10,7 @@ cursor = #d8d8d8 # 181818 (HEX) default cursor_foreground = rgba(24, 24, 24, 0.8) -background = rgba(29, 31, 33, 1) +background = rgba(29, 31, 33, 0.88) # 1d1f21 # a=0.94 highlight = #161719