Personal dotfiles. Install via curl -Lks https://bit.ly/2Jlynh5 | /bin/bash -x
0
fork

Configure Feed

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

Update for NixOS

james7132 958f237e 5c2cc4ee

+72 -47
+44 -36
.config/fish/config.fish
··· 1 + # Drop the greeting 2 + set -g fish_greeting 3 + 1 4 if status is-login; and not contains "$HOME/.local/bin" $PATH 2 - set -gx PATH "$HOME/.local/bin:$PATH" 5 + set -gx PATH "$HOME/.local/bin:$PATH" 3 6 end 4 7 5 8 if type -q ssh-agent 6 - if not pgrep -u "$USER" ssh-agent > /dev/null 7 - ssh-agent -c -t 1h > "$XDG_RUNTIME_DIR/ssh-agent-$USER.env" 8 - end 9 - if not set -q SSH_AUTH_SOCK 10 - eval $(cat "$XDG_RUNTIME_DIR/ssh-agent-$USER.env") > /dev/null 11 - end 9 + if not pgrep -u "$USER" ssh-agent >/dev/null 10 + ssh-agent -c -t 1h >"$XDG_RUNTIME_DIR/ssh-agent-$USER.env" 11 + end 12 + if not set -q SSH_AUTH_SOCK 13 + eval $(cat "$XDG_RUNTIME_DIR/ssh-agent-$USER.env") >/dev/null 14 + end 12 15 end 13 16 14 17 if status is-interactive 15 - fish_config theme choose dracula | source 16 - fish_config prompt choose scales | source 18 + fish_config theme choose Dracula | source 19 + fish_config prompt choose scales | source 17 20 18 - if type -q helix 19 - set -gx EDITOR "helix" 20 - alias hx="helix" 21 - else if type -q vim 22 - set -gx EDITOR "vim" 23 - end 24 - set -gx VISUAL "$EDITOR" 21 + if type -q hx 22 + set -gx EDITOR hx 23 + else if type -q helix 24 + set -gx EDITOR helix 25 + alias hx="helix" 26 + else if type -q vim 27 + set -gx EDITOR vim 28 + end 29 + set -gx VISUAL "$EDITOR" 25 30 26 - if type -q zoxide 27 - zoxide init fish | source 28 - alias cd="z" 29 - end 31 + if type -q zoxide 32 + zoxide init fish | source 33 + alias cd="z" 34 + end 30 35 31 - if type -q eza 32 - alias ls="eza -lah --color --group-directories-first" 33 - else 34 - alias ls="ls -lah --color --group-directories-first" 35 - end 36 + if type -q eza 37 + alias ls="eza -lah --color --group-directories-first" 38 + else 39 + alias ls="ls -lah --color --group-directories-first" 40 + end 36 41 37 - # For versioning my config files. 38 - # See: https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/ 39 - if set -q XDG_CONFIG_HOME 40 - alias config="/usr/bin/git --git-dir=$XDG_CONFIG_HOME/.cfg/ --work-tree=$HOME" 41 - else 42 - alias config="/usr/bin/git --git-dir=$HOME/.config/.cfg/ --work-tree=$HOME" 43 - end 42 + # For versioning my config files. 43 + # See: https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/ 44 + if set -q XDG_CONFIG_HOME 45 + alias config="/usr/bin/env git --git-dir=$XDG_CONFIG_HOME/.cfg/ --work-tree=$HOME" 46 + else 47 + alias config="/usr/bin/env git --git-dir=$HOME/.config/.cfg/ --work-tree=$HOME" 48 + end 44 49 end 45 50 46 - if type -q freshfetch 47 - freshfetch 48 - else if type -q neofetch 49 - neofetch 51 + # Only show freshfetch or neofetch when not in a tmux session 52 + if not set -q TMUX 53 + if type -q freshfetch 54 + freshfetch 55 + else if type -q neofetch 56 + neofetch 57 + end 50 58 end 51 59 52 60 if test -e "$HOME/.config/fish/custom.fish"
+1 -1
.config/foot/foot.ini
··· 7 7 foreground=ffffff 8 8 9 9 [url] 10 - launch=/usr/bin/handlr open {url} 10 + launch=/usr/bin/env handlr open {url}
+6
.config/helix/config.toml
··· 13 13 [keys.normal] 14 14 ";" = "command_mode" 15 15 "esc" = ["collapse_selection", "keep_primary_selection"] 16 + "H" = ["extend_to_first_nonwhitespace"] 17 + "L" = ["extend_to_line_end"] 18 + "D" = ["extend_to_line_end", "delete_selection"] 19 + "C" = ["extend_to_line_end", "delete_selection", "insert_mode"] 20 + "N" = ["search_prev", "align_view_center"] 21 + "n" = ["search_next", "align_view_center"]
+5
.config/helix/languages.toml
··· 8 8 formatter = { command = "taplo", args = ["fmt", "-"] } 9 9 auto-format = true 10 10 11 + [[language]] 12 + name = "nix" 13 + formatter = { command = "nixfmt", args = [] } 14 + auto-format = true 15 + 11 16 [language-server.rust-analyzer.config.check] 12 17 command = "clippy"
+1 -1
.local/bin/fuzzel-niri-switch
··· 1 - #!/bin/python 1 + #!/usr/bin/env python 2 2 3 3 import subprocess 4 4 from subprocess import Popen, PIPE
+1 -1
.local/bin/fuzzel-powermenu
··· 1 - #!/bin/bash 1 + #!/usr/bin/env bash 2 2 3 3 SELECTION="$(printf "1 - Lock\n2 - Suspend\n3 - Log out\n4 - Reboot\n5 - Reboot to UEFI\n6 - Hard reboot\n7 - Shutdown" | fuzzel --dmenu -l 7 -p "Power Menu: ")" 4 4
+2 -2
.local/bin/fuzzel-ssh
··· 1 - #!/bin/bash 1 + #!/usr/bin/env bash 2 2 3 3 set -e 4 4 5 5 SELECTION=$(cat $HOME/.ssh/config | grep '^Host' | sed 's/Host //' | fuzzel --dmenu) 6 - foot -e --title "ssh $SELECTION" /usr/bin/ssh $SELECTION 6 + foot -e --title "ssh $SELECTION" ssh $SELECTION
+1 -1
.local/bin/fuzzel-steam-sync
··· 1 - #!/usr/bin/python 1 + #!/usr/bin/env python 2 2 3 3 # Basic script to sync installed Steam games and the *.desktop files used by 4 4 # application launchers. Relies on having played the game at least once.
+8 -2
.local/bin/xdg-open
··· 1 - #!/bin/sh 1 + #!/usr/bin/env bash 2 2 3 - handlr open "$@" 3 + if ! command -v handlr >/dev/null 2>&1; then 4 + handlr open "$@" 5 + elif [[ -e /etc/NIXOS ]]; then 6 + /run/current-system/sw/bin/xdg-open "$@" 7 + else 8 + /usr/bin/xdg-open "$@" 9 + fi
+1 -1
.local/share/applications/userapp-BlueSky.desktop
··· 2 2 Encoding=UTF-8 3 3 Version=1.0 4 4 Type=Application 5 - Exec=/usr/bin/handlr open https://bsky.app/ 5 + Exec=/usr/bin/env handlr open https://bsky.app/ 6 6 Name=BlueSky 7 7 Comment=Open BlueSky homepage
+1 -1
.local/share/applications/userapp-GitHub.desktop
··· 2 2 Encoding=UTF-8 3 3 Version=1.0 4 4 Type=Application 5 - Exec=/usr/bin/handlr open https://github.com/ 5 + Exec=/usr/bin/env handlr open https://github.com/ 6 6 Name=GitHub 7 7 Comment=Open GitHub homepage
+1 -1
.local/share/applications/userapp-Reddit.desktop
··· 2 2 Encoding=UTF-8 3 3 Version=1.0 4 4 Type=Application 5 - Exec=/usr/bin/handlr open https://reddit.com/ 5 + Exec=/usr/bin/env handlr open https://reddit.com/ 6 6 Name=Reddit 7 7 Comment=Open Reddit homepage