This commit is contained in:
Marco Thomas
2021-03-22 11:45:17 +01:00
parent 6bd43114dc
commit b90e03fc03
6 changed files with 13 additions and 42 deletions

View File

@@ -51,33 +51,22 @@ fixed-center = true
line-size = 0
tray-position = right
font-0 = "Product Sans:pixelsize=10:weight=regular;2"
#font-1 = "Noto Sans CJK JP:antialiase=false:pixelsize=11;3"
font-1 = "Stick:pixelsize=13;3"
font-1 = "Stick:pixelsize=13;2"
font-2 = "Material Design Icons:size=10;3"
wm-restack = i3
modules-left = i3 spotify
modules-center = date
modules-right = volume
[bar/bottom]
inherit = bar/main
bottom = true
override-redirect = true
modules-left = memory cpu
modules-center =
modules-right =
tray-position = right
modules-right = memory cpu volume sep
[bar/laptop]
inherit = bar/main
modules-right = volume battery
modules-right = memory cpu volume battery sep
# ======================================== MODULES
[module/i3]
@@ -175,7 +164,8 @@ animation-charging-framerate = 1000
[module/volume]
type = internal/pulseaudio
format-volume = <bar-volume>
format-volume = <label-volume>
#<bar-volume>
interval = 2
@@ -249,3 +239,7 @@ format-connected-prefix = "󰤨 "
label-connected = %essid%
format-disconnected = "󰤮 No Connection"
[module/sep]
type = custom/text
content = |

View File

@@ -146,7 +146,7 @@ export FZF_DEFAULT_OPTS='--preview="head {}" --layout=reverse --bind=tab:down --
## fzf Bindings in zsh (C-r and C-t)
if [[ -x $(which fzf 2> /dev/null) ]]
then
source ~/scripts/key-bindings.zsh
source ~/scripts/key_bindings.zsh
else
bindkey '^R' history-incremental-search-backward
fi

View File

@@ -1,22 +0,0 @@
#!/bin/sh
FONT="Product Sans:pixelsize=15:antialias=true:rgba=rgb"
BGCOL="#000000"
FGCOL="#ffffff"
SELBGCOL="#98c379"
SELFGCOL="#000000"
COMMANDS="
poweroff\n
reboot\n
lock\n
"
command=$(echo -e $COMMANDS | \
dmenu -fn "$FONT" -nb $BGCOL -nf $FGCOL -sb $SELBGCOL -sf $SELFGCOL)
[ "$command" = "" ] && exit 1
if [ "$command" = "lock" ]; then
lock.sh && exit 0
else
systemctl $command && exit 0
fi

View File

@@ -3,7 +3,6 @@ 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
MONITOR=$mon polybar --reload bottom &
if [ $mon = "eDP" ]; then
MONITOR=$mon polybar --reload laptop &
else