mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
chezmoi: systemd
This commit is contained in:
parent
a891f968f8
commit
b391e03c87
9 changed files with 40 additions and 57 deletions
|
|
@ -1,49 +0,0 @@
|
|||
[ids]
|
||||
|
||||
*
|
||||
|
||||
[main]
|
||||
|
||||
# Maps capslock to escape when pressed and control when held. tab=overload(lt1, tab) # backspace=\
|
||||
# \=backspace
|
||||
# backspace=\
|
||||
# capslock=overload(ctrl,esc)
|
||||
capslock = overload(control, esc)
|
||||
tab = overload(lt2, tab)
|
||||
space = overload(lt1, space)
|
||||
insert = S-insert
|
||||
|
||||
[lt1]
|
||||
h = left
|
||||
n = down
|
||||
e = up
|
||||
i = right
|
||||
1 = f1
|
||||
2 = f2
|
||||
3 = f3
|
||||
4 = f4
|
||||
5 = f5
|
||||
6 = f6
|
||||
7 = f7
|
||||
8 = f8
|
||||
9 = f9
|
||||
0 = f10
|
||||
- = f11
|
||||
= = f12
|
||||
k = home
|
||||
o = end
|
||||
[ = pageup
|
||||
] = pagedown
|
||||
q = ~
|
||||
w = |
|
||||
f = &
|
||||
p = ^
|
||||
/ = ¿
|
||||
|
||||
[lt2]
|
||||
space = playpause
|
||||
h = previoussong
|
||||
i = nextsong
|
||||
n = volumedown
|
||||
e = volumeup
|
||||
k = mute
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
[Unit]
|
||||
Description=Emacs text editor
|
||||
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/local/bin/emacs --daemon
|
||||
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
|
||||
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
[Unit]
|
||||
Description=Keyd Application Specific Mapping
|
||||
Documentation=man:keyd-application-mapper(1) https://github.com/rvaiya/keyd
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/local/bin/keyd-application-mapper -d
|
||||
ExecStop=pkill keyd-applicatio
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
# $DOTFILES/platforms/linux/zshrc
|
||||
# Date: 2024-12-22
|
||||
# Author: js0ny
|
||||
# Sourced by user's zshrc if is Linux 在用户的 zshrc 中被引用
|
||||
# Entry point in $DOTFILES/tools/zsh/common.zshrc (入口点)
|
||||
|
||||
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||
alias clip="wl-copy"
|
||||
alias paste="wl-paste"
|
||||
elif [ -n "$DISPLAY" ]; then
|
||||
alias clip="xclip"
|
||||
fi
|
||||
|
|
@ -6,22 +6,3 @@
|
|||
|
||||
# macOS #
|
||||
|
||||
alias clip="pbcopy"
|
||||
alias paste="pbpaste"
|
||||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('/opt/homebrew/Caskroom/miniconda/base/bin/conda' 'shell.zsh' 'hook' 2>/dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then
|
||||
. "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
|
||||
alias start-twm="source $DOTFILES/scripts/__twm_osx_start.zsh"
|
||||
|
|
|
|||
|
|
@ -6,26 +6,4 @@
|
|||
|
||||
### Variables ###
|
||||
export IS_WSL=true
|
||||
export ARCHFLAGS="-arch x86_64"
|
||||
source $DOTFILES/platforms/wsl/winterop.zsh
|
||||
|
||||
### Misc ###
|
||||
|
||||
export PATH=/opt/bin:$PATH
|
||||
|
||||
# Conda #
|
||||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('$HOME/miniconda3/bin/conda' 'shell.zsh' 'hook' 2>/dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "$HOME/miniconda3/etc/profile.d/conda.sh" ]; then
|
||||
. "$HOME/miniconda3/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="$HOME/miniconda3/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue