Replaced py3status with polybar

This commit is contained in:
dbroqua 2020-11-02 09:56:35 +01:00
parent d04260976c
commit 7c61730e32
4 changed files with 32 additions and 14 deletions

6
Bin/mouse_battery.sh Executable file
View File

@ -0,0 +1,6 @@
#! /bin/bash
MOUSE_PATH=`qdbus --system org.freedesktop.UPower|grep mouse`
PERCENTAGE=`qdbus --system org.freedesktop.UPower ${MOUSE_PATH} org.freedesktop.UPower.Device.Percentage`
echo ${PERCENTAGE}%

View File

@ -171,22 +171,22 @@ client.background $nord9
# I3STATUS
#
bar {
status_command py3status
# position top
# mode dock
# modifier $mod
#bar {
# status_command py3status
## position top
## mode dock
## modifier $mod
colors {
background $nord0
statusline $nord9
# colors {
# background $nord0
# statusline $nord9
focused_workspace $nord0 $nord9
active_workspace $nord0 $nord9
inactive_workspace $nord9 $nord0
urgent_workspace $nord0 $nord13
}
}
# focused_workspace $nord0 $nord9
# active_workspace $nord0 $nord9
# inactive_workspace $nord9 $nord0
# urgent_workspace $nord0 $nord13
# }
#}
# -------------------------------------------------------------------------------------------------
# AUTOSTART
@ -203,6 +203,7 @@ exec --no-startup-id libinput-gestures-setup start
exec --no-startup-id i3-msg 'exec /usr/bin/terminator'
exec --no-startup-id i3-msg 'exec /usr/bin/firefox'
exec --no-startup-id i3-msg 'exec /usr/bin/spotify'
exec_always --no-startup-id ~/.config/i3/polybar.sh &
# -------------------------------------------------------------------------------------------------
# WALLPAPER

10
config/i3/polybar.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
# Launch polybar
polybar bottom &

1
config/polybar Submodule

@ -0,0 +1 @@
Subproject commit 58d0a15365ac21caf1600c8117dbb9f4fde7a400