fixed issues with polybar and i3 config

This commit is contained in:
2024-06-24 17:49:33 +10:00
parent 9d15742c52
commit 974d697b0d
3 changed files with 7 additions and 15 deletions

View File

@@ -4,19 +4,17 @@ set $mod Mod4
font pango:JetBrainsMonoNerdFont 14
exec --no-startup-id picom --no-fading-openclose
exec --no-startup-id feh --bg-scale ~/.wallpapers/active.png
exec --no-startup-id feh --bg-fill ~/.wallpapers/1 --bg-fill ~/.wallpapers/2 --bg-fill ~/.wallpapers/3
exec --no-startup-id xrdb -merge ~/.Xresources
exec_always --no-startup-id setxkbmap -option ctrl:nocaps
exec_always killall polybar
exec_always --no-startup-id ~/.config/polybar/launch_polybar.sh
exec --no-startup-id dex --autostart --environment i3
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
@@ -65,12 +63,6 @@ bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+percent split h
# split in vertical orientation
bindsym $mod+quotedbl split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle

View File

@@ -54,10 +54,10 @@ secondary = ${colors.mantle}
alert = ${colors.red}
disabled = ${colors.subtext1}
[bar/toph]
[bar/haelnorr]
monitor = ${env:MONITOR:}
width = 100%
height = 28pt
height = 18pt
radius = 0
; dpi = 96
@@ -80,7 +80,7 @@ module-margin = 1
separator = |
separator-foreground = ${colors.flamingo}
font-0 = MesloLGS Nerd Font Mono:size=22;6
font-0 = MesloLGS Nerd Font Mono:size=12;6
modules-left = xworkspaces xwindow
modules-right = pulseaudio battery memory cpu wlan date

View File

@@ -1,7 +1,7 @@
if type "xrand"; then
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --reload toph &
MONITOR=$m polybar --reload haelnorr &
done
else
polybar --reload toph &
polybar --reload haelnorr &
fi