From 42ad72ec66b9193b8ce779b0dcbedaf7ca182c24 Mon Sep 17 00:00:00 2001 From: Tarik Amar Date: Sun, 19 Feb 2023 01:19:19 +0100 Subject: [PATCH] i3 use polybar from now --- i3/config | 26 +------------------------- i3status/config | 8 ++++---- polybar/config.ini | 2 +- polybar/launch.sh | 13 +++++++++++++ 4 files changed, 19 insertions(+), 30 deletions(-) create mode 100755 polybar/launch.sh diff --git a/i3/config b/i3/config index 0eb405e..bc6ad1f 100644 --- a/i3/config +++ b/i3/config @@ -164,9 +164,6 @@ gaps top 5px font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 font pango:FontAwesome 10 -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) - set $primary-bg #113c55 set $primary-txt #aaaaaa set $secondary-bg #081e2b @@ -182,28 +179,7 @@ client.focused_inactive $default-bg $default-bg $secondary-txt client.unfocused $default-bg $default-bg $secondary-txt client.urgent $black $black $black -bar { - # For install py3status on debian - # apt-get install python-stdeb - # pypi-install py3status - status_command py3status -c ~/.config/i3status/config - - strip_workspace_numbers yes - - position top - - colors { - background $default-bg - statusline $primary-txt - - focused_workspace $primary-bg $primary-bg $primary-txt - active_workspace $default-bg $default-bg $secondary-txt - inactive_workspace $default-darker-bg $default-darker-bg $secondary-txt - urgent_workspace #dc322f #dc322f #002b36 - } - - workspace_min_width 40 -} +exec_always --no-startup-id ~/.config/polybar/launch.sh ####################################################################### # automatically start i3-config-wizard to offer the user to create a diff --git a/i3status/config b/i3status/config index 78e0a92..808e572 100644 --- a/i3status/config +++ b/i3status/config @@ -7,10 +7,10 @@ general { interval = 1 } -#order += "disk /" #TODO home -#order += "wireless wlp0s26u1u4" #depend of the interface -#order += "ethernet eth0" -#order += "volume master" +order += "disk /" #TODO home +order += "wireless wlp0s26u1u4" #depend of the interface +order += "ethernet eth0" +order += "volume master" order += "time" #order += "cpu_temperature 0" diff --git a/polybar/config.ini b/polybar/config.ini index 119c4e1..4b14ff4 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -28,7 +28,7 @@ secondary = #081e2b alert = #A54242 disabled = #222222 -[bar/example] +[bar/main] width = 100% height = 24pt radius = 6 diff --git a/polybar/launch.sh b/polybar/launch.sh new file mode 100755 index 0000000..f6983db --- /dev/null +++ b/polybar/launch.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Terminate already running bar instances +# If all your bars have ipc enabled, you can use +polybar-msg cmd quit +# Otherwise you can use the nuclear option: +# killall -q polybar + +# Launch bar1 and bar2 +echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log +polybar main 2>&1 | tee -a /tmp/polybar1.log & disown + +echo "Bars launched..."