Man, am I the greatest
This commit is contained in:
parent
696dcd1d27
commit
0b4e7f9185
13 changed files with 163 additions and 163 deletions
|
@ -1,22 +0,0 @@
|
|||
wallpaper="%%wallpaper%%"
|
||||
background="%%background.hex%%"
|
||||
foreground="%%foreground.hex%%"
|
||||
curstor="%%cursor.hex%%"
|
||||
border="%%border.hex%%"
|
||||
|
||||
color0="%%color0.hex%%"
|
||||
color1="%%color1.hex%%"
|
||||
color2="%%color2.hex%%"
|
||||
color3="%%color3.hex%%"
|
||||
color4="%%color4.hex%%"
|
||||
color5="%%color5.hex%%"
|
||||
color6="%%color6.hex%%"
|
||||
color7="%%color7.hex%%"
|
||||
color8="%%color8.hex%%"
|
||||
color9="%%color9.hex%%"
|
||||
color10="%%color10.hex%%"
|
||||
color11="%%color11.hex%%"
|
||||
color12="%%color12.hex%%"
|
||||
color13="%%color13.hex%%"
|
||||
color14="%%color14.hex%%"
|
||||
color15="%%color15.hex%%"
|
|
@ -1,8 +1,15 @@
|
|||
profile {
|
||||
output eDP-1 disable
|
||||
output "LG Electronics MP59G 0x000672C5" mode 1920x1080 position 0,0 scale 1.0
|
||||
output "eDP-1" {
|
||||
disable
|
||||
}
|
||||
output "LG Electronics MP59G 0x000672C5" {
|
||||
mode 1920x1080
|
||||
position 0,0
|
||||
}
|
||||
}
|
||||
|
||||
profile {
|
||||
output eDP-1 enable scale 1.0
|
||||
output "eDP-1" {
|
||||
enable
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,30 +11,13 @@ set cleaner ctpvclear
|
|||
# show hidden files
|
||||
set hidden true
|
||||
|
||||
# interpreter for shell commands
|
||||
set shell sh
|
||||
|
||||
# set '-eu' options for shell commands
|
||||
# These options are used to have safer shell commands. Option '-e' is used to
|
||||
# exit on error and option '-u' is used to give error for unset variables.
|
||||
# Option '-f' disables pathname expansion which can be useful when $f, $fs, and
|
||||
# $fx variables contain names with '*' or '?' characters. However, this option
|
||||
# is used selectively within individual commands as it can be limiting at
|
||||
# times.
|
||||
set shellopts '-eu'
|
||||
|
||||
# set internal field separator (IFS) to "\n" for shell commands
|
||||
# This is useful to automatically split file names in $fs and $fx properly
|
||||
# since default file separator used in these variables (i.e. 'filesep' option)
|
||||
# is newline. You need to consider the values of these options and create your
|
||||
# commands accordingly.
|
||||
set ifs "\n"
|
||||
|
||||
# leave some space at the top and the bottom of the screen
|
||||
set scrolloff 10
|
||||
|
||||
# Use the `dim` attribute instead of underline for the cursor in the preview pane
|
||||
set cursorpreviewfmt "\033[7;2m"
|
||||
set drawbox
|
||||
|
||||
# use enter for shell commands
|
||||
map <enter> shell
|
||||
|
@ -68,14 +51,6 @@ map a :push %mkdir<space>
|
|||
cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
|
||||
map r push :rename<space>
|
||||
|
||||
# make sure trash folder exists
|
||||
# %mkdir -p ~/.trash
|
||||
|
||||
# move current file or selected files to trash folder
|
||||
# (also see 'man mv' for backup/overwrite options)
|
||||
# cmd trash %set -f; mv $fx ~/.trash
|
||||
|
||||
# define a custom 'delete' command
|
||||
cmd delete ${{
|
||||
set -f
|
||||
printf "$fx\n"
|
||||
|
@ -84,8 +59,6 @@ cmd delete ${{
|
|||
[ "$ans" = "y" ] && rm -rf $fx
|
||||
}}
|
||||
|
||||
# use '<delete>' key for either 'trash' or 'delete' command
|
||||
# map <delete> trash
|
||||
map <delete> delete
|
||||
|
||||
# extract the current file with the right command
|
||||
|
@ -97,28 +70,17 @@ cmd extract ${{
|
|||
*.tar.gz|*.tgz) tar xzvf $f;;
|
||||
*.tar.xz|*.txz) tar xJvf $f;;
|
||||
*.zip) unzip $f;;
|
||||
*.rar) unrar x $f;;
|
||||
*.7z) 7z x $f;;
|
||||
#*.rar) unrar x $f;;
|
||||
#*.7z) 7z x $f;;
|
||||
esac
|
||||
}}
|
||||
|
||||
# compress current file or selected files with tar and gunzip
|
||||
cmd tar ${{
|
||||
set -f
|
||||
mkdir $1
|
||||
cp -r $fx $1
|
||||
tar czf $1.tar.gz $1
|
||||
rm -rf $1
|
||||
map E extract
|
||||
|
||||
cmd mkexec ${{
|
||||
chmod u+x $fx
|
||||
printf "$fx is now executable"
|
||||
}}
|
||||
|
||||
# compress current file or selected files with zip
|
||||
cmd zip ${{
|
||||
set -f
|
||||
mkdir $1
|
||||
cp -r $fx $1
|
||||
zip -r $1.zip $1
|
||||
rm -rf $1
|
||||
}}
|
||||
map V mkexec
|
||||
|
||||
cmd setbg "$1"
|
||||
map b $setbg $f
|
||||
|
|
|
@ -11,3 +11,10 @@ max-icon-size=64
|
|||
default-timeout=5000
|
||||
ignore-timeout=1
|
||||
font=Inconsolata 11
|
||||
|
||||
|
||||
[app-name=spotify_player]
|
||||
border-color=#1ed760
|
||||
background-color=#191414
|
||||
text-color=#ffffff
|
||||
default-timeout=2048
|
||||
|
|
|
@ -70,12 +70,44 @@ zle -N zle-line-init
|
|||
echo -ne '\e[5 q' # Use beam shape cursor on startup.
|
||||
preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
|
||||
|
||||
# Use lf to switch directories and bind it to ctrl-o
|
||||
lfcd () {
|
||||
tmp="$(mktemp -uq)"
|
||||
trap 'rm -f $tmp >/dev/null 2>&1 && trap - HUP INT QUIT TERM PWR EXIT' HUP INT QUIT TERM PWR EXIT
|
||||
lf -last-dir-path="$tmp" "$@"
|
||||
if [ -f "$tmp" ]; then
|
||||
dir="$(cat "$tmp")"
|
||||
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
|
||||
fi
|
||||
}
|
||||
bindkey -s '^o' '^ulfcd\n'
|
||||
|
||||
bindkey -s '^a' '^ubc -lq\n'
|
||||
|
||||
bindkey -s '^f' '^ucd "$(dirname "$(fzf)")"\n'
|
||||
|
||||
bindkey '^[[P' delete-char
|
||||
|
||||
# Edit line in vim with ctrl-e:
|
||||
autoload edit-command-line; zle -N edit-command-line
|
||||
bindkey '^e' edit-command-line
|
||||
bindkey -M vicmd '^[[P' vi-delete-char
|
||||
bindkey -M vicmd '^e' edit-command-line
|
||||
bindkey -M visual '^[[P' vi-delete
|
||||
|
||||
# Aliases
|
||||
alias sudo='doas'
|
||||
alias neofetch='fastfetch'
|
||||
alias ls='ls -lah'
|
||||
alias vim='nvim'
|
||||
alias wal='hellwal -q'
|
||||
alias patch='bwroot patch'
|
||||
alias tcc='bwroot tcc'
|
||||
alias g++='bwroot g++'
|
||||
alias gcc='bwroot gcc'
|
||||
alias git='bwroot git'
|
||||
alias clang='bwroot clang'
|
||||
alias make='bwroot make'
|
||||
|
||||
# Commands
|
||||
fastfetch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue