From 3bfbeac789cc692f28e505b3d9b7a82c08590b50 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Thu, 17 Aug 2023 10:27:39 +0200 Subject: [PATCH] Updates --- polybar/config.ini | 27 ++++++++++++++++++++++++++- polybar/launch.sh | 26 +++++++++++++++++++++++--- qtile/config.py | 4 ++-- 3 files changed, 51 insertions(+), 6 deletions(-) diff --git a/polybar/config.ini b/polybar/config.ini index 7971594..8a73c11 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -34,7 +34,31 @@ font-0 = "Fira Sans SemiBold:size=11;2" font-1 = "Font Awesome 6 Free Solid:pixelsize=11;2" modules-left = appmenu xworkspaces brave outlook teams calculator chatgpt modules-center = xwindow -modules-right = battery youtubesubs xkeyboard mysystem filesystem pulseaudio memory cpu date exit +modules-right = battery xkeyboard mysystem filesystem pulseaudio memory cpu date exit +cursor-click = pointer +cursor-scroll = ns-resize +enable-ipc = true +tray-position = right +tray-detached = false + +[bar/mypolybar] +width = 100% +height = 20pt +radius = 0 +background = ${colors.background} +foreground = ${colors.foreground} +border-size = 0pt +border-color = #00000000 +padding-left = 2 +padding-right = 1 +module-margin = 2 +separator = "" +separator-foreground = ${colors.disabled} +font-0 = "Fira Sans SemiBold:size=11;2" +font-1 = "Font Awesome 6 Free Solid:pixelsize=11;2" +modules-left = appmenu xworkspaces brave outlook teams calculator chatgpt +modules-center = xwindow +modules-right = battery xkeyboard youtubesubs mysystem filesystem pulseaudio memory cpu date exit cursor-click = pointer cursor-scroll = ns-resize enable-ipc = true @@ -48,6 +72,7 @@ format-prefix = " " format-prefix-foreground = ${colors.primary} interval = 300 click-left = "brave --app=https://studio.youtube.com" +label-foreground = #FFFFFF [module/outlook] type = custom/text diff --git a/polybar/launch.sh b/polybar/launch.sh index 74686b4..f06c018 100755 --- a/polybar/launch.sh +++ b/polybar/launch.sh @@ -1,7 +1,27 @@ #!/usr/bin/env bash +# ____ _ _ ____ _ _ +# / ___|| |_ __ _ _ __| |_ | _ \ ___ | |_ _| |__ __ _ _ __ +# \___ \| __/ _` | '__| __| | |_) / _ \| | | | | '_ \ / _` | '__| +# ___) | || (_| | | | |_ | __/ (_) | | |_| | |_) | (_| | | +# |____/ \__\__,_|_| \__| |_| \___/|_|\__, |_.__/ \__,_|_| +# |___/ +# +# by Stephan Raabe (2023) +# ----------------------------------------------------- +# ----------------------------------------------------- +# Quit running polybar instances +# ----------------------------------------------------- polybar-msg cmd quit -# killall -q polybar -polybar -r mybar -echo "Bars launched..." +# ----------------------------------------------------- +# Loading the configuration based on the username +# ----------------------------------------------------- + +if [[ $USER = "raabe" ]] +then + polybar -r mypolybar +else + polybar -r mybar +fi + diff --git a/qtile/config.py b/qtile/config.py index 8774e4e..5b56f77 100644 --- a/qtile/config.py +++ b/qtile/config.py @@ -177,8 +177,8 @@ ColorI=(colordict['colors']['color9']) layout_theme = { "border_width": 3, "margin": 15, - "border_focus": ColorC, - "border_normal": "FFFFFF", + "border_focus": "FFFFFF", + "border_normal": ColorC, "single_border_width": 3 }