Update polybaR
This commit is contained in:
@@ -24,12 +24,13 @@
|
|||||||
|
|
||||||
## Other Dependencies
|
## Other Dependencies
|
||||||
|
|
||||||
|
+ [asetroot](https://github.com/Wilnath/asetroot)
|
||||||
|
+ [i3-swallow](https://github.com/jamesofarrell/i3-swallow)
|
||||||
+ [neovim-remote](https://github.com/mhinz/neovim-remote)
|
+ [neovim-remote](https://github.com/mhinz/neovim-remote)
|
||||||
+ [vim-plug](https://github.com/junegunn/vim-plug)
|
+ [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
|
+ fzf
|
||||||
+ light
|
+ light
|
||||||
+ [i3-swallow](https://github.com/jamesofarrell/i3-swallow)
|
|
||||||
+ pactl
|
+ pactl
|
||||||
+ playerctl
|
+ playerctl
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ override-redirect = false
|
|||||||
|
|
||||||
modules-left = i3
|
modules-left = i3
|
||||||
modules-center = date
|
modules-center = date
|
||||||
modules-right = spotify cpu memory volume
|
modules-right = volume spotify cpu memory
|
||||||
|
|
||||||
[bar/laptop]
|
[bar/laptop]
|
||||||
inherit = bar/main
|
inherit = bar/main
|
||||||
@@ -186,28 +186,29 @@ format-volume = <label-volume>
|
|||||||
|
|
||||||
label-volume = %percentage%%
|
label-volume = %percentage%%
|
||||||
format-volume-prefix = " "
|
format-volume-prefix = " "
|
||||||
#format-volume-underline = ${colors.yellow}
|
format-volume-overline = ${colors.red}
|
||||||
|
|
||||||
label-muted = Muted
|
label-muted = Muted
|
||||||
format-muted-prefix = " "
|
format-muted-prefix = " "
|
||||||
format-muted-foreground = ${colors.urgent}
|
format-muted-foreground = ${colors.urgent}
|
||||||
|
format-muted-underline = ${colors.urgent}
|
||||||
|
|
||||||
[module/spotify]
|
[module/spotify]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
#exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist}: {song} '
|
#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
|
interval = 1
|
||||||
tail = true
|
tail = true
|
||||||
|
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
#format-underline = ${colors.accent}
|
format-overline = ${colors.green}
|
||||||
|
|
||||||
[module/cpu]
|
[module/cpu]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = ~/.config/polybar/scripts/cpu.sh
|
exec = ~/.config/polybar/scripts/cpu.sh
|
||||||
click-left = ~/.config/polybar/scripts/cpu.sh --popup
|
click-left = ~/.config/polybar/scripts/cpu.sh --popup
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
#format-underline = ${colors.accent}
|
format-overline = ${colors.yellow}
|
||||||
|
|
||||||
[module/memory]
|
[module/memory]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
@@ -215,7 +216,7 @@ exec = ~/.config/polybar/scripts/memory.sh
|
|||||||
click-left = ~/.config/polybar/scripts/memory.sh --popup
|
click-left = ~/.config/polybar/scripts/memory.sh --popup
|
||||||
|
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
#format-underline = ${colors.blue}
|
format-overline = ${colors.blue}
|
||||||
|
|
||||||
[module/wlan]
|
[module/wlan]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
set -g default-terminal "xterm-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
|
|
||||||
#some vi behaviour
|
#some vi behaviour
|
||||||
bind-key -r h select-pane -L
|
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 hist_verify # show command with history expansion to user before running it
|
||||||
setopt share_history # share command history data inside tmux
|
setopt share_history # share command history data inside tmux
|
||||||
export HISTFILE="$HOME/.zsh_history"
|
export HISTFILE="$HOME/.zsh_history"
|
||||||
export SAVEHIST=1000
|
export SAVEHIST=5000
|
||||||
|
|
||||||
# ============================== SSH-Agent
|
# ============================== SSH-Agent
|
||||||
if [ -f ~/.ssh/agent.env ] ; then
|
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
|
if type "xrandr"; then
|
||||||
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
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 main &
|
||||||
# MONITOR=$mon polybar --reload workspaces &
|
fi
|
||||||
# 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
|
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "No Bars loaded."
|
notify-send "No screens for polybar were found"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -10,11 +10,12 @@ dunst &
|
|||||||
picom &
|
picom &
|
||||||
nm-applet &
|
nm-applet &
|
||||||
|
|
||||||
# wallpaper
|
|
||||||
feh --bg-scale $HOME/data/nextcloud/Wallpaper/wallpaper.png
|
|
||||||
|
|
||||||
# adjust screens on nazarick
|
# adjust screens on nazarick
|
||||||
~/scripts/fix_screens.sh
|
~/scripts/fix_screens.sh
|
||||||
|
|
||||||
# launch polybar
|
# launch polybar
|
||||||
~/scripts/polybar.sh &
|
~/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 |
Reference in New Issue
Block a user