calcurse config, i3 bindings

- replace urxvt commands with $term
- small, sticky cava
- twem link script
- paste emails
This commit is contained in:
2019-09-02 16:23:24 -04:00
parent 5c4e37fb84
commit 1e65b54066
14 changed files with 237 additions and 46 deletions

View File

@@ -29,6 +29,7 @@ set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
set -x HASTE_SERVER https://pste.gq
set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
{{ if eq .linux_os "termux" }}
# set SPACEFISH_PROMPT_ORDER time user dir host git package node docker ruby golang php rust haskell julia aws conda pyenv kubecontext exec_time line_sep battery jobs exit_code vi_mode char
@@ -127,6 +128,8 @@ abbr pst "pastebin"
abbr rf "refresh-config"
abbr rs "redshift-set"
abbr shrm "shred-rm"
abbr tac "tmux-attach config"
abbr taj "tmux-attach journal"
abbr thes "thesaurus"
abbr ut "unix-timestamp"
abbr uzr "unzip-rm"

View File

@@ -0,0 +1,6 @@
function sync-alt-cal
set alt_cal_dir /home/kevin/.calcurse/alt-cals
calcurse-caldav --syncdb $alt_cal_dir/$argv[1]/sync.db \
--config $alt_cal_dir/$argv[1]/caldav/config \
--datadir $alt_cal_dir/$argv[1]
end

View File

@@ -0,0 +1,3 @@
function tmux-attach
tmux a -t $argv[1] || tmux new -s $argv[1]
end

View File

@@ -1,6 +1,6 @@
# startup [[[ #
# set $term urxvt
# set $term $term
# set $term_alt st
set $term st
set $term_alt urxvt
@@ -13,7 +13,7 @@ exec xbacklight -set 10
# exec wal -i "$(/home/kevin/scripts/shuffler \"/home/kevin/Pictures/Backgrounds/dim/non-editing\")"
exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing")
{{ end }}
exec --no-startup-id i3-msg 'workspace $ws2; exec $term'
# exec --no-startup-id i3-msg 'workspace $ws2; exec $term'
exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
# ]]] startup #
@@ -28,6 +28,8 @@ set $sch_dir "$HOME/Documents/School"
# app shortcuts [[[ #
set $type_delay_cmd sleep .4
bindsym Control+Return exec $term
bindsym Control+Shift+Return exec st -A1
bindsym Control+$mod+Return exec $term_alt
@@ -43,28 +45,31 @@ bindsym Mod4+Return exec /home/kevin/scripts/dmenu-history -nb "$fg" -nf "$bg" -
# bindsym Mod4+b layout tabbed; exec zathura
bindsym Mod4+c exec $browser
# bindsym Mod4+e exec notify-send "HPS Word Count" "$(pdftotext /home/kevin/school/latex-notes/hps/essay.pdf - | wc -w)"
bindsym Mod4+e exec emacs
# bindsym Mod4+e exec emacs
bindsym Mod4+e exec ~/scripts/twem
bindsym Mod4+f exec firefox
bindsym Mod4+$mod+f exec echo 'Kevin@fosstodon.org' | xclip -selection clipboard
bindsym Mod4+h exec echo 'kevin.mok@live.ca' | xclip -selection clipboard
# bindsym Mod4+m exec urxvt -e ~/scripts/vim-man
bindsym Mod4+$mod+m exec pass -c uoft/markus
bindsym Mod4+n exec urxvt -e nvim
bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail
# bindsym Mod4+$mod+f exec printf 'Kevin@fosstodon.org' | xclip -selection clipboard
bindsym Mod4+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca'
# bindsym Mod4+m exec $term -e ~/scripts/vim-man
# bindsym Mod4+$mod+m exec pass -c uoft/markus
bindsym Mod4+n exec $term -e nvim
bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail && $type_delay_cmd && xdotool key 'Control_L+v'
# bindsym Mod4+o exec $type_delay_cmd && xdotool key 'Control_L+v'
bindsym Mod4+$mod+o exec xset dpms force off
# bindsym Mod4+p workspace $ws4; exec pgadmin3
# bindsym Mod4+p exec pycharm
bindsym Mod4+p exec passmenu
# bindsym Mod4+$mod+p exec notify-send "ping" "$(ping -c 3 -W 1 8.8.8.8)"
bindsym Mod4+q exec qdirstat
bindsym Mod4+r exec urxvt -e ranger
bindsym Mod4+r exec $term -e ranger
bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)"
bindsym Mod4+$mod+t exec xclip -selection clipboard ~/.password-store/social/trapbot
bindsym Mod4+u exec echo 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard
bindsym Mod4+$mod+u exec pass -c uoft/acorn
bindsym Mod4+$mod+t exec xclip -selection clipboard ~/.password-store/social/trapbot && $type_delay_cmd && xdotool key 'Control_L+v'
# bindsym Mod4+u exec printf 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard
bindsym Mod4+u exec $type_delay_cmd && xdotool type 'kevin.mok@mail.utoronto.ca'
# bindsym Mod4+$mod+u exec pass -c uoft/acorn
bindsym Mod4+w exec notify-send "watson status" "$(watson status)"
bindsym Mod4+$mod+w exec notify-send "watson stop" "$(watson status && watson stop)"
bindsym Control+Mod4+w exec urxvt -e nvim /home/kevin/.config/watson/state.tmp
bindsym Control+Mod4+w exec $term -e nvim /home/kevin/.config/watson/state.tmp
# bindsym Mod4+x exec $swex
bindsym Mod4+z exec cliqz
{{ if .ext_kb }}
@@ -248,7 +253,8 @@ bindsym Control+$mod+l resize shrink width 5 px or 5 ppt
bindsym shift+x kill
bindsym Control+$mod+t sticky toggle
bindsym Control+$mod+a floating enable; resize set 400px 125px; move absolute position 1648 0; sticky toggle
# bindsym Control+$mod+a floating enable; resize set 400px 125px; move absolute position 1648 200; sticky enable
bindsym Control+$mod+a floating enable; resize set 400px 110px; move absolute position 824 992; sticky enable
# for_window [class="ada-mario"] floating enable
# for_window [class="ada-mario"] move absolute position 640 0
@@ -292,12 +298,12 @@ set $ws3 "3 "
# set $ws3 "3 "
workspace $ws3 output $main
bindsym $mod+F3 workspace $ws3; exec $browser
# bindsym Mod4+b workspace $ws3; layout stacked; exec urxvt -e fish -c "buku-fzf"
# bindsym Mod4+$mod+b workspace $ws3; layout stacked; exec urxvt -e fish -c "buku-fzf fq"
# bindsym Mod4+b layout stacked; exec urxvt -e fish -c "buku-fzf"
# bindsym Mod4+$mod+b layout stacked; exec urxvt -e fish -c "buku-fzf fq"
bindsym Mod4+b layout tabbed; exec urxvt -e fish -c "buku-fzf"
bindsym Mod4+$mod+b layout tabbed; exec urxvt -e fish -c "buku-fzf fq"
# bindsym Mod4+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf"
# bindsym Mod4+$mod+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf fq"
# bindsym Mod4+b layout stacked; exec $term -e fish -c "buku-fzf"
# bindsym Mod4+$mod+b layout stacked; exec $term -e fish -c "buku-fzf fq"
bindsym Mod4+b layout tabbed; exec $term -e fish -c "buku-fzf"
bindsym Mod4+$mod+b layout tabbed; exec $term -e fish -c "buku-fzf fq"
set $ws4 "4 "
workspace $ws4 output $secondary
@@ -307,11 +313,11 @@ set $ws5 "5 "
workspace $ws5 output $secondary
assign [class="Steam"] $ws5
bindsym $mod+F5 workspace $ws5; exec $browser
# bindsym Mod4+g workspace $ws5; layout stacking; exec urxvt -e steam
# bindsym Mod4+g workspace $ws5; layout stacking; exec $term -e steam
bindsym Mod4+g workspace $ws5; layout tabbed; exec gimp
# bindsym Mod4+g workspace $ws5; exec mgba-qt
bindsym Mod4+i workspace $ws5; exec idea
bindsym Mod4+m workspace $ws5; layout tabbed; exec urxvt -e ~/.minetest/minetest/bin/minetest
bindsym Mod4+m workspace $ws5; layout tabbed; exec $term -e ~/.minetest/minetest/bin/minetest
bindsym Mod4+t workspace $ws5; exec thunderbird
bindsym Mod4+5 workspace $ws5; exec godot
bindsym Mod4+F5 workspace $ws5; exec cd ~/coding/ada-mario && godot -e
@@ -332,37 +338,40 @@ bindsym Mod4+k workspace $ws6; exec slack
set $ws7 "7 "
workspace $ws7 output $secondary
bindsym $mod+F7 workspace $ws7; exec $term
# bindsym $mod+F7 workspace $ws7; exec $term
bindsym $mod+F7 workspace $ws7; exec $term -e mosh kevin@165.22.239.234 tmux a
# bindsym Mod4+v workspace $ws7; exec VBoxManage startvm "369-a1"
set $ws8 "8 "
# assign [class="jetbrains-"] $ws8
workspace $ws8 output $secondary
# bindsym $mod+F8 workspace $ws8; exec $term
bindsym $mod+F8 workspace $ws8; exec urxvt -e tmux a -t journal
# bindsym $mod+F8 workspace $ws8; exec $term -e tmux a -t journal
bindsym $mod+F8 workspace $ws8; exec $term -e fish -c 'tmux-attach journal'
set $ws9 "9 "
workspace $ws9 output $secondary
# bindsym $mod+F9 workspace $ws9; exec $term
bindsym $mod+F9 workspace $ws9; exec urxvt -e tmux a -t config
# bindsym $mod+F9 workspace $ws9; exec $term -e tmux a -t config
bindsym $mod+F9 workspace $ws9; exec $term -e fish -c 'tmux-attach config'
set $ws10 "10 "
# set $ws10 "10 🎵"
assign [class="spotify"] $ws10
workspace $ws10 output $secondary
set $hp 2
# bindsym Mod4+v workspace $ws10; exec urxvt -e alsamixer -c 0
bindsym Mod4+v workspace $ws10; exec urxvt -e alsamixer -c 1
bindsym Mod4+$mod+c workspace $ws10; exec urxvt -e cava
# bindsym Mod4+h workspace $ws10; exec urxvt -e alsamixer -c $hp
# bindsym Mod4+v workspace $ws10; exec $term -e alsamixer -c 0
bindsym Mod4+v workspace $ws10; exec $term -e alsamixer -c 1
bindsym Mod4+$mod+c workspace $ws10; exec $term -e cava
# bindsym Mod4+h workspace $ws10; exec $term -e alsamixer -c $hp
bindsym Mod4+s workspace $ws10; exec spotify
set $ws11 "11 "
# set $ws11 "11 📊"
# assign [class="Summoners War Exporter"] $ws11
workspace $ws11 output $secondary
bindsym $mod+F11 workspace $ws11; exec urxvt -e htop -s PERCENT_CPU
# bindsym $mod+F11 workspace $ws11; exec urxvt -e gotop -m
bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_CPU
# bindsym $mod+F11 workspace $ws11; exec $term -e gotop -m
bindsym Mod4+a workspace $ws11; exec antimicro
set $ws12 "12 "