Lots of updates!
4241aad1322d06be21a174dc709efc037c2ee8ca
1 parent
bf0c3d41
.config/alacritty/alacritty.yml
+1 -1
| 92 | 92 | # |
|
| 93 | 93 | # Default: |
|
| 94 | 94 | # - (macOS) Menlo |
|
| 95 | 95 | # - (Linux) monospace |
|
| 96 | 96 | # - (Windows) Consolas |
|
| 97 | - | family: Inconsolata |
|
| 97 | + | family: Victor Mono |
|
| 98 | 98 | ||
| 99 | 99 | # The `style` can be specified to pick a specific face. |
|
| 100 | 100 | style: Regular |
|
| 101 | 101 | ||
| 102 | 102 | # Bold font face |
.config/kitty/kitty.conf
+5 -5
| 1 | - | font_family Victor Mono SemiBold |
|
| 2 | - | bold_font Victor Mono Bold |
|
| 3 | - | italic_font Victor Mono SemiBold |
|
| 4 | - | bold_italic_font Victor Mono Bold |
|
| 1 | + | font_family Victor Mono Medium |
|
| 2 | + | bold_font Victor Mono SemiBold |
|
| 3 | + | italic_font Victor Mono Medium |
|
| 4 | + | bold_italic_font Victor Mono SemiBold |
|
| 5 | 5 | font_size 13.0 |
|
| 6 | 6 | adjust_line_height -3 |
|
| 7 | 7 | enable_audio_bell no |
|
| 8 | 8 | ||
| 9 | 9 | scrollback_lines 8192 |
|
| 10 | - | input_delay 8 |
|
| 10 | + | input_delay 16 |
|
| 11 | 11 | repaint_delay 16 |
|
| 12 | 12 | sync_to_monitor yes |
|
| 13 | 13 | draw_minimal_borders yes |
|
| 14 | 14 | cursor_blink_interval 0 |
|
| 15 | 15 | strip_trailing_spaces always |
.config/systemd/user/share-sync.service
+2 -3
| 1 | 1 | [Unit] |
|
| 2 | - | Description=Backup |
|
| 3 | - | After=network.target |
|
| 2 | + | Description=Backup Service |
|
| 4 | 3 | ||
| 5 | 4 | [Service] |
|
| 6 | 5 | Type=simple |
|
| 7 | 6 | WorkingDirectory=/home/cloudhead |
|
| 8 | 7 | Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
|
| 9 | 8 | ExecStart=/home/cloudhead/bin/share-sync |
|
| 10 | 9 | Restart=always |
|
| 11 | 10 | RestartSec=1000ms |
|
| 12 | 11 | ||
| 13 | 12 | [Install] |
|
| 14 | - | WantedBy=default.target |
|
| 13 | + | WantedBy=multi-user.target |
.dircolors
+1 -1
| 50 | 50 | SETGID 00 # file that is setgid (g+s) |
|
| 51 | 51 | CAPABILITY 00 # file with capability |
|
| 52 | 52 | STICKY_OTHER_WRITABLE 00 # dir that is sticky and other-writable (+t,o+w) |
|
| 53 | 53 | OTHER_WRITABLE 00 # dir that is other-writable (o+w) and not sticky |
|
| 54 | 54 | STICKY 00 # dir with the sticky bit set (+t) and not other-writable |
|
| 55 | - | EXEC 00;38;5;64 # This is for files with execute permission: |
|
| 55 | + | EXEC 00;32;5;64 # This is for files with execute permission: |
|
| 56 | 56 | ||
| 57 | 57 | ## Archives or compressed (violet + bold for compression) |
|
| 58 | 58 | # |
|
| 59 | 59 | .tar 00;38;5;61 |
|
| 60 | 60 | .tgz 00;38;5;61 |
.gitconfig
+2 -2
| 1 | 1 | [user] |
|
| 2 | - | email = alexis@monadic.xyz |
|
| 2 | + | email = self@cloudhead.io |
|
| 3 | 3 | name = Alexis Sellier |
|
| 4 | - | signingkey = Alexis Sellier <alexis@monadic.xyz> |
|
| 4 | + | signingkey = Alexis Sellier <self@cloudhead.io> |
|
| 5 | 5 | ||
| 6 | 6 | [github] |
|
| 7 | 7 | user = cloudhead |
|
| 8 | 8 | ||
| 9 | 9 | [color] |
.vimrc
+1 -5
| 130 | 130 | au BufRead,BufNewFile *.tex setf tex |
|
| 131 | 131 | au BufRead,BufNewFile *.todo setf todo |
|
| 132 | 132 | au BufRead,BufNewFile *.tikz setf tex |
|
| 133 | 133 | au BufRead,BufNewFile *.toml setf toml |
|
| 134 | 134 | au BufRead,BufNewFile *.rs setf rust |
|
| 135 | + | au BufRead,BufNewFile *.mustache setf mustache |
|
| 135 | 136 | ||
| 136 | 137 | " If no file-type is detected, set to plain. |
|
| 137 | 138 | autocmd BufEnter * if &filetype == "" | setlocal ft=plain | endif |
|
| 138 | 139 | ||
| 139 | 140 | let c_no_curly_error = 1 |
| 220 | 221 | nnoremap <Leader>h :nohl<CR> |
|
| 221 | 222 | ||
| 222 | 223 | nnoremap <Leader>n :cnext<CR> |
|
| 223 | 224 | nnoremap <Leader>p :cprev<CR> |
|
| 224 | 225 | ||
| 225 | - | " Git |
|
| 226 | - | cnoreabbrev gw Gwrite |
|
| 227 | - | cnoreabbrev gwa Git add -u |
|
| 228 | - | cnoreabbrev gc Gcommit -v |
|
| 229 | - | ||
| 230 | 226 | autocmd BufRead fugitive\:* xnoremap <buffer> dp :diffput<CR> |
|
| 231 | 227 | autocmd BufRead fugitive\:* xnoremap <buffer> do :diffget<CR> |
|
| 232 | 228 | ||
| 233 | 229 | " Support jsonc comments in json files |
|
| 234 | 230 | autocmd FileType json syntax match Comment +\/\/.\+$+ |
.xinitrc
+1 -0
| 7 | 7 | . ~/bin/toggle-displays |
|
| 8 | 8 | ||
| 9 | 9 | [ -f ~/.profile ] && . ~/.profile |
|
| 10 | 10 | [ -f ~/.synaptics ] && . ~/.synaptics |
|
| 11 | 11 | ||
| 12 | + | setxkbmap -option compose:lwin |
|
| 12 | 13 | setxkbmap -option compose:rwin |
|
| 13 | 14 | ||
| 14 | 15 | if [ -f ~/.Xmodmap ]; then |
|
| 15 | 16 | xmodmap ~/.Xmodmap; |
|
| 16 | 17 | fi |
.xmonad/xmonad.hs
+6 -5
| 42 | 42 | showXPrompt (EnterPrompt n) = " " ++ n ++ " " |
|
| 43 | 43 | ||
| 44 | 44 | confirmPrompt :: XPConfig -> String -> X () -> X () |
|
| 45 | 45 | confirmPrompt config app func = mkXPrompt (EnterPrompt app) config (mkComplFunFromList []) $ const func |
|
| 46 | 46 | ||
| 47 | - | screenshotPrompt :: String -> X () |
|
| 48 | - | screenshotPrompt home = do |
|
| 47 | + | screenshotPrompt :: String -> Bool -> X () |
|
| 48 | + | screenshotPrompt home select = do |
|
| 49 | 49 | str <- inputPrompt cfg "~/screenshots/" |
|
| 50 | 50 | case str of |
|
| 51 | - | Just s -> spawn $ printf "sleep 0.3 && scrot -u '%s.png' -e 'mv $f ~/screenshots'" s |
|
| 51 | + | Just s -> spawn $ printf "sleep 0.3 && scrot %s '%s' -e 'mv $f ~/screenshots'" mode s |
|
| 52 | 52 | Nothing -> pure () |
|
| 53 | 53 | where |
|
| 54 | + | mode = if select then "--select" else "--focused" |
|
| 54 | 55 | cfg = myXPConfig { position = CenteredAt 0.5 0.3 |
|
| 55 | 56 | , defaultText = "" } |
|
| 56 | 57 | ||
| 57 | 58 | editPrompt :: String -> X () |
|
| 58 | 59 | editPrompt home = do |
| 159 | 160 | , ((modMask, xK_p), runExecutable) |
|
| 160 | 161 | , ((modMask .|. shiftMask, xK_p), editPrompt home) |
|
| 161 | 162 | , ((modMask, xK_o), switchWindow) |
|
| 162 | 163 | , ((modMask, xK_Tab), toggleWS) |
|
| 163 | 164 | , ((modMask .|. controlMask, xK_Return), toggleFloatNext >> (spawn $ XMonad.terminal conf)) |
|
| 164 | - | , ((modMask, xK_Print), screenshotPrompt home) |
|
| 165 | - | , ((modMask .|. shiftMask, xK_Print), safeSpawn "screenshot-region" []) |
|
| 165 | + | , ((modMask, xK_Print), screenshotPrompt home False) |
|
| 166 | + | , ((modMask .|. shiftMask, xK_Print), screenshotPrompt home True) |
|
| 166 | 167 | , ((modMask, xK_0), windows $ greedyView "ω") |
|
| 167 | 168 | , ((modMask .|. shiftMask, xK_0), windows $ shift "ω") |
|
| 168 | 169 | , ((modMask, xK_Left), prevWS) |
|
| 169 | 170 | , ((modMask, xK_Right), nextWS) |
|
| 170 | 171 | , ((modMask .|. shiftMask, xK_q), confirmPrompt myXPConfig "Exit?" $ io (exitWith ExitSuccess)) |
bin/share-sync
+2 -0
| 1 | 1 | #!/bin/sh |
|
| 2 | 2 | ||
| 3 | 3 | dir=$HOME/share/ |
|
| 4 | 4 | user=$(whoami) |
|
| 5 | 5 | ||
| 6 | + | echo "Backup service started.." | systemd-cat -p info |
|
| 7 | + | ||
| 6 | 8 | while inotifywait -qqr \ |
|
| 7 | 9 | -e modify -e moved_to -e moved_from -e create -e delete "$dir"; |
|
| 8 | 10 | do |
|
| 9 | 11 | rsync --del -avz ~/share/ $user@box:share |
|
| 10 | 12 | done |