Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kovetskiy committed Jun 5, 2019
1 parent fe123cc commit a4638f8
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 34 deletions.
4 changes: 0 additions & 4 deletions .config/autorandr/postswitch
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ fi

echo "$profile" > ~/.config/autorandr_profile

if [[ "$profile" =~ office ]]; then
redshift stop
fi

pkill dunst

wallpaper
2 changes: 1 addition & 1 deletion .config/i3/config.office
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ workspace 3 output $primary
workspace 4 output $primary
workspace e output $primary

workspace s output $secondary
workspace s output $primary
workspace q output $secondary
workspace w output $secondary
workspace d output $secondary
4 changes: 2 additions & 2 deletions .config/sxhkd/sxhkdrc
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ super + control + e
super + control + t
i3-msg gaps horizontal current toggle 274

shift + alt + Tab
i3re -w 500
alt + Tab
i3re -w 600

super + Tab
timer
Expand Down
2 changes: 1 addition & 1 deletion .i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ workspace 3 output $primary
workspace 4 output $primary
workspace e output $primary

workspace s output $secondary
workspace s output $primary
workspace q output $secondary
workspace w output $secondary
workspace d output $secondary
Expand Down
3 changes: 3 additions & 0 deletions .muttrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ set imap_check_subscribed=yes
set imap_idle=yes
set mail_check=10
set timeout=10
set imap_poll_timeout=0
set sort=threads
set narrow_tree=yes
set metoo
Expand Down Expand Up @@ -56,3 +57,5 @@ macro index \Ce "T* ;s=Archives y<sync-mailbox> "
source ~/.mutt/theme_$BACKGROUND

set new_mail_command="notify-send 'mail' 'mail: %u unread'"

bind index G imap-fetch-mail
Expand Down
25 changes: 2 additions & 23 deletions .vim/snippets/java.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,10 @@ snippet m "import" w
import $1;
endsnippet

snippet pm "public method" w
public ${3:void} $1($2) {
$4
}
endsnippet

snippet @o "Description" w
@Override
endsnippet


snippet p "" w
private ${3:void} $1($2) {
$4
}

endsnippet

snippet d "" w
protected ${3:void} $1($2) {
$4
}

endsnippet

snippet x "" w
System.err.printf("XXXXXXX `!p
try:
Expand Down Expand Up @@ -87,7 +66,7 @@ public class $1 {
}
endsnippet

snippet pd "" w
snippet ud "" w
public ${3:void} $1($2) {
$0
}
Expand Down Expand Up @@ -117,7 +96,7 @@ snippet ci "" w
@ComponentImport $1 `!p snip.rv=px.langs.java.get_var_name_by_class_name(t[1])`,
endsnippet

snippet pv "" w
snippet uv "" w
public $1 `!p snip.rv=px.langs.java.get_var_name_by_class_name(t[1])`;
endsnippet

Expand Down
2 changes: 1 addition & 1 deletion .xkbrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)+hjkl" };
xkb_types { include "complete" };
xkb_compat { include "complete+hjkl" };
xkb_symbols { include "pc+us+ru:2+level3(lwin_switch)+mod4-lvl3+hjkl+hjkl(caret)+hjkl(fast-enter)+hjkl(fast-escape)+altwin(swap_alt_win)+hjkl(fast-numpad)+level5(ralt_switch)+ctrl-shift-caps+rshift-ralt+esc-to-tilde" };
xkb_symbols { include "pc+us+ru:2+level3(lwin_switch)+mod4-lvl3+hjkl+hjkl(caret)+hjkl(fast-enter)+hjkl(fast-escape)+altwin(swap_alt_win)+hjkl(fast-numpad)+level5(ralt_switch)+ctrl-shift-caps+rshift-ralt+esc-to-tilde+multi-key" };
xkb_geometry { include "pc(pc105)" };
};
3 changes: 2 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,8 @@ git-commit-branch() {

pushd /var/run/user/$UID/cbuffer
tree .
cp -r * .* "${dest}/"
cp -r * "${dest}/"
cp -r .* "${dest}/" 2>/dev/null
popd
}

Expand Down
6 changes: 6 additions & 0 deletions bin/get-chromium-ext
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash

extension="$1"

if [[ "$extension" =~ "/" ]]; then
extension=$(cut -d '/' -f 7 <<< "$extension")
extension=$(cut -d '?' -f 1 <<< "$extension")
fi

version=$(pacman -Q chromium | awk '{print $2}')

curl -v -L -o "/tmp/$extension.crx" "https://clients2.google.com/service/update2/crx?response=redirect&prodversion=$version&x=id%3D$extension%26installsource%3Dondemand%26uc"
Expand Down
2 changes: 1 addition & 1 deletion deadfiles
Submodule deadfiles updated 5 files
+3 −3 bin/aur
+10 −2 bin/kill-focus
+9 −2 bin/record-cast
+18 −6 bin/wifi
+52 −0 bin/wifi-new

0 comments on commit a4638f8

Please sign in to comment.