Browse Source

Add new firefox tab page, lock, new confs

remotes/remote_mirror_0048a893dc9c9faa373a1b34fba08204/arch
Andrew Zah 1 year ago
parent
commit
b97f1e72a7
Signed by: Andrew Zah <zah@andrewzah.com> GPG Key ID: 0AE942445EB70FAA
8 changed files with 181 additions and 21 deletions
  1. 2
    5
      .config/.kitty/kitty.conf
  2. 11
    2
      .i3/config
  3. 9
    3
      .nvimrc
  4. 25
    0
      browser/new_tab.html
  5. 119
    0
      gruvbox_palette.sh
  6. 10
    10
      nvim/after/syntax/elm.vim
  7. 1
    1
      scripts/lock
  8. 4
    0
      zsh/exports.zsh

+ 2
- 5
.config/.kitty/kitty.conf View File

@@ -182,7 +182,7 @@ window_border_width 1
182 182
 window_margin_width 0
183 183
 
184 184
 # The window padding (in pts) (blank area between the text and the window border)
185
-window_padding_width 0
185
+window_padding_width 1
186 186
 
187 187
 # The color for the border of the active window
188 188
 active_border_color #00ff00
@@ -234,7 +234,7 @@ selection_foreground #000000
234 234
 # The background for selections
235 235
 selection_background #FFFACD
236 236
 
237
-background #1d1f21
237
+background #282828
238 238
 background_opacity 1.0
239 239
 
240 240
 color0 #282c34
@@ -318,7 +318,6 @@ map ctrl+shift+page_up   scroll_page_up
318 318
 map ctrl+shift+page_down scroll_page_down
319 319
 map ctrl+shift+home      scroll_home
320 320
 map ctrl+shift+end       scroll_end
321
-map ctrl+shift+h         ibus engine hangul
322 321
 # }}}
323 322
 
324 323
 # Window management {{{
@@ -388,8 +387,6 @@ map ctrl+shift+backspace restore_font_size
388 387
 # map ctrl+shift+f7     set_font_size 20.5
389 388
 # }}}
390 389
 
391
-map ctrl+shift+alt ibus engine hangul
392
-
393 390
 # Miscellaneous {{{
394 391
 map ctrl+shift+f11      toggle_fullscreen
395 392
 map ctrl+shift+u        input_unicode_character

+ 11
- 2
.i3/config View File

@@ -18,7 +18,7 @@ workspace $work1 output DVI-I-1
18 18
 workspace $work2 output HDMI-0
19 19
 
20 20
 # startup applications
21
-exec_always feh --bg-scale ~/Pictures/Wallpapers/flower-right.jpg ~/Pictures/Wallpapers/flower-left.jpg
21
+exec_always feh --bg-scale ~/Pictures/Wallpapers/deoksugung2_right.jpg ~/Pictures/Wallpapers/deoksugung2_left.jpg
22 22
 
23 23
 ## i3 Opts
24 24
 hide_edge_borders both
@@ -62,7 +62,12 @@ assign [class="Thunderbird"] $work3
62 62
 # splits
63 63
 bindsym $mod+h split h
64 64
 bindsym $mod+v split v
65
+
66
+# toggling view types
67
+bindsym $mod+s layout stacking
68
+bindsym $mod+l layout toggle split
65 69
 bindsym $mod+f fullscreen toggle
70
+bindsym $mod+g floating toggle
66 71
 
67 72
 
68 73
 ## i3 Session keys
@@ -72,9 +77,13 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
72 77
 
73 78
 # General
74 79
 bindsym $mod+Return exec termite
75
-bindsym $mod+d exec dmenu_run
80
+bindsym $mod+d exec rofi -show run -config /home/andrei/.config/rofi/config
81
+bindsym $mod+w exec rofi -show window -config /home/andrei/.config/rofi/config
76 82
 bindsym $mod+Shift+w kill
77 83
 
84
+# Floating windows
85
+for_window [class="Peek"] floating enable
86
+
78 87
 bar {
79 88
   output DVI-I-1
80 89
   tray_output DVI-I-1

+ 9
- 3
.nvimrc View File

@@ -12,7 +12,9 @@ Plug 'bhurlow/vim-parinfer', {'for': 'clojure' }
12 12
 Plug 'c-brenn/phoenix.vim', { 'for': ['elixir'] }
13 13
 Plug 'cespare/vim-toml', { 'for': 'toml' }
14 14
 Plug 'chrisbra/NrrwRgn'
15
+Plug 'chrisbra/csv.vim'
15 16
 Plug 'elixir-editors/vim-elixir', { 'for': ['elixir'] }
17
+Plug 'elorest/vim-slang', { 'for': 'slang' }
16 18
 Plug 'fisadev/FixedTaskList.vim'
17 19
 Plug 'gcmt/wildfire.vim'
18 20
 Plug 'gerw/vim-HiLinkTrace'
@@ -185,7 +187,7 @@ nnoremap <C-e> 3<C-e>
185 187
 nnoremap <C-y> 3<C-y>
186 188
 
187 189
 " clear search highlight
188
-nnoremap <Leader>cl :nohl<CR><C-l>
190
+nnoremap <Leader>co :nohl<CR><C-l>
189 191
 
190 192
 vnoremap <Tab> >gv
191 193
 vnoremap <S-Tab> <gv
@@ -226,13 +228,14 @@ nnoremap <leader>pr :HLT!<cr>
226 228
 
227 229
 """ Syntaxes """
228 230
 
229
-" Autoset slang -> slim syntax highlighting
230
-au BufRead,BufNewFile *.slang set filetype=slim
231
+" Autoset slang syntax highlighting
232
+au BufRead,BufNewFile *.slang set filetype=slang
231 233
 
232 234
 " Autoset ecr -> erb syntax highlighting
233 235
 au BufRead,BufNewFile *.ecr set filetype=erb
234 236
 
235 237
 
238
+
236 239
 " Automatically make the dir if it doesn't exist on the machine.
237 240
 silent !mkdir -p ~/.nvim/tmp >/dev/null 2>&1
238 241
 
@@ -243,6 +246,9 @@ autocmd! FocusGained,BufEnter * checktime
243 246
 " Clojure
244 247
 " au Filetype clojure nmap <c-c><c-k> :Require<cr>  
245 248
 
249
+" Formats a ledger entry. Untabs a visual selection, runs :Tab /<space><space>, and re-tabs
250
+let @l = '€kB:tab€kb€kb€kbTab  /€kb€kb€kb /  
gv	:w
'
251
+
246 252
 " ================ Persistent Undo ==================
247 253
 " Keep undo history across sessions, by storing in file.
248 254
 " Only works all the time.

+ 25
- 0
browser/new_tab.html View File

@@ -0,0 +1,25 @@
1
+<h2> General </h2>
2
+<ul>
3
+  <li> <a href="https://lobste.rs"> Lobste.rs </a> </li>
4
+  <li> <a href="https://news.ycombinator.com"> Hacker News </a> </li>
5
+  <li> <a href="https://niu.moe"> Niu.moe </a> </li>
6
+</ul>
7
+
8
+<h2> Reddit </h2>
9
+<ul>
10
+  <li> <a href="https://reddit.com/r/korea"> /r/korea </a> </li>
11
+  <li> <a href="https://reddit.com/r/korean"> /r/korean </a> </li>
12
+  <li> <a href="https://reddit.com/r/tf2"> /r/tf2 </a> </li>
13
+</ul>
14
+
15
+<h2> Music </h2>
16
+<ul>
17
+  <li> <a href="https://open.spotify.com/view/gaming-releases"> Spotify VGM </a> </li>
18
+</ul>
19
+
20
+<h2> Slack </h2>
21
+<ul>
22
+  <li> <a href="https://elmlang.slack.com/messages/C192T0Q1E/"> ElmLang </a> </li>
23
+  <li> <a href="https://catamorphiclabs.slack.com/messages"> Catamorphic Labs </a> </li>
24
+  <li> <a href="https://peoplebest.slack.com/messages/C5DPYCDBM"> PeopleBest </a> </li>
25
+</ul>

+ 119
- 0
gruvbox_palette.sh View File

@@ -0,0 +1,119 @@
1
+#!/bin/sh
2
+
3
+if [ "${TERM%%-*}" = "screen" ]; then
4
+  if [ -n "$TMUX" ]; then
5
+    printf "\033Ptmux;\033\033]4;236;rgb:32/30/2f\007\033\\"
6
+    printf "\033Ptmux;\033\033]4;234;rgb:1d/20/21\007\033\\"
7
+
8
+    printf "\033Ptmux;\033\033]4;235;rgb:28/28/28\007\033\\"
9
+    printf "\033Ptmux;\033\033]4;237;rgb:3c/38/36\007\033\\"
10
+    printf "\033Ptmux;\033\033]4;239;rgb:50/49/45\007\033\\"
11
+    printf "\033Ptmux;\033\033]4;241;rgb:66/5c/54\007\033\\"
12
+    printf "\033Ptmux;\033\033]4;243;rgb:7c/6f/64\007\033\\"
13
+
14
+    printf "\033Ptmux;\033\033]4;244;rgb:92/83/74\007\033\\"
15
+    printf "\033Ptmux;\033\033]4;245;rgb:92/83/74\007\033\\"
16
+
17
+    printf "\033Ptmux;\033\033]4;228;rgb:f2/e5/bc\007\033\\"
18
+    printf "\033Ptmux;\033\033]4;230;rgb:f9/f5/d7\007\033\\"
19
+
20
+    printf "\033Ptmux;\033\033]4;229;rgb:fb/f1/c7\007\033\\"
21
+    printf "\033Ptmux;\033\033]4;223;rgb:eb/db/b2\007\033\\"
22
+    printf "\033Ptmux;\033\033]4;250;rgb:d5/c4/a1\007\033\\"
23
+    printf "\033Ptmux;\033\033]4;248;rgb:bd/ae/93\007\033\\"
24
+    printf "\033Ptmux;\033\033]4;246;rgb:a8/99/84\007\033\\"
25
+
26
+    printf "\033Ptmux;\033\033]4;167;rgb:fb/49/34\007\033\\"
27
+    printf "\033Ptmux;\033\033]4;142;rgb:b8/bb/26\007\033\\"
28
+    printf "\033Ptmux;\033\033]4;214;rgb:fa/bd/2f\007\033\\"
29
+    printf "\033Ptmux;\033\033]4;109;rgb:83/a5/98\007\033\\"
30
+    printf "\033Ptmux;\033\033]4;175;rgb:d3/86/9b\007\033\\"
31
+    printf "\033Ptmux;\033\033]4;108;rgb:8e/c0/7c\007\033\\"
32
+    printf "\033Ptmux;\033\033]4;208;rgb:fe/80/19\007\033\\"
33
+
34
+    printf "\033Ptmux;\033\033]4;88;rgb:9d/00/06\007\033\\"
35
+    printf "\033Ptmux;\033\033]4;100;rgb:79/74/0e\007\033\\"
36
+    printf "\033Ptmux;\033\033]4;136;rgb:b5/76/14\007\033\\"
37
+    printf "\033Ptmux;\033\033]4;24;rgb:07/66/78\007\033\\"
38
+    printf "\033Ptmux;\033\033]4;96;rgb:8f/3f/71\007\033\\"
39
+    printf "\033Ptmux;\033\033]4;66;rgb:42/7b/58\007\033\\"
40
+    printf "\033Ptmux;\033\033]4;130;rgb:af/3a/03\007\033\\"
41
+  else
42
+    printf "\033P\033]4;236;rgb:32/30/2f\007\033\\"
43
+    printf "\033P\033]4;234;rgb:1d/20/21\007\033\\"
44
+
45
+    printf "\033P\033]4;235;rgb:28/28/28\007\033\\"
46
+    printf "\033P\033]4;237;rgb:3c/38/36\007\033\\"
47
+    printf "\033P\033]4;239;rgb:50/49/45\007\033\\"
48
+    printf "\033P\033]4;241;rgb:66/5c/54\007\033\\"
49
+    printf "\033P\033]4;243;rgb:7c/6f/64\007\033\\"
50
+
51
+    printf "\033P\033]4;244;rgb:92/83/74\007\033\\"
52
+    printf "\033P\033]4;245;rgb:92/83/74\007\033\\"
53
+
54
+    printf "\033P\033]4;228;rgb:f2/e5/bc\007\033\\"
55
+    printf "\033P\033]4;230;rgb:f9/f5/d7\007\033\\"
56
+
57
+    printf "\033P\033]4;229;rgb:fb/f1/c7\007\033\\"
58
+    printf "\033P\033]4;223;rgb:eb/db/b2\007\033\\"
59
+    printf "\033P\033]4;250;rgb:d5/c4/a1\007\033\\"
60
+    printf "\033P\033]4;248;rgb:bd/ae/93\007\033\\"
61
+    printf "\033P\033]4;246;rgb:a8/99/84\007\033\\"
62
+
63
+    printf "\033P\033]4;167;rgb:fb/49/34\007\033\\"
64
+    printf "\033P\033]4;142;rgb:b8/bb/26\007\033\\"
65
+    printf "\033P\033]4;214;rgb:fa/bd/2f\007\033\\"
66
+    printf "\033P\033]4;109;rgb:83/a5/98\007\033\\"
67
+    printf "\033P\033]4;175;rgb:d3/86/9b\007\033\\"
68
+    printf "\033P\033]4;108;rgb:8e/c0/7c\007\033\\"
69
+    printf "\033P\033]4;208;rgb:fe/80/19\007\033\\"
70
+
71
+    printf "\033P\033]4;88;rgb:9d/00/06\007\033\\"
72
+    printf "\033P\033]4;100;rgb:79/74/0e\007\033\\"
73
+    printf "\033P\033]4;136;rgb:b5/76/14\007\033\\"
74
+    printf "\033P\033]4;24;rgb:07/66/78\007\033\\"
75
+    printf "\033P\033]4;96;rgb:8f/3f/71\007\033\\"
76
+    printf "\033P\033]4;66;rgb:42/7b/58\007\033\\"
77
+    printf "\033P\033]4;130;rgb:af/3a/03\007\033\\"
78
+  fi
79
+
80
+elif [ "$TERM" != "linux" ] && [ "$TERM" != "vt100" ] && [ "$TERM" != "vt220" ]; then
81
+
82
+  printf "\033]4;236;rgb:32/30/2f\033\\"
83
+  printf "\033]4;234;rgb:1d/20/21\033\\"
84
+
85
+  printf "\033]4;235;rgb:28/28/28\033\\"
86
+  printf "\033]4;237;rgb:3c/38/36\033\\"
87
+  printf "\033]4;239;rgb:50/49/45\033\\"
88
+  printf "\033]4;241;rgb:66/5c/54\033\\"
89
+  printf "\033]4;243;rgb:7c/6f/64\033\\"
90
+
91
+  printf "\033]4;244;rgb:92/83/74\033\\"
92
+  printf "\033]4;245;rgb:92/83/74\033\\"
93
+
94
+  printf "\033]4;228;rgb:f2/e5/bc\033\\"
95
+  printf "\033]4;230;rgb:f9/f5/d7\033\\"
96
+
97
+  printf "\033]4;229;rgb:fb/f1/c7\033\\"
98
+  printf "\033]4;223;rgb:eb/db/b2\033\\"
99
+  printf "\033]4;250;rgb:d5/c4/a1\033\\"
100
+  printf "\033]4;248;rgb:bd/ae/93\033\\"
101
+  printf "\033]4;246;rgb:a8/99/84\033\\"
102
+
103
+  printf "\033]4;167;rgb:fb/49/34\033\\"
104
+  printf "\033]4;142;rgb:b8/bb/26\033\\"
105
+  printf "\033]4;214;rgb:fa/bd/2f\033\\"
106
+  printf "\033]4;109;rgb:83/a5/98\033\\"
107
+  printf "\033]4;175;rgb:d3/86/9b\033\\"
108
+  printf "\033]4;108;rgb:8e/c0/7c\033\\"
109
+  printf "\033]4;208;rgb:fe/80/19\033\\"
110
+
111
+  printf "\033]4;88;rgb:9d/00/06\033\\"
112
+  printf "\033]4;100;rgb:79/74/0e\033\\"
113
+  printf "\033]4;136;rgb:b5/76/14\033\\"
114
+  printf "\033]4;24;rgb:07/66/78\033\\"
115
+  printf "\033]4;96;rgb:8f/3f/71\033\\"
116
+  printf "\033]4;66;rgb:42/7b/58\033\\"
117
+  printf "\033]4;130;rgb:af/3a/03\033\\"
118
+fi
119
+

+ 10
- 10
nvim/after/syntax/elm.vim View File

@@ -27,24 +27,24 @@
27 27
 "   - 1.0.1  Update pipe operator symbol and add few extra operator overrides
28 28
 "   - 1.0.0  Initial release - just override pipe operator
29 29
 "
30
-if exists('g:no_elm_conceal') || !has('conceal') || &enc != 'utf-8'
31
-  finish
32
-endif
30
+"if exists('g:no_elm_conceal') || !has('conceal') || &enc != 'utf-8'
31
+  "finish
32
+"endif
33 33
 "
34 34
 " if !has('conceal')
35 35
 "     finish
36 36
 " endif
37 37
 
38
-syntax match exNiceOperator "|>" conceal cchar=▷
38
+"syntax match exNiceOperator "|>" conceal cchar=▷
39 39
 " syntax match exNiceOperator "<-" conceal cchar=←
40
-syntax match exNiceOperator "->" conceal cchar=→
40
+"syntax match exNiceOperator "->" conceal cchar=→
41 41
 " syntax match exNiceOperator "==" conceal cchar=≡
42 42
 " syntax match exNiceOperator "!=" conceal cchar=≢
43
-syntax match exNiceOperator "<=" conceal cchar=≤
44
-syntax match exNiceOperator ">=" conceal cchar=≥
43
+"syntax match exNiceOperator "<=" conceal cchar=≤
44
+"syntax match exNiceOperator ">=" conceal cchar=≥
45 45
 
46
-hi link exNiceOperator Operator
47
-hi! link Conceal Operator
48
-setlocal conceallevel=2
46
+"hi link exNiceOperator Operator
47
+"hi! link Conceal Operator
48
+"setlocal conceallevel=2
49 49
 
50 50
 

+ 1
- 1
scripts/lock View File

@@ -1,4 +1,4 @@
1 1
 #!/bin/bash
2 2
 scrot /tmp/screenshot.png
3 3
 convert /tmp/screenshot.png -blur 0x5 /tmp/screenshotblur.png
4
-i3lock -i /tmp/screenshotblur.png -fe
4
+/home/andrei/.config/i3/i3lock-fancy-multimonitor/lock -n -p -b=0x5

+ 4
- 0
zsh/exports.zsh View File

@@ -3,6 +3,10 @@
3 3
 # ZSH 
4 4
 export UPDATE_ZSH_DAYS=1
5 5
 
6
+# MPW
7
+MPW_FULLNAME="Andrew Zah"
8
+MPW_FORMAT='none'
9
+
6 10
 # Custom
7 11
 ########
8 12
 

Loading…
Cancel
Save