dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.margiolis.net/dotfiles.git
Log | Files | Refs | README | LICENSE

commit d7bc44a847fa243e64be9f74033ac02644a70b02
parent 70668808178242061a7b8d85ea9348007bda3fdf
Author: Christos Margiolis <christos@margiolis.net>
Date:   Fri, 24 Feb 2023 18:19:09 +0200

foobar

Diffstat:
MX/.xprofile | 2+-
Mautoinstall | 7+++----
Mfilebackup | 3+--
Dfreebsd/jail.conf | 19-------------------
Mfreebsd/rc.conf.desktop | 2+-
Mfreebsd/rc.conf.laptop | 5++---
Agit/.gitconfig | 16++++++++++++++++
Mmailcap/.mailcap | 1+
Mtmux/.tmux.conf | 16+++++++++++++++-
9 files changed, 40 insertions(+), 31 deletions(-)

diff --git a/X/.xprofile b/X/.xprofile @@ -1,6 +1,6 @@ #!/bin/sh -tmsync & +doas tmsync & xset r rate 300 50 & slstatus & setxkbmap -layout 'ca(multix),ee,ru(phonetic),gr' -option 'grp:shift_caps_toggle' & diff --git a/autoinstall b/autoinstall @@ -1,23 +1,22 @@ #!/bin/sh ignoredirs="\.|\.git|freebsd|homedir|xbindkeys" -homedirs="$(ls -a homedir/ | grep -Ev '^\.$|^\.\.$')" +homestuff="$(ls -a homedir/ | grep -Ev '^\.$|^\.\.$')" mkdir -p ${HOME}/.config find . -type d -maxdepth 1 | xargs -r basename | grep -Ev ${ignoredirs} | xargs -r stow -v -for h in ${homedirs}; do +for h in ${homestuff}; do test -d "${h}" && mkdir -pv ${HOME}/${h} cp -rv homedir/${h} ${HOME}/ done cp -v \ - freebsd/devfs.conf \ freebsd/hosts \ - freebsd/jail.conf \ freebsd/src-env.conf \ /etc/ cp -v freebsd/rc.conf.desktop /etc/rc.conf cp -v freebsd/loader.conf.desktop /boot/loader.conf +cp -v freebsd/.login_conf ${HOME}/ && cap_mkdb ${HOME}/.login_conf diff --git a/filebackup b/filebackup @@ -1,10 +1,9 @@ #!/bin/sh cp -vf \ - /etc/devfs.conf \ /etc/hosts \ - /etc/jail.conf \ /etc/src-env.conf \ + ${HOME}/.login_conf \ freebsd/ cp -vf /etc/rc.conf freebsd/rc.conf.desktop cp -vf /boot/loader.conf freebsd/loader.conf.desktop diff --git a/freebsd/jail.conf b/freebsd/jail.conf @@ -1,19 +0,0 @@ -path = "/usr/local/jail/$name"; -host.hostname="$name"; - -exec.clean; -exec.start = "/bin/sh /etc/rc"; -exec.stop = "/bin/sh /etc/rc.shutdown"; -allow.mount; -allow.raw_sockets = 1; -mount.devfs; -devfs_ruleset="5"; -vnet; -sysvmsg=new; -sysvsem=new; -sysvshm=new; - -#foo { -# vnet.interface = "epair0b"; -# exec.start += "dhclient epair0b"; -#} diff --git a/freebsd/rc.conf.desktop b/freebsd/rc.conf.desktop @@ -4,7 +4,7 @@ ifconfig_re0="DHCP" sshd_enable="YES" dumpdev="AUTO" zfs_enable="YES" -kld_list="linux nvidia nvidia modeset fusefs sound snd_hda snd_ich snd_uadio" +kld_list="linux nvidia nvidia modeset fusefs sound snd_hda snd_ich snd_uaudio" sndiod_enable="YES" if_bridge_load="YES" diff --git a/freebsd/rc.conf.laptop b/freebsd/rc.conf.laptop @@ -1,8 +1,7 @@ hostname="tpad" wlans_iwm0="wlan0" synchronous_dhclient="YES" -ifconfig_em0="DHCP" -ifconfig_wlan0="WPA DHCP" +ifconfig_wlan0="up WPA DHCP" #ifconfig_wlan0_ipv6="inet6 accept_rtadv" sshd_enable="YES" # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable @@ -20,7 +19,7 @@ if_epair_load="YES" #jail_reverse_stop="YES" cloned_interfaces="bridge0 epair0 tap0" -ifconfig_bridge0="addm em0 addm epair0a addm tap0 up" +ifconfig_bridge0="addm wlan0 addm epair0a addm tap0 up" ifconfig_epair0a="up" rpcbind_enable="YES" diff --git a/git/.gitconfig b/git/.gitconfig @@ -0,0 +1,16 @@ +[user] + name = Christos Margiolis + email = christos@margiolis.net +[http] + postBuffer = 157286400 +[sendemail] + smtpencryption = tls + smtpserver = mail.margiolis.net + smtpuser = christos@margiolis.net + smtpserverport = 587 +[pull] + ff = only +[alias] + fdiff = "!f() {\ + git diff -U999999;\ + }; f" diff --git a/mailcap/.mailcap b/mailcap/.mailcap @@ -1 +1,2 @@ text/html; w3m -dump -T text/html %s | less +application/pdf; zathura %s & diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf @@ -1,7 +1,21 @@ +set -g default-terminal "st-256color" + # resize windows only when a smaller client is using a session setw -g aggressive-resize on -set -g default-terminal "st-256color" +# don't pause waiting for control chars after an esc +set -s escape-time 0 + +set -g mouse on +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' + +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# index windows starting at 1 rather than 0 +set -g base-index 1 # open a man page in a separated split pane bind m command-prompt -p "man page:" "split-window -h 'exec man %%'"