add swayidle and some bash aliases
This commit is contained in:
parent
2fb291aa24
commit
5b12c2e452
2 changed files with 8 additions and 4 deletions
|
@ -5,6 +5,7 @@
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
# General aliases
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias nano='nano -i'
|
alias nano='nano -i'
|
||||||
|
@ -13,7 +14,10 @@ alias ls='eza -l --icons'
|
||||||
alias ll='eza -la --icons'
|
alias ll='eza -la --icons'
|
||||||
alias ip='ip -c'
|
alias ip='ip -c'
|
||||||
alias vim='nvim'
|
alias vim='nvim'
|
||||||
|
alias cat='bat'
|
||||||
|
alias grep='rg'
|
||||||
|
|
||||||
|
# Directory management alaiases
|
||||||
alias cp='cp -v'
|
alias cp='cp -v'
|
||||||
alias mv='mv -v'
|
alias mv='mv -v'
|
||||||
alias rm='rm -v'
|
alias rm='rm -v'
|
||||||
|
|
|
@ -49,10 +49,10 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
#
|
#
|
||||||
# exec swayidle -w \
|
exec swayidle -w \
|
||||||
# timeout 300 'swaylock -f -c 000000' \
|
timeout 300 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||||
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
timeout 60 'swaylock -f -c 000000'' \
|
||||||
# before-sleep 'swaylock -f -c 000000'
|
before-sleep 'swaylock -f -c 000000'
|
||||||
#
|
#
|
||||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||||
# your displays after another 300 seconds, and turn your screens back on when
|
# your displays after another 300 seconds, and turn your screens back on when
|
||||||
|
|
Loading…
Add table
Reference in a new issue