##run_once is a script in /usr/bin that prevents running script if it is running already ## ## Load appearance settings xsetroot -cursor_name left_ptr & export GTK2_RC_FILES="$HOME/.gtkrc-2.0" & xrdb merge .Xresources & ## Wallpaper. Nitrogen just draws wallpaper, sh ~/.fehbg & ## compositing. Required for shadows, transparency and stuff. # Alter compton settings if using intel graphics GRAPHIC_CARD=$(lspci | grep -i "vga" | sed 's/.*://' | sed 's/(.*//' | sed 's/^[ \t]*//') if [[ $(echo $GRAPHIC_CARD | grep -i 'intel\|lenovo') != "" ]]; then MCODE='initrd=\intel-ucode.img' sed -i 's/"xrender"/"glx"/' ~/.config/compton.conf grep -q 'vsync = "opengl-swc";' ~/.config/compton.conf || echo 'vsync = "opengl-swc";' >> ~/.config/compton.conf fi ## Reduces flicker. Disabling saves resources. compton -b & ## enable local fonts in .fonts directory xset +fp /usr/share/fonts/local & xset +fp /usr/share/fonts/misc & xset +fp ~/.fonts & xset fp rehash & fc-cache -fv & ## Automount removable media devmon & ## powersaving options xset s off & xset s noblank & xset s noexpose & xset c on & xset -dpms & xbacklight -set 15 & ## Run screenlock when suspending light-locker & ## Make monitor settings persist between reboots eval $(awk -F'=' '/Exec=/ {print $2}' ~/.config/autostart/lxrandr-autostart.desktop) & ## Notify about package updates update-checker 7200 & ## Map super key to trigger rofi when used alone xcape -e 'Super_L=Super_L|Shift_L|space' & ## Polkit agent /usr/lib/mate-polkit/polkit-mate-authentication-agent-1 & ## Gnome keyring gnome-keyring-daemon & thunar --daemon & /usr/lib/mate-notification-daemon/mate-notification-daemon & ## Welcome message sleep 1 && notify-send "Welcome to Manjaro-bspwm! " "Press super + F1 to show keybindings" & #!/usr/bin/env bash # Terminate already running bar instances killall -q polybar # Wait until the processes have been shut down while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Launch bar1 and bar2 echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log polybar bar1 >>/tmp/polybar1.log 2>&1 & polybar bar2 >>/tmp/polybar2.log 2>&1 & echo "Bars launched..."