Update polybaR

This commit is contained in:
Marco Thomas
2021-02-18 08:41:05 +01:00
parent 76d8cf19ee
commit e657b69dc9
7 changed files with 21 additions and 22 deletions

View File

@@ -24,12 +24,13 @@
## Other Dependencies
+ [asetroot](https://github.com/Wilnath/asetroot)
+ [i3-swallow](https://github.com/jamesofarrell/i3-swallow)
+ [neovim-remote](https://github.com/mhinz/neovim-remote)
+ [vim-plug](https://github.com/junegunn/vim-plug)
+ fcitx + mozc: Japanese Keyboard - [Install](https://www.youtube.com/watch?v=lJoXhS4EUJs) fcitx-im fcitx-configtool fcitx-mozc
+ fcitx + mozc: Japanese Keyboard - [Install](https://www.youtube.com/watch?v=lJoXhS4EUJs) - fcitx-im fcitx-configtool fcitx-mozc
+ fzf
+ light
+ [i3-swallow](https://github.com/jamesofarrell/i3-swallow)
+ pactl
+ playerctl

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 &

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 122 KiB