From 0cf3b61e0084cbcd3ca74ec7d6e855b35a350bf1 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sun, 6 Jun 2021 18:08:06 +0200 Subject: [PATCH] wip --- i3/xrandr | 2 ++ polybar/config | 75 +++++++++++++++++++++++++++++++++----------------- 2 files changed, 52 insertions(+), 25 deletions(-) create mode 100644 i3/xrandr diff --git a/i3/xrandr b/i3/xrandr new file mode 100644 index 0000000..3d9cc4d --- /dev/null +++ b/i3/xrandr @@ -0,0 +1,2 @@ +xrandr --output DisplayPort-4 --rate 29 --mode "3840x2160" --right-of eDP +https://gist.github.com/miguelmota/0f102edbeecef67daa1d46c7dbd64ec7 diff --git a/polybar/config b/polybar/config index ad17f5e..ff7f5af 100644 --- a/polybar/config +++ b/polybar/config @@ -51,7 +51,7 @@ font-2 = siji:pixelsize=10;1 modules-left = i3 modules-center = -modules-right = xbacklight alsa memory cpu wlan eth battery temp_cpu temp_gpu temp_nvme date powermenu +modules-right = backlight alsa memory cpu wlan eth_intern eth_dock battery temp_cpu temp_gpu temp_nvme date powermenu tray-position = right tray-padding = 2 @@ -72,22 +72,30 @@ cursor-scroll = ns-resize type = internal/xwindow label = %title:0:30:...% -[module/xkeyboard] -type = internal/xkeyboard -blacklist-0 = num lock - -format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-prefix-underline = ${colors.secondary} - -label-layout = %layout% -label-layout-underline = ${colors.secondary} - -label-indicator-padding = 2 -label-indicator-margin = 1 -label-indicator-background = ${colors.secondary} -label-indicator-underline = ${colors.secondary} +[module/backlight] +type = internal/backlight +; Use the following command to list available cards: +; ; $ ls -1 /sys/class/backlight/ +card = amdgpu_bl0 +; +; ; (unreleased) +; ; Use the `/sys/class/backlight/actual-brightness` file +; ; rather than the regular `brightness` file. +; ; Defaults to true unless the specified card is an amdgpu backlight. +; use-actual-brightness = true +; +; ; Enable changing the backlight with the scroll wheel +; ; NOTE: This may require additional configuration on some systems. Polybar will +; ; write to `/sys/class/backlight/${self.card}/brightness` which requires polybar +; ; to have write access to that file. +; ; DO NOT RUN POLYBAR AS ROOT. +; ; The recommended way is to add the user to the +; ; `video` group and give that group write-privileges for the `brightness` file. +; ; See the ArchWiki for more information: +; ; https://wiki.archlinux.org/index.php/Backlight#ACPI +; ; Default: false +enable-scroll = true [module/i3] type = internal/i3 @@ -164,7 +172,7 @@ ramp-signal-3 =  ramp-signal-4 =  ramp-signal-foreground = ${colors.foreground-alt} -[module/eth] +[module/eth_intern] type = internal/network interface = enp2s0 interval = 3.0 @@ -180,6 +188,23 @@ format-disconnected = ;label-disconnected = %ifname% disconnected ;label-disconnected-foreground = ${colors.foreground-alt} +[module/eth_dock] +type = internal/network +interface = enx482ae352c8d7 +interval = 3.0 + +format-connected-underline = #55aa55 +format-connected-prefix = " " +format-connected-prefix-foreground = ${colors.foreground-alt} +label-connected = %local_ip% + +format-disconnected = +;format-disconnected = +;format-disconnected-underline = ${self.format-connected-underline} +;label-disconnected = %ifname% disconnected +;label-disconnected-foreground = ${colors.foreground-alt} + + [module/date] type = internal/date interval = 5 @@ -384,25 +409,25 @@ label-separator = | label-separator-foreground = ${colors.foreground-alt} menu-0-0 = reboot -menu-0-0-exec = menu-open-1 +menu-0-0-exec = #powermenu.open.1 menu-0-1 = power off -menu-0-1-exec = menu-open-2 +menu-0-1-exec = #powermenu.open.2 menu-0-2 = suspend -menu-0-2-exec = menu-open-3 +menu-0-2-exec = #powermenu.open.3 menu-0-3 = hibernate -menu-0-3-exec = menu-open-4 +menu-0-3-exec = #powermenu.open.4 menu-1-0 = reboot -menu-1-0-exec = sudo reboot +menu-1-0-exec = reboot menu-2-0 = power off -menu-2-0-exec = sudo poweroff +menu-2-0-exec = poweroff menu-3-0 = suspend -menu-3-0-exec = sudo systemctl suspend +menu-3-0-exec = systemctl suspend menu-4-0 = hibernate -menu-4-0-exec = sudo systemctl hibernate +menu-4-0-exec = systemctl hibernate [settings]