From 262179e1a6f69723b1b7cc48910cab1411c90519 Mon Sep 17 00:00:00 2001 From: Leon Kowarschick Date: Wed, 13 May 2020 23:16:13 +0200 Subject: [PATCH] add gpu to polybar --- files/.Xresources | 14 ++++++------- files/.config/alacritty/alacritty.yml | 4 ++-- files/.config/fish/config.fish | 1 - files/.config/polybar/config.ini | 12 +++++++++-- .../polybar/polybar-scripts/xmonad-status.sh | 21 ++++++++++--------- files/scripts/THE_BEST_SCRIPT.sh | 3 +++ files/scripts/gpuinfo.sh | 5 ++++- 7 files changed, 37 insertions(+), 23 deletions(-) create mode 100755 files/scripts/THE_BEST_SCRIPT.sh diff --git a/files/.Xresources b/files/.Xresources index 2363086..5b767d4 100644 --- a/files/.Xresources +++ b/files/.Xresources @@ -3,13 +3,13 @@ Xcursor.size: 16 Xcursor.theme: capitaine-cursors-light -!Xft.autohint: 0 -!Xft.antialias: 1 -!Xft.hinting: true -!Xft.hintstyle: hintslight -!Xft.dpi: 96 -!Xft.rgba: rgb -!Xft.lcdfilter: lcddefault +Xft.autohint: 0 +Xft.antialias: 1 +Xft.hinting: true +Xft.hintstyle: hintslight +Xft.dpi: 96 +Xft.rgba: rgb +Xft.lcdfilter: lcddefault rofi.lines: 5 rofi.eh: 2 diff --git a/files/.config/alacritty/alacritty.yml b/files/.config/alacritty/alacritty.yml index 07de22c..5db2aab 100644 --- a/files/.config/alacritty/alacritty.yml +++ b/files/.config/alacritty/alacritty.yml @@ -311,8 +311,8 @@ font: normal: # >>= >= #family: JetBrainsMono Nerd Font #family: Iosevka - family: cozette - #family: Terminus (TTF) + #family: cozette + family: Terminus (TTF) #family: cherry #family: lucy tewi2a #family: Scientifica diff --git a/files/.config/fish/config.fish b/files/.config/fish/config.fish index 448d035..57f61ea 100644 --- a/files/.config/fish/config.fish +++ b/files/.config/fish/config.fish @@ -41,7 +41,6 @@ end function c set -l result (/home/leon/scripts/conf) commandline -r "$result" - commandline -f repaint commandline -f execute end diff --git a/files/.config/polybar/config.ini b/files/.config/polybar/config.ini index 154fbf4..fbb3eba 100644 --- a/files/.config/polybar/config.ini +++ b/files/.config/polybar/config.ini @@ -102,13 +102,14 @@ font-0 = "cherry:size=12;2" ;font-0 = "cozette:size=10;2" font-1 = "Symbola:size=8;1" font-2 = "FontAwesome5Free:style=Solid:size=8;2" -font-3 = "Iosevka Nerd Font:size=17;4" +font-3 = "Iosevka Nerd Font:size=10;2" +;font-4 = "Iosevka Nerd Font:size=17;4" ;font-1 = "FontAwesome:fontformat=truetype:size=12;1" modules-left = xmonad modules-center = timerDisplay spotify gitlab-pipeline player-mpv-tail time -modules-right = pulseaudio-control updates-arch filesystem memory cpu date +modules-right = pulseaudio-control updates-arch gpuinfo filesystem memory cpu date tray-position = ${env:TRAY_POSITION:right} tray-padding = 2 @@ -197,6 +198,13 @@ type = custom/script exec = ~/.config/polybar/polybar-scripts/updates-arch-combined.sh interval = 600 + +[module/gpuinfo] +type = custom/script +exec = "sudo ~/scripts/gpuinfo.sh" +format = "%{F#d3869b}%{T3}%{T-}%{F-}