Skip to content
Permalink
Browse files

add zeal

add pfetch wrapper
note screenshots symlink check
sync defaults/update
  • Loading branch information
neeasade committed Nov 26, 2019
1 parent 03c590f commit 5eb9a8f206a725683d47a69dfcf1c494767d1f06
@@ -1,8 +1,23 @@
# -*- mode: sh -*-

pfetch() {
export PF_SEP=""
export PF_ASCII="linux"
export PF_ASCII="GNU"
# title os kernel host uptime pkgs memory wm de shell editor palette
export PF_SYNC=t

export PF_INFO="ascii n n title theme editor shell wm playlist"
# todo: use github.com/neeasade/pfetch neeasade branch
# this function is just for reference
EDITOR='𝓮𝓶𝓪𝓬𝓼' SHELL='M-x shell' ~/git/og/pfetch

# rm -rf "$path_ext"
}

sysinfo() {
clear
ufetch
pfetch
music info
pcs() { for i in {0..7}; do echo -en "\e[${1}$((30+$i))m \u2588\u2588 \e[0m"; done; }
printf "\n%s\n%s\n\n" "$(pcs)" "$(pcs '1;')"
@@ -25,7 +40,12 @@ clean_shot() {

shot_location() {
clean_shot
mkdir -p $HOME/Screenshots

# the check is because it might be a symlink
if [ ! -d $HOME/Screenshots ]; then
mkdir $HOME/Screenshots
fi

mkdir -p $HOME/Last_Shot

echo "$HOME/Screenshots/$(date +%y-%m-%d-%H:%M:%S).png" > "$HOME/Last_Shot/.shot.txt"
@@ -34,8 +54,8 @@ shot_location() {

shot() {
# eval $(slop)
G="$(slop -p ${1:-0})"
maim -g ${G} "$(shot_location)"
g=$(slop -p ${1:-0})
maim -g ${g} "$(shot_location)"
}

shellshot() {
@@ -62,7 +82,7 @@ upshot() {

# current monitor only - bspwm specific
monshot() {
json="$(bspc query -T -m)"
json=$(bspc query -T -m)
jget() {
echo "$json" | jq .rectangle.$1
}
@@ -81,7 +101,7 @@ settitle() {
}

defaulttitle() {
settitle "$(basename $PWD) - $(basename $SHELL)"
settitle "$(basename "$PWD") - $(basename "$SHELL")"
}

linewrap() {
@@ -197,8 +217,8 @@ page() {
}

dotadd() {
file="$(find ~/bin | fzf)" || return
file="$(basename "$file")"
file=$(find ~/bin | fzf) || return
file=$(basename "$file")
echo mv "$HOME/bin/$file" "$HOME/.dotfiles/bin/bin/$file"
mv "$HOME/bin/$file" "$HOME/.dotfiles/bin/bin/$file"
cd "$HOME/.dotfiles"
@@ -104,6 +104,7 @@ super + {_,shift,alt} + space
XF86Audio{Prev,Next,Play}
mpc -q {prev,next,toggle}

# todo: shouldn't this be a ponymix call like below??
XF86Audio{LowerVolume,RaiseVolume,Mute}
amixer -q set Master {3%-,3%+,toggle}

@@ -120,13 +121,11 @@ Pause
super + {minus,equal}
ponymix {decrease,increase} 5; notify-send --urgency=low "Volume: $(ponymix get-volume)"

# you are already using comma and period for window children lol
# < > `
super + {comma,period,grave}
player.sh {prev,next,toggle}

F10
music bl

F9
sh -c "$(. $HOME/.profile && shot)"

@@ -0,0 +1,51 @@

[General]
check_for_update=false
hide_on_close=false
minimize_to_systray=false
show_systray_icon=true
start_minimized=false

[content]
custom_css_file=
dark_mode=false
default_fixed_font_size=0
default_font_family=serif
default_font_size=16
disable_ad=false
external_link_policy=@Variant(\0\0\0\x7f\0\0\0)Zeal::Core::Settings::ExternalLinkPolicy\0\0\0\0\0)
highlight_on_navigate=true
minimum_font_size=0
sans_serif_font_family={{st_font_variable}}
serif_font_family={{st_font_variable}}
fixed_font_family={{st_font}}
smooth_scrolling=false

[docsets]
path={{HOME}}/.local/share/Zeal/Zeal/docsets

[global_shortcuts]
show=

[internal]
install_id=973836e2-f16c-4f44-ae1a-f1f4725f7849
version=0.6.0

[proxy]
authenticate=false
host=
password=
port=0
type=1
username=

[search]
fuzzy_search_enabled=false

[state]
splitter_geometry=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\0\0\0\x4\xb0\0\xff\xff\xff\xff\x1\0\0\0\x1\0)
toc_splitter_state=@ByteArray()
window_geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\0\0\x5\xf\0\0\x2\xdf\0\0\t\xe1\0\0\x5\x81\0\0\x5$\0\0\x2\xf4\0\0\t\xcc\0\0\x5l\0\0\0\0\0\0\0\0\n\0)

[tabs]
open_new_tab_after_active=false
@@ -16,13 +16,13 @@ b_monocle_window_percent=.55
b_bspwmrc_extend=""

# mkb script, l for loader
# ◼ ◻ ◻
l_complete=""
l_empty=""
l_sep=""
l_complete=""
l_empty=""
l_sep=""
l_start=""
l_end=""


# Panel variables
p_format="dropdown:desktop:github:title|org_task|dynamicmpd:volume:weather:clock"
p_height=16 # Panel height.
@@ -65,7 +65,9 @@ p_desktop_monocle_label='M'

# default reload times for panel sections
p_mail_reload=30
p_desktop_reload="bspc subscribe"
# p_desktop_reload="bspc subscribe"
p_desktop_reload="cgrep bgroups && cat /tmp/bspgroups_out || bspc subscribe"

p_title_reload="(xtitle -s & bspc subscribe desktop_layout)"
p_weather_reload=600
p_updates_reload=600
@@ -237,6 +237,8 @@ load_dunst() {

d_width=400

# todo: make this a theme option: make dunst width dynamic

# top center
# mon_width=$(bspc query -T -m | jq -r .rectangle.width)
# d_x_middle=$(( (mon_width / 2) - (d_width/2) ))
@@ -266,6 +268,10 @@ load_zathura() {
margs zathura .config/zathura/zathurarc
}

load_zeal() {
margs zeal .config/Zeal/Zeal.conf
}

load_mintty() {
trim_alphas

@@ -57,6 +57,8 @@ settings() {
emacs_powerline_scale="1.0"
PROMPT_CHAR='%'



# bspwm
b_border_width=1
b_window_gap=30
@@ -65,7 +67,7 @@ settings() {
xpad &
"

x_padding=20
x_padding=10

b_normal_border_color=eeeff0
b_active_border_color=cecece
@@ -38,7 +38,7 @@ settings() {
c_frame_opacity="0.0"

# bspwm
b_border_width=8
b_border_width=2
b_window_gap=30
b_normal_border_color="2e2e2e"

0 comments on commit 5eb9a8f

Please sign in to comment.
You can’t perform that action at this time.