Browse Source

host specific .zshrc

main
Michael Pappe 4 months ago
parent
commit
ff5e14ae3a
  1. 3
      .config/chrome-flags.conf
  2. 2
      .config/htop/htoprc##default
  3. 2
      .config/kitty/kitty.conf
  4. 2
      .config/mako/config
  5. 2
      .config/mpv/ext/mpv_sponsorblock
  6. 2
      .config/sway/conf.d/bind.conf
  7. 1
      .zshrc
  8. 106
      .zshrc##h.default
  9. 18
      README.md
  10. 18
      README.org

3
.config/chrome-flags.conf

@ -1,3 +0,0 @@
--no-default-browser-check
--force-dark-mode
--enable-features=WebUIDarkMode

2
.config/htop/htoprc##default

@ -18,7 +18,7 @@ highlight_changes_delay_secs=5
find_comm_in_cmdline=1
strip_exe_from_cmdline=1
show_merged_command=1
tree_view=1
tree_view=0
tree_view_always_by_pid=0
header_margin=1
detailed_cpu_time=1

2
.config/kitty/kitty.conf

@ -326,7 +326,7 @@ allow_remote_control yes
update_check_interval 0
startup_session none
clipboard_control write-clipboard write-primary read-clipboard read-primary
term xterm-screen-256color
term xterm-256color
#: }}}
#: Keyboard shortcuts {{{

2
.config/mako/config

@ -1,4 +1,4 @@
sort=-time
sort=+time
layer=overlay
font=monospace 10
background-color=#262626CC

2
.config/mpv/ext/mpv_sponsorblock

@ -1 +1 @@
Subproject commit aea7a77d576e3b89646e2a79cc35c5ecd9762858
Subproject commit 29e7b75809107db2bb0c6c6eed0199e063aa75d2

2
.config/sway/conf.d/bind.conf

@ -36,7 +36,7 @@ bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
#bindsym $mod+e layout toggle split
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+f floating toggle

1
.zshrc

@ -1 +0,0 @@
.zshrc##h.calvin

106
.zshrc##h.default

@ -0,0 +1,106 @@
# Personal Zsh configuration file. It is strongly recommended to keep all
# shell customization and configuration (including exported environment
# variables such as PATH) in this file or in files source by it.
#
# Documentation: https://github.com/romkatv/zsh4humans/blob/v5/README.md.
# Periodic auto-update on Zsh startup: 'ask' or 'no'.
zstyle ':z4h:' auto-update 'no'
# Ask whether to auto-update this often; has no effect if auto-update is 'no'.
zstyle ':z4h:' auto-update-days 'no'
# Automaticaly wrap TTY with a transparent tmux ('integrated'), or start a
# full-fledged tmux ('system'), or disable features that require tmux ('no').
zstyle ':z4h:' start-tmux 'no'
# Move prompt to the bottom when zsh starts up so that it's always in the
# same position. Has no effect if start-tmux is 'no'.
zstyle ':z4h:' prompt-at-bottom 'no'
# Keyboard type: 'mac' or 'pc'.
zstyle ':z4h:bindkey' keyboard 'pc'
# Right-arrow key accepts one character ('partial-accept') from
# command autosuggestions or the whole thing ('accept')?
zstyle ':z4h:autosuggestions' forward-char 'accept'
# Enable ('yes') or disable ('no') automatic teleportation of z4h over
# ssh when connecting to these hosts.
#zstyle ':z4h:ssh:calvin' enable 'yes'
#zstyle ':z4h:ssh:*.example-hostname2' enable 'no'
# The default value if none of the overrides above match the hostname.
zstyle ':z4h:ssh:*' enable 'no'
# Send these files over to the remote host when connecting over ssh to the
# enabled hosts.
zstyle ':z4h:ssh:*' send-extra-files '~/.nanorc' '~/.env.zsh'
# Clone additional Git repositories from GitHub.
#
# This doesn't do anything apart from cloning the repository and keeping it
# up-to-date. Cloned files can be used after `z4h init`. This is just an
# example. If you don't plan to use Oh My Zsh, delete this line.
#z4h install ohmyzsh/ohmyzsh || return
# Install or update core components (fzf, zsh-autosuggestions, etc.) and
# initialize Zsh. After this point console I/O is unavailable until Zsh
# is fully initialized. Everything that requires user interaction or can
# perform network I/O must be done above. Everything else is best done below.
z4h init || return
# Extend PATH.
path=(~/bin $path)
# Export environment variables.
export GPG_TTY=$TTY
# Source additional local files if they exist.
z4h source ~/.env.zsh
# Use additional Git repositories pulled in with `z4h install`.
#
# This is just an example that you should delete. It does nothing useful.
#z4h source $Z4H/ohmyzsh/ohmyzsh/lib/diagnostics.zsh
#z4h source $Z4H/ohmyzsh/ohmyzsh/plugins/emoji-clock/emoji-clock.plugin.zsh
#fpath+=($Z4H/ohmyzsh/ohmyzsh/plugins/supervisor)
# Define key bindings.
z4h bindkey z4h-backward-kill-word Ctrl+Backspace Ctrl+H
z4h bindkey z4h-backward-kill-zword Ctrl+Alt+Backspace
z4h bindkey undo Ctrl+/ # undo the last command line change
z4h bindkey redo Alt+/ # redo the last undone command line change
z4h bindkey z4h-cd-back Alt+Left # cd into the previous directory
z4h bindkey z4h-cd-forward Alt+Right # cd into the next directory
z4h bindkey z4h-cd-up Alt+Up # cd into the parent directory
z4h bindkey z4h-cd-down Alt+Down # cd into a child directory
# Autoload functions.
autoload -Uz zmv
# Define functions and completions.
function md() { [[ $# == 1 ]] && mkdir -p -- "$1" && cd -- "$1" }
compdef _directories md
# Define named directories: ~w <=> Windows home directory on WSL.
[[ -n $z4h_win_home ]] && hash -d w=$z4h_win_home
# Define aliases.
alias tree='tree -a -I .git'
# Add flags to existing aliases.
alias ls="${aliases[ls]:-ls} -A"
# Set shell options: http://zsh.sourceforge.net/Doc/Release/Options.html.
setopt glob_dots # no special treatment for file names with a leading dot
setopt no_auto_menu # require an extra TAB press to open the completion menu
typeset -g HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=black,fg=cyan,bold'
typeset -g HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=black,fg=magenta,bold'
typeset -U config_files
config_files=($HOME/.config/zsh/*.zsh)
# load config files
for file in ${config_files}
do
source $file
done

18
README.md

@ -13,24 +13,10 @@ A collection of my accumulated dotfiles, right now really messy and anythig but
- [sway](https://github.com/swaywm/sway) (wlroots based wayland compositor)
- [swaybg](https://github.com/swaywm/swaybg) (wallpaper)
- [mako](https://wayland.emersion.fr/mako/) (notifications)
- [waybar](https://github.com/Alexays/Waybar) (statusbar(s))
-
# Various Scripts
[Scripts](.local/bin/)
```toml
[terminal]
# The VT to run the greeter on. Can be "next", "current" or a number
# designating the VT.
vt = 1
# The default session, also known as the greeter.
[default_session]
command = "sway --config /etc/greetd/sway-config"
# The user to run the command as. The privileges this user must have depends
# on the greeter. A graphical greeter may for example require the user to be
# in the `video` group.
user = "greeter"
```

18
README.org

@ -16,23 +16,11 @@ Feel free to use.
* [[https://github.com/swaywm/sway][sway]] (wlroots based wayland compositor)
* [[https://github.com/swaywm/swaybg][swaybg]] (wallpaper)
* [[https://wayland.emersion.fr/mako/][mako]] (notifications)
* [[https://github.com/Alexays/Waybar][waybar]] (statusbar(s))
*
* Various Scripts
[[file:.local/bin/][Scripts]]
#+BEGIN_SRC toml
[terminal]
# The VT to run the greeter on. Can be "next", "current" or a number
# designating the VT.
vt = 1
# The default session, also known as the greeter.
[default_session]
command = "sway --config /etc/greetd/sway-config"
# The user to run the command as. The privileges this user must have depends
# on the greeter. A graphical greeter may for example require the user to be
# in the `video` group.
user = "greeter"
#+END_SRC
* Local Variables :noexport:
Local variables:

Loading…
Cancel
Save