summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2021-01-02 12:08:19 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2021-01-02 12:08:19 -0700
commite165f221c8eb4d2a1befc640a378a8d1ab242812 (patch)
treef501984d1dd07ea955d08fa97169fe16e44edcc7 /.config
parente60581469dbbb7a8d0a8400d7fc8474826435a0e (diff)
Add new nvidia module
Diffstat (limited to '.config')
-rw-r--r--.config/polybar/config1
-rw-r--r--.config/polybar/main.ini2
-rw-r--r--.config/polybar/nvidia.ini11
3 files changed, 13 insertions, 1 deletions
diff --git a/.config/polybar/config b/.config/polybar/config
index 65d0cdc..64ed17a 100644
--- a/.config/polybar/config
+++ b/.config/polybar/config
@@ -34,6 +34,7 @@ include-file = $XDG_CONFIG_HOME/polybar/wlan.ini
include-file = $XDG_CONFIG_HOME/polybar/dunst.ini
include-file = $XDG_CONFIG_HOME/polybar/player_mpris.ini
include-file = $XDG_CONFIG_HOME/polybar/player_mpris_zscroll.ini
+include-file = $XDG_CONFIG_HOME/polybar/nvidia.ini
# Other modules that came by default on the example config.
# The ones that I configured are on separate ini files.
diff --git a/.config/polybar/main.ini b/.config/polybar/main.ini
index 752d2ff..12ebdb9 100644
--- a/.config/polybar/main.ini
+++ b/.config/polybar/main.ini
@@ -4,7 +4,7 @@ monitor = ${env:MAINMON:HDMI-0}
modules-left=bspwm xwindow
modules-center=
-modules-right=player_mpris_zscroll xkeyboard cpu memory pulseaudio date dunst powermenu
+modules-right=player_mpris_zscroll xkeyboard nvidia cpu memory pulseaudio date dunst powermenu
# tray-position = right
# tray-padding = 2
diff --git a/.config/polybar/nvidia.ini b/.config/polybar/nvidia.ini
new file mode 100644
index 0000000..12f5b00
--- /dev/null
+++ b/.config/polybar/nvidia.ini
@@ -0,0 +1,11 @@
+[module/nvidia]
+type = custom/script
+exec-if = nvidia-smi
+exec = nvidia_info
+
+tail = true
+interval = 2
+
+format-prefix = " "
+format = <label>
+format-underline = ${colors.green}