From f175028aadaa9c0749b628b51fe5ea8793738ce6 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 22 Dec 2020 16:56:16 +0100 Subject: [PATCH] Stuff --- neofetch/config.conf | 6 +- picom/picom.conf | 3 +- polybar/config | 100 ++++++++++++--- polybar/config.new | 298 +++++++++++++++++++++++++++++++++++++++++++ termite/config | 49 +------ 5 files changed, 386 insertions(+), 70 deletions(-) create mode 100644 polybar/config.new diff --git a/neofetch/config.conf b/neofetch/config.conf index 47742e2..627c5fa 100644 --- a/neofetch/config.conf +++ b/neofetch/config.conf @@ -671,9 +671,9 @@ ascii_distro="auto" # # Example: # ascii_colors=(distro) - Ascii is colored based on Distro colors. -# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors. -# ascii_colors=(distro) -ascii_colors=(1 9 1 1 1 1) +#ascii_colors=(4 6 1 8 8 6) #- Ascii is colored using these colors. +ascii_colors=(distro) +# ascii_colors=(1 9 1 1 1 1) # Bold ascii logo # Whether or not to bold the ascii logo. diff --git a/picom/picom.conf b/picom/picom.conf index df2241f..926a98d 100644 --- a/picom/picom.conf +++ b/picom/picom.conf @@ -122,7 +122,8 @@ active-opacity = 1.0 focus-exclude = [ "class_g = 'Cairo-clock'" ]; # Use fixed inactive dim value, instead of adjusting according to window opacity. -# inactive-dim-fixed = 1.0 +# inactive-dim-fixed = 0.2 +inactive-dim = 0.2 # Specify a list of opacity rules, in the format `PERCENT:PATTERN`, # like `50:name *= "Firefox"`. picom-trans is recommended over this. diff --git a/polybar/config b/polybar/config index d47d743..eee9b10 100644 --- a/polybar/config +++ b/polybar/config @@ -2,8 +2,8 @@ #compositing-foreground = difference [colors] -background = #c7222222 -foreground = #bbb +background = #c7111015 +foreground = #d8dee9 line = #bbb border = #bbb accent = #434d5e @@ -11,13 +11,25 @@ accent2 = #637291 selected = #2590db focused = #f0c674 +black = #32344a +red = #f7768c +green = #9ece6a +yellow = #e0af68 +blue = #7aa2f7 +magenta = #ad8ee6 +cyan = #449dab +white = #787c99 + [global/wm] margin-top = 20 margin-bottom = 20 [bar/top] -font-0 = "Source Code Pro:pixelsize=9#1" +font-0 = "Hack-Regular:pixelsize=9#1" font-1 = "siji:pixelsize=10#1" +font-2 = "Font Awesome 5 Free Regular:size=10;1" +font-3 = "Font Awesome 5 Free Solid:size=10;1" +font-4 = "Font Awesome 5 Brands Regular:size=10;1" monitor = ${env:MONITOR} @@ -34,9 +46,9 @@ padding-left = 8 padding-right = 8 module-margin = 1 -modules-left = dwm +modules-left = dwm modules-center = time -modules-right = cmus pavolume date +modules-right = cmus pulseaudio wlan eth date ############################################# # MODULES # @@ -145,21 +157,41 @@ format-underline = ${colors.line} label =  %output% label-maxlen = 50 -[module/pavolume] -type = custom/script -tail = true -label = %output% -exec = ~/.config/polybar/scripts/pavolume.sh --listen -click-right = exec pavucontrol -click-left = ~/.config/polybar/scripts/pavolume.sh --togmute -scroll-up = ~/.config/polybar/scripts/pavolume.sh --up -scroll-down = ~/.config/polybar/scripts/pavolume.sh --down - -[module/updates] -type = custom/script -exec = ~/.config/polybar/scripts/updates.sh -interval = 300 -label = %output% +[module/wlan] +type = internal/network +interface = wlp1s0 +interval = 3.0 + +format-connected = +format-connected-underline = ${colors.foreground} +label-connected = %essid% + +format-disconnected = +;format-disconnected = +;format-disconnected-underline = ${self.format-connected-underline} +;label-disconnected = %ifname% disconnected + +ramp-signal-0 =  +ramp-signal-1 =  +ramp-signal-2 =  +ramp-signal-3 =  +ramp-signal-4 =  +ramp-signal-foreground = ${colors.foreground} + +[module/eth] +type = internal/network +interface = enp0s31f6 +interval = 3.0 + +format-connected-underline = ${colors.foreground} +format-connected-prefix = " " +format-connected-prefix-foreground = ${colors.foreground} +label-connected = %local_ip% + +format-disconnected = +;format-disconnected = +;format-disconnected-underline = ${self.format-connected-underline} +;label-disconnected = %ifname% disconnected [module/date] type = internal/date @@ -174,6 +206,34 @@ label = %time% time = %H:%M:%S interval = 1 +[module/pulseaudio] +type = internal/pulseaudio + +format-volume = +label-volume =  %percentage%% +label-volume-foreground = ${root.foreground} + +label-muted =  ---% +label-muted-foreground = ${colors.red} + +bar-volume-width = 10 +bar-volume-foreground-0 = ${colors.green} +bar-volume-foreground-1 = ${colors.green} +bar-volume-foreground-2 = ${colors.green} +bar-volume-foreground-3 = ${colors.green} +bar-volume-foreground-4 = ${colors.yellow} +bar-volume-foreground-5 = ${colors.yellow} +bar-volume-foreground-6 = ${colors.red} +bar-volume-gradient = false +bar-volume-indicator = > +bar-volume-indicator-font = 0 +bar-volume-fill = ─ +bar-volume-fill-font = 0 +bar-volume-empty = ─ +bar-volume-empty-font = 0 +bar-volume-empty-foreground = #666 + + [module/title] type = internal/xwindow format-background = ${colors.background} diff --git a/polybar/config.new b/polybar/config.new new file mode 100644 index 0000000..fbfdb15 --- /dev/null +++ b/polybar/config.new @@ -0,0 +1,298 @@ +; Polybar Configuration + +[nord] +background = #2e3440 +foreground = #d8dee9 + +black = #3b4252 +red = #bf616a +green = #a3be8c +yellow = #ebcb8b +blue = #81a1c1 +magenta = #b48ead +cyan = #88c0d0 +white = #e5e9f0 + +[colors] +background = #1a1b26 +foreground = #a9b1d6 + +black = #32344a +red = #f7768c +green = #9ece6a +yellow = #e0af68 +blue = #7aa2f7 +magenta = #ad8ee6 +cyan = #449dab +white = #787c99 + +[bar/top] +width = 100% +height = 24 +fixed-center = true + +background = ${colors.background} +foreground = ${colors.foreground} + +border-size = 0 +border-color = #00000000 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 0 +module-margin-right = 1 + +font-0 = "Hack-Regular:size=10;1" +font-1 = "Font Awesome 5 Free Regular:size=10;1" +font-2 = "Font Awesome 5 Free Solid:size=10;1" +font-3 = "Font Awesome 5 Brands Regular:size=10;1" +font-4 = "siji:pixelsize=10#1" + +monitor = ${env:MONITOR} + +modules-left = dwm +modules-center = cmus +modules-right = pulseaudio wlan battery date + +tray-position = right +tray-padding = 2 + +override-redirect = true + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/cmus] +type = custom/script + +exec = ~/.config/polybar/scripts/cmus.sh +exec-if = pgrep -x cmus +interval = 1 + +click-left = cmus-remote --next +click-right = cmus-remote --prev +click-middle = cmus-remote --pause +scroll-up = cmus-remote --volume +5% +scroll-down = cmus-remote --volume -5% + +label-font = 3 +format =