diff --git a/config b/config index 9c7772b..486edac 100644 --- a/config +++ b/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 \ No newline at end of file +screenchange-reload = true diff --git a/launch.sh b/launch.sh index f5490c2..c10cf75 100755 --- a/launch.sh +++ b/launch.sh @@ -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 & \ No newline at end of file +polybar main -c /home/$HARDCODE_USER/.config/polybar/config & diff --git a/modules/lan b/modules/lan new file mode 100644 index 0000000..037ba5c --- /dev/null +++ b/modules/lan @@ -0,0 +1,22 @@ +[module/lan] +type = internal/network +interface = enp4s0 +interval = 1.0 + +format-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 = +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 " diff --git a/modules/session b/modules/session index 1f4b933..46634d7 100644 --- a/modules/session +++ b/modules/session @@ -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 \ No newline at end of file +format-padding = 1 diff --git a/modules/temperature b/modules/temperature index 9aa2459..e7ecc4c 100644 --- a/modules/temperature +++ b/modules/temperature @@ -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 =