Permalink
Browse files

misc

  • Loading branch information...
neeasade committed Jan 3, 2019
1 parent 04d4b7d commit e9cc14dd7b75bbf94d7c780c886013cd5c742530
@@ -97,12 +97,17 @@ playlist() {
fi
}

info() {
infoname() {
name="$(mpc -f '%title% - %artist%' | head -n 1)"
if [ "$name" = ' - ' ]; then
name="$(basename "$(mpc -f '%file%' | head -n 1)")"
name="${name%.*}"
fi
echo "$name"
}

info() {
name="$(infoname)"
playlist_info="$(echo playlist: $(cat ~/Music/playlist/current)$(playlist_length))"

length="$(wc -L <<< "$name")"
@@ -7,11 +7,9 @@ _ipc_socket="${XDG_RUNTIME_DIR}/qutebrowser/ipc-$(echo -n "$USER" | md5sum | cut
_url="$@"


bspc config ignore_ewmh_focus true
printf '{"args": ["%s"], "target_arg": null, "version": "%s", "protocol_version": %d, "cwd": "%s"}\n' \
"${_url}" \
"${_qb_version}" \
"${_proto_version}" \
"${PWD}" | socat - UNIX-CONNECT:"${_ipc_socket}"

bspc config ignore_ewmh_focus false
@@ -1,6 +1,6 @@
gtk-theme-name="{{THEME_NAME}}"
gtk-icon-theme-name="acyl"
gtk-font-name="{{`echo -n $st_font | sed 's/-/ /;s/Mono//'`}}"
gtk-font-name="{{st_font_variable}}"
gtk-cursor-theme-name="Adwaita"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_ICONS
@@ -12,4 +12,4 @@ gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
gtk-xft-rgba="rgb"
gtk-xft-rgba="rgb"
@@ -80,7 +80,8 @@ theme = {

# colors
colors = theme['colors']
config.set('colors.webpage.bg', "#{{background}}");
# this is only worth it if it's a light color, todo: use css instead
# config.set('colors.webpage.bg', "#{{background}}");

def setToBG(colortype, target):
config.set('colors.' + target, colors['bg'][colortype])
@@ -0,0 +1,3 @@
#!/bin/sh

elisp '(length (ns/circe-unread-query-buffers))'
@@ -134,6 +134,13 @@ dzen_theme() {
done
}
dzen_circe() {
content+=("Circe DMs")
for bufname in $(eval printf $(elisp '(ns/make-lines (ns/circe-unread-query-buffers))')); do
content+=("^ca(1, nohup ejump $bufname & pkill dzen) $bufname ^ca()")
done
}
dzen_github() {
content+=("Github Notifications")
IFS=$'\n'
@@ -0,0 +1,2 @@
#!/bin/sh
elisp "(counsel-switch-to-buffer-or-window \"${1}\")"
@@ -1,10 +1,6 @@
#!/usr/bin/env bash
# neeasade
# depends: dmenu slop xdo bspc

# mark external rules for reset
external_rules="$(bspc config external_rules_command)"
bspc config external_rules_command ""
# depends: dmenu slop bspc

# get program name to launch using dmenu cache:
cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
@@ -22,15 +18,5 @@ if [ -z "$program" ]; then
)
fi

read -r X Y W H G ID < <(slop -f "%x %y %w %h %g %i")
bspc rule -a \* -o state=floating

bspc rule -a \* -o state=floating rectangle=$(slop -f "%g")
$program &

while read -r event monId deskId ipId nodeId; do
xdotool windowmove $nodeId $X $Y &
xdotool windowsize $nodeId $W $H &

bspc config external_rules_command "$external_rules"
break
done < <(bspc subscribe node_add)
@@ -19,9 +19,9 @@ b_bspwmrc_extend=""

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

@@ -81,6 +81,7 @@ p_themeSwitch_mouse_left="dzen.sh theme"
# p_org_task_mouse_right="elisp org-clock-current-task || bspc node -f \$(xdotool search --onlyvisible --class Emacs); elisp '(org-pomodoro)'"
p_dropdown_mouse_left="dzen.sh menu"
p_github_mouse_left="dzen.sh github"
p_circe_dms_mouse_left="dzen.sh circe"
p_clock_mouse_left="dzen.sh cal"
p_volume_scroll_down="ponymix decrease 5"
p_volume_scroll_up="ponymix increase 5"
@@ -110,7 +111,8 @@ weechat_prefix_suffix="▌"
weechat_input_items="[input_search],[input_paste], ▙,input_text"

# xst
st_font="Droid Sans Mono-8"
st_font="Droid Sans Mono-10"
st_font_variable="Droid Sans-10"
st_borderpx=10
st_cursorshape=2
st_cursorthickness=2
@@ -140,7 +140,7 @@ load_emacs() {
}

load_xst() {
pkill -x --signal USR1 st
pkill -x --signal USR1 xst
}

load_bspwm() {
@@ -248,8 +248,11 @@ load_qutebrowser() {

margs qutebrowser .config/qutebrowser/config.py

bspc config ignore_ewmh_focus true
qb_command ':config-source'
qb_command ':reload' # reload current page w/ css
sleep 1
bspc config ignore_ewmh_focus false
}

# dunst

0 comments on commit e9cc14d

Please sign in to comment.