From 902eefa8506ff5b3ba0b830a876ae6bac30130e1 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Fri, 13 Mar 2020 13:18:30 +0100 Subject: [PATCH] Modify polybar.laptop config and updot script --- botfiles/.config/nvim/init.vim | 2 ++ botfiles/.config/polybar/config.laptop | 29 ++++++++++---------------- updot | 13 +++++++++++- 3 files changed, 25 insertions(+), 19 deletions(-) diff --git a/botfiles/.config/nvim/init.vim b/botfiles/.config/nvim/init.vim index 70060b6..37ff16d 100644 --- a/botfiles/.config/nvim/init.vim +++ b/botfiles/.config/nvim/init.vim @@ -185,6 +185,8 @@ let g:lightline = { "================ " Plugin configs "================ +let g:move_key_modifier = 'S' + " ALE - Asynchronous Lint Engine hi ALEWarning cterm=undercurl hi ALEError cterm=undercurl diff --git a/botfiles/.config/polybar/config.laptop b/botfiles/.config/polybar/config.laptop index a6ca1d8..e85920e 100644 --- a/botfiles/.config/polybar/config.laptop +++ b/botfiles/.config/polybar/config.laptop @@ -12,6 +12,7 @@ bg= ${xrdb:background} fg = ${xrdb:foreground} border = ${xrdb:border_unfocused} +border_f = ${xrdb:border_focused} ;~~~~~ ; bar @@ -28,7 +29,7 @@ font-2 = "Font Awesome 5 Free:style=Solid:pixelsize=12:antialias=true;3" background = ${colors.bg} foreground = ${colors.fg} -line-size = 3 +line-size = 0 line-color = ${colors.fg} border-size = 0 @@ -61,28 +62,20 @@ enable-scroll = false reverse-scroll = false fuzzy-match = true -ws-icon-0 = "1;" -ws-icon-1 = "2;" -ws-icon-2 = "3;" -ws-icon-3 = "4;" -ws-icon-4 = "5;" -ws-icon-5 = "6;" -ws-icon-6 = "7;" -ws-icon-7 = "8;" - format = label-monitor = %name% -label-focused = %index% %icon% -label-focused-background = ${colors.border} -label-focused-overline = ${colors.fg} -label-occupied = %index% %icon% +label-focused = %index% +label-focused-background = ${colors.border_f} +label-occupied-background = ${colors.border} +label-occupied = %index% label-occupied-padding = 1 label-focused-padding = 1 -label-unfocused-padding = 0 -label-visible-padding = 0 -label-urgent = %index% %icon% +label-unfocused-padding = 1 +label-visible-padding = 1 +label-urgent = %index% label-urgent-padding = 1 -label-empty = +label-empty = %index% +label-empty-padding = 1 ;~~~~~ ; MPD diff --git a/updot b/updot index 44c5d9b..8faad54 100755 --- a/updot +++ b/updot @@ -1,12 +1,23 @@ -#!/usr/bin/sh +#!/usr/bin/env sh echo "Adding configs to dotfiles repo..." + cd ~ cp .zshrc .Xresources .aliases .bashrc .zprofile .bash_profile .local/share/TelegramDesktop/tdata/shortcuts-custom.json ~/Dotfiles/botfiles/ &>/dev/null cd ~/.scripts/ cp lockscreen powermenu screenshot update-check updater websearch ~/Dotfiles/botfiles/.scripts/ &>/dev/null cd ~/.config + +if [ "$HOSTNAME" = "pc" ]; then + cat sxhkd/sxhkdrc > sxhkd/sxhkdrc.pc + cat polybar/config > polybar/config.pc +elif [ "$HOSTNAME" = "laptop" ]; then + cat sxhkd/sxhkdrc > sxhkd/sxhkdrc.laptop + cat polybar/config > polybar/config.laptop +fi + cp -r autostart bspwm dconf dunst GIMP gtk-3.0 gtk-2.0 homepage mpd ncmpcpp neofetch nvim picom polybar qutebrowser ranger rofi sxhkd vifm vis vlc wallpapers yay zsh ~/Dotfiles/botfiles/.config/ &>/dev/null cd ~/Dotfiles/botfiles/.config/ rm -rf nvim/bundle zsh/plugins mpd/database zsh/history mpd/mpd.log mpd/pid mpd/state mpd/sticker.sql vis/vis.log ncmpcpp/lyrics sxhkd/sxhkdrc polybar/config + echo "Done."