From a0432f3d562214721cc8fa394bc9559045a13b0c Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Apr 2018 19:03:18 -0700 Subject: [PATCH] switch from polybar to i3blocks --- src/larbs_user.sh | 21 +++++++++++---------- src/progs.csv | 3 +-- src/welcome_i3 | 1 + 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/larbs_user.sh b/src/larbs_user.sh index a77974d..f7cf44f 100755 --- a/src/larbs_user.sh +++ b/src/larbs_user.sh @@ -35,15 +35,15 @@ git clone https://github.com/lukesmithxyz/voidrice.git >/dev/null && rsync -va voidrice/ /home/$(whoami) >/dev/null && rm -rf voidrice >/dev/null -dialog --infobox "Now compiling polybar. This is the last program, but may take some time..." 10 60 -wifi=$(ls /sys/class/net | grep wl) -eth=$(ls /sys/class/net | grep e) -bat=$(ls /sys/class/power_supply | grep BAT) -adp=$(ls /sys/class/power_supply | grep ADP) -bl=$(ls /sys/class/backlight | grep _backlight) -sed -i "s/wlp3s0/$wifi/g; s/enp0s25/$eth/g" /home/$(whoami)/.config/polybar/config /home/$(whoami)/.bashrc -sed -i "s/BAT0/$bat/g; s/ADP1/$adp/g; s/intel_backlight/$bl/g" /home/$(whoami)/.config/polybar/config -packer --noconfirm -S polybar || packer --noconfirm -S polybar-git +#dialog --infobox "Now compiling polybar. This is the last program, but may take some time..." 10 60 +#wifi=$(ls /sys/class/net | grep wl) +#eth=$(ls /sys/class/net | grep e) +#bat=$(ls /sys/class/power_supply | grep BAT) +#adp=$(ls /sys/class/power_supply | grep ADP) +#bl=$(ls /sys/class/backlight | grep _backlight) +#sed -i "s/wlp3s0/$wifi/g; s/enp0s25/$eth/g" /home/$(whoami)/.config/polybar/config /home/$(whoami)/.bashrc +#sed -i "s/BAT0/$bat/g; s/ADP1/$adp/g; s/intel_backlight/$bl/g" /home/$(whoami)/.config/polybar/config +#packer --noconfirm -S polybar || packer --noconfirm -S polybar-git echo Downloading email setup... git clone https://github.com/lukesmithxyz/mutt-wizard.git /home/$(whoami)/.config/mutt >/dev/null @@ -57,7 +57,8 @@ git clone https://github.com/LukeSmithxyz/shortcut-sync.git >/dev/null && rm -rf shortcut-sync/ >/dev/null dialog --infobox "Preparing welcome message..." 4 50 -curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/src/welcome_i3 >> /home/$(whoami)/.config/i3/config + +echo "exec_always --no-startup-id notify-send -i ~/.scripts/larbs.png 'Welcome to LARBS: Press Super+F1 for the manual.' -t 10000" >> /home/$(whoami)/.config/i3/config dialog --infobox "Reseting Pulseaudio..." 4 50 killall pulseaudio >/dev/null diff --git a/src/progs.csv b/src/progs.csv index 34f9807..e5ac519 100644 --- a/src/progs.csv +++ b/src/progs.csv @@ -24,6 +24,7 @@ gnome-keyring,,system keyring, highlight,r,ranger previews highlighted, htop-vim-git,D,system info, i3-gaps,,window manager, +i3blocks,,status bar, i3lock,,screen lock, imagemagick,D,"image conversion and modification, lock screen", libcaca,r,, @@ -65,7 +66,6 @@ sc-im,,spreadsheet manager, screenfetch,D,system stats, screenkey,,screencasting keyboard view, scrot,D,screenshots, -siji-git,p,polybar font symbols, speedometer,,internet traffic view, texlive-lang,X,LaTeX packages, texlive-most,X,LaTeX packages, @@ -84,7 +84,6 @@ vim-live-latex-preview,X,latex preview, vim-pathogen,,vim package manager, w3m,?,, wget,,, -wireless_tools,p,polybar wifi module, xcape,,for double mapping of escape, xdotool,,moving windows on command, xfce-theme-blackbird,,dark theme, diff --git a/src/welcome_i3 b/src/welcome_i3 index 84e2406..d875b89 100644 --- a/src/welcome_i3 +++ b/src/welcome_i3 @@ -7,3 +7,4 @@ for_window [instance="welcome"] resize set 625 400 for_window [instance="welcome"] border pixel 0 # WARNING! While the above welcome message is there, do not place commands below it! # They will be deleted by the "hello" bash command. +exec --no-startup-id notify-send -i ~/.scripts/larbs.png "Welcome to LARBS!"