my dotz
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge remote-tracking branch 'origin/main'

+259 -69
+26 -2
.config/foot/foot.ini
··· 1 - font=monospace:size=11 1 + font = monospace:size=10 2 2 3 3 [scrollback] 4 - lines=4000 4 + lines = 50000 5 + 6 + # everforest/dark/hard 7 + [colors] 8 + alpha=1.0 9 + background=2b3339 10 + foreground=d3c6aa 11 + 12 + regular0=4b565c # black 13 + regular1=e67e80 # red 14 + regular2=a7c080 # green 15 + regular3=dbbc7f # yellow 16 + regular4=7fbbb3 # blue 17 + regular5=d699b6 # magenta 18 + regular6=83c092 # cyan 19 + regular7=d3c6aa # white 20 + 21 + bright0=4b565c # black 22 + bright1=e67e80 # red 23 + bright2=a7c080 # green 24 + bright3=dbbc7f # yellow 25 + bright4=7fbbb3 # blue 26 + bright5=d699b6 # magenta 27 + bright6=83c092 # cyan 28 + bright7=d3c6aa # white
+17
.config/himalaya/config.toml
··· 1 + [Personal] 2 + backend = "imap" 3 + email = "j3s@c3f.net" 4 + default = true 5 + display-name = "jes olson" 6 + sender = "smtp" 7 + smtp-host = "smtp.migadu.com" 8 + smtp-port = 465 9 + smtp-ssl = true 10 + smtp-login = "j3s@c3f.net" 11 + smtp-passwd-cmd = "pa show j3s@c3f.net" 12 + sync = false 13 + imap-host = "imap.migadu.com" 14 + imap-port = 993 15 + imap-ssl = true 16 + imap-login = "j3s@c3f.net" 17 + imap-passwd-cmd = "pa show j3s@c3f.net"
+168
.config/hypr/hyprland.conf
··· 1 + # https://wiki.hyprland.org/Configuring/Monitors 2 + # https://wiki.hyprland.org/Configuring/Keywords 3 + monitor = ,preferred,auto,auto 4 + exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP 5 + exec-once = swaybg -i /home/j3s/Pictures/rose.jpg -m tile 6 + 7 + # my quake-style terminal 8 + exec-once=[workspace special; size 75% 20%;move 12.5% 40] foot 9 + 10 + # Source a file (multi-file configs) 11 + # source = ~/.config/hypr/myColors.conf 12 + 13 + # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ 14 + 15 + input { 16 + kb_layout = us 17 + kb_variant = 18 + kb_model = 19 + kb_options = ctrl:nocaps 20 + kb_rules = 21 + 22 + follow_mouse = 1 23 + 24 + touchpad { 25 + natural_scroll = no 26 + } 27 + 28 + sensitivity = 0 # -1.0 - 1.0, 0 means no modification. 29 + } 30 + 31 + general { 32 + # See https://wiki.hyprland.org/Configuring/Variables/ for more 33 + 34 + gaps_in = 5 35 + gaps_out = 20 36 + border_size = 2 37 + col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg 38 + col.inactive_border = rgba(595959aa) 39 + 40 + layout = dwindle 41 + } 42 + 43 + decoration { 44 + # See https://wiki.hyprland.org/Configuring/Variables/ for more 45 + 46 + rounding = 10 47 + blur = yes 48 + blur_size = 3 49 + blur_passes = 1 50 + blur_new_optimizations = on 51 + 52 + drop_shadow = yes 53 + shadow_range = 4 54 + shadow_render_power = 3 55 + col.shadow = rgba(1a1a1aee) 56 + } 57 + 58 + animations { 59 + enabled = yes 60 + 61 + # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more 62 + 63 + bezier = myBezier, 0.05, 0.9, 0.1, 1.05 64 + 65 + animation = windows, 1, 7, myBezier 66 + animation = windowsOut, 1, 7, default, popin 80% 67 + animation = border, 1, 10, default 68 + animation = borderangle, 1, 8, default 69 + animation = fade, 1, 7, default 70 + animation = workspaces, 1, 6, default 71 + } 72 + 73 + dwindle { 74 + # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more 75 + pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below 76 + preserve_split = yes # you probably want this 77 + } 78 + 79 + master { 80 + # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more 81 + new_is_master = true 82 + } 83 + 84 + gestures { 85 + # See https://wiki.hyprland.org/Configuring/Variables/ for more 86 + workspace_swipe = on 87 + workspace_swipe_invert = false 88 + workspace_swipe_distance = 3000 89 + workspace_swipe_min_speed_to_force = 5 90 + } 91 + 92 + # Example per-device config 93 + # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more 94 + # device:epic mouse V1 { 95 + # sensitivity = -0.5 96 + # } 97 + 98 + # Example windowrule v1 99 + # windowrule = float, ^(kitty)$ 100 + # Example windowrule v2 101 + # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ 102 + # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more 103 + 104 + 105 + # See https://wiki.hyprland.org/Configuring/Keywords/ for more 106 + $mainMod = SUPER 107 + 108 + # https://wiki.hyprland.org/Configuring/Binds 109 + bind = $mainMod, -, togglespecialworkspace 110 + bind = $mainMod, Return, exec, foot 111 + bind = $mainMod SHIFT, Q, killactive, 112 + bind = $mainMod SHIFT, E, exit, 113 + bind = $mainMod SHIFT, S, exec, grim -g "$(slurp)" - | wl-copy 114 + bind = $mainMod, F, fullscreen, 115 + bind = $mainMod SHIFT, Space, togglefloating, 116 + bind = $mainMod, D, exec, wofi --show drun 117 + # s = special workspace 118 + # ??? = screenshot 119 + # bind = $mainMod, S, exec, wofi --show drun 120 + # bind = $mainMod, P, pseudo, # dwindle 121 + # bind = $mainMod SHIFT, J, togglesplit, # dwindle 122 + 123 + binde = , XF86AudioRaiseVolume, exec, vol up 5 124 + bindl = , XF86AudioLowerVolume, exec, vol down 5 125 + 126 + # clamshell mode 127 + bindl = ,switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" 128 + bindl = ,switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, preferred, auto, auto" 129 + 130 + # vim movement 131 + bind = $mainMod, H, movefocus, l 132 + bind = $mainMod, L, movefocus, r 133 + bind = $mainMod, K, movefocus, u 134 + bind = $mainMod, J, movefocus, d 135 + bind = $mainMod SHIFT, H, workspace, e-1 136 + bind = $mainMod SHIFT, L, workspace, e+1 137 + 138 + # Switch workspaces with mainMod + [0-9] 139 + bind = $mainMod, 1, workspace, 1 140 + bind = $mainMod, 2, workspace, 2 141 + bind = $mainMod, 3, workspace, 3 142 + bind = $mainMod, 4, workspace, 4 143 + bind = $mainMod, 5, workspace, 5 144 + bind = $mainMod, 6, workspace, 6 145 + bind = $mainMod, 7, workspace, 7 146 + bind = $mainMod, 8, workspace, 8 147 + bind = $mainMod, 9, workspace, 9 148 + bind = $mainMod, 0, workspace, 10 149 + 150 + # Move active window to a workspace with mainMod + SHIFT + [0-9] 151 + bind = $mainMod SHIFT, 1, movetoworkspace, 1 152 + bind = $mainMod SHIFT, 2, movetoworkspace, 2 153 + bind = $mainMod SHIFT, 3, movetoworkspace, 3 154 + bind = $mainMod SHIFT, 4, movetoworkspace, 4 155 + bind = $mainMod SHIFT, 5, movetoworkspace, 5 156 + bind = $mainMod SHIFT, 6, movetoworkspace, 6 157 + bind = $mainMod SHIFT, 7, movetoworkspace, 7 158 + bind = $mainMod SHIFT, 8, movetoworkspace, 8 159 + bind = $mainMod SHIFT, 9, movetoworkspace, 9 160 + bind = $mainMod SHIFT, 0, movetoworkspace, 10 161 + 162 + # Scroll through existing workspaces with mainMod + scroll 163 + bind = $mainMod, mouse_down, workspace, e+1 164 + bind = $mainMod, mouse_up, workspace, e-1 165 + 166 + # Move/resize windows with mainMod + LMB/RMB and dragging 167 + bindm = $mainMod, mouse:272, movewindow 168 + bindm = $mainMod, mouse:273, resizewindow
-6
.config/mako/config
··· 1 - width=200 2 - font=sans 10 3 - border-radius=3 4 - max-visible=2 5 - background-color=#d3d3d3 6 - text-color=#000000
+5 -5
.profile
··· 1 - export PATH=~/bin/$(hostname):~/bin/$(uname -m):~/bin:~/go/bin:$PATH 1 + export PATH=~/bin/$(hostname):~/bin:~/go/bin:$PATH 2 2 export ENV=~/.rc 3 3 export EDITOR=nvim 4 4 export LANG=en_US.UTF-8 5 5 export GDK_BACKEND=wayland 6 6 # https://wiki.archlinux.org/title/Firefox#Applications_on_Wayland_can_not_launch_Firefox 7 7 export MOZ_DBUS_REMOTE=1 8 - export XDG_CURRENT_DESKTOP=sway 9 - export CHEF_USER_NAME=jolson 8 + # export XDG_CURRENT_DESKTOP=sway 10 9 11 - # for chef 10 + # DO 11 + export CHEF_USER_NAME=jolson 12 + export KITCHEN_SSH_GATEWAY_USERNAME=jolson 12 13 export DIGITALOCEAN_ACCESS_TOKEN="$(pa show cloud.digitalocean.com | head -1)" 13 14 export DIGITALOCEAN_STAGE2_ACCESS_TOKEN="$(pa show stage2.cloud.digitalocean.com | head -1)" 14 - export KITCHEN_SSH_GATEWAY_USERNAME=jolson 15 15 16 16 # this apparently makes java windows not suck 17 17 # for reasons beyond my mortal comprehension
-20
bin/nostromo/statusbar
··· 1 - #!/bin/sh 2 - 3 - get_bat() { 4 - bat="$(cat /sys/class/power_supply/BAT1/capacity)" 5 - if [ "$bat" -lt 10 ]; then 6 - printf '<span foreground="red">%s%%</span>' "$bat" 7 - else 8 - printf '%s%%' "$bat" 9 - fi 10 - } 11 - 12 - while true 13 - do 14 - time=$(date +"%A %Y-%m-%d %I:%M %p") 15 - time="$time $(date -u +"(%H:%M UTC)")" 16 - bat="$(get_bat)" 17 - wifi="$(nmcli -t dev show wlp170s0 | grep GENERAL.CONNECTION | cut -d ':' -f 2)" 18 - printf "wifi: %s | bat: %s | %s\n" "$wifi" "$bat" "$time" 19 - sleep 10 20 - done
bin/prompt

This is a binary file and will not be displayed.

+37 -33
bin/prompt.go
··· 6 6 "os/exec" 7 7 "path/filepath" 8 8 "strings" 9 - "time" 10 9 ) 11 10 12 - // getRepoRoot returns the full path to the root 13 - // of the closest git dir 14 - func gitTopLevel() string { 15 - path, err := exec.Command("git", "rev-parse", "--show-toplevel").Output() 11 + func main() { 12 + wd, err := os.Getwd() 16 13 if err != nil { 17 - // assume the error means there's no git 18 - // dir above us 19 - return "/" 14 + fmt.Print("$ ") 15 + return 20 16 } 21 - return strings.TrimSpace(string(path)) 22 - } 23 - 24 - func resolveEmoji(hostname string) string { 25 - emoji := "💀" 26 - if hostname == "zora" { 27 - emoji = "🌸" 28 - } else if hostname == "nostromo" { 29 - emoji = "🛸" 17 + cwd, err := filepath.EvalSymlinks(wd) 18 + if err != nil { 19 + fmt.Print("$ ") 20 + return 30 21 } 31 - return emoji 32 - } 33 - 34 - func main() { 35 - wd, _ := os.Getwd() 36 - cwd, _ := filepath.EvalSymlinks(wd) 37 - host, _ := os.Hostname() 38 - home := os.Getenv("HOME") 39 - now := time.Now().Format("15:04:05") 40 - emoji := resolveEmoji(host) 41 - fmt.Printf("%s %s ", now, emoji) 22 + emoji := resolveEmoji() 42 23 43 24 var promptRoot string 44 - gitTop := gitTopLevel() 45 - if gitTop == home { 25 + gitRoot := gitRoot() 26 + if gitRoot == os.Getenv("HOME") { 46 27 promptRoot = "~" 47 28 } else { 48 - promptRoot = filepath.Base(gitTop) 29 + promptRoot = filepath.Base(gitRoot) 49 30 } 50 31 // subtract the git toplevel "/home/j3s" 51 32 // from the cwd "/home/j3s/code/nongitdir" 52 33 // to get the suffix "/code/nongitdir" 53 34 // os.cwd gets the symlink, git does not 54 - suffix := cwd[len(gitTop):] 55 - fmt.Printf("%s", promptRoot) 35 + suffix := cwd[len(gitRoot):] 36 + fmt.Printf("%s %s", emoji, promptRoot) 56 37 57 38 var parts []string 58 39 parts = strings.Split(suffix, "/") ··· 68 49 } 69 50 } 70 51 } 52 + 53 + func resolveEmoji() string { 54 + hostname, _ := os.Hostname() 55 + if hostname == "zora" { 56 + return "🌸" 57 + } 58 + if hostname == "rose" { 59 + return "🌹" 60 + } 61 + return "💀" 62 + } 63 + 64 + // getRepoRoot returns the full path to the root 65 + // of the closest git dir 66 + func gitRoot() string { 67 + path, err := exec.Command("git", "rev-parse", "--show-toplevel").Output() 68 + if err != nil { 69 + // assume the error means there's no git 70 + // dir above us, or git isn't installed. 71 + return "/" 72 + } 73 + return strings.TrimSpace(string(path)) 74 + }
+6 -3
bin/vol
··· 1 - #!/bin/sh -e 1 + #!/bin/sh 2 + # 3 + # simple pulse wrapper for controlling volume 2 4 # 3 - # simple pulse wrapper for controlling 4 - # audio stuff i care about 5 + # deps: 6 + # - pactl 7 + # - notify-send 5 8 6 9 get_current_volume_percent() { 7 10 percent="$(pactl get-sink-volume @DEFAULT_SINK@ | awk '/Volume/ {print $5}')"
bin/x86_64/prompt

This is a binary file and will not be displayed.