From 6803c42a83ae2726ca1dc42c2300f49565b88642 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 13 May 2019 11:43:23 +0200 Subject: Some changes --- .Xdefaults | 2 ++ .bashrc | 3 +- .compton.conf | 7 ++--- .i3/config | 4 +-- polybar/config | 91 ++++++++++++++++++++++------------------------------------ 5 files changed, 43 insertions(+), 64 deletions(-) diff --git a/.Xdefaults b/.Xdefaults index fec0254..e653e35 100644 --- a/.Xdefaults +++ b/.Xdefaults @@ -3,4 +3,6 @@ XTerm*background: black XTerm*faceName: Monospace XTerm*faceSize: 12.0 XTerm*selectToClipboard: true +XTerm*bell: false +XTerm*visualBell: true #XTerm*loginShell: true diff --git a/.bashrc b/.bashrc index 805ba69..4e67d62 100644 --- a/.bashrc +++ b/.bashrc @@ -6,7 +6,8 @@ [[ $- != *i* ]] && return # If running in xterm set transparency -[ -n "$XTERM_VERSION" ] && transset-df --id "$WINDOWID" >/dev/null +#[ -n "$XTERM_VERSION" ] && transset-df --id "$WINDOWID" >/dev/null +#MOVED TO COMPTON CONF alias ls='ls --color=auto' PS1='[\u@\h \W]\$ ' diff --git a/.compton.conf b/.compton.conf index 8d92a79..d11924d 100644 --- a/.compton.conf +++ b/.compton.conf @@ -124,10 +124,9 @@ blur-background-exclude = [ "window_type = 'desktop'" ]; -#opacity-rule = [ -# "90:class_g = 'URxvt' && focused", -# "60:class_g = 'URxvt' && !focused" -#]; +opacity-rule = [ + "70:class_g *= 'XTerm'" +]; ################################# # diff --git a/.i3/config b/.i3/config index 516c875..61ca38b 100644 --- a/.i3/config +++ b/.i3/config @@ -33,7 +33,7 @@ floating_modifier $mod bindsym $mod+Return exec "xterm" #start ranger -bindsym $mod+o exec "xterm -e bash ranger" +bindsym $mod+o exec "xterm -e ranger" # kill focused window bindsym $mod+Shift+q kill @@ -324,7 +324,7 @@ exec --no-startup-id feh --bg-fill ~/.i3/wp.jpg # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) #bar { -# status_command i3status + # status_command i3status #} exec_always --no-startup-id ~/.i3/start_polybar.sh jonny diff --git a/polybar/config b/polybar/config index 3f1b536..223a3ce 100644 --- a/polybar/config +++ b/polybar/config @@ -17,9 +17,8 @@ ;========================================================== [colors] -;background = ${xrdb:color0:#222} -background = #222 -background-alt = #444 +background = #000000 +background-alt = #222222 ;foreground = ${xrdb:color7:#222} foreground = #dfdfdf foreground-alt = #555 @@ -34,7 +33,7 @@ height = 27 ;offset-x = 1% ;offset-y = 1% ;radius = 6.0 -fixed-center = false +fixed-center = true background = ${colors.background} foreground = ${colors.foreground} @@ -48,16 +47,18 @@ Iborder-color = #00000000 padding-left = 0 padding-right = 2 -module-margin-left = 1 -module-margin-right = 2 +module-margin-left = 3 +module-margin-right = 3 font-0 = fixed:pixelsize=10;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = siji:pixelsize=10;1 modules-left = i3 -modules-center = -modules-right = filesystem backlight-acpi pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu +modules-center = date +modules-right = filesystem backlight-acpi pulseaudio memory cpu wlan eth battery temperature powermenu + +separator = | tray-position = right tray-padding = 2 @@ -145,7 +146,7 @@ label-mode-background = ${colors.primary} ; focused = Active workspace on focused monitor label-focused = %index% label-focused-background = ${module/bspwm.label-focused-background} -label-focused-underline = ${module/bspwm.label-focused-underline} +;label-focused-underline = ${module/bspwm.label-focused-underline} label-focused-padding = ${module/bspwm.label-focused-padding} ; unfocused = Inactive workspace on any monitor @@ -155,7 +156,7 @@ label-unfocused-padding = ${module/bspwm.label-occupied-padding} ; visible = Active workspace on unfocused monitor label-visible = %index% label-visible-background = ${self.label-focused-background} -label-visible-underline = ${self.label-focused-underline} +;label-visible-underline = ${self.label-focused-underline} label-visible-padding = ${self.label-focused-padding} ; urgent = Workspace with urgency hint set @@ -164,7 +165,7 @@ label-urgent-background = ${module/bspwm.label-urgent-background} label-urgent-padding = ${module/bspwm.label-urgent-padding} ; Separator in between workspaces -; label-separator = | + label-separator = [module/mpd] @@ -205,17 +206,17 @@ card = intel_backlight [module/cpu] type = internal/cpu interval = 2 -format-prefix = " " +format-prefix = "CPU " format-prefix-foreground = ${colors.foreground-alt} -format-underline = #f90000 +;format-underline = #f90000 label = %percentage:2%% [module/memory] type = internal/memory interval = 2 -format-prefix = " " +format-prefix = "RAM " format-prefix-foreground = ${colors.foreground-alt} -format-underline = #4bffdc +;format-underline = #4bffdc label = %percentage_used%% [module/wlan] @@ -223,8 +224,11 @@ type = internal/network interface = wlp3s0 interval = 3.0 +format-connected-prefix = "WLAN " +format-connected-prefix-foreground = ${colors.foreground-alt} format-connected = -format-connected-underline = #9f78e1 +format-connected-underline = + label-connected = %essid% format-disconnected = @@ -245,8 +249,8 @@ type = internal/network interface = enp2s0 interval = 3.0 -format-connected-underline = #55aa55 -format-connected-prefix = " " +format-connected-underline = +format-connected-prefix = "ETH " format-connected-prefix-foreground = ${colors.foreground-alt} label-connected = %local_ip% @@ -260,7 +264,7 @@ format-disconnected = type = internal/date interval = 5 -date = +date = %d.%m.%Y date-alt = " %Y-%m-%d" time = %H:%M @@ -268,7 +272,7 @@ time-alt = %H:%M:%S format-prefix =  format-prefix-foreground = ${colors.foreground-alt} -format-underline = #0a6cf5 +;format-underline = #0a6cf5 label = %date% %time% @@ -299,47 +303,22 @@ bar-volume-empty = ─ bar-volume-empty-font = 2 bar-volume-empty-foreground = ${colors.foreground-alt} -[module/alsa] -type = internal/alsa - -format-volume = -label-volume = VOL -label-volume-foreground = ${root.foreground} - -format-muted-prefix = " " -format-muted-foreground = ${colors.foreground-alt} -label-muted = sound muted - -bar-volume-width = 10 -bar-volume-foreground-0 = #55aa55 -bar-volume-foreground-1 = #55aa55 -bar-volume-foreground-2 = #55aa55 -bar-volume-foreground-3 = #55aa55 -bar-volume-foreground-4 = #55aa55 -bar-volume-foreground-5 = #f5a70a -bar-volume-foreground-6 = #ff5555 -bar-volume-gradient = false -bar-volume-indicator = | -bar-volume-indicator-font = 2 -bar-volume-fill = ─ -bar-volume-fill-font = 2 -bar-volume-empty = ─ -bar-volume-empty-font = 2 -bar-volume-empty-foreground = ${colors.foreground-alt} - [module/battery] type = internal/battery battery = BAT1 adapter = ACAD full-at = 98 +time-format = %H:%M +label-charging = %percentage%% %time% %consumption%W format-charging = -format-charging-underline = #ffb52a +format-charging-underline = +label-discharging = %percentage%% %time% %consumption%W format-discharging = format-discharging-underline = ${self.format-charging-underline} -format-full-prefix = " " +format-full-prefix = "F " format-full-prefix-foreground = ${colors.foreground-alt} format-full-underline = ${self.format-charging-underline} @@ -348,15 +327,13 @@ ramp-capacity-1 =  ramp-capacity-2 =  ramp-capacity-foreground = ${colors.foreground-alt} -animation-charging-0 =  -animation-charging-1 =  -animation-charging-2 =  +animation-charging-0 = + +animation-charging-1 = : animation-charging-foreground = ${colors.foreground-alt} animation-charging-framerate = 750 -animation-discharging-0 =  -animation-discharging-1 =  -animation-discharging-2 =  +animation-discharging-0 = : +animation-discharging-1 = - animation-discharging-foreground = ${colors.foreground-alt} animation-discharging-framerate = 750 @@ -366,7 +343,7 @@ thermal-zone = 0 warn-temperature = 60 format =