Skip to content
Permalink
Browse files

sync

  • Loading branch information...
neeasade committed Oct 13, 2019
1 parent a149364 commit 5d005d0b4fe79ad63efe4b1ec728b612689c4cb7
@@ -11,12 +11,11 @@ EXPIRY=600 # default to 10 minutes
[ "$1" -eq "$1" ] 2>/dev/null && EXPIRY=$1 && shift
[ "$VERBOSE" = true ] && echo "Using expiration $EXPIRY seconds"

CMD="$@"
HASH=$(echo "$CMD" | md5sum | awk '{print $1}')
HASH=$(echo "$*" | md5sum | awk '{print $1}')
CACHE="$DIR/$HASH"

test -f "${CACHE}" && \
[ $(expr $(date +%s) - $(date -r "$CACHE" +%s)) -le $EXPIRY ] || \
eval "$CMD" > "${CACHE}"
"$@" > "${CACHE}"

cat "${CACHE}"
cat "${CACHE}"
@@ -6,4 +6,4 @@ mpv="$(type -a mpv | sort | awk 'END{print $3}')"

mpc pause >/dev/null

$mpv --input-ipc-server=/tmp/mpvsocket "$@"
$mpv --screenshot-directory="$HOME/Screenshots_mpv" --input-ipc-server=/tmp/mpvsocket "$@"
@@ -1,5 +1,6 @@
# -*- mode: sh -*-

alias qq=colemak
alias getip="curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'"
alias grep="grep --color=auto"
alias java='java -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
@@ -58,7 +58,8 @@ if $ESHELL && ! $REMOTE && silent $emacs_timeout emacsclient --eval "(progn t)";
}

man() {
elisp "(woman \"$*\") (require 'man) (Man-cleanup-manpage)"
# elisp "(woman \"$*\") (require 'man) (Man-cleanup-manpage)"
elisp "(woman \"$*\")"
}

clear() {
@@ -78,3 +78,5 @@ prompt() {
}

PS1='$(prompt)'

$ESHELL || cursorStyle bar
@@ -3,6 +3,10 @@
super + {_,shift} + w
bspc node -{c,k}

# take a tiled window, make it floating, but in the same position of the tile
super + S
nfloat

super + s
bspc config pointer_follows_focus true; \
bspc node -t $(bspc query -N -n -n .tiled >/dev/null && echo floating || echo tiled); \
@@ -10,13 +10,6 @@ Emacs.theme: {{emacs_theme}}
Emacs.powerlinescale: {{emacs_powerline_scale}}
Emacs.powerline: {{emacs_powerline}}

! dmenu2 can read from Xresources.
dmenu.font: {{p_font_main}}
dmenu.foreground: #{{p_fg_normal}}
dmenu.background: #{{p_bg_normal}}
dmenu.selforeground: #{{p_fg_active}}
dmenu.selbackground: #{{p_bg_active}}
dmenu.dimcolor: #{{p_bg_normal}}

! colors (appended in ltheme script)
*.background: #{{background}}
@@ -1,7 +1,10 @@
#!/usr/bin/env dash
# Toggle the panel on/off

# todo: consider refreshing dunst when you kill the panel
# to adjust offset from top of screen

kill -s TERM $(cat /tmp/panel-pid) || (nohup "{{p_launch_cmd}}" &)


# dunst pgrep's for panel
sleep 0.3

theme refresh dunst
@@ -3,7 +3,6 @@
import os
from qutebrowser.config.configfiles import ConfigAPI # noqa: F401
from qutebrowser.config.config import ConfigContainer # noqa: F401
from enum import Enum

config = config # type: ConfigAPI # noqa: F821
c = c # type: ConfigContainer # noqa: F821
@@ -12,6 +11,7 @@ c = c # type: ConfigContainer # noqa: F821
def nmap(key, command):
"""Bind key to command in normal mode."""
config.bind(key, command, mode='normal')

initial_start = c.tabs.background == False

if initial_start:
@@ -20,7 +20,7 @@ if initial_start:
c.tabs.position = 'top'
c.tabs.show = 'multiple'
c.tabs.indicator.width = 0
c.tabs.title.format = '{title}'
c.tabs.title.format = '{current_title}'
c.tabs.title.alignment = 'center'
c.downloads.position = 'bottom'
c.tabs.favicons.show = 'never'
@@ -32,7 +32,10 @@ if initial_start:
c.input.insert_mode.auto_load = True
c.input.insert_mode.auto_leave = False
c.tabs.background = True
c.editor.command = [ os.environ['EDITOR'] + ' "{}"' ]

if 'EDITOR' in os.environ:
c.editor.command = [os.environ['EDITOR'] + ' "{}"']

c.auto_save.session = True

nmap('b', 'set-cmd-text --space :buffer')
@@ -132,7 +135,7 @@ targets = {
'completion.item.selected.border.bottom',
],

'inactive' : [
'inactive': [
'completion.scrollbar',
'downloads.start',
'messages.info',
@@ -141,7 +144,7 @@ targets = {
'completion.even.bg',
],

'match' : [
'match': [
'completion.match.fg',
'hints.match.fg',
]

This file was deleted.

@@ -1,4 +1,4 @@
#!/usr/bin/env dash
#!/usr/bin/env bash
# take input from bspc subscribe, emit desktop stuff information.
# todo: consider reimplementing click handling.

@@ -1,4 +1,4 @@
#!/usr/bin/env dash

icon rotate
echo $THEME_NAME
theme getval THEME_NAME
@@ -10,7 +10,7 @@ add_switch() {
}

# windows
for wid in $wids; do
for wid in $(bspc query -N -n .leaf); do
add_switch "window: $(xtitle $wid)" "bspc node $wid -g hidden=off; bspc node -f $wid"
done

@@ -36,7 +36,7 @@ open_urls() {

# for url in "$(open_urls)"; do
while read -r url; do
add_switch "tab: $url" "select_action '\- qutebrowser' && qb_command ':buffer $(echo "$url" | sed "s/'//g")'"
add_switch "tab: $url" "select_action '\- qutebrowser' && qb_command ':buffer $(echo "$url" | sed "s/'//g;s/\"// ")'"
done <<< "$(open_urls)"

select_action() {
@@ -1,7 +1,10 @@
#!/usr/bin/env dash
# Toggle the panel on/off

# todo: consider refreshing dunst when you kill the panel
# to adjust offset from top of screen

kill -s TERM $(cat /tmp/panel-pid) || (nohup "/home/neeasade/.wm/panel/lemonade" &)


# dunst pgrep's for panel
sleep 0.3

theme refresh dunst
@@ -1,6 +1,5 @@
#!/usr/bin/env bash


. $HOME/.sh.d/environment

# xrandr script(generated with arandr)

0 comments on commit 5d005d0

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