From 974d697b0dcaf46ce720f38c562e7e95830c7da8 Mon Sep 17 00:00:00 2001 From: Haelnorr Date: Mon, 24 Jun 2024 17:49:33 +1000 Subject: [PATCH] fixed issues with polybar and i3 config --- .config/i3/config | 10 +--------- .config/polybar/config.ini | 6 +++--- .config/polybar/launch_polybar.sh | 6 +++--- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index dd6ac4b..197d44d 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -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 diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index e23f4d6..ebd0d13 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -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 diff --git a/.config/polybar/launch_polybar.sh b/.config/polybar/launch_polybar.sh index 06b90ac..052c8ca 100755 --- a/.config/polybar/launch_polybar.sh +++ b/.config/polybar/launch_polybar.sh @@ -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