sound and lock screen fixes

fixed sound issues where the headphones were not being detected
correctly by using a static configuration with modprobe

standardized the lock screen command and wallpapers for later use
system-wide
master
Alessandro Mauri 5 years ago
parent 8a186fd7fd
commit 856ff79931
  1. 8
      conf/config/scripts/lock-screen
  2. 7
      conf/config/sway/config
  3. 32
      conf/home/asoundrc
  4. 9
      conf/home/vimrc
  5. 5
      startw

@ -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"

@ -16,12 +16,7 @@ exec swaybg -o "*" -i "$HOME"/Pictures/walls/palm.jpg -m fill
### Output configuration ### Output configuration
# Idle configuration # Idle configuration
exec swayidle -w \ exec $SCRIPT_DIR/lock-screen
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"'
### Input configuration ### Input configuration
# Touchpad settings # Touchpad settings

@ -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

@ -11,15 +11,10 @@ call plug#begin('~/.vim/plugged')
" Declare the list of plugins. " Declare the list of plugins.
Plug 'itchyny/lightline.vim' Plug 'itchyny/lightline.vim'
" Plug 'preservim/nerdtree'
Plug 'tpope/vim-vinegar' Plug 'tpope/vim-vinegar'
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'terryma/vim-multiple-cursors'
Plug 'ap/vim-css-color' Plug 'ap/vim-css-color'
" Plug 'vimwiki/vimwiki'
" Plug 'lervag/wiki.vim'
" Plug 'lervag/wiki-ft.vim'
Plug 'godlygeek/tabular' Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown' Plug 'plasticboy/vim-markdown'
@ -30,7 +25,9 @@ call plug#end()
set number set number
set tabstop=4 set tabstop=4
set smartcase set smartcase
colorscheme darkblue set colorcolumn=80
set cursorline
colorscheme industry
" Use mouse " Use mouse
set mouse=a set mouse=a

@ -101,6 +101,11 @@ export SCRIPT_DIR="$XDG_CONFIG_HOME"/scripts
export HISTCONTROL=ignoreboth export HISTCONTROL=ignoreboth
# Set WM variable for ufetch # Set WM variable for ufetch
export WM=sway 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 # Do NOT uncomment this, breaks stuff
# export GDK_BACKEND=wayland # export GDK_BACKEND=wayland

Loading…
Cancel
Save