Skip to content

Commit

Permalink
i3 use polybar from now
Browse files Browse the repository at this point in the history
  • Loading branch information
at-github committed Feb 19, 2023
1 parent dd76023 commit 42ad72e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 30 deletions.
26 changes: 1 addition & 25 deletions i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions i3status/config
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion polybar/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ secondary = #081e2b
alert = #A54242
disabled = #222222

[bar/example]
[bar/main]
width = 100%
height = 24pt
radius = 6
Expand Down
13 changes: 13 additions & 0 deletions polybar/launch.sh
Original file line number Diff line number Diff line change
@@ -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..."

0 comments on commit 42ad72e

Please sign in to comment.