i3 draft
This commit is contained in:
parent
41ea974e49
commit
e77dec2d94
6 changed files with 319 additions and 0 deletions
51
common/desktop_environment/i3/polybar/config
Normal file
51
common/desktop_environment/i3/polybar/config
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
[bar/top]
|
||||
width = 100%
|
||||
height = 28
|
||||
background = #1a1b26
|
||||
foreground = #c0caf5
|
||||
modules-left = workspace
|
||||
modules-center = date cpu memory
|
||||
modules-right = pulseaudio battery network
|
||||
|
||||
environment = {
|
||||
TERM = xterm-256color
|
||||
}
|
||||
|
||||
[module/workspace]
|
||||
type = internal/xworkspaces
|
||||
pin-workspaces = true
|
||||
wrap-scroll = false
|
||||
; icons for numbers
|
||||
format-underline = #7dcae4
|
||||
label = %name%
|
||||
label-foreground = #c0caf5
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 5
|
||||
format = %b %d, %H:%M
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
format = %percentage:2.0%%
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
format = %used_percent%%
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
format = {volume}%
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = AC
|
||||
format-charging = %percentage%%
|
||||
format-discharging = %percentage%%
|
||||
|
||||
[module/network]
|
||||
type = internal/network
|
||||
interface = auto
|
||||
format-connected = %essid% (%signal_strength%%)
|
||||
format-disconnected = Disconnected
|
||||
6
common/desktop_environment/i3/polybar/launch.sh
Normal file
6
common/desktop_environment/i3/polybar/launch.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
# Launch polybar on each connected monitor
|
||||
MONITORS=$(xrandr --query | grep " connected" | cut -d' ' -f1)
|
||||
for m in $MONITORS; do
|
||||
MONITOR=$m polybar --reload top &
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue