app-launcher, some other laptop fixes

This commit is contained in:
Daniel Flanagan 2017-02-20 22:11:11 -06:00
parent e1c88a1392
commit bdc6f2dc25
5 changed files with 16 additions and 6 deletions

9
de/app-launcher Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
LAUNCHER_FONT=$(xrdb -query | sed -ne 's/.*font:\s*xft:\(.*\)\-.*$/\1/p' | head -n 1)
LAUNCHER_FONT_SIZE=$(xrdb -query | sed -ne 's/.*font:\s*xft:.*\-\(.*\)$/\1/p' | head -n 1)
HIGHLIGHT_COLOR=$(xrdb -query | sed -ne 's/.*color1*:\s*\(.*\)$/\1/p' | head -n 1)
BACKGROUND_COLOR=$(xrdb -query | sed -ne 's/.*background:\s*\(.*\)$/\1/p' | head -n 1)
FOREGROUND_COLOR=$(xrdb -query | sed -ne 's/.*foreground:\s*\(.*\)$/\1/p' | head -n 1)
rofi -show run -font "$LAUNCHER_FONT $LAUNCHER_FONT_SIZE" -lines 16 -width 10 -padding 8 -fuzzy -bw "$BORDER_WIDTH" -color-enabled -color-window "$BACKGROUND_COLOR","$HIGHLIGHT_COLOR","$HIGHLIGHT_COLOR","$BACKGROUND_COLOR" -color-normal "$BACKGROUND_COLOR","$FOREGROUND_COLOR","$BACKGROUND_COLOR","$HIGHLIGHT_COLOR","$FOREGROUND_COLOR" -separator-style none -hide-scrollbar

View file

@ -25,11 +25,6 @@ if command -v urxvtd >/dev/null 2>&1; then
fi
if command -v sxhkd >/dev/null 2>&1; then
export LAUNCHER_FONT=$(xrdb -query | sed -ne 's/.*font:\s*xft:\(.*\)\-.*$/\1/p' | head -n 1)
export LAUNCHER_FONT_SIZE=$(xrdb -query | sed -ne 's/.*font:\s*xft:.*\-\(.*\)$/\1/p' | head -n 1)
export HIGHLIGHT_COLOR=$(xrdb -query | sed -ne 's/.*color1*:\s*\(.*\)$/\1/p' | head -n 1)
export BACKGROUND_COLOR=$(xrdb -query | sed -ne 's/.*background:\s*\(.*\)$/\1/p' | head -n 1)
export FOREGROUND_COLOR=$(xrdb -query | sed -ne 's/.*foreground:\s*\(.*\)$/\1/p' | head -n 1)
# export HIGHLIGHT_COLOR=$(xrdb -query | sed -ne 's/.*font:\s*xft:.*\-\(.*\)$/\1/p' | head -n 1)
sxhkd &
fi

View file

@ -166,7 +166,7 @@ super + shift + Return
# spawn the app launcher
super + space
rofi -show run -font "$LAUNCHER_FONT $LAUNCHER_FONT_SIZE" -lines 16 -width 10 -padding 8 -fuzzy -bw "$BORDER_WIDTH" -color-enabled -color-window "$BACKGROUND_COLOR","$HIGHLIGHT_COLOR","$HIGHLIGHT_COLOR","$BACKGROUND_COLOR" -color-normal "$BACKGROUND_COLOR","$FOREGROUND_COLOR","$BACKGROUND_COLOR","$HIGHLIGHT_COLOR","$FOREGROUND_COLOR" -separator-style none -hide-scrollbar
"$DOTFILES_PATH/de/app-launcher"
# lock the desktop
super + ctrl + shift + l

View file

@ -11,6 +11,7 @@ sudo pacman -S \
openssl \
ruby \
python python-pip \
python2 python2-pip \
pass \
qutebrowser \
bash-completion \
@ -39,5 +40,8 @@ pacaur -S \
siji-git terminus-font ttf-monaco gohufont artwiz-fonts phallus-fonts-git \
--noconfirm --noedit
sudo pip3 install neovim
sudo pip2 install neovim
# sudo ln -s /usr/bin/google-chrome-unstable /usr/bin/chrome

View file

@ -78,3 +78,5 @@ Here are some bullet points on my workflow as a Web Developer:
* Add a file containing common variables in `common/`.
* Add more content to the other sections?
* GTK theme
* Disable caps lock?