diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 21ac32c..1096a98 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -p='picom sxhkd stalonetray lemonbar' +p='picom sxhkd polybar' for i in $p; do pkill "$i"; done sxhkd & @@ -35,10 +35,7 @@ wmname LG3D # Set background feh --bg-fill ~/Pictures/Wallpapers/laughingman.jpg & -# lemonbar-xft-git -~/.config/lemonbar/lemonbar.sh | lemonbar -p -f "Fira Code-12" -f "Font Awesome 5 Free" -f "Noto Color Emoji" -B '#000000' -F '#FFFFFF' & - -stalonetray & +"$HOME"/.config/polybar/launch.sh # Compositor to prevent screen tearing picom --config ~/.config/compton.conf -b @@ -47,8 +44,3 @@ picom --config ~/.config/compton.conf -b if xinput list | grep -qi 'mouse'; then xmodmap -e "pointer = 3 2 1 " # swap mouse buttons fi - -sleep 3 - -xdo above -t "$(xdo id -n root)" "$(xdo id -n lemonbar)" -xdo above -t "$(xdo id -n lemonbar)" "$(xdo id -n stalonetray)" diff --git a/.config/nixpkgs/home.nix b/.config/nixpkgs/home.nix index 478bc63..3921c91 100644 --- a/.config/nixpkgs/home.nix +++ b/.config/nixpkgs/home.nix @@ -24,6 +24,7 @@ fzf gimp glibcLocales + go golint google-cloud-sdk gradle @@ -38,6 +39,7 @@ nmap openvpn pavucontrol + polybar postman python38 pinentry-curses diff --git a/.config/polybar/config b/.config/polybar/config new file mode 100644 index 0000000..0d855a4 --- /dev/null +++ b/.config/polybar/config @@ -0,0 +1,302 @@ + +[colors] +;background = ${xrdb:color0:#222} +background = #000 +background-alt = #444 +foreground = #dfdfdf +foreground-alt = #555 +primary = #ffb52a +secondary = #e60053 +alert = #bd2c40 + +[bar/poly] +monitor = ${env:MONITOR:} +width = 100% +height = 20 +radius = 0.0 +fixed-center = false + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +border-size = 0 +border-color = #00000000 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = Fira Code:size=11;0 + +modules-left = bspwm powermenu +modules-center = xwindow +modules-right = filesystem xbacklight pulseaudio memory cpu wlan battery temperature date + +tray-position = right +tray-padding = 2 +;tray-background = #0063ff + +wm-restack = bspwm + +;override-redirect = true + +scroll-up = bspwm-desknext +scroll-down = bspwm-deskprev + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/xwindow] +type = internal/xwindow +label = %title:0:40:...% + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / + +label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.foreground-alt} + +[module/bspwm] +type = internal/bspwm + +label-focused = %index% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.primary} +label-focused-padding = 2 + +label-occupied = %index% +label-occupied-padding = 2 + +label-urgent = %index%! +label-urgent-background = ${colors.alert} +label-urgent-padding = 2 + +label-empty = %index% +label-empty-foreground = ${colors.foreground-alt} +label-empty-padding = 2 + +; Separator in between workspaces +; label-separator = | + +[module/xbacklight] +type = internal/xbacklight + +format =