Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature. gitlab.com/andreijiroh-dev/dotfiles
linux dotfiles
2
fork

Configure Feed

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

Merge branch 'main' of git.sr.ht copy of dotfiles-modern

+281 -7
+7
.bash_logout
··· 1 + # ~/.bash_logout: executed by bash(1) when login shell exits. 2 + 3 + # when leaving the console clear the screen to increase privacy 4 + 5 + if [ "$SHLVL" = 1 ]; then 6 + [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q 7 + fi
+3 -3
.bashrc
··· 10 10 ## This stage also initalizes oh-my-posh here. ## 11 11 if [[ $TERMUX ]]; then 12 12 export SSH_AGENT_=todo 13 - else 13 + elif command -v keychain >> /dev/null; then 14 + export KEYCHAIN_PATh=$(command -v keychain) 14 15 eval $(keychain --agents gpg,ssh --eval) 15 16 fi 16 17 export GPG_TTY=$(tty) 17 - # Tip: I don't want to f**k things up on POSIX-based stuff, I might try 18 - # using 18 + # TODO: Implement feature flag disabling this. 19 19 if command -v oh-my-posh >>/dev/null; then 20 20 eval "$(oh-my-posh init bash)" 21 21 fi
.byobu/.screenrc

This is a binary file and will not be displayed.

+30
.byobu/.tmux.conf
··· 1 + # make sure we can magically source config changes via <prefix>+R shortcut. 2 + bind r source-file ~/.byobu/.tmux.conf 3 + 4 + # split to either horizontally or vertically 5 + bind h splitw -h 6 + bind v splitw -v 7 + ## Quick shortcuts btw for some tools as new windows ## 8 + bind -n M-h new-window htop 9 + bind -n M-m new-window mocp 10 + bind -n M-l new-window lynx 11 + # Since M-p is parked for something else, we add Ctrl before Alt/Meta as a workaround. 12 + bind -n C-M-p new-window pamix 13 + bind -n M-n new-window nano 14 + # also works via the default <prefix>+c 15 + bind -n M-z new-window 16 + bind t select-layout tiled 17 + 18 + # adopt some bloody shortcuts from Terminator 19 + bind -n M-Left select-pane -L 20 + bind -n M-Right select-pane -R 21 + bind -n M-Up select-pane -U 22 + bind -n M-Down select-pane -D 23 + 24 + # activity monitoring 25 + setw -g monitor-activity on 26 + set -g visual-activity on 27 + 28 + # use mouse on tmux, and a bit to tweaks, since I'm using an terminal emulator/gotty most of the time 29 + set -g mouse on 30 + #set -g mouse-select-pane on
.byobu/.welcome-displayed

This is a binary file and will not be displayed.

+1
.byobu/backend
··· 1 + BYOBU_BACKEND=tmux
+3
.byobu/color
··· 1 + BACKGROUND=k 2 + FOREGROUND=w 3 + MONOCHROME=0
+4
.byobu/color.tmux
··· 1 + BYOBU_DARK="\#333333" 2 + BYOBU_LIGHT="\#EEEEEE" 3 + BYOBU_ACCENT="\#75507B" 4 + BYOBU_HIGHLIGHT="\#DD4814"
+2
.byobu/datetime.tmux
··· 1 + BYOBU_DATE="%Y-%m-%d " 2 + BYOBU_TIME="%H:%M:%S"
+1
.byobu/keybindings
··· 1 + source $BYOBU_PREFIX/share/byobu/keybindings/common
+4
.byobu/keybindings.tmux
··· 1 + unbind-key -n C-a 2 + set -g prefix ^A 3 + set -g prefix2 F12 4 + bind a send-prefix
+1
.byobu/profile
··· 1 + source $BYOBU_PREFIX/share/byobu/profiles/common
+1
.byobu/profile.tmux
··· 1 + source $BYOBU_PREFIX/share/byobu/profiles/tmux
+1
.byobu/prompt
··· 1 + [ -r /usr/share/byobu/profiles/bashrc ] && . /usr/share/byobu/profiles/bashrc #byobu-prompt#
+37
.byobu/status
··· 1 + # status - Byobu's default status enabled/disabled settings 2 + # 3 + # Override these in $BYOBU_CONFIG_DIR/status 4 + # where BYOBU_CONFIG_DIR is XDG_CONFIG_HOME if defined, 5 + # and $HOME/.byobu otherwise. 6 + # 7 + # Copyright (C) 2009-2011 Canonical Ltd. 8 + # 9 + # Authors: Dustin Kirkland <kirkland@byobu.org> 10 + # 11 + # This program is free software: you can redistribute it and/or modify 12 + # it under the terms of the GNU General Public License as published by 13 + # the Free Software Foundation, version 3 of the License. 14 + # 15 + # This program is distributed in the hope that it will be useful, 16 + # but WITHOUT ANY WARRANTY; without even the implied warranty of 17 + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 + # GNU General Public License for more details. 19 + # 20 + # You should have received a copy of the GNU General Public License 21 + # along with this program. If not, see <http://www.gnu.org/licenses/>. 22 + 23 + # Status beginning with '#' are disabled. 24 + 25 + # Screen has two status lines, with 4 quadrants for status 26 + screen_upper_left="color" 27 + screen_upper_right="color whoami hostname ip_address menu" 28 + screen_lower_left="color logo distro release #arch session" 29 + screen_lower_right="color network #disk_io custom #entropy raid reboot_required updates_available #apport #services #mail users uptime #fan_speed #cpu_temp battery wifi_quality #processes load_average cpu_count cpu_freq memory #swap disk #time_utc date time" 30 + 31 + # Tmux has one status line, with 2 halves for status 32 + tmux_left="logo #distro release arch session" 33 + # You can have as many tmux right lines below here, and cycle through them using Shift-F5 34 + tmux_right="#network #disk_io #custom entropy raid reboot_required updates_available #apport #services #mail #users uptime #fan_speed #cpu_temp #battery #wifi_quality #processes load_average cpu_count cpu_freq memory #swap disk whoami hostname #ip_address #time_utc date time" 35 + #tmux_right="network #disk_io #custom entropy raid reboot_required updates_available #apport #services #mail users uptime fan_speed cpu_temp battery wifi_quality #processes load_average cpu_count cpu_freq memory #swap #disk whoami hostname ip_address #time_utc date time" 36 + #tmux_right="network #disk_io custom #entropy raid reboot_required updates_available #apport #services #mail users uptime #fan_speed #cpu_temp battery wifi_quality #processes load_average cpu_count cpu_freq memory #swap #disk #whoami #hostname ip_address #time_utc date time" 37 + #tmux_right="#network disk_io #custom entropy #raid #reboot_required #updates_available #apport #services #mail #users #uptime fan_speed cpu_temp #battery #wifi_quality #processes #load_average #cpu_count #cpu_freq #memory #swap whoami hostname ip_address #time_utc disk date time"
+78
.byobu/statusrc
··· 1 + # statusrc - Byobu's default status configurations 2 + # 3 + # Override these in $BYOBU_CONFIG_DIR/statusrc 4 + # where BYOBU_CONFIG_DIR is XDG_CONFIG_HOME if defined, 5 + # and $HOME/.byobu otherwise. 6 + # 7 + # Copyright (C) 2009-2011 Canonical Ltd. 8 + # 9 + # Authors: Dustin Kirkland <kirkland@byobu.org> 10 + # 11 + # This program is free software: you can redistribute it and/or modify 12 + # it under the terms of the GNU General Public License as published by 13 + # the Free Software Foundation, version 3 of the License. 14 + # 15 + # This program is distributed in the hope that it will be useful, 16 + # but WITHOUT ANY WARRANTY; without even the implied warranty of 17 + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 + # GNU General Public License for more details. 19 + # 20 + # You should have received a copy of the GNU General Public License 21 + # along with this program. If not, see <http://www.gnu.org/licenses/>. 22 + 23 + # Configurations that you can override; if you leave these commented out, 24 + # Byobu will try to auto-detect them. 25 + 26 + # This should be auto-detected for most distro, but setting it here will save 27 + # some call to lsb_release and the like. 28 + #BYOBU_DISTRO=Ubuntu 29 + 30 + # Default: depends on the distro (which is either auto-detected, either set 31 + # via $DISTRO) 32 + #LOGO="\o/" 33 + 34 + # Abbreviate the release to N characters 35 + # By default, this is disabled. But if you set RELEASE_ABBREVIATED=1 36 + # and your lsb_release is "precise", only "p" will be displayed 37 + #RELEASE_ABBREVIATED=1 38 + 39 + # Default: / 40 + #MONITORED_DISK=/ 41 + 42 + # Minimum disk throughput that triggers the notification (in kB/s) 43 + # Default: 50 44 + #DISK_IO_THRESHOLD=50 45 + 46 + # Default: eth0 47 + #MONITORED_NETWORK=eth0 48 + 49 + # Unit used for network throughput (either bits per second or bytes per second) 50 + # Default: bits 51 + #NETWORK_UNITS=bytes 52 + 53 + # Minimum network throughput that triggers the notification (in kbit/s) 54 + # Default: 20 55 + #NETWORK_THRESHOLD=20 56 + 57 + # You can add an additional source of temperature here 58 + #MONITORED_TEMP=/proc/acpi/thermal_zone/THM0/temperature 59 + 60 + # Default: C 61 + #TEMP=F 62 + 63 + #SERVICES="eucalyptus-nc|NC eucalyptus-cloud|CLC eucalyptus-walrus eucalyptus-cc|CC eucalyptus-sc|SC" 64 + 65 + #FAN=$(find /sys -type f -name fan1_input | head -n1) 66 + 67 + # You can set this to 1 to report your external/public ip address 68 + # Default: 0 69 + #IP_EXTERNAL=0 70 + 71 + # The users notification normally counts ssh sessions; set this configuration to '1' 72 + # to instead count number of distinct users logged onto the system 73 + # Default: 0 74 + #USERS_DISTINCT=0 75 + 76 + # Set this to zero to hide seconds int the time display 77 + # Default 1 78 + #TIME_SECONDS=0
.byobu/windows

This is a binary file and will not be displayed.

.byobu/windows.tmux

This is a binary file and will not be displayed.

+35
.config/bash/aliases
··· 1 + # General 2 + alias clear="printf '\033c'" # faster than ncurses clear by a lot 3 + alias c='clear' 4 + alias bashrc="vim ~/.bashrc && source ~/.bashrc" 5 + # LS 6 + alias ls='ls --color=auto -FAh' 7 + alias ll='ls -l' 8 + alias la='ls' 9 + alias l.='ls | egrep "^\."' 10 + alias l=ls 11 + # GREP 12 + alias grep='grep --color=auto' 13 + alias egrep='egrep --color=auto' 14 + alias fgrep='fgrep --color=auto' 15 + # GIT 16 + alias ga='git add' 17 + alias gc='git commit' 18 + alias gp='git push' 19 + alias lc='fc -nl $HISTCMD' 20 + # CADDY 21 + alias rc='caddy reload --config ~/Caddyfile' 22 + alias ft='caddy fmt --overwrite ~/Caddyfile' 23 + alias vt='caddy validate --config ~/Caddyfile' 24 + # Navigation 25 + alias ..='cd ..' 26 + alias ...='cd ../../' 27 + alias ....='cd ../../../' 28 + alias .....='cd ../../../../' 29 + # Readability 30 + alias cp="cp -iv" 31 + alias mv='mv -iv' 32 + alias rm='rm -iv' 33 + alias df='df -h' 34 + alias free='free -m' 35 + alias mkdir='mkdir -pv'
.config/bash/prompt .config/bash/prompt.old
+57
.config/bash/prompt.new
··· 1 + __sig() { 2 + # Giant switch case for getting the name of the signal (`kill -l`) 3 + a=0 4 + for i in $@; do 5 + a=$((a+1)) 6 + case $i in 7 + 126) printf ACCES ;; 8 + 127) printf NOENT ;; 9 + 129) printf HUP ;; 10 + 130) printf INT ;; 11 + 131) printf QUIT ;; 12 + 132) printf ILL ;; 13 + 133) printf TRAP ;; 14 + 134) printf ABRT ;; 15 + 135) printf BUS ;; 16 + 136) printf FPE ;; 17 + 137) printf KILL ;; 18 + 138) printf USR1 ;; 19 + 139) printf SEGV ;; 20 + 140) printf USR2 ;; 21 + 141) printf PIPE ;; 22 + 142) printf ALRM ;; 23 + 143) printf TERM ;; 24 + 144) printf STKFLT ;; 25 + 145) printf CHLD ;; 26 + 146) printf CONT ;; 27 + 147) printf STOP ;; 28 + 148) printf TSTP ;; 29 + 149) printf TTIN ;; 30 + 150) printf TTOU ;; 31 + 151) printf URG ;; 32 + 152) printf XCPU ;; 33 + 153) printf XFSZ ;; 34 + 154) printf VTALRM ;; 35 + 155) printf PROF ;; 36 + 156) printf WINCH ;; 37 + 157) printf IO ;; 38 + 158) printf PWR ;; 39 + 159) printf SYS ;; 40 + 16[3-9]|1[7-8][0-9]|19[0-2]) printf RT$(($i-128)) ;; # Savagery 41 + *) printf $i ;; # Print exit code if not in list 42 + esac 43 + done 44 + } 45 + sig() { 46 + PLC=(${PIPESTATUS[@]}) 47 + printf "$(__sig ${PLC[@]})" 48 + } 49 + NO_COLOUR="\[\033[0m\]" 50 + # Bold Colours 51 + RED="\[\033[01;31m\]" 52 + GREEN="\[\033[01;32m\]" 53 + YELLOW="\[\033[01;33m\]" 54 + BLUE="\[\033[01;34m\]" 55 + 56 + PS1="[${RED}\$(sig)${NO_COLOUR}] [\t] [${RED}\u${NO_COLOUR}@${GREEN}\h${NO_COLOUR}|${BLUE}\w${NO_COLOUR}] [${YELLOW}#\#${NO_COLOUR}] ${GREEN}\$ ${NO_COLOUR}" 57 +
+1 -2
.config/systemd/user/tildeverse-vern-caddy.service
··· 11 11 StartLimitInterval=90 12 12 13 13 [Install] 14 - WantedBy=multi-user.target 15 - 14 + WantedBy=default.target
+1 -1
.config/systemd/user/tildeverse-web-devpreview.service
··· 8 8 StartLimitInterval=60 9 9 10 10 [Install] 11 - WantedBy=default.target 11 + WantedBy=default.target tildeverse-vern-caddy.service 12 12
+3
.env
··· 43 43 export SAMUFLAGS="-j$nproc" 44 44 fi 45 45 ########################################################################################## 46 + 47 + # import aliases to shell too 48 + . "$HOME/.config/bash/aliases"
+1 -1
.gitconfig
··· 1 1 [user] 2 2 name = Andrei Jiroh Halili 3 - email = ajhalili2006@gmail.com 3 + email = ajhalili2006@andreijiroh.eu.org 4 4 signingkey = 67BFC91B3DA12BE8 5 5 6 6 [commit]
+4
.profile
··· 15 15 source "$HOME/.config/aliases" 16 16 export POSIX_PROFILE_SOURCED=true 17 17 18 + # how about detecting local configs 19 + if [ ! -f "$HOME/.config/localconfig.env" ]; then 20 + . "$HOME/.config/localconfig.env" 21 + fi 18 22 19 23 # Added by Toolbox App 20 24 export PATH="$PATH:/home/ajhalili2006/.local/share/JetBrains/Toolbox/scripts"
+6
.ssh/authorized_keys
··· 1 + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCzMlrUe7qMA1P0lP56lq2dKTrwFU6CrVltQ9um+PhOMLkoi31kAlujHtWF6mqGRLXcK0Ao/0Wqug++r82Zu0u7dpAv8LCExtaRRMzagwPkEe4OOqUBOpS6mggfsik8mNA+1UtpkXJ+ZiB4cXtNKEZC0jtxWOTXSV67qgkSxuO+YBWB+7pnESkB0KorqwOoWGGUVfYQtbKUAt6VqM4s6dn7saXqwmN0tCPO6a+4L4mazkYjFD11HhktYsjP9dvnxYSOtMrSFb9JOXRST2LdiIJgwg+HTqBSWGO7aBRHMJaTF3ajlbMtKDQI/EcNQLyGgX6yFdjjzz9DRY+2oU0vPTytdqM2BKsfLlR0GVg7BVL7TZPaLJ1lgpCl4Z1oClW9FOzhnYJVT0W+IKPsnYsFPfv/BVgjWF7YtLdc5zqFJ31PULtikCyd0I6Kt95YD0HdrlR2faWcBHI8KKEAwCCanodGnK/xTOxisTX2dXOxx3mvR/L3Wil2ca5hnD+vt500/o8= gildedguy@andreijiroh 2 + ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFTNV8nJ6ClJ2XmEDl4wJYUANt46SsZgSl7MYBza6VxbpozLhBsc+CSzXnCJpBMZH+5WaPRCVLgIAHyxZJh/v0s= ajhalili2006.srht - Gitpod use 3 + ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOKHIPrafF5WcCuTQDTmoR6O5z9yB6c67uWyFbcr0fYV sr.ht/~ajhalili2006 - ajhalili2006@gmail.com 4 + ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDCeAJ4l2WxXrO7SShNsl5BP+EHmhamkT9UFunKeBV16bMeultud9jJILoaeCTZO86Q6LNy+EjtgABehiozi6iQTh0EnJLzOsdOi4IDvrE/ijVk+7mG4d83Mn6MGKDdrWwf6EJxQqQSnHFwKOrlqF9n32jYvwDnyW3uqiYXAl2cro42GPVtWDSApRRkKWZhYpIyVp5/txg40Z/L9U6PbdTegTSxzxCe9dKruw/rdreGm9AbJ9BmYBEVlD3Tjju7JXN/G9/Odm/n2adymFSY9rf4kg3warB+J8d0UGe1cTZv4ruYoGMJEpM9z4KDgSuiRn7Ful5vd19w4gMQcr4l1xPuFT1SPmwN3ydBNkq65hjhmBWYe/ZegMiVOKPuuuFSgi5p3Tlh3kUwAPBRaFNpMuWM9t1fi9PMRlNo8ylC4olkdl7qumFEua4pXYDQ4ECV7VHJRWCBGXo1jO5EbCPNojpYv3JxwQ3LlOJfWQiDqMH78G6VqMWKa59lNX6kcAudof7LWANQAcF3753dYSBUQGlCfQNNk9ipZnLY9FYTv9SdblcM/nOgyN2i6eR+USRb/Cw3uUDuHNzdAmUcbnyB/sgbzOuojCUYTT6rG+n86S9j40bbeU+0emKt+0VGfMnNuUhWU6bg5vpIbNwm8oDW5RFTZIxfxHRl5ubnp+9HUTMiUQ== ajhalili2006-main-gpg 5 + ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDUnTexcVQTGT+UhX8MRPkMvM6FPuskbY2Dn0ScZ3+ot ~ajhalili2006 [passwordless key for sshfs] 6 + ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFrrYRVtV3OvgLzXMedNVITzoHnHd5wMVe53h16xxVWs ajhalili2006+passwordless@github.tailnet