diff --git a/.bin/bspwm-keys b/.bin/bspwm-keys new file mode 100755 index 0000000..08afb0b --- /dev/null +++ b/.bin/bspwm-keys @@ -0,0 +1,5 @@ +#!/bin/sh +. ~/.bin/_config +awk '/^[a-z]/ && last {print $0,"|",last} {last=""} /^#/{last=$0}' ~/.config/bspwm/sxhkdrc \ + | column -t -s '|' \ + | $DMENU_CMD -p "bspwm keys:" -l 30 diff --git a/.bin/dexec_browser b/.bin/dexec_browser index 4c684f7..f28d014 100755 --- a/.bin/dexec_browser +++ b/.bin/dexec_browser @@ -71,6 +71,7 @@ Zalando" *::*) DEFAULT="CPAN (default)"; ;; http*) DEFAULT="OPEN (default)"; ;; 192.168.*) DEFAULT="OPEN (default)"; C="http://${C}"; ;; + 10.20.*) DEFAULT="OPEN (default)"; C="http://${C}"; ;; gopher*) DEFAULT="OPEN (default)"; ;; g_*) DEFAULT="GLIB Documentation"; ;; [Ss]oup_*) DEFAULT="LibSOUP Documentation"; ;; diff --git a/.config/bspwm/sxhkdrc b/.config/bspwm/sxhkdrc index f60cacd..7dcf917 100644 --- a/.config/bspwm/sxhkdrc +++ b/.config/bspwm/sxhkdrc @@ -6,12 +6,15 @@ alt + Return sterm +# big terminal alt + shift + Return bterm +# huge terminal alt + control + Return hterm +# scratchpad alt + minus sp @@ -19,27 +22,35 @@ alt + minus alt + d dexec +# ssh alt + s dexec_ssh +# browser alt + shift + f dexec_browser +# password manager alt + shift + p dexec_pass +# apps alt + a dexec_apps +# pim alt + p dexec_pim +# vpn alt + v dexec_vpn +# vim: history alt + shift + o texec "vim -c ':History!'" +# vim: myfiles alt + o texec "vim -c ':MyFiles'" @@ -80,12 +91,15 @@ alt + y alt + g bspc node -s biggest +# toggle tiling alt + space bspc node -t "~"{floating,tiled} +# pick color Print xpick_copy +# screenshot alt + Print sshot @@ -126,6 +140,7 @@ alt + ctrl + {Left,Down,Up,Right} alt + {Prior,Next} bspc desktop -f {prev,next}.local +# drag window to next/previous desktop alt + shift + {Next,Prior} bspc node -d {next,prev}.local --follow @@ -151,10 +166,11 @@ alt + {_,shift + }{1-9,0} #super + {Left,Down,Up,Right} # bspc node -p {west,south,north,east} +# preselect spawn area ctrl + {Left,Down,Up,Right} - bspc node -p {west,south,north,east}; \ - sterm + bspc node -p {west,south,north,east} +# cancel the preselection for the focused node ctrl + Return bspc node -p cancel diff --git a/.ksh/task.ksh b/.ksh/task.ksh new file mode 100644 index 0000000..e1c4f44 --- /dev/null +++ b/.ksh/task.ksh @@ -0,0 +1,7 @@ +alias task-list="task list" +alias task-add="task add" + +alias task-add-home="task rc.context:home add" +alias task-add-openbsd="task rc.context:openbsd add" +alias task-add-uugrn="task rc.context:uugrn add" +alias task-add-work="task rc.context:work add" diff --git a/.kshrc b/.kshrc index 57dac89..59b79f2 100644 --- a/.kshrc +++ b/.kshrc @@ -87,6 +87,7 @@ load() { [ -f ~/.ksh/$1 ] && . ~/.ksh/$1; } load environment.ksh load functions.ksh load aliases.ksh +load task.ksh load email.ksh load porttools.ksh load remind.ksh diff --git a/.tmux.conf b/.tmux.conf index c0b10e0..cd4c935 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -71,7 +71,7 @@ set -g set-titles off # Reduce delay for escape key press set -sg escape-time 0 -# set -g default-terminal "tmux-256color" +set -g default-terminal "tmux-256color" # we can do utf lines set -sa terminal-overrides ",*:U8=0:" @@ -91,20 +91,20 @@ setw -g monitor-activity off set -g bell-action none ## panes -set -g pane-border-style 'bg=colour0 fg=colour202' -set -g pane-active-border-style 'bg=colour0 fg=colour202' +# set -g pane-border-style 'bg=colour0 fg=colour202' +# set -g pane-active-border-style 'bg=colour0 fg=colour202' # ## statusbar set -g status-position bottom set -g status-justify left -set -g status-style 'fg=colour246' -set -g status-right '' -set -g status-left ' ' -set -g status-right-length 10 -set -g status-left-length 10 -# -setw -g window-status-current-style '' -setw -g window-status-current-format '#[fg=colour246]#I:#[fg=colour37]#W' -# -setw -g window-status-style '' -setw -g window-status-format '#[fg=colour246]#I:#W' +set -g status-style 'bg=colour236 fg=colour246' +# set -g status-right '' +# set -g status-left ' ' +# set -g status-right-length 10 +# set -g status-left-length 10 +# # +# setw -g window-status-current-style '' +# setw -g window-status-current-format '#[fg=colour246]#I:#[fg=colour37]#W' +# # +# setw -g window-status-style '' +# setw -g window-status-format '#[fg=colour246]#I:#W'