From 3ca073e1d3b19a38e6a72803c3e08763567b3d16 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 27 May 2023 21:58:48 +0100 Subject: bash history, sway idle --- .bashrc | 4 +++- .config/sway/config | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 7b3e317..b2c03fd 100644 --- a/.bashrc +++ b/.bashrc @@ -10,6 +10,8 @@ PS1='\[\e[90m\][\u@\h \W]\$\[\e[0m\] ' shopt -s histappend HISTCONTROL=ignoreboth +HISTSIZE=1000000 +HISTFILESIZE=1000000 alias xqr='xbps-query -R' alias xqrs='xbps-query -Rs' @@ -43,7 +45,7 @@ alias mirror='mpv --untimed --profile=low-latency --vf=hflip /dev/video0' set_title () { printf "\e]2;%s\e\\" "$1"; } _lastcmd () { history 1 | sed -e 's/^ *[0-9]* *//g' ; } trap 'set_title "$(_lastcmd)"' DEBUG -PROMPT_COMMAND='set_title "$(apwd)"' +PROMPT_COMMAND='history -a; set_title "$(apwd)"' export LUA_PATH_5_3="$HOME/.local/lib/lua/5.3/?.lua;;" export LUA_PATH_5_1="$HOME/.local/lib/lua/5.1/?.lua;;" diff --git a/.config/sway/config b/.config/sway/config index 9cce4d7..e023b1f 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -144,6 +144,10 @@ set $lock swaylock -f --indicator-radius 400 --indicator-thickness 20 --ring-col bindsym $mod+o exec $lock bindsym $mod+Shift+o exec $lock && zzz +exec swayidle -w \ + timeout 120 $lock \ + timeout 300 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' + bindsym XF86AudioRaiseVolume exec 'amixer set Master 5%+' bindsym XF86AudioLowerVolume exec 'amixer set Master 5%-' bindsym XF86AudioMute exec 'amixer set Master toggle' -- cgit v1.2.3