diff --git a/conf/config/scripts/lock-screen b/conf/config/scripts/lock-screen new file mode 100755 index 0000000..eef4d6a --- /dev/null +++ b/conf/config/scripts/lock-screen @@ -0,0 +1,8 @@ +#!/bin/sh +exec swayidle -w \ + timeout 120 "$SCRIPT_DIR/brightness -d" \ + resume "$SCRIPT_DIR/brightness -i" \ + timeout 360 "swaymsg 'output * dpms off'" \ + resume "swaymsg 'output * dpms on'" \ + timeout 600 "$LOCK_SCREEN_COMMAND" + diff --git a/conf/config/sway/config b/conf/config/sway/config index 972e534..5fa6960 100644 --- a/conf/config/sway/config +++ b/conf/config/sway/config @@ -16,12 +16,7 @@ exec swaybg -o "*" -i "$HOME"/Pictures/walls/palm.jpg -m fill ### Output configuration # Idle configuration -exec swayidle -w \ - timeout 30 '$SCRIPT_DIR/brightness -d' \ - resume '$SCRIPT_DIR/brightness -i' \ - timeout 360 'swaylock -f -c 000000' \ - timeout 600 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' +exec $SCRIPT_DIR/lock-screen ### Input configuration # Touchpad settings diff --git a/conf/home/asoundrc b/conf/home/asoundrc deleted file mode 100644 index a16c7c8..0000000 --- a/conf/home/asoundrc +++ /dev/null @@ -1,32 +0,0 @@ -pcm.custom -{ - type plug - slave { - pcm "dmix:1,0" - } -} - -ctl.custom -{ - type hw - card 1 -} - -pcm.dsncap -{ - type dsnoop - slave { - pcm "hw:1,0" - channels 2 - } -} - -pcm.duplex -{ - type asym - playback.pcm pcm.custom - capture.pcm pcm.dsncap -} - -pcm.!default pcm.duplex -ctl.!default ctl.custom diff --git a/conf/home/vimrc b/conf/home/vimrc index e5761ec..8803e90 100644 --- a/conf/home/vimrc +++ b/conf/home/vimrc @@ -11,15 +11,10 @@ call plug#begin('~/.vim/plugged') " Declare the list of plugins. Plug 'itchyny/lightline.vim' -" Plug 'preservim/nerdtree' Plug 'tpope/vim-vinegar' Plug 'tpope/vim-surround' Plug 'tpope/vim-fugitive' -Plug 'terryma/vim-multiple-cursors' Plug 'ap/vim-css-color' -" Plug 'vimwiki/vimwiki' -" Plug 'lervag/wiki.vim' -" Plug 'lervag/wiki-ft.vim' Plug 'godlygeek/tabular' Plug 'plasticboy/vim-markdown' @@ -30,7 +25,9 @@ call plug#end() set number set tabstop=4 set smartcase -colorscheme darkblue +set colorcolumn=80 +set cursorline +colorscheme industry " Use mouse set mouse=a diff --git a/startw b/startw index 23f7a77..75eb705 100755 --- a/startw +++ b/startw @@ -101,6 +101,11 @@ export SCRIPT_DIR="$XDG_CONFIG_HOME"/scripts export HISTCONTROL=ignoreboth # Set WM variable for ufetch export WM=sway +# Wallpaer +export WALLPAPER="$HOME/Pictures/walls/palm.jpg" +# Lock screen config +export LOCK_SCREEN_WALLPAPER=$WALLPAPER +export LOCK_SCREEN_COMMAND="swaylock -f -i $LOCK_SCREEN_WALLPAPER" # Do NOT uncomment this, breaks stuff # export GDK_BACKEND=wayland