Update polybaR
This commit is contained in:
@@ -64,7 +64,7 @@ override-redirect = false
|
||||
|
||||
modules-left = i3
|
||||
modules-center = date
|
||||
modules-right = spotify cpu memory volume
|
||||
modules-right = volume spotify cpu memory
|
||||
|
||||
[bar/laptop]
|
||||
inherit = bar/main
|
||||
@@ -186,28 +186,29 @@ format-volume = <label-volume>
|
||||
|
||||
label-volume = %percentage%%
|
||||
format-volume-prefix = " "
|
||||
#format-volume-underline = ${colors.yellow}
|
||||
format-volume-overline = ${colors.red}
|
||||
|
||||
label-muted = Muted
|
||||
format-muted-prefix = " "
|
||||
format-muted-foreground = ${colors.urgent}
|
||||
format-muted-underline = ${colors.urgent}
|
||||
|
||||
[module/spotify]
|
||||
type = custom/script
|
||||
#exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist}: {song} '
|
||||
exec = ~/.config/polybar/scripts/song.sh 2>/dev/null || echo "No player found"
|
||||
exec = ~/.config/polybar/scripts/song.sh 2>/dev/null || echo "Spotify is not running"
|
||||
interval = 1
|
||||
tail = true
|
||||
|
||||
format-prefix = " "
|
||||
#format-underline = ${colors.accent}
|
||||
format-overline = ${colors.green}
|
||||
|
||||
[module/cpu]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/cpu.sh
|
||||
click-left = ~/.config/polybar/scripts/cpu.sh --popup
|
||||
format-prefix = " "
|
||||
#format-underline = ${colors.accent}
|
||||
format-overline = ${colors.yellow}
|
||||
|
||||
[module/memory]
|
||||
type = custom/script
|
||||
@@ -215,7 +216,7 @@ exec = ~/.config/polybar/scripts/memory.sh
|
||||
click-left = ~/.config/polybar/scripts/memory.sh --popup
|
||||
|
||||
format-prefix = " "
|
||||
#format-underline = ${colors.blue}
|
||||
format-overline = ${colors.blue}
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
set -g default-terminal "xterm-256color"
|
||||
set -g default-terminal "tmux-256color"
|
||||
|
||||
#some vi behaviour
|
||||
bind-key -r h select-pane -L
|
||||
|
||||
@@ -97,7 +97,7 @@ setopt hist_ignore_space # ignore commands that start with space
|
||||
setopt hist_verify # show command with history expansion to user before running it
|
||||
setopt share_history # share command history data inside tmux
|
||||
export HISTFILE="$HOME/.zsh_history"
|
||||
export SAVEHIST=1000
|
||||
export SAVEHIST=5000
|
||||
|
||||
# ============================== SSH-Agent
|
||||
if [ -f ~/.ssh/agent.env ] ; then
|
||||
|
||||
@@ -3,16 +3,12 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
if type "xrandr"; then
|
||||
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||
if [ $mon = "eDP" ]; then
|
||||
MONITOR=$mon polybar --reload laptop &
|
||||
else
|
||||
MONITOR=$mon polybar --reload main &
|
||||
# MONITOR=$mon polybar --reload workspaces &
|
||||
# MONITOR=$mon polybar --reload music &
|
||||
# MONITOR=$mon polybar --reload tray &
|
||||
# if [ $mon = "eDP" ]; then
|
||||
# MONITOR=$mon polybar --reload info_laptop &
|
||||
# else
|
||||
# MONITOR=$mon polybar --reload info &
|
||||
# fi
|
||||
fi
|
||||
done
|
||||
else
|
||||
echo "No Bars loaded."
|
||||
notify-send "No screens for polybar were found"
|
||||
fi
|
||||
|
||||
@@ -10,11 +10,12 @@ dunst &
|
||||
picom &
|
||||
nm-applet &
|
||||
|
||||
# wallpaper
|
||||
feh --bg-scale $HOME/data/nextcloud/Wallpaper/wallpaper.png
|
||||
|
||||
# adjust screens on nazarick
|
||||
~/scripts/fix_screens.sh
|
||||
|
||||
# launch polybar
|
||||
~/scripts/polybar.sh &
|
||||
|
||||
# wallpaper
|
||||
# feh --bg-scale $HOME/data/nextcloud/Wallpaper/wallpaper.png
|
||||
asetroot $HOME/data/nextcloud/Wallpaper/Animated/ -t 50 &
|
||||
|
||||
Reference in New Issue
Block a user