From 66c91a20bc400aadcdd863d810c864f38ccbc758 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 6 Nov 2020 00:31:43 -0600 Subject: [PATCH] More moving things around... --- .gitignore | 7 +- Makefile | 6 +- apps/de/sway/config | 5 +- apps/de/sway/init | 2 +- apps/kanshi/config | 2 +- apps/shell/bash/rc | 2 +- apps/shell/fish/config.fish | 10 +- apps/shell/tmux/conf | 6 +- bin/app-launcher | 2 +- bin/choose-common-env | 10 ++ bin/init-dotfiles | 2 +- bin/pipeline | 2 +- bin/pipelines/b64/transform | 4 - bin/pipelines/base64/transform | 4 - bin/pipelines/linewise/transform | 4 - bin/pipelines/test/transform | 4 - bin/pipelines/xxd/transform | 4 - bin/prelude | 3 +- bin/setup-dotfiles | 17 +-- .../common}/ansi_graphics_codes.tsv | 0 .../common}/colors/generator/.gitignore | 0 .../common}/colors/generator/gen.bash | 0 .../common}/colors/generator/gen.moon | 0 .../colors/generator/schemes/bright.yml | 0 .../colors/generator/schemes/donokai.moon | 0 .../colors/generator/schemes/donokai.yml | 0 .../colors/generator/schemes/donokaiblack.yml | 0 .../colors/generator/schemes/holodized.yml | 0 .../common}/colors/generator/templates/shell | 0 .../colors/generator/templates/shell.moon | 0 {bin/lib => env/common}/colors/set-theme.bash | 0 {bin/lib => env/common}/colors/shell | 0 {bin/lib => env/common}/colors/vconsole | 0 {bin/lib => env/common}/colors/vim | 0 {bin/lib => env/common}/colors/xresources | 0 env/common/data/pipelines/b64/transform | 4 + env/common/data/pipelines/base64/transform | 4 + env/common/data/pipelines/linewise/transform | 4 + env/common/data/pipelines/test/transform | 4 + env/common/data/pipelines/xxd/transform | 4 + .../machines}/desktop/bin/minecraft | 0 .../machines}/desktop/bin/reboot-to-windows | 0 env/common/machines/laptop/laptop | 1 + env/common/machines/laptop/sway/main | 5 + {bin/lib => env/common}/setup_helpers.bash | 0 {bin/lib => env/common}/sudo_setup | 0 env/desktop/bash | 4 - env/desktop/bspwm | 4 - env/desktop/config.fish | 13 --- env/desktop/nix/base.nix | 105 ------------------ env/laptop/bin/gamedock | 8 -- env/laptop/bin/homedock | 9 -- env/laptop/bin/undock | 9 -- env/laptop/bin/workdock | 8 -- env/laptop/config.fish | 12 -- env/laptop/hardware.nix | 32 ------ env/laptop/sway/config.d/main | 5 - readme.md | 6 +- 58 files changed, 72 insertions(+), 265 deletions(-) create mode 100755 bin/choose-common-env delete mode 100755 bin/pipelines/b64/transform delete mode 100755 bin/pipelines/base64/transform delete mode 100755 bin/pipelines/linewise/transform delete mode 100755 bin/pipelines/test/transform delete mode 100755 bin/pipelines/xxd/transform rename {bin/lib => env/common}/ansi_graphics_codes.tsv (100%) rename {bin/lib => env/common}/colors/generator/.gitignore (100%) rename {bin/lib => env/common}/colors/generator/gen.bash (100%) rename {bin/lib => env/common}/colors/generator/gen.moon (100%) rename {bin/lib => env/common}/colors/generator/schemes/bright.yml (100%) rename {bin/lib => env/common}/colors/generator/schemes/donokai.moon (100%) rename {bin/lib => env/common}/colors/generator/schemes/donokai.yml (100%) rename {bin/lib => env/common}/colors/generator/schemes/donokaiblack.yml (100%) rename {bin/lib => env/common}/colors/generator/schemes/holodized.yml (100%) rename {bin/lib => env/common}/colors/generator/templates/shell (100%) rename {bin/lib => env/common}/colors/generator/templates/shell.moon (100%) rename {bin/lib => env/common}/colors/set-theme.bash (100%) rename {bin/lib => env/common}/colors/shell (100%) rename {bin/lib => env/common}/colors/vconsole (100%) rename {bin/lib => env/common}/colors/vim (100%) rename {bin/lib => env/common}/colors/xresources (100%) create mode 100755 env/common/data/pipelines/b64/transform create mode 100755 env/common/data/pipelines/base64/transform create mode 100755 env/common/data/pipelines/linewise/transform create mode 100755 env/common/data/pipelines/test/transform create mode 100755 env/common/data/pipelines/xxd/transform rename env/{ => common/machines}/desktop/bin/minecraft (100%) rename env/{ => common/machines}/desktop/bin/reboot-to-windows (100%) create mode 120000 env/common/machines/laptop/laptop create mode 100644 env/common/machines/laptop/sway/main rename {bin/lib => env/common}/setup_helpers.bash (100%) rename {bin/lib => env/common}/sudo_setup (100%) delete mode 100755 env/desktop/bash delete mode 100755 env/desktop/bspwm delete mode 100755 env/desktop/config.fish delete mode 100644 env/desktop/nix/base.nix delete mode 100755 env/laptop/bin/gamedock delete mode 100755 env/laptop/bin/homedock delete mode 100755 env/laptop/bin/undock delete mode 100755 env/laptop/bin/workdock delete mode 100755 env/laptop/config.fish delete mode 100644 env/laptop/hardware.nix delete mode 100644 env/laptop/sway/config.d/main diff --git a/.gitignore b/.gitignore index cbd5a62..e6d9163 100644 --- a/.gitignore +++ b/.gitignore @@ -6,13 +6,10 @@ fishd.tmp.* # keep the pipelines but hide their results -/bin/pipelines/*/*/* +/env/common/data/pipelines/*/*/* # a place to keep secrets per-env -/env/*/.hidden - -# ... and a place to keep shared secrets -/env/.hidden +.hidden # TODO: should be unnecessary once color generation is homegrown /colors/gen/vendor diff --git a/Makefile b/Makefile index ffed8b5..f3e9dae 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,5 @@ MAKEFILE_PATH ?= $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) -all: install -default: install - +.PHONY: install install: - cd ${MAKEFILE_PATH} && ./setup.bash + @cd ${MAKEFILE_PATH} && ./bin/setup-dotfiles diff --git a/apps/de/sway/config b/apps/de/sway/config index f3f6ea7..4da7504 100644 --- a/apps/de/sway/config +++ b/apps/de/sway/config @@ -4,7 +4,7 @@ # + Super+Control+{1-9} should control the size of the preselect space. # + Super+Shift+b should balance the size of all selected nodes. -set $dfpbin $HOME/.config/dotfiles/bin +set $dfpbin $HOME/.config/lytedev-dotfiles/bin set $mod Mod4 set $default_gap 0 @@ -167,4 +167,5 @@ bar { exec gammastep -t 6500:3500 -l 39.0:-94.5 exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' -include $HOME/.env/sway/config.d/main +include $HOME/.env/sway/main +# include $HOME/.env/sway/config.d/* diff --git a/apps/de/sway/init b/apps/de/sway/init index 26c763f..9058294 100755 --- a/apps/de/sway/init +++ b/apps/de/sway/init @@ -1,7 +1,7 @@ #!/usr/bin/env sh [ -z "$XDG_CONFIG_HOME" ] && export XDG_CONFIG_HOME="$HOME/.config" -[ -z "$DOTFILES_PATH" ] && export DOTFILES_PATH="$XDG_CONFIG_HOME/dotfiles" +[ -z "$DOTFILES_PATH" ] && export DOTFILES_PATH="$XDG_CONFIG_HOME/lytedev-dotfiles" . "$DOTFILES_PATH/bin/prelude" diff --git a/apps/kanshi/config b/apps/kanshi/config index 31f264f..577763c 100644 --- a/apps/kanshi/config +++ b/apps/kanshi/config @@ -2,7 +2,7 @@ profile desktop-H { output "Samsung Electric Company CF791 HTRJ500315" enable mode 3440x1440@100Hz position 1440,560 scale 1 transform normal output "Dell Inc. DELL U2719DC 5DL4QS2" enable mode 2560x1440@60Hz position 0,0 scale 1 transform 90 output "Dell Inc. DELL U2719DC 9DL4QS2" enable mode 2560x1440@60Hz position 4880,0 scale 1 transform 270 - exec "$HOME/.config/dotfiles/apps/kanshi/desktop-H-workspaces.sh" + exec "$HOME/.config/lytedev-dotfiles/apps/kanshi/desktop-H-workspaces.sh" } profile laptop-solo { diff --git a/apps/shell/bash/rc b/apps/shell/bash/rc index 1c3ca4f..fa62015 100644 --- a/apps/shell/bash/rc +++ b/apps/shell/bash/rc @@ -1,7 +1,7 @@ #!/usr/bin/env bash export XDG_CONFIG_HOME="$HOME/.config" -export DOTFILES_PATH="$XDG_CONFIG_HOME/dotfiles" +export DOTFILES_PATH="$XDG_CONFIG_HOME/lytedev-dotfiles" . "$DOTFILES_PATH/bin/prelude" diff --git a/apps/shell/fish/config.fish b/apps/shell/fish/config.fish index 3a44e25..8dc495d 100755 --- a/apps/shell/fish/config.fish +++ b/apps/shell/fish/config.fish @@ -1,7 +1,7 @@ #!/usr/bin/env fish set -Ux XDG_CONFIG_HOME $HOME/.config -set -Ux DOTFILES_PATH $XDG_CONFIG_HOME/dotfiles +set -Ux DOTFILES_PATH $XDG_CONFIG_HOME/lytedev-dotfiles set -Ux ENV_PATH $HOME/.env source $DOTFILES_PATH/apps/shell/fish/paths.fish @@ -51,4 +51,12 @@ for cf in config.fish .hidden/config.fish test -f $f && source $f end +# TODO: completion +function src-hidden-dir + not scount $argv && echo "No directory specified" && exit 1 + set f $ENV_PATH/.hidden/fish.d/$argv[1]/config.fish + echo "Checking $f..." + test -f $f && source $f +end + mkdir -p $NOTES_PATH $USER_LOGS_PATH $SCROTS_PATH diff --git a/apps/shell/tmux/conf b/apps/shell/tmux/conf index 303a37b..bb81ab2 100644 --- a/apps/shell/tmux/conf +++ b/apps/shell/tmux/conf @@ -47,7 +47,7 @@ bind-key h switch-client -p bind-key k switch-client -n bind-key l switch-client -n # bind s run-shell "tmux new-window sh -c "$DOTFILES_PATH/bin/tmuxswitcher"" -bind s run-shell "tmux new-window \"sh -c ~/.config/dotfiles/bin/tmuxswitcher\"" +bind s run-shell "tmux new-window \"sh -c ~/.config/lytedev-dotfiles/bin/tmuxswitcher\"" # reset the working directory of the current session bind-key P attach-session -t . -c "#{pane_current_path}" \; display-message "Reset session dir to #{pane_current_path}" @@ -60,10 +60,10 @@ set -g status-interval 5 set -g status-right-length 80 set -g status-right "#[fg=colour4]#W#[fg=default]#[bg=default] #H" set -g status-left-length 200 -set -g status-left "#[fg=colour7]#(~/.config/dotfiles/bin/tmux-session-list #S)" +set -g status-left "#[fg=colour7]#(~/.config/lytedev-dotfiles/bin/tmux-session-list #S)" set -g message-style "fg=colour7 bg=colour18" -bind-key O display-message "#(~/.config/dotfiles/bin/tmux-save-buffer #S)" +bind-key O display-message "#(~/.config/lytedev-dotfiles/bin/tmux-save-buffer #S)" # pane split line colors set -g pane-active-border-style bg=black,fg=blue diff --git a/bin/app-launcher b/bin/app-launcher index 3560a34..bb0cc05 100755 --- a/bin/app-launcher +++ b/bin/app-launcher @@ -1,4 +1,4 @@ #!/usr/bin/env sh -source "$HOME/.config/dotfiles/bin/prelude" +source "$(dirname "$0")/prelude" floating-term sh -c "launch | xargs swaymsg exec --" diff --git a/bin/choose-common-env b/bin/choose-common-env new file mode 100755 index 0000000..8f91b7c --- /dev/null +++ b/bin/choose-common-env @@ -0,0 +1,10 @@ +#!/usr/bin/env sh + +machines_path="$DOTFILES_PATH/env/common/machines" +machine="$( + cd "$machines_path" && \ + find ./ -mindepth 1 -maxdepth 1 -type d | \ + cut -c3- | \ + fzf --prompt "Choose your machine > ")" +ezln "$machines_path/$machine" "$ENV_PATH" +echo "Symlinked '$(realpath "$machines_path/$machine")' to your ENV_PATH ('$ENV_PATH')" diff --git a/bin/init-dotfiles b/bin/init-dotfiles index 3ac7ece..a0a847f 100755 --- a/bin/init-dotfiles +++ b/bin/init-dotfiles @@ -5,7 +5,7 @@ root_home="/root" daniel_home="/home/daniel/.home" nice_home="/home/daniel" -dotfiles="/.config/dotfiles" +dotfiles="/.config/lytedev-dotfiles" add_unstable_channel() { nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable diff --git a/bin/pipeline b/bin/pipeline index d685599..6b62334 100755 --- a/bin/pipeline +++ b/bin/pipeline @@ -1,6 +1,6 @@ #!/usr/bin/env sh -SAVED_PIPELINE_DIR="$DOTFILES_PATH/bin/pipelines" +SAVED_PIPELINE_DIR="$DOTFILES_PATH/env/common/data/pipelines" mkdir -p "$SAVED_PIPELINE_DIR" if [ -n "${1+x}" ]; then diff --git a/bin/pipelines/b64/transform b/bin/pipelines/b64/transform deleted file mode 100755 index 7b9b530..0000000 --- a/bin/pipelines/b64/transform +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -# for /home/daniel/.home/.config/dotfiles/.env/pipelines/b64/pipeline.VRMehQda - -base64 diff --git a/bin/pipelines/base64/transform b/bin/pipelines/base64/transform deleted file mode 100755 index 49c4c74..0000000 --- a/bin/pipelines/base64/transform +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -# for /home/daniel/.home/.config/dotfiles/.env/pipelines/base64/tmp_pipeline.ca7uoTRo - -base64 diff --git a/bin/pipelines/linewise/transform b/bin/pipelines/linewise/transform deleted file mode 100755 index ef0705d..0000000 --- a/bin/pipelines/linewise/transform +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -# for /home/daniel/.home/.config/dotfiles/.env/pipelines/linewise/tmp_pipeline.epyGqDjQ - -linewise base64 diff --git a/bin/pipelines/test/transform b/bin/pipelines/test/transform deleted file mode 100755 index 493b8bf..0000000 --- a/bin/pipelines/test/transform +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -# for /home/daniel/.home/.config/dotfiles/.env/pipelines/test/pipeline.Zpgm8j42 - -base64 diff --git a/bin/pipelines/xxd/transform b/bin/pipelines/xxd/transform deleted file mode 100755 index 6f7cfc4..0000000 --- a/bin/pipelines/xxd/transform +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -# for /home/daniel/.home/.config/dotfiles/.env/pipelines/xxd/tmp_pipeline.dmXdfyZv - -hexyl diff --git a/bin/prelude b/bin/prelude index e2e40ee..37ecd17 100755 --- a/bin/prelude +++ b/bin/prelude @@ -4,8 +4,9 @@ # be loaded and properly set by every script - this means you are responsible # for making sure they're loaded! export XDG_CONFIG_HOME="$HOME/.config" -export DOTFILES_PATH="$XDG_CONFIG_HOME/dotfiles" +export DOTFILES_PATH="$XDG_CONFIG_HOME/lytedev-dotfiles" export ENV_PATH="$HOME/.env" + export TERMINAL="kitty" # TODO: better logic for auto-detecting alternative home directories? diff --git a/bin/setup-dotfiles b/bin/setup-dotfiles index 4600ef5..dbf0ee9 100755 --- a/bin/setup-dotfiles +++ b/bin/setup-dotfiles @@ -2,8 +2,8 @@ # TODO: quiet/auto-agree mode for curl | bash automagic? -dfp=$(cd "$(dirname "${BASH_SOURCE[0]}" )/" && pwd) -source "${dfp}/lib/setup_helpers.bash" +dfp=$(cd "$(dirname "${BASH_SOURCE[0]}" )/.." && pwd) +source "${dfp}/env/common/setup_helpers.bash" INTERACTIVE=1 @@ -16,9 +16,6 @@ while test $# -gt 0; do esac done -# TODO: note about setting up ~/.env (link to a folder in ./env) -# should prompt user, perhaps? - links=( # desktop environment files "apps/de/bspwm/rc" "$XDG_CONFIG_HOME/bspwm/bspwmrc" @@ -34,7 +31,7 @@ links=( "apps/de/compton/compton.conf" "$XDG_CONFIG_HOME/compton.conf" "apps/de/dunst/rc" "$XDG_CONFIG_HOME/dunst/dunstrc" "apps/de/mako/" "$XDG_CONFIG_HOME/mako" - "bin/lib/colors/xresources" "$HOME/.Xresources.colors" + "env/common/colors/xresources" "$HOME/.Xresources.colors" # shell files "apps/shell/bash/rc" "$HOME/.bashrc" @@ -47,7 +44,7 @@ links=( "apps/neovim/" "$XDG_CONFIG_HOME/nvim" "apps/neovim/" "$HOME/.vim" "apps/neovim/init.vim" "$HOME/.vimrc" - "bin/lib/colors/vim" "$XDG_CONFIG_HOME/nvim/colors/base16-donokai.vim" + "env/common/colors/vim" "$XDG_CONFIG_HOME/nvim/colors/base16-donokai.vim" "apps/emacs/" "$HOME/.emacs.lytedev" # gtk configuration files @@ -130,18 +127,16 @@ links=( "apps/kanshi" "$XDG_CONFIG_HOME/kanshi" ) -chmod 700 -R "$HOME/.bin" - # TODO: pass interactive? _dotfiles_setup_run_setup "$dfp/.agreed-to-erasing-files.lock" "${links[@]}" if [[ "$INTERACTIVE" = 1 ]]; then - echo -n -e "Do you want to run the bin/lib/sudo_setup script for changes to /etc" + echo -n -e "Do you want to run the env/common/sudo_setup script for changes to /etc" echo -n -e "\nand other root directories?" read -r -p " [y/N] " response response=${response,,} # to lower case if [[ $response =~ ^(yes|y)$ ]]; then - "$dfp/bin/lib/sudo_setup" + "$dfp/env/common/sudo_setup" fi # execute the user's shell diff --git a/bin/lib/ansi_graphics_codes.tsv b/env/common/ansi_graphics_codes.tsv similarity index 100% rename from bin/lib/ansi_graphics_codes.tsv rename to env/common/ansi_graphics_codes.tsv diff --git a/bin/lib/colors/generator/.gitignore b/env/common/colors/generator/.gitignore similarity index 100% rename from bin/lib/colors/generator/.gitignore rename to env/common/colors/generator/.gitignore diff --git a/bin/lib/colors/generator/gen.bash b/env/common/colors/generator/gen.bash similarity index 100% rename from bin/lib/colors/generator/gen.bash rename to env/common/colors/generator/gen.bash diff --git a/bin/lib/colors/generator/gen.moon b/env/common/colors/generator/gen.moon similarity index 100% rename from bin/lib/colors/generator/gen.moon rename to env/common/colors/generator/gen.moon diff --git a/bin/lib/colors/generator/schemes/bright.yml b/env/common/colors/generator/schemes/bright.yml similarity index 100% rename from bin/lib/colors/generator/schemes/bright.yml rename to env/common/colors/generator/schemes/bright.yml diff --git a/bin/lib/colors/generator/schemes/donokai.moon b/env/common/colors/generator/schemes/donokai.moon similarity index 100% rename from bin/lib/colors/generator/schemes/donokai.moon rename to env/common/colors/generator/schemes/donokai.moon diff --git a/bin/lib/colors/generator/schemes/donokai.yml b/env/common/colors/generator/schemes/donokai.yml similarity index 100% rename from bin/lib/colors/generator/schemes/donokai.yml rename to env/common/colors/generator/schemes/donokai.yml diff --git a/bin/lib/colors/generator/schemes/donokaiblack.yml b/env/common/colors/generator/schemes/donokaiblack.yml similarity index 100% rename from bin/lib/colors/generator/schemes/donokaiblack.yml rename to env/common/colors/generator/schemes/donokaiblack.yml diff --git a/bin/lib/colors/generator/schemes/holodized.yml b/env/common/colors/generator/schemes/holodized.yml similarity index 100% rename from bin/lib/colors/generator/schemes/holodized.yml rename to env/common/colors/generator/schemes/holodized.yml diff --git a/bin/lib/colors/generator/templates/shell b/env/common/colors/generator/templates/shell similarity index 100% rename from bin/lib/colors/generator/templates/shell rename to env/common/colors/generator/templates/shell diff --git a/bin/lib/colors/generator/templates/shell.moon b/env/common/colors/generator/templates/shell.moon similarity index 100% rename from bin/lib/colors/generator/templates/shell.moon rename to env/common/colors/generator/templates/shell.moon diff --git a/bin/lib/colors/set-theme.bash b/env/common/colors/set-theme.bash similarity index 100% rename from bin/lib/colors/set-theme.bash rename to env/common/colors/set-theme.bash diff --git a/bin/lib/colors/shell b/env/common/colors/shell similarity index 100% rename from bin/lib/colors/shell rename to env/common/colors/shell diff --git a/bin/lib/colors/vconsole b/env/common/colors/vconsole similarity index 100% rename from bin/lib/colors/vconsole rename to env/common/colors/vconsole diff --git a/bin/lib/colors/vim b/env/common/colors/vim similarity index 100% rename from bin/lib/colors/vim rename to env/common/colors/vim diff --git a/bin/lib/colors/xresources b/env/common/colors/xresources similarity index 100% rename from bin/lib/colors/xresources rename to env/common/colors/xresources diff --git a/env/common/data/pipelines/b64/transform b/env/common/data/pipelines/b64/transform new file mode 100755 index 0000000..8f34815 --- /dev/null +++ b/env/common/data/pipelines/b64/transform @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# for /home/daniel/.home/.config/lytedev-dotfiles/.env/pipelines/b64/pipeline.VRMehQda + +base64 diff --git a/env/common/data/pipelines/base64/transform b/env/common/data/pipelines/base64/transform new file mode 100755 index 0000000..f42803f --- /dev/null +++ b/env/common/data/pipelines/base64/transform @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# for /home/daniel/.home/.config/lytedev-dotfiles/.env/pipelines/base64/tmp_pipeline.ca7uoTRo + +base64 diff --git a/env/common/data/pipelines/linewise/transform b/env/common/data/pipelines/linewise/transform new file mode 100755 index 0000000..ab87dea --- /dev/null +++ b/env/common/data/pipelines/linewise/transform @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# for /home/daniel/.home/.config/lytedev-dotfiles/.env/pipelines/linewise/tmp_pipeline.epyGqDjQ + +linewise base64 diff --git a/env/common/data/pipelines/test/transform b/env/common/data/pipelines/test/transform new file mode 100755 index 0000000..ffe8bf1 --- /dev/null +++ b/env/common/data/pipelines/test/transform @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# for /home/daniel/.home/.config/lytedev-dotfiles/.env/pipelines/test/pipeline.Zpgm8j42 + +base64 diff --git a/env/common/data/pipelines/xxd/transform b/env/common/data/pipelines/xxd/transform new file mode 100755 index 0000000..6404430 --- /dev/null +++ b/env/common/data/pipelines/xxd/transform @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# for /home/daniel/.home/.config/lytedev-dotfiles/.env/pipelines/xxd/tmp_pipeline.dmXdfyZv + +hexyl diff --git a/env/desktop/bin/minecraft b/env/common/machines/desktop/bin/minecraft similarity index 100% rename from env/desktop/bin/minecraft rename to env/common/machines/desktop/bin/minecraft diff --git a/env/desktop/bin/reboot-to-windows b/env/common/machines/desktop/bin/reboot-to-windows similarity index 100% rename from env/desktop/bin/reboot-to-windows rename to env/common/machines/desktop/bin/reboot-to-windows diff --git a/env/common/machines/laptop/laptop b/env/common/machines/laptop/laptop new file mode 120000 index 0000000..e6d7f01 --- /dev/null +++ b/env/common/machines/laptop/laptop @@ -0,0 +1 @@ +/home/daniel/.home/.config/dotfiles/env/common/machines/laptop \ No newline at end of file diff --git a/env/common/machines/laptop/sway/main b/env/common/machines/laptop/sway/main new file mode 100644 index 0000000..d3fc88e --- /dev/null +++ b/env/common/machines/laptop/sway/main @@ -0,0 +1,5 @@ +exec libinput-gestures -c $HOME/.config/lytedev-dotfiles/apps/de/libinput/sway-gestures.conf +bindswitch lid:toggle exec swaylock +input type:keyboard { + xkb_options ctrl:nocaps +} diff --git a/bin/lib/setup_helpers.bash b/env/common/setup_helpers.bash similarity index 100% rename from bin/lib/setup_helpers.bash rename to env/common/setup_helpers.bash diff --git a/bin/lib/sudo_setup b/env/common/sudo_setup similarity index 100% rename from bin/lib/sudo_setup rename to env/common/sudo_setup diff --git a/env/desktop/bash b/env/desktop/bash deleted file mode 100755 index 0251788..0000000 --- a/env/desktop/bash +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -hb="$ENV_PATH/.hidden/bash" -[ -f "$hb" ] && . "$hb" diff --git a/env/desktop/bspwm b/env/desktop/bspwm deleted file mode 100755 index 0cf4f40..0000000 --- a/env/desktop/bspwm +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -# TODO: this doesn't quite work all the time -export REVERSE_DESKTOP_ORDERING=1 diff --git a/env/desktop/config.fish b/env/desktop/config.fish deleted file mode 100755 index 3b009dc..0000000 --- a/env/desktop/config.fish +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env fish - -# TODO: completion -function src-hidden-dir - not scount $argv && echo "No directory specified" && exit 1 - set f $ENV_PATH/.hidden/fish.d/$argv[1]/config.fish - echo "Checking $f..." - test -f $f && source $f -end - -set hc $ENV_PATH/.hidden/config.fish -test -f $hc && source $hc - diff --git a/env/desktop/nix/base.nix b/env/desktop/nix/base.nix deleted file mode 100644 index f96b4e4..0000000 --- a/env/desktop/nix/base.nix +++ /dev/null @@ -1,105 +0,0 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). - -{ config, pkgs, ... }: - -{ - imports = [ - ./hardware-configuration.nix - # TODO: fork? - (import "${builtins.fetchTarball https://github.com/rycee/home-manager/archive/master.tar.gz}/nixos") - ]; - - home-manager.users.daniel = { - } - - # TODO: bootloader will vary by device - boot = { - supportedFilesystems = [ "exfat" ]; - loader = { - grub = { - enable = true; - version = 2; - device = "/dev/sda"; - }; - }; - }; - - networking = { - hostName = "nether"; - useDHCP = true; - firewall = { - allowedTCPPorts = [ 22 80 443 7770 ]; - allowedUDPPorts = [ 53 57 63 67 7770 ]; - # enable = false; - }; - }; - - i18n.defaultLocale = "en_US.UTF-8"; - console = { - font = "Lat2-Terminus16"; - keyMap = "us"; - }; - - time.timeZone = "America/Chicago"; - - environment = { - systemPackages = with pkgs; [ - wget lsof vim git curl fish fzf neovim - ]; - variables.EDITOR = "nvim"; - }; - - services = { - openssh.enable = true; - - xserver = { - enable = true; - layout = "us"; - libinput.enable = true; - desktopManager.plasma5.enable = true; - }; - }; - - fonts = { - enableFontDir = true; - enableGhostscriptFonts = true; - - fontconfig = { - enable = true; - antialias = true; - useEmbeddedBitmaps = true; - - defaultFonts = { - serif = [ "Iosevka Type" ]; - sansSerif = [ "Iosevka Type" ]; - monospace = [ "Iosevka Type" ]; - }; - }; - - fonts = with pkgs; [ - iosevka - nerdfonts - ]; - }; - - sound.enable = true; - hardware.pulseaudio.enable = true; - - users.extraUsers.daniel = { - isNormalUser = true; - group = "users"; - extraGroups = [ "wheel" ]; - home = "/home/daniel/.home"; - shell = pkgs.fish; - createHome = true; - uid = 1000; - }; - - nixpkgs.config = { - allowUnfree = true; - }; - - system.stateVersion = "20.03"; -} diff --git a/env/laptop/bin/gamedock b/env/laptop/bin/gamedock deleted file mode 100755 index c1c9cd3..0000000 --- a/env/laptop/bin/gamedock +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env sh - -autorandr --load games -xrandr --output eDP1 --mode 1600x900 -"${DOTFILES_PATH}/apps/de/bspwm/rc" -xrdb -merge "$ENV_PATH/x/games.resources" -restartbar -"${HOME}/.fehbg" diff --git a/env/laptop/bin/homedock b/env/laptop/bin/homedock deleted file mode 100755 index 07028c7..0000000 --- a/env/laptop/bin/homedock +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env sh - -autorandr --change -xrandr --output eDP1 --scale-from 1600x900 --filter nearest --mode 3200x1800 -xrdb -merge "$ENV_PATH/x/docked.resources" -xrdb -merge "$ENV_PATH/x/home.docked.resources" -"${DOTFILES_PATH}/apps/de/bspwm/rc" -restartbar -"${HOME}/.fehbg" diff --git a/env/laptop/bin/undock b/env/laptop/bin/undock deleted file mode 100755 index 279a81d..0000000 --- a/env/laptop/bin/undock +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -resrc -"${DOTFILES_PATH}/apps/de/x/loadresources" -autorandr --change -"${DOTFILES_PATH}/apps/de/bspwm/rc" -"${DOTFILES_PATH}/apps/de/x/loadresources" -restartbar -"${HOME}/.fehbg" diff --git a/env/laptop/bin/workdock b/env/laptop/bin/workdock deleted file mode 100755 index f448e54..0000000 --- a/env/laptop/bin/workdock +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env sh - -autorandr --change -xrandr --output eDP1 --scale-from 1600x900 --filter nearest --mode 3200x1800 -xrdb -merge "$ENV_PATH/x/docked.resources" -"${DOTFILES_PATH}/apps/de/bspwm/rc" -restartbar -"${HOME}/.fehbg" diff --git a/env/laptop/config.fish b/env/laptop/config.fish deleted file mode 100755 index 8d5133b..0000000 --- a/env/laptop/config.fish +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env fish - -# TODO: completion -function src-hidden-dir - not scount $argv && echo "No directory specified" && exit 1 - set f $ENV_PATH/.hidden/fish.d/$argv[1]/config.fish - echo "Checking $f..." - test -f $f && source $f -end - -set hc $ENV_PATH/.hidden/config.fish -test -f $hc && source $hc diff --git a/env/laptop/hardware.nix b/env/laptop/hardware.nix deleted file mode 100644 index 2326f4c..0000000 --- a/env/laptop/hardware.nix +++ /dev/null @@ -1,32 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, ... }: - -{ - imports = - [ - ]; - - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "rtsx_pci_sdmmc" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/d1d92974-c0c0-4566-8131-c3dda9b21122"; - fsType = "ext4"; - }; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/3EB9-C18F"; - fsType = "vfat"; - }; - - swapDevices = [ ]; - - nix.maxJobs = lib.mkDefault 4; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - # High-DPI console - console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; -} diff --git a/env/laptop/sway/config.d/main b/env/laptop/sway/config.d/main deleted file mode 100644 index 5f4b763..0000000 --- a/env/laptop/sway/config.d/main +++ /dev/null @@ -1,5 +0,0 @@ -exec libinput-gestures -c $HOME/.config/dotfiles/apps/de/libinput/sway-gestures.conf -bindswitch lid:toggle exec swaylock -input type:keyboard { - xkb_options ctrl:nocaps -} diff --git a/readme.md b/readme.md index 03b8fdf..71c969c 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# dotfiles by lytedev +# lytedev's dotfiles This repository is undergoing some massive changes. @@ -11,9 +11,9 @@ curl -s -L https://git.lyte.dev/lytedev/dotfiles/raw/branch/master/bin/init-dotf [🖥️ Upstream][upstream] • [🐙 GitHub Mirror][github] -## Improvements +## To Do -+ Move to NixOS or Guix? Declarative is the future! ++ Move to NixOS (WIP) or Guix? Declarative is the future! + Custom Iosevka font with kitty-compatible ligatures? + Makefile instead of setup script + `c` (and similar aliases) could utilize `CDPATH` envvar?