From fdc6fd5889c7b6b1c8319a36e1b498fb6385a993 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Mon, 22 Jul 2019 17:24:55 -0500 Subject: [PATCH] changed handling of sleep and lockscreen to I3. --- i3/.config/i3/config | 5 ++ vifm/.config/vifm/scripts/README | 6 ++ vifm/.config/vifm/vifminfo | 126 +++++++++++++++++++++++++++++++ zsh/.zshrc | 2 - 4 files changed, 137 insertions(+), 2 deletions(-) create mode 100644 vifm/.config/vifm/scripts/README create mode 100644 vifm/.config/vifm/vifminfo diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 30a90cc..f002704 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -171,6 +171,11 @@ font pango:DejaVu Sans Mono 8 bindsym $mod+r mode "resize" + # lock the screen with mod+x, and lock+sleep computer with mod+shift+x + set $lock_command "i3lock" # avoid repetition + bindsym $mod+x exec $lock_command + bindsym $mod+shift+x exec $lock_command && systemctl suspend + #make certan windwows always floating #volume controll for_window [class="Pavucontrol"] floating enable diff --git a/vifm/.config/vifm/scripts/README b/vifm/.config/vifm/scripts/README new file mode 100644 index 0000000..7694952 --- /dev/null +++ b/vifm/.config/vifm/scripts/README @@ -0,0 +1,6 @@ +This directory is dedicated for user-supplied scripts/executables. +vifm modifies its PATH environment variable to let user run those +scripts without specifying full path. All subdirectories are added +as well. File in a subdirectory overrules file with the same name +in parent directories. Restart might be needed to recognize files +in newly created or renamed subdirectories. \ No newline at end of file diff --git a/vifm/.config/vifm/vifminfo b/vifm/.config/vifm/vifminfo new file mode 100644 index 0000000..8c64897 --- /dev/null +++ b/vifm/.config/vifm/vifminfo @@ -0,0 +1,126 @@ +# You can edit this file by hand, but it's recommended not to do that. + +# Marks: +'b + /home/gabe/bin/ + .. +1561749046 +'h + /home/gabe/ + .. +1561749046 + +# Bookmarks: + +# TUI: +al +q0 +v2 +ov +m-1 +l2 +r2 + +# Left window history (oldest to newest): +d/ + sys +15 +d/sys + .. +0 +d/ + mnt +8 +d/mnt + .. +0 +d/ + mnt +8 +d/mnt + c +1 +d/mnt/c + .. +0 +d/mnt + c +1 +d/ + mnt +8 +d/mnt + c +1 +d/mnt/c + .. +0 +d/mnt + c +1 +d/ + media +7 +d/media + .. +0 +d/ + media +7 +d/media + .. +0 +d/ + mnt +8 +d/mnt + c +1 +d/mnt/c + .. +0 +d/mnt + c +1 +d/ + mnt +8 +d + +# Right window history (oldest to newest): +D/ + home +4 +D/home + gabe +1 +D/home/gabe + dotfiles +1 +D + +# Command line history (oldest to newest): +:q + +# Search history (oldest to newest): + +# Prompt history (oldest to newest): + +# Local filter history (oldest to newest): + +# Registers: + +# Directory stack (oldest to newest): + +# Trash content: + +# State: +f +i1 +[.1 +[F +F +I1 +].1 +]F +s0 diff --git a/zsh/.zshrc b/zsh/.zshrc index 3d3b329..4057602 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -95,8 +95,6 @@ local LOCAL_ZSHRC=$HOME/.config/zshlocal # Allow the local machine to have alias vimdiff="nvim -d" alias mutt="neomutt" alias fuck='sudo $(fc -ln -1)' - #i3sleep locks the screen and puts the system to sleep - alias i3sleep="systemctl suspend && i3lock" #alias -g ...='../..' #alias -g ....='../../..'