aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-08-31 23:39:55 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-08-31 23:39:55 +0200
commit9e5b14b338fa07a0da3c8799125dc217d0c8f5e5 (patch)
tree0f3af14b5bcda80c9f2d41f95c40f038ed4afa18
parentb1e8c59e7d5a7fc39e5d649212a72ef17d8bb07e (diff)
downloaddotfiles-9e5b14b338fa07a0da3c8799125dc217d0c8f5e5.tar.gz
switch to polybar
-rw-r--r--i3/config17
-rw-r--r--polybar/config75
-rwxr-xr-xxinitrc.d/00-misc.sh2
-rwxr-xr-xxinitrc.d/99-wm.sh4
4 files changed, 47 insertions, 51 deletions
diff --git a/i3/config b/i3/config
index 35a322b..e0d9461 100644
--- a/i3/config
+++ b/i3/config
@@ -320,21 +320,6 @@ default_floating_border none
gaps inner 5
-bar {
- i3bar_command i3bar -t
- status_command python /usr/share/powerline/bindings/i3/powerline-i3.py
- #status_command i3status
- font pango:DejaVu Sans Mono for Powerline 12
-
- colors {
- background #00000000
- focused_workspace #00000000 #00000000 #FFFFFF
- active_workspace #00000000 #00000000 #FFFFFF
- inactive_workspace #00000000 #00000000 #555555
- urgent_workspace #00000000 #FF000033 #555555
- }
-}
-
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink-volume 0 -5%
@@ -352,3 +337,5 @@ bindsym XF86AudioNext exec --no-startup-id playerctl next
# https://gitlab.com/wavexx/acpilight
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 5 -fps 30 # increase screen brightness
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5 -fps 30 # decrease screen brightness
+
+exec --no-startup-id "launch-polybar.sh"
diff --git a/polybar/config b/polybar/config
index 8d1e26b..6918754 100644
--- a/polybar/config
+++ b/polybar/config
@@ -1,25 +1,7 @@
-;==========================================================
-;
-;
-; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
-; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
-; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
-; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
-; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
-; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
-;
-;
-; To learn more about how to configure Polybar
-; go to https://github.com/jaagr/polybar
-;
-; The README contains alot of information
-;
-;==========================================================
[colors]
-background = #000000
-background-alt = #222222
-;foreground = ${xrdb:color7:#222}
+background = #000000ff
+background-alt = #222222ff
foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
@@ -27,9 +9,9 @@ secondary = #e60053
alert = #bd2c40
[bar/jonny]
-monitor = ${env:MONITOR:DP-2}
+monitor = ${env:MONITOR:}
width = 100%
-height = 27
+height = 25
;offset-x = 1%
;offset-y = 1%
;radius = 6.0
@@ -137,7 +119,7 @@ index-sort = true
wrapping-scroll = false
; Only show workspaces on the same output as the bar
-;pin-workspaces = true
+pin-workspaces = true
label-mode-padding = 2
label-mode-foreground = #000
@@ -145,17 +127,19 @@ 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-background = ${module/bspwm.label-focused-background}
+label-focused-underline = ${module/bspwm.label-focused-underline}
label-focused-padding = ${module/bspwm.label-focused-padding}
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
+label-unfocused-foreground = ${colors.foreground-alt}
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-background = ${colors.background-alt}
;label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
@@ -165,7 +149,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]
@@ -206,18 +190,40 @@ card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
-format-prefix = "CPU "
+;format-prefix = "CPU "
format-prefix-foreground = ${colors.foreground-alt}
+format = <label> <ramp-coreload>
;format-underline = #f90000
label = %percentage:2%%
+ramp-coreload-spacing = 0
+ramp-coreload-0 = ▁
+ramp-coreload-1 = ▂
+ramp-coreload-2 = ▃
+ramp-coreload-3 = ▄
+ramp-coreload-4 = ▅
+ramp-coreload-5 = ▆
+ramp-coreload-6 = ▇
+ramp-coreload-7 = █
+
[module/memory]
type = internal/memory
interval = 2
-format-prefix = "RAM "
+format = <label> <bar-used>
+;format-prefix = "RAM "
format-prefix-foreground = ${colors.foreground-alt}
;format-underline = #4bffdc
-label = %percentage_used%%
+label = %percentage_used:2%%
+
+bar-used-indicator =
+bar-used-width = 10
+bar-used-foreground-0 = #55aa55
+bar-used-foreground-1 = #557755
+bar-used-foreground-2 = #f5a70a
+bar-used-foreground-3 = #ff5555
+bar-used-fill = █
+bar-used-empty = █
+bar-used-empty-foreground = #444444
[module/wlan]
type = internal/network
@@ -246,13 +252,14 @@ ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
-interface = enp2s0
+interface = enp0s25
interval = 3.0
format-connected-underline =
-format-connected-prefix = "ETH "
+;format-connected-prefix = "ETH "
format-connected-prefix-foreground = ${colors.foreground-alt}
-label-connected = %local_ip%
+label-connected = %downspeed:9% \/ %upspeed:9% /\
+label-connected-font = 0
format-disconnected =
;format-disconnected = <label-disconnected>
@@ -280,7 +287,7 @@ label = %date% %time%
type = internal/pulseaudio
format-volume = <label-volume> <bar-volume>
-label-volume = VOL %percentage%%
+label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
label-muted = 🔇 muted
diff --git a/xinitrc.d/00-misc.sh b/xinitrc.d/00-misc.sh
index 6a8c159..338b912 100755
--- a/xinitrc.d/00-misc.sh
+++ b/xinitrc.d/00-misc.sh
@@ -4,3 +4,5 @@ xrdb .Xresources
setxkbmap -layout de
/usr/bin/setxkbmap -option "caps:swapescape"
+
+redshift -l 48.814:11.3431 &
diff --git a/xinitrc.d/99-wm.sh b/xinitrc.d/99-wm.sh
index 6edb7d1..ab63d3c 100755
--- a/xinitrc.d/99-wm.sh
+++ b/xinitrc.d/99-wm.sh
@@ -1,8 +1,8 @@
#!/bin/sh
picom --experimental-backends &
-twmnd &
+deadd-notification-center &
keepassxc &
-exec i3
+i3