From a4638f89d0ee9c430f4c7584472a8622aec9dbc3 Mon Sep 17 00:00:00 2001 From: Egor Kovetskiy Date: Tue, 21 May 2019 17:57:16 +0300 Subject: [PATCH] minor improvements --- .config/autorandr/postswitch | 4 ---- .config/i3/config.office | 2 +- .config/sxhkd/sxhkdrc | 4 ++-- .i3/config | 2 +- .muttrc | 3 +++ .vim/snippets/java.snippets | 25 ++----------------------- .xkbrc | 2 +- .zshrc | 3 ++- bin/get-chromium-ext | 6 ++++++ deadfiles | 2 +- 10 files changed, 19 insertions(+), 34 deletions(-) diff --git a/.config/autorandr/postswitch b/.config/autorandr/postswitch index aa65b876..5135cc7b 100755 --- a/.config/autorandr/postswitch +++ b/.config/autorandr/postswitch @@ -16,10 +16,6 @@ fi echo "$profile" > ~/.config/autorandr_profile -if [[ "$profile" =~ office ]]; then - redshift stop -fi - pkill dunst wallpaper diff --git a/.config/i3/config.office b/.config/i3/config.office index e204f84e..9b0055c5 100644 --- a/.config/i3/config.office +++ b/.config/i3/config.office @@ -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 diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index e9c00b3e..50b74f2a 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -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 diff --git a/.i3/config b/.i3/config index 6bdc575b..2b4bbaa5 100644 --- a/.i3/config +++ b/.i3/config @@ -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 diff --git a/.muttrc b/.muttrc index 65dbaf4c..491d35ba 100644 --- a/.muttrc +++ b/.muttrc @@ -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 @@ -56,3 +57,5 @@ macro index \Ce "T* ;s=Archives y " source ~/.mutt/theme_$BACKGROUND set new_mail_command="notify-send 'mail' 'mail: %u unread'" + +bind index G imap-fetch-mail diff --git a/.vim/snippets/java.snippets b/.vim/snippets/java.snippets index 0e8e774b..2af51b8b 100644 --- a/.vim/snippets/java.snippets +++ b/.vim/snippets/java.snippets @@ -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: @@ -87,7 +66,7 @@ public class $1 { } endsnippet -snippet pd "" w +snippet ud "" w public ${3:void} $1($2) { $0 } @@ -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 diff --git a/.xkbrc b/.xkbrc index b8bb0cd6..e6f283cd 100644 --- a/.xkbrc +++ b/.xkbrc @@ -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)" }; }; diff --git a/.zshrc b/.zshrc index 1517584a..0466dfd0 100644 --- a/.zshrc +++ b/.zshrc @@ -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 } diff --git a/bin/get-chromium-ext b/bin/get-chromium-ext index d7af56d3..aa8328a5 100755 --- a/bin/get-chromium-ext +++ b/bin/get-chromium-ext @@ -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" diff --git a/deadfiles b/deadfiles index c1b0cfcb..6bf15fa7 160000 --- a/deadfiles +++ b/deadfiles @@ -1 +1 @@ -Subproject commit c1b0cfcb819a697dfd39a974a77b32eb9bd1e452 +Subproject commit 6bf15fa78fc95424238f59962c5cb7abb80c8aea