Initial commit with modifications.
This commit is contained in:
parent
1bab32fe6a
commit
c64ba45e0b
6 changed files with 59 additions and 34 deletions
55
config
55
config
|
@ -1,29 +1,30 @@
|
|||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/polybar/polybar
|
||||
|
||||
include-file = /home/$USER/.config/polybar/colors
|
||||
include-file = /home/shadow8t4/.config/polybar/colors
|
||||
|
||||
include-file = /home/$USER/.config/polybar/modules/battery
|
||||
include-file = /home/$USER/.config/polybar/modules/cpu
|
||||
include-file = /home/$USER/.config/polybar/modules/date
|
||||
include-file = /home/$USER/.config/polybar/modules/filemanager
|
||||
include-file = /home/$USER/.config/polybar/modules/i3
|
||||
include-file = /home/$USER/.config/polybar/modules/launcher
|
||||
include-file = /home/$USER/.config/polybar/modules/lockscreen
|
||||
include-file = /home/$USER/.config/polybar/modules/memory
|
||||
include-file = /home/$USER/.config/polybar/modules/pulseaudio
|
||||
include-file = /home/$USER/.config/polybar/modules/session
|
||||
include-file = /home/$USER/.config/polybar/modules/temperature
|
||||
include-file = /home/$USER/.config/polybar/modules/title
|
||||
include-file = /home/$USER/.config/polybar/modules/window
|
||||
include-file = /home/$USER/.config/polybar/modules/wlan
|
||||
include-file = /home/$USER/.config/polybar/modules/xbacklight
|
||||
;include-file = /home/shadow8t4/.config/polybar/modules/battery
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/cpu
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/date
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/filemanager
|
||||
;include-file = /home/shadow8t4/.config/polybar/modules/i3
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/launcher
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/lockscreen
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/memory
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/pulseaudio
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/session
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/temperature
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/title
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/window
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/lan
|
||||
;include-file = /home/shadow8t4/.config/polybar/modules/wlan
|
||||
;include-file = /home/shadow8t4/.config/polybar/modules/xbacklight
|
||||
|
||||
include-file = /home/$USER/.config/polybar/modules/code
|
||||
include-file = /home/$USER/.config/polybar/modules/firefox
|
||||
include-file = /home/$USER/.config/polybar/modules/google-chrome
|
||||
include-file = /home/$USER/.config/polybar/modules/steam
|
||||
include-file = /home/$USER/.config/polybar/modules/terminal
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/code
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/firefox
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/google-chrome
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/steam
|
||||
include-file = /home/shadow8t4/.config/polybar/modules/terminal
|
||||
|
||||
[bar/main]
|
||||
width = 100%
|
||||
|
@ -34,12 +35,12 @@ fixed-center = true
|
|||
background = ${colors.semi-trans}
|
||||
foreground = ${colors.fg}
|
||||
|
||||
font-0 = "SauceCodePro Nerd Font:style=Medium:size=9;2"
|
||||
font-1 = "FontAwesome:size=10;2"
|
||||
font-2 = "FontAwesome:size=12;3"
|
||||
font-0 = "DejaVu Sans Mono for Powerline:style=Book:size=9;2"
|
||||
font-1 = "FontAwesome:style=Regular:size=10;2"
|
||||
font-2 = "FontAwesome:style=Solid:size=12;3"
|
||||
|
||||
modules-left = launcher window filemanager google-chrome firefox steam code i3
|
||||
modules-right = memory cpu xbacklight pulseaudio wlan battery temperature date session
|
||||
modules-left = launcher window filemanager google-chrome firefox steam code
|
||||
modules-right = memory cpu pulseaudio temperature date session
|
||||
|
||||
tray-position = right
|
||||
tray-maxsize = 16
|
||||
|
@ -49,4 +50,4 @@ cursor-click = pointer
|
|||
cursor-scroll = ns-resize
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
screenchange-reload = true
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
HARDCODE_USER=shadow8t4
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall polybar
|
||||
|
||||
|
@ -7,4 +9,4 @@ killall polybar
|
|||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch polybar
|
||||
polybar main -c /home/$USER/.config/polybar/config &
|
||||
polybar main -c /home/$HARDCODE_USER/.config/polybar/config &
|
||||
|
|
22
modules/lan
Normal file
22
modules/lan
Normal file
|
@ -0,0 +1,22 @@
|
|||
[module/lan]
|
||||
type = internal/network
|
||||
interface = enp4s0
|
||||
interval = 1.0
|
||||
|
||||
format-connected = <label-connected>
|
||||
format-connected-background = ${colors.label}
|
||||
format-connected-foreground = ${colors.white}
|
||||
format-connected-prefix = %{T2}%{T-}
|
||||
format-connected-prefix-background = ${colors.prefix}
|
||||
format-connected-prefix-foreground = ${colors.white}
|
||||
format-connected-prefix-padding = 1
|
||||
label-connected = " %downspeed% %upspeed% "
|
||||
|
||||
format-disconnected = <label-disconnected>
|
||||
format-disconnected-background = ${colors.label}
|
||||
format-disconnected-foreground = ${colors.white}
|
||||
format-disconnected-prefix = %{T2}%{T-}
|
||||
format-disconnected-prefix-background = ${colors.prefix}
|
||||
format-disconnected-prefix-foreground = ${colors.white}
|
||||
format-disconnected-prefix-padding = 1
|
||||
label-disconnected = " disconnected "
|
|
@ -1,8 +1,8 @@
|
|||
[module/session]
|
||||
type = custom/script
|
||||
|
||||
click-left = obsession-logout -p ""
|
||||
click-left = gnome-session-quit
|
||||
exec = echo %{T2}%{T-}
|
||||
format-background = ${colors.prefix}
|
||||
format-foreground = ${colors.session}
|
||||
format-padding = 1
|
||||
format-padding = 1
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
hwmon-path = /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon1/temp1_input
|
||||
warn-temperature = 60
|
||||
|
||||
format = <ramp><label>
|
||||
|
@ -17,4 +17,4 @@ ramp-1 = %{T2}%{T-}
|
|||
ramp-2 = %{T2}%{T-}
|
||||
ramp-background = ${colors.prefix}
|
||||
ramp-foreground = ${colors.white}
|
||||
ramp-padding = 1
|
||||
ramp-padding = 1
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp2s0
|
||||
interface = wlp1s0
|
||||
interval = 1.0
|
||||
|
||||
format-connected = <label-connected>
|
||||
|
@ -19,4 +19,4 @@ format-disconnected-prefix = %{T2}%{T-}
|
|||
format-disconnected-prefix-background = ${colors.prefix}
|
||||
format-disconnected-prefix-foreground = ${colors.white}
|
||||
format-disconnected-prefix-padding = 1
|
||||
label-disconnected = " disconnected "
|
||||
label-disconnected = " disconnected "
|
||||
|
|
Loading…
Reference in a new issue