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
This commit is contained in:
parent
8a186fd7fd
commit
856ff79931
8
conf/config/scripts/lock-screen
Executable file
8
conf/config/scripts/lock-screen
Executable file
@ -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
|
||||
|
||||
# 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
|
||||
|
@ -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.
|
||||
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
|
||||
|
5
startw
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user