diff --git a/.config/i3 b/.config/i3 index e0e4898..5e23fb4 160000 --- a/.config/i3 +++ b/.config/i3 @@ -1 +1 @@ -Subproject commit e0e489822987bf84fb609c1b79b4d73c63bdd327 +Subproject commit 5e23fb47df962e225044964f17576fc1850f9dbf diff --git a/.config/picom.conf b/.config/picom.conf new file mode 100644 index 0000000..0430e28 --- /dev/null +++ b/.config/picom.conf @@ -0,0 +1,33 @@ +backend = "glx"; +vsync = true; +shadow = false; + +fading = true; +fade-delta = 5; +fade-in-step = 0.03; +fade-out-step = 0.03; + +opacity-rule = [ + "100:class_g = 'i3-frame'" +]; + +blur-background-exclude = [ + "name *= 'Screenshot'", + "class_g ~= 'slop'", + "class_g ~= 'obs'", + "class_g ~= 'Peek'", + "window_type = 'dock'", + "window_type = 'desktop'", + "window_type = 'notification'", + "window_type = 'tooltip'", + "window_type = 'menu'", + "window_type = 'popup_menu'", +] + +blur-method = "dual_kawase"; +blur-strength = 5; + +corner-radius = 0; + +# avoid GPU artefacts with some drivers +use-damage = true; diff --git a/.config/polybar/bars/top.ini b/.config/polybar/bars/top.ini new file mode 100644 index 0000000..0e36b42 --- /dev/null +++ b/.config/polybar/bars/top.ini @@ -0,0 +1,27 @@ +; the top polybar +[bar/top] +width = 100% +height = 24pt +radius = 0 +line-size = 3pt +border-size = 0pt +font-0 = JetBrainsMonoNLNerdFont;2 +background = ${colours.background} +foreground = ${colours.foreground} +separator-foreground = ${colours.disabled} +border-color = #00000000 +module-margin = 1 +cursor-click = pointer +cursor-scroll = ns-resize +enable-ipc = true + +separator = | +padding-left = 0 +modules-left = workspaces window +modules-center = date time +modules-right = systray enpnative enpusbc wifi volume battery +padding-right = 1 + +[settings] +screenchange-reload = true +pseudo-transparency = true diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini new file mode 100644 index 0000000..8972437 --- /dev/null +++ b/.config/polybar/config.ini @@ -0,0 +1,42 @@ +; using the gruvbox colour palette in ARGB format +[palette] +background0 = #BA1D2021 +background1 = #BA32302F +background2 = #BA3C3836 +background3 = #BA504945 +background4 = #BA665C54 +background5 = #BA7C6F64 +foreground0 = #FFFBF1C7 +foreground1 = #FFFBF1C7 +foreground2 = #FFEBDBB2 +foreground3 = #FFD5C4A1 +foreground4 = #FFBDAE93 +foreground5 = #FFA89984 +red = #FFCC241D +green = #FF98971A +yellow = #FFD79921 +blue = #FF458588 +purple = #FFB16286 +aqua = #FF689D6A +orange = #FFD65D0E +red-bright = #FFFB4934 +green-bright = #FFB8BB26 +yellow-bright = #FFFABD2F +blue-bright = #FF83A598 +purple-bright = #FFD3869B +aqua-bright = #FF8EC07C +orange-bright = #FFFE8019 + +; colour definitions +[colours] +background = ${palette.background2} +background-alt = ${palette.background3} +foreground = ${palette.foreground3} +primary = ${palette.yellow-bright} +secondary = ${palette.aqua-bright} +alert = ${palette.red} +disabled = ${palette.background5} + +; include directories for more modular configuration +include-directory = modules/ +include-directory = bars/ diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh new file mode 100755 index 0000000..d7f81d6 --- /dev/null +++ b/.config/polybar/launch.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# quit already running instances (if ipc is enabled) +polybar-msg cmd quit +# killall -q polybar + +polybar top & disown +# polybar bot & disown diff --git a/.config/polybar/modules/battery.ini b/.config/polybar/modules/battery.ini new file mode 100644 index 0000000..7ca6689 --- /dev/null +++ b/.config/polybar/modules/battery.ini @@ -0,0 +1,34 @@ +[module/battery] +type = internal/battery +full-at = 100 +low-at = 10 +battery = BAT1 +adapter = ACAD +time-format = %H:%M +poll-interval = 5 + +format-charging = +label-charging = %percentage%% +animation-charging-0 = 󰢜 +animation-charging-1 = 󰂇 +animation-charging-2 = 󰢝 +animation-charging-3 = 󰢞 +animation-charging-4 = 󰂋 +animation-charging-framerate = 1000 + +format-discharging = +label-discharging = %percentage%% +ramp-capacity-0 = 󰁺 +ramp-capacity-1 = 󰁼 +ramp-capacity-2 = 󰁾 +ramp-capacity-3 = 󰂀 +ramp-capacity-4 = 󰂂 + +format-full = +label-full = 󰂄 %percentage%% + +format-low = +label-low = %percentage%% +animation-low-0 = 󰂃 +animation-low-1 = 󰁺 +animation-low-framerate = 500 diff --git a/.config/polybar/modules/datetime.ini b/.config/polybar/modules/datetime.ini new file mode 100644 index 0000000..fd7468f --- /dev/null +++ b/.config/polybar/modules/datetime.ini @@ -0,0 +1,15 @@ +[datetime] +type = internal/date +label = %date% +label-foreground = ${colours.primary} + +[module/date] +inherit = datetime +interval = 60 +date = %d/%m/%Y + +[module/time] +inherit = datetime +interval = 1 +date = %H:%M +date-alt = %H:%M:%S diff --git a/.config/polybar/modules/network.ini b/.config/polybar/modules/network.ini new file mode 100644 index 0000000..42ed351 --- /dev/null +++ b/.config/polybar/modules/network.ini @@ -0,0 +1,31 @@ +[network] +type = internal/network +interval = 5 + +[module/wifi] +inherit = network +interface = wlp0s20f3 +interface-type = wireless + +format-connected = +ramp-signal-0 = 󰤯 +ramp-signal-1 = 󰤟 +ramp-signal-2 = 󰤢 +ramp-signal-3 = 󰤥 +ramp-signal-4 = 󰤨 + +format-disconnected = 󰤭 + +[ethernet] +inherit = network +interface-type = wired +format-connected = 󰈀 +format-disconnected = + +[module/enpnative] +inherit = ethernet +interface = enp2s0 + +[module/enpusbc] +inherit = ethernet +interface = enp0s20f0u3u1 diff --git a/.config/polybar/modules/systray.ini b/.config/polybar/modules/systray.ini new file mode 100644 index 0000000..37c037d --- /dev/null +++ b/.config/polybar/modules/systray.ini @@ -0,0 +1,4 @@ +[module/systray] +type = internal/tray +format-margin = 8pt +tray-spacing = 16pt diff --git a/.config/polybar/modules/volume.ini b/.config/polybar/modules/volume.ini new file mode 100644 index 0000000..1ab275f --- /dev/null +++ b/.config/polybar/modules/volume.ini @@ -0,0 +1,8 @@ +[module/volume] +type = internal/pulseaudio +format-volume-prefix = " " +format-volume-prefix-foreground = ${colours.primary} +format-volume = +label-volume = %percentage%% +label-muted = muted +label-muted-foreground = ${colours.disabled} diff --git a/.config/polybar/modules/window.ini b/.config/polybar/modules/window.ini new file mode 100644 index 0000000..52a836a --- /dev/null +++ b/.config/polybar/modules/window.ini @@ -0,0 +1,3 @@ +[module/window] +type = internal/xwindow +label = %title:0:60:...% diff --git a/.config/polybar/modules/workspaces.ini b/.config/polybar/modules/workspaces.ini new file mode 100644 index 0000000..71157c1 --- /dev/null +++ b/.config/polybar/modules/workspaces.ini @@ -0,0 +1,18 @@ +[module/workspaces] +type = internal/xworkspaces + +label-active = %name% +label-active-background = ${colours.background-alt} +label-active-underline = ${colours.primary} +label-active-padding = 1 + +label-occupied = %name% +label-occupied-padding = 1 + +label-urgent = %name% +label-urgent-background = ${colours.alert} +label-urgent-padding = 1 + +label-empty = %name% +label-empty-foreground = ${colours.disabled} +label-empty-padding = 1