(Shell|XServer)~minor edits with indenting
(Shell)~propagate change to emacs service (no -s MAIN) and editing (XServer)~state explicit full path for lock script for ease of understanding (it's a user script, not some other program)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# .zprofile -*- mode: sh; lexical-binding: t; -*-
|
# .zprofile -*- mode: sh; lexical-binding: t; -*-
|
||||||
|
|
||||||
# Standard Variables
|
# Standard Variables
|
||||||
export EDITOR='emacsclient -s MAIN -a "emacs" -c'
|
export EDITOR='emacsclient -a "emacs" -c'
|
||||||
export EA_EDITOR=$EDITOR
|
export EA_EDITOR=$EDITOR
|
||||||
export TERMINAL="alacritty"
|
export TERMINAL="alacritty"
|
||||||
export BROWSER="qutebrowser"
|
export BROWSER="qutebrowser"
|
||||||
|
|||||||
24
Shell/.zshrc
24
Shell/.zshrc
@@ -20,15 +20,15 @@ alias sedit="emacsclient -s MAIN -a emacs -c"
|
|||||||
alias cedit="emacsclient -s MAIN -a emacs -nw"
|
alias cedit="emacsclient -s MAIN -a emacs -nw"
|
||||||
|
|
||||||
vf () {
|
vf () {
|
||||||
vim $(fzf)
|
vim $(fzf)
|
||||||
}
|
}
|
||||||
|
|
||||||
ef () {
|
ef () {
|
||||||
sedit $(fzf)
|
sedit $(fzf)
|
||||||
}
|
}
|
||||||
|
|
||||||
psearch () {
|
psearch () {
|
||||||
pacman -Ss $@ | less
|
pacman -Ss $@ | less
|
||||||
}
|
}
|
||||||
|
|
||||||
### Git aliases
|
### Git aliases
|
||||||
@@ -90,15 +90,15 @@ bindkey '^[[B' history-substring-search-down
|
|||||||
|
|
||||||
# Cursor
|
# Cursor
|
||||||
function zle-keymap-select {
|
function zle-keymap-select {
|
||||||
if [[ ${KEYMAP} == vicmd ]] ||
|
if [[ ${KEYMAP} == vicmd ]] ||
|
||||||
[[ $1 = 'block' ]]; then
|
[[ $1 = 'block' ]]; then
|
||||||
echo -ne '\e[1 q'
|
echo -ne '\e[1 q'
|
||||||
elif [[ ${KEYMAP} == main ]] ||
|
elif [[ ${KEYMAP} == main ]] ||
|
||||||
[[ ${KEYMAP} == viins ]] ||
|
[[ ${KEYMAP} == viins ]] ||
|
||||||
[[ ${KEYMAP} = '' ]] ||
|
[[ ${KEYMAP} = '' ]] ||
|
||||||
[[ $1 = 'beam' ]]; then
|
[[ $1 = 'beam' ]]; then
|
||||||
echo -ne '\e[5 q'
|
echo -ne '\e[5 q'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
zle -N zle-keymap-select
|
zle -N zle-keymap-select
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ xrandr --auto --output eDP1 --right-of HDMI1;
|
|||||||
xrandr --auto --output VGA1 --primary --left-of DP2;
|
xrandr --auto --output VGA1 --primary --left-of DP2;
|
||||||
xrandr --auto --output DP2 --rotate left;
|
xrandr --auto --output DP2 --rotate left;
|
||||||
|
|
||||||
$(xss-lock --transfer-sleep-lock -- lock) &
|
$(xss-lock --transfer-sleep-lock -- $HOME/.local/scripts/lock) &
|
||||||
$HOME/.local/scripts/background &
|
$HOME/.local/scripts/background &
|
||||||
|
|
||||||
systemctl --user start emacs &
|
systemctl --user start emacs &
|
||||||
|
|||||||
Reference in New Issue
Block a user