Compare commits

...

4 Commits

Author SHA1 Message Date
an a86a935b69 add development chroot environment 2020-11-15 14:03:33 -07:00
an 05ccdf3db0 use the mpv-mpris addon 2020-11-15 13:59:37 -07:00
an c1708ee6a1 make console usage of emacs better 2020-11-15 13:58:53 -07:00
an a1228b3db4 make paths not be hardcoded on user login 2020-11-15 13:57:06 -07:00
13 changed files with 93 additions and 39 deletions

View File

@ -19,7 +19,7 @@ scrolling:
font:
normal:
family: Iosevka
family: Courier Prime Code
style: Regular
size: 12.0
offset:

View File

@ -10,15 +10,18 @@ end
# - _agw_dir_bin = volatile binary storage
# - _agw_dir_rc = the directory holding this repository
# - _agw_dir_src = non-volatile source code storage
# - _agw_dir_dev = volatile chroot development environment
switch (uname)
case Linux NetBSD
set -Ux _agw_dir_bin ~/bin
set -Ux _agw_dir_rc ~/rc
set -Ux _agw_dir_src ~/src
set -Ux _agw_dir_dev ~/dev
case Darwin
set -Ux _agw_dir_bin ~/Binaries
set -Ux _agw_dir_rc ~/Sources/scripts
set -Ux _agw_dir_src ~/Sources
set -Ux _agw_dir_dev ~/Development
case \*
echo (set_color red)"This platform is not configured!"
end

View File

@ -2,3 +2,4 @@ save-position-on-quit
resume-playback
msg-level=all=warn
sub-auto=fuzzy
script=/usr/lib/mpv-mpris/mpris.so

View File

@ -1,2 +1,11 @@
# -*-Conf-*-
XBPS_CHROOT_CMD=uunshare
XBPS_ALLOW_CHROOT_BREAKOUT=no
XBPS_CFLAGS="-O3 -pipe -march=native"
XBPS_CXXFLAGS="${XBPS_CFLAGS}"
XBPS_MAKEJOBS=12
XBPS_ALLOW_RESTRICTED=yes
## EOF

View File

@ -31,7 +31,8 @@
"Sets up `org-mode'."
(setq-local indent-tabs-mode nil
standard-indent 2
tab-width 2))
tab-width 2)
(define-key evil-normal-state-map (kbd "TAB") 'org-cycle))
(defun agw-cc-mode ()
"Sets up `c-mode' and `c++-mode'."

View File

@ -51,9 +51,4 @@
(set-fontset-font t '(#x2e80 . #x9fff) "Noto Sans CJK JP")
(setq agw-mode-line-family
(if (eq system-type 'windows-nt)
"Noto Mono"
"Iosevka"))
;; EOF

View File

@ -70,24 +70,19 @@
;; theme
(use-package base16-theme
:ensure t
:config
(load-theme 'base16-atelier-cave t)
(dolist (face '(mode-line
mode-line-buffer-id
mode-line-emphasis
mode-line-highlight
mode-line-inactive
header-line
header-line-highlight))
(set-face-attribute face nil
:height 120
:family agw-mode-line-family
:weight 'normal
:width 'normal))
(set-face-attribute 'mode-line nil
:background "#0a0a0a"
:foreground "#92ebf0"))
:ensure t)
(use-package inkpot-theme
:ensure t)
(load-theme
(if (display-graphic-p)
'base16-atelier-cave
'inkpot)
t nil)
(set-face-attribute 'mode-line nil
:background "#0a0a0a"
:foreground "#92ebf0")
;; major modes
(use-package powershell

31
fish/chroot Normal file
View File

@ -0,0 +1,31 @@
#!/usr/bin/env fish
function devrt-recreate
echo "Ensure that you have committed any changes to the devrt that you need to before recreating."
echo "Type 'ok' to continue, or anything else to exit."
if test (read) != "ok"
exit 1
end
rm -rf $_agw_dir_dev
tar -xJf $_agw_dir_bin/dev-base.latest.tar.xz
xbps-uunshare -- $_agw_dir_dev /setup.sh
end
function devrt-commit
pushd ~
set lf $_agw_dir_bin/dev-base.latest.tar.xz
set nf $_agw_dir_bin/dev-base.(stat -c %Y $lf).tar.xz
mv $lf $nf
tar -Ipixz -cf $lf (string replace ~/ "" -- $_agw_dir_dev)
popd
end
function devrt
xbps-uunshare \
-b $_agw_dir_rc:/home/marrub/rc \
-b $_agw_dir_src:/home/marrub/src \
-b $_agw_dir_bin:/home/marrub/bin \
-- $_agw_dir_dev /usr/bin/env _agw_chroot=1 /usr/bin/fish -l -i -C cd
end
## EOF

7
fish/emacs-nw Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env fish
function emacs-nw
env TERM=alacritty-direct ~/.local/bin/emacs -nw $argv
end
## EOF

View File

@ -1,7 +0,0 @@
#!/usr/bin/env fish
if type -q llvmenv
set -gxa PATH (llvmenv prefix)/bin
end
## EOF

13
fish/path Normal file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env fish
if test -d ~/.gem/ruby
set -gxa PATH ~/.gem/ruby/2.*/bin
end
if test -d ~/.cabal/bin
set -gxa PATH ~/.cabal/bin
end
if test -d $_agw_dir_bin/llvm/$_agw_llvm_ver/bin
set -gxa PATH $_agw_dir_bin/llvm/$_agw_llvm_ver/bin
end
## EOF

View File

@ -4,12 +4,18 @@ function fish_prompt
set _stat $status
echo -n (set_color 70a9ff)(date +%H:%M:%S)
echo -n (set_color normal)(
if test $_stat -eq 0
echo '@'
else
echo '!'
end)
echo -n (set_color c792ea)$hostname
if test $_stat -eq 0
echo '@'
else
echo '!'
end)
echo -n (
if test $_agw_chroot
set_color f54f4c
else
set_color c792ea
end)$hostname
echo (set_color normal)"% "
end

View File

@ -10,7 +10,7 @@ export GTK_USE_PORTAL=1
export KRITA_NO_STYLE_OVERRIDE=1
# misc
export PATH=$HOME/.local/bin:$HOME/.gem/ruby/2.6.0/bin:$HOME/.cabal/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export DOOMWADDIR=/media/store/games/doom/iwads
export EDITOR=vi
export WINEPREFIX=$HOME/progs/winepfx