Clipboard, SSH keys..

4a396d9ea60edbd7045df3a9ba03bc3aee60a475
Alexis Sellier committed ago 1 parent d19f2a1d
.config/fish/config.fish +11 -3
10 10
  set fish_cursor_default block
11 11
  set fish_cursor_insert underscore
12 12
  set fish_cursor_replace_one underscore
13 13
  set fish_cursor_visual block
14 14
15 -
  if set -q SSH_AUTH_SOCK; and not test -S "$SSH_AUTH_SOCK"
16 -
    set -e SSH_AUTH_SOCK
17 -
    set -e SSH_AGENT_PID
15 +
  if set -q SSH_AUTH_SOCK
16 +
    if not test -S "$SSH_AUTH_SOCK"
17 +
      set -e SSH_AUTH_SOCK
18 +
      set -e SSH_AGENT_PID
19 +
    else if type -q ssh-add
20 +
      ssh-add -l >/dev/null 2>&1
21 +
      if test $status -eq 2
22 +
        set -e SSH_AUTH_SOCK
23 +
        set -e SSH_AGENT_PID
24 +
      end
25 +
    end
18 26
  end
19 27
20 28
  if type -q keychain
21 29
    keychain --eval --quiet --noinherit ~/.ssh/id_rsa ~/.radicle/keys/radicle ~/.ssh/alexis.radiant.computer | source
22 30
  end
.config/foot/foot.ini +4 -0
29 29
30 30
[cursor]
31 31
style=beam
32 32
beam-thickness=2px
33 33
34 +
[key-bindings]
35 +
clipboard-copy=Control+Shift+c XF86Copy
36 +
clipboard-paste=Control+Shift+v XF86Paste
37 +
34 38
[csd]
35 39
preferred=server
36 40
size=32
37 41
font=monospace:size=16
38 42
color=ff0d0d0d
.config/sway/config +3 -1
14 14
15 15
output * scale 1.5 bg $bg solid_color
16 16
output * bg ~/images/wallpaper.png tile
17 17
exec $term
18 18
exec waybar
19 +
exec wl-paste --type text --watch cliphist store
20 +
exec wl-paste --type image --watch cliphist store
19 21
20 22
focus_follows_mouse yes
21 23
mouse_warping none
22 24
workspace_auto_back_and_forth no
23 25
floating_modifier $mod normal
63 65
bindsym $mod+k             focus up
64 66
bindsym $mod+l             focus right
65 67
bindsym $mod+Shift+j       move down
66 68
bindsym $mod+Shift+k       move up
67 69
bindsym $mod+Shift+h       move left
68 -
bindsym $mod+Shift+l       move right
70 +
bindsym $mod+Shift+l       exec sh -c 'cliphist list | fuzzel --dmenu --width 100 | cliphist decode | wl-copy'
69 71
bindsym $mod+f             fullscreen toggle
70 72
bindsym $mod+Shift+space   floating toggle
71 73
bindsym $mod+space         layout toggle split
72 74
bindsym $mod+Return        layout toggle split
73 75
bindsym $mod+s             layout stacking
.config/waybar/config +12 -1
3 3
  "position": "bottom",
4 4
  "height": 30,
5 5
  "spacing": 8,
6 6
  "modules-left": [ "sway/workspaces" ],
7 7
  "modules-center": [],
8 -
  "modules-right": [ "network", "cpu", "memory", "disk", "pulseaudio", "battery", "tray", "clock" ],
8 +
  "modules-right": [ "network", "cpu", "memory", "disk", "pulseaudio", "battery", "custom/clipboard", "tray", "clock" ],
9 9
  "sway/workspaces": {
10 10
    "disable-scroll": true,
11 11
    "all-outputs": false,
12 12
    "format": "{name}"
13 13
  },
55 55
    "states": {
56 56
      "warning": 30,
57 57
      "critical": 15
58 58
    }
59 59
  },
60 +
  "custom/clipboard": {
61 +
    "format": "",
62 +
    "interval": "once",
63 +
    "return-type": "json",
64 +
    "exec": "sh -c 'printf \"{\\\"tooltip\\\":\\\"%s clipboard items\\\"}\\n\" \"$(cliphist list 2>/dev/null | wc -l)\"'",
65 +
    "exec-if": "sh -c 'command -v cliphist >/dev/null && [ \"$(cliphist list 2>/dev/null | wc -l)\" -gt 0 ]'",
66 +
    "on-click": "sh -c 'cliphist list | fuzzel --dmenu --width 100 | cliphist decode | wl-copy && pkill -RTMIN+9 waybar'",
67 +
    "on-click-right": "sh -c 'cliphist list | fuzzel --dmenu --width 100 | cliphist delete && pkill -RTMIN+9 waybar'",
68 +
    "on-click-middle": "sh -c 'cliphist wipe && pkill -RTMIN+9 waybar'",
69 +
    "signal": 9
70 +
  },
60 71
  "tray": {
61 72
    "icon-size": 18,
62 73
    "spacing": 8
63 74
  }
64 75
}
.config/waybar/style.css +5 -0
44 44
#battery {
45 45
    background-color: transparent;
46 46
    color: #dddddd;
47 47
}
48 48
49 +
#custom-clipboard {
50 +
    background-color: transparent;
51 +
    color: #dddddd;
52 +
}
53 +
49 54
#tray {
50 55
    background-color: transparent;
51 56
}
52 57
53 58
#workspaces button {
.vimrc +1 -1
134 134
au FileType solidity    setlocal number ts=4  sw=4 expandtab nowrap
135 135
au FileType graphql     setlocal number ts=4  sw=4 expandtab nowrap
136 136
au FileType rust        setlocal number signcolumn=yes nowrap colorcolumn=100 textwidth=100
137 137
au FileType plain       setlocal nonumber noai nocin nosi inde= wrap linebreak textwidth=80
138 138
au FileType pandoc      setlocal nonumber
139 -
au FileType markdown    setlocal nonumber conceallevel=0 formatprg=fmt\ -w\ 80
139 +
au FileType markdown    setlocal nonumber nowrap conceallevel=0 formatprg=fmt\ -w\ 80
140 140
au FileType rst         setlocal nonumber sw=2 expandtab wrap linebreak textwidth=80
141 141
au FileType todo        setlocal nonumber sw=2 expandtab nolinebreak nowrap textwidth=0
142 142
au FileType fountain    setlocal nonumber noai nocin nosi inde= wrap linebreak
143 143
au FileType tex         setlocal
144 144
au FileType verilog     setlocal commentstring=//\ %s