From 58dfb81510a6c522d6df1d3ecc05fd98a81cbe5a Mon Sep 17 00:00:00 2001 From: ITmail-dk <48917593+ITmail-dk@users.noreply.github.com> Date: Wed, 5 Jan 2022 16:57:55 +0100 Subject: [PATCH] fix --- README.md | 2 +- config/polybar/config-external | 492 ++++++++++++++++++++ config/polybar/run-polybar.sh | 10 +- install-scripts/apt-install-all-packages.sh | 2 +- 4 files changed, 500 insertions(+), 6 deletions(-) create mode 100644 config/polybar/config-external diff --git a/README.md b/README.md index 5b03a7a..6d81f6a 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,6 @@ After installation, Reboot the computer and login with your new user. ### And run this Command line to install everything: -sudo apt install -y git && cd ~ && git clone https://github.com/ITmail-dk/bspwm-install-ma-dte && . /bspwm-install-ma-dte/bspwm-install-martin-dte-debian.sh +sudo apt install -y git && cd ~ && git clone https://github.com/ITmail-dk/bspwm-install-ma-dte && . ~/bspwm-install-ma-dte/bspwm-install-martin-dte-debian.sh Here is what the command line does, it installs the GIT package an goes to your home directory and clones the installation from git and runs the installation script afterwards. diff --git a/config/polybar/config-external b/config/polybar/config-external new file mode 100644 index 0000000..6fa11d4 --- /dev/null +++ b/config/polybar/config-external @@ -0,0 +1,492 @@ +; +; _ _ ____ ____ ___ _ _ _ ____ ____ ____ _ _ ____ _ ____ +; |\/| |__| |__/ | | |\ | [__ __ | | | |\ | |___ | | __ +; | | | | | \ | | | \| ___] |___ |__| | \| | | |__] +; +; +;========================================================================= +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; Please refer to the web documentation hosted at: +; https://github.com/polybar/polybar#configuration +; +; https://github.com/polybar/polybar/wiki/Configuration +; +;========================================================================= + +[colors] +;background = ${xrdb:color0:#222} +background = #F2151a1c +background-alt = #151a1c +;foreground = ${xrdb:color7:#222} +foreground = #ededed +foreground-alt = #555 +primary = #035a99 +secondary = #0d4f8c +alert = #e31b37 +icon-c1 = #fafafa +icon-c2 = #fafafa +icon-c3 = #fafafa +underline-c1 = #fafafa +underline-c2 = #fafafa +underline-c3 = #fafafa +c1 = #fafafa +c2 = #484c4f +c3 = #44525c +c4 = #23272e +c5 = #6cb349 +c6 = #903ea8 +c7 = #f5d133 +c8 = #eb6e34 +c9 = #d15213 + + +[bar/bspwmbar-external] +;monitor = ${env:MONITOR:HDMI-1} +width = 100% +height = 28 +;offset-x = 1% +;offset-y = 1% +radius = 0 +fixed-center = false + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +;# Option to provide a transparent can in x number of Pixels or a solid color around polubar +border-size = 0 +border-color = #00000000 + +padding-left = 2 +padding-right = 2 + +module-margin-left = 0 +module-margin-right = 3 + +; Findt font name - fc-list | grep FONT NAME HER +; font-N = ; +font-0 = "DejaVu Sans:size=11;2" +font-1 = "DejaVu Sans:size=14;2" +font-2 = "Font Awesome 6 Free:style=Regular:size=12;2" +font-3 = "Font Awesome 5 Free:style=Regular:size=12;2" +font-4 = "Material Icons:style=Regular:size=12;2" +font-5 = "DejaVuSansMono Nerd Font:style=Book:size=12;2" +;font-6 = "DejaVu Sans:style=Regular:size=11;2" + +modules-left = bspwm xwindow +;modules-center = mpd +;modules-right = pulseaudio cpu memory wlan eth date temperature battery powermenu + +; Models list - filesystem xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu + +tray-position = right +tray-padding = 2 +;tray-background = #0063ff + +wm-restack = bspwm +override-redirect = true + +;scroll-up = bspwm-desknext +;scroll-down = bspwm-deskprev + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/xwindow] +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/filesystem] +type = internal/fs +interval = 250 + +mount-0 = / + +label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.foreground-alt} + +; ######################## +; ##### BSPWM MODULE ##### +; ######################## + +[module/bspwm] +type = internal/bspwm +pin-workspaces = true + +enable-scroll = false + +label-focused = %index% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.underline-c1} +label-focused-padding = 2 + +label-occupied = %index% +label-occupied-padding = 2 + +label-urgent = %index%! +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +label-empty = %index% +label-empty-foreground = ${colors.foreground-alt} +label-empty-padding = 2 + +; Separator in between workspaces ON / OFF +; label-separator = | + +; ######################## +; ##### BSPWM MODULE ##### +; ######################## + +;########################## +;# new bspwm module new + icons start +;[module/bspwm] +;type = internal/bspwm + +;enable-click = true +;enable-scroll = true +;reverse-scroll = true +;pin-workspaces = true + +;ws-icon-0 = 1; +;ws-icon-1 = 2; +;ws-icon-2 = 3; +;ws-icon-3 = 4; +;ws-icon-4 = 5; +;ws-icon-5 = 6; +;ws-icon-6 = 7; +;ws-icon-7 = 8; +;ws-icon-8 = 9; +;ws-icon-9 = 10; +;ws-icon-default = "" + + +;format = + +;label-focused = %icon% +;label-focused-background = ${colors.background} +;label-focused-underline= ${colors.underline-c1} +;label-focused-padding = 2 +;label-focused-foreground = ${colors.icon-c1} + +;label-occupied = %icon% +;label-occupied-padding = 2 +;label-occupied-background = ${colors.background} + +;label-urgent = %icon% +;label-urgent-padding = 2 + +;label-empty = %icon% +;label-empty-foreground = ${colors.foreground-alt} +;label-empty-padding = 2 +;label-empty-background = ${colors.background} +;label-monocle = "  " +;label-monocle-foreground = ${colors.foreground} +;label-tiled = "  " +;label-tiled-foreground = ${colors.foreground} +;label-fullscreen = "  " +;label-fullscreen-foreground = ${colors.foreground} +;label-floating = "  " +;label-floating-foreground = ${colors.foreground} +;label-pseudotiled = "  " +;label-pseudotiled-foreground = ${colors.foreground} +;label-locked = "  " +;label-locked-foreground = ${colors.foreground} +;label-sticky = "  " +;label-sticky-foreground = ${colors.foreground} +;label-private = "  " +;label-private-foreground = ${colors.foreground} + +; Separator in between workspaces +;label-separator = | +;label-separator-padding = 1 +;label-separator-foreground = #ffb52a + +;########################## +;# new bspwm module new + icons end + +[module/mpd] +type = internal/mpd +format-online = + +icon-prev =  +icon-stop =  +icon-play =  +icon-pause =  +icon-next =  + +label-song-maxlen = 25 +label-song-ellipsis = true + +[module/xbacklight] +type = internal/xbacklight + +format =