From fbdbbe94523954ce151b6ef3a6ef86b9e91b947d Mon Sep 17 00:00:00 2001 From: JaeYoo-Im Date: Tue, 12 Oct 2021 18:21:07 +0900 Subject: [PATCH] Exwm : Polybar for workspace / WSL2 bridge mode --- .config/polybar/config | 141 ++++++++++++++++++++++++++++++++++++ .emacs.d/desktop.el | 32 +++++++- .emacs.d/desktop.org | 38 +++++++++- .emacs.d/emacs.org | 31 ++++---- .emacs.d/exwm/start-exwm.sh | 6 +- 5 files changed, 227 insertions(+), 21 deletions(-) create mode 100644 .config/polybar/config diff --git a/.config/polybar/config b/.config/polybar/config new file mode 100644 index 0000000..e65dbd0 --- /dev/null +++ b/.config/polybar/config @@ -0,0 +1,141 @@ +; Docs: https://github.com/polybar/polybar +;========================================================== + +[settings] +screenchange-reload = true + +[global/wm] +margin-top = 0 +margin-bottom = 0 + +[colors] +background = #f0232635 +background-alt = #576075 +foreground = #A6Accd +foreground-alt = #555 +primary = #ffb52a +secondary = #e60053 +alert = #bd2c40 +underline-1 = #c792ea + +[bar/panel] +width = 100% +height = 24 +offset-x = 0 +offset-y = 0 +fixed-center = true +enable-ipc = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 2 +line-color = #f00 + +border-size = 0 +border-color = #00000000 + +padding-top = 5 +padding-left = 1 +padding-right = 1 + +module-margin = 1 + +font-0 = "Cantarell:size=12:weight=bold;2" +font-1 = "Font Awesome:size=10;2" +font-2 = "Material Icons:size=15;5" +font-3 = "Fira Mono:size=10;-3" + +modules-left = exwm-workspace +modules-right = cpu temperature battery date + +tray-position = right +tray-padding = 2 +tray-maxsize = 28 + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/exwm-workspace] +type = custom/ipc +hook-0 = emacsclient -e "exwm-workspace-current-index" | sed -e 's/^"//' -e 's/"$//' +initial = 1 +format-underline = ${colors.underline-1} +format-padding = 1 + +[module/cpu] +type = internal/cpu +interval = 2 +format = 