small pixel drawing of a pufferfish dotfiles

Merge branch 'master' of git.cyberia.club:j3s/dotfiles
j3s j3s@cyberia.club
Wed, 15 Jan 2020 16:56:51 -0600
commit

0fa250ffd64d4ec5b032fba8e9c4911c6fbeb62e

parent

1a0b8dca2b5d4a161edb9dee2b945dee3b790f20

A .config/aerc/accounts.conf

@@ -0,0 +1,10 @@

+[c3f] +source = imaps://j3s@mail.c3f.net:993 +source-cred-cmd = pass c3f +outgoing = smtp+plain://j3s@mail.c3f.net:587 +outgoing-cred-cmd = pass c3f +default = INBOX +smtp-starttls = yes +from = jes <j3s@c3f.net> +copy-to = Sent +
M .config/git/config.config/git/config

@@ -3,6 +3,8 @@ s = status

d = diff p = pull --prune ds = diff --staged + d1 = diff HEAD~1 HEAD + d2 = diff HEAD~2 HEAD co = checkout br = branch amend = commit --amend -m

@@ -26,12 +28,13 @@ [changelog]

format = * %s [%an] [user] name = j3s - email = j3s@cyberia.club + email = j3s@c3f.net [sendemail] smtpserver = mail.c3f.net smtpuser = j3s smtpencryption = tls smtpserverport = 587 + annotate = yes [includeIf "gitdir:~/git/"] path = ~/.config/git/config-work [includeIf "gitdir:~/howdocs/"]
A .config/mutt/muttrc

@@ -0,0 +1,51 @@

+source 'echo "$( pw=$(pass c3f); echo set my_pass=\"$pw\" )" |' +set sort='reverse-last-date-received' +set my_user='j3s' +set spoolfile=imaps://$my_user:$my_pass@mail.c3f.net/ +set folder="imaps://mail.c3f.net/" +set record='=Sent' +set postponed='=Drafts' +set imap_check_subscribed +set timeout=5 +set imap_keepalive=300 +set mail_check=5 +set realname='Jesse Olson' +set from='j3s@c3f.net' +set use_from=yes + +set smtp_url=smtp://$my_user:$my_pass@mail.c3f.net:587 +set ssl_starttls=yes +set ssl_force_tls=yes +set edit_headers=yes +set markers=no + +set index_format="%2C %Z %D %-17.17n (%3l) %s" +set pager_format="%S [%C/%m] %l %n: %s" +set date_format="%Y-%m-%d %l:%M %p" +macro index a '<save-message>=Archive<enter>y' +macro index A '<pipe-message>git am<enter>j' +push '<change-folder> =<enter>' + +color index blue default ~P +# Patch syntax highlighting +color body brightwhite default ^[[:space:]].* +color body yellow default ^(diff).* +color body brightwhite default ^(\s).* +color body cyan default ^(Signed-off-by).* +color body cyan default ^(Docker-DCO-1.1-Signed-off-by).* +color body brightwhite default ^(Cc) +color body yellow default "^diff \-.*" +color body brightwhite default "^index [a-f0-9].*" +color body brightblue default "^---$" +color body white default "^\-\-\- .*" +color body white default "^[\+]{3} .*" +color body green default "^[\+][^\+]+.*" +color body red default "^\-[^\-]+.*" +color body brightblue default "^@@ .*" +color body green default "LGTM" +color body brightmagenta default "-- Commit Summary --" +color body brightmagenta default "-- File Changes --" +color body brightmagenta default "-- Patch Links --" +color body green default "^Merged #.*" +color body red default "^Closed #.*" +color body brightblue default "^Reply to this email.*"
M .config/sway/config.config/sway/config

@@ -24,24 +24,22 @@ #

# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) output * bg /home/j3s/pix/lainbakka.jpg fill # -# Example configuration: -# -# output DP-1 resolution 3840x2160 position 1920,0 -# + +# clamshell mode +set $laptop eDP-1 +bindswitch --reload lid:on output $laptop disable ; exec sudo ip link set down wlp2s0 +bindswitch --reload lid:off output $laptop enable ; exec sudo ip link set up wlp2s0 + # You can get the names of your outputs by running: swaymsg -t get_outputs ### Idle configuration -# -# Example configuration: -# -# exec swayidle -w \ -# timeout 300 'swaylock -f -c 000000' \ -# timeout 600 'swaymsg "output * dpms off"' \ -# resume 'swaymsg "output * dpms on"' \ -# before-sleep 'swaylock -f -c 000000' -# -# This will lock your screen after 300 seconds of inactivity, then turn off -# your displays after another 300 seconds, and turn your screens back on when +exec swayidle -w \ + timeout 700 'swaylock -f -c 000000' \ + timeout 900 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -c 000000' +# This will lock your screen after 700 seconds of inactivity, then turn off +# your displays after another 900 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. ### Input configuration

@@ -59,6 +57,18 @@ input "1452:597:Keychron_K2" {

xkb_layout us xkb_options ctrl:nocaps } + +input "1:1:AT_Translated_Set_2_keyboard" { + xkb_layout us + xkb_options ctrl:nocaps +} + +input "1739:30383:CUST0001:00_06CB:76AF_Touchpad" { + tap enabled + tap_button_map lrm + dwt disabled + click_method clickfinger +} # # You can get the names of your inputs by running: swaymsg -t get_inputs # Read `man 5 sway-input` for more information about this section.

@@ -69,6 +79,10 @@ # Basics:

# # firstly, enable floating for da float class for_window [class="floatme"] floating enable + + # multimedia + bindsym --locked XF86MonBrightnessUp exec --no-startup-id light -A 10 + bindsym --locked XF86MonBrightnessDown exec --no-startup-id light -U 10 # Start a terminal bindsym $mod+Return exec $term

@@ -100,11 +114,6 @@ bindsym $mod+$left focus left

bindsym $mod+$down focus down bindsym $mod+$up focus up bindsym $mod+$right focus right - # Or use $mod+[up|down|left|right] - bindsym $mod+Left focus left - bindsym $mod+Down focus down - bindsym $mod+Up focus up - bindsym $mod+Right focus right # Move the focused window with the same, but add Shift bindsym $mod+Shift+$left move left

@@ -184,16 +193,11 @@ #

# Resizing containers: # mode "resize" { - # left will shrink the containers width - # right will grow the containers width - # up will shrink the containers height - # down will grow the containers height bindsym $left resize shrink width 10px bindsym $down resize grow height 10px bindsym $up resize shrink height 10px bindsym $right resize grow width 10px - # Ditto, with arrow keys bindsym Left resize shrink width 10px bindsym Down resize grow height 10px bindsym Up resize shrink height 10px

@@ -212,14 +216,12 @@ # Read `man 5 sway-bar` for more information about this section.

bar { position top - # When the status_command prints a new line to stdout, swaybar updates. - # The default just shows the current date and time. - status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done + status_command while ~/.config/sway/status; do sleep 1; done colors { statusline #ffffff - background #323232 - inactive_workspace #32323200 #32323200 #5c5c5c + background #333333 + inactive_workspace #333333 #333333 #ffffff } }
A .config/sway/status

@@ -0,0 +1,11 @@

+#!/bin/sh + +date_formatted=$(date "+%a %F %H:%M") + +linux_version=$(uname -r | cut -d '-' -f1) + +battery_status=$(cat /sys/class/power_supply/BAT0/status) + +battery_perc=$(cat /sys/class/power_supply/BAT0/capacity) + +echo "$linux_version | $battery_perc% $battery_status | $date_formatted "
A .password-store/namecheap.gpg

@@ -0,0 +1,3 @@

+ ;S ҕuo1 t$4 +ȉ5M8pRb2Ow=鵜6!Bv4ˣ?_1 OyBP#& 4/ SR0q"VckD\Opf>b * _Dlj%-?ʲ YS~pRo a8ѭ|<Y3xvo^gvDB\&ʧVe= "wpaF" O^9Qb-KR +_@ŀFP(!4Ӧ4$aNni .u*6|>NkL<=%QV7"MF
A .ssh/config

@@ -0,0 +1,14 @@

+Include ~/.ssh/config.d/* + +Host gibson + Hostname gibson.cyberia.club + User biox + Port 3215 + +Host git.cyberia.club + Port 3215 + +Host baikal + Hostname 97.127.122.154 + User cyberian + Port 4999
M .vimrc.vimrc

@@ -27,11 +27,7 @@ set nobackup

" use rename-and-write-new method whenever safe set backupcopy=auto " patch required to honor double slash at end -if has("patch-8.1.0251") - " consolidate the writebackups -- not a big - " deal either way, since they usually get deleted - set backupdir^=~/.vim/backup// -end +set backupdir^=~/.vim/backup// " persist the undo tree for each file set undofile
D bin/nostromo/scr

@@ -1,7 +0,0 @@

-#!/bin/sh - -if [ "$1" = "" ]; then - grim -g "$(slurp)" "$HOME/pix/ss/$(date +%s).png" -elif [ "$1" = "stdout" ]; then - grim -g "$(slurp)" -t png - -fi
A bin/vpm

@@ -0,0 +1,21 @@

+#!/bin/sh + +case $1 in + install) + xbps-install -S "$2" + ;; + remove) + xbps-remove -R "$2" + ;; + clean) + xbps-remove -Oo + ;; + update) + xbps-install -Suv + ;; + search) + xbps-query -v -Rs "$2" + ;; + *) + echo 'command not found' +esac
A bin/xdg-open

@@ -0,0 +1,12 @@

+#!/bin/sh +case "${1%%:*}" in + http|https|*.pdf) + exec qutebrowser "$1" + ;; + mailto) + exec aerc "$1" + ;; + *) + exec /usr/bin/xdg-open "$@" + ;; +esac