SWAY
This commit is contained in:
parent
1f799972bc
commit
334842d234
6 changed files with 33 additions and 16 deletions
|
@ -2,7 +2,11 @@
|
|||
"coc.preferences.formatOnSaveFiletypes": ["ex", "exs", "elixir"],
|
||||
"diagnostic-languageserver.filetypes": {
|
||||
"elixir": ["mix_credo", "mix_credo_compile"],
|
||||
"eelixir": ["mix_credo", "mix_credo_compile"]
|
||||
"eelixir": ["mix_credo", "mix_credo_compile"],
|
||||
"sh": "shellcheck"
|
||||
},
|
||||
"diagnostic-languageserver.formatFiletypes": {
|
||||
"sh": "shfmt"
|
||||
},
|
||||
"elixir.pathToElixirLS": "~/.elixir-ls/release/language_server.sh",
|
||||
"codeLens.enable": true
|
||||
|
|
|
@ -142,6 +142,10 @@ xnoremap < <gv
|
|||
xnoremap > >gv
|
||||
|
||||
nnoremap gd :call CocAction('jumpDefinition')<CR>
|
||||
nmap <silent> gd <Plug>(coc-definition)
|
||||
nmap <silent> gy :call CocActionAsync('doHover')<CR>
|
||||
nmap <silent> gi <Plug>(coc-implementation)
|
||||
nmap <silent> gr <Plug>(coc-references)
|
||||
|
||||
" TODO: learn about the wildmenu `q:`
|
||||
|
||||
|
@ -238,10 +242,8 @@ function! StatusLine()
|
|||
" endtry
|
||||
endfunction
|
||||
|
||||
augroup slime
|
||||
au!
|
||||
autocmd BufNewFile,BufRead *.slimleex set syntax=slim
|
||||
augroup END
|
||||
augroup slime | au! BufNewFile,BufRead *.slimleex set syntax=slim | augroup END
|
||||
augroup ctmpl | au! BufNewFile,BufRead *.ctmpl set syntax=gohtmltmpl | augroup END
|
||||
|
||||
" set laststatus=0 showtabline tabline=%!StatusLine()
|
||||
set statusline=%!StatusLine()
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
exec libinput-gestures -c $DOTFILES_PATH/os/linux/libinput/sway-gestures.conf
|
||||
exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000'
|
||||
|
||||
bindswitch lid:toggle exec swaylock
|
||||
|
||||
|
|
|
@ -5,6 +5,16 @@ profile desktop-H-2x4kside2 {
|
|||
exec "$DOTFILES_PATH/os/linux/kanshi/desktop-H-workspaces.sh"
|
||||
}
|
||||
|
||||
profile desktop-H-2x4kside2 {
|
||||
output "Samsung Electric Company CF791 HTRJ500315" enable mode 3440x1440@100Hz position 0,1200 scale 1 transform normal
|
||||
output "Dell Inc. DELL U2720Q CWTM623" enable mode 3840x2160@60Hz position 3440,0 scale 1 transform 90
|
||||
exec "$DOTFILES_PATH/os/linux/kanshi/desktop-H-workspaces.sh"
|
||||
}
|
||||
|
||||
profile desktop-H-2x4kside2 {
|
||||
output "Dell Inc. DELL U2720Q D3TM623" enable mode 3840x2160@60Hz position 0,0 scale 1.5 transform normal
|
||||
}
|
||||
|
||||
# profile desktop-H-2x4kside2 {
|
||||
# output "Dell Inc. DELL U2720Q D3TM623" enable mode 3840x2160@60Hz position 0,0 scale 1.5 transform 270
|
||||
# output "Samsung Electric Company CF791 HTRJ500315" enable mode 3440x1440@100Hz position 1440,800 scale 1 transform normal
|
||||
|
|
|
@ -160,26 +160,26 @@ mode "resize" {
|
|||
|
||||
for_window [app_id="floating_terminal"] floating enable
|
||||
for_window [class="floating_terminal"] floating enable
|
||||
# for_window [class=".*"] layout splitv
|
||||
for_window [class=".*"] layout floating enable
|
||||
for_window [class=".*"] layout splith
|
||||
|
||||
client.focused #66d9ef #66d9ef #66d9ef #66d9ef #66d9ef
|
||||
client.focused_inactive #111111 #111111 #ffffff #111111 #111111
|
||||
client.unfocused #111111 #111111 #ffffff #111111 #111111
|
||||
|
||||
exec_always 'killall kanshi; kanshi'
|
||||
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
||||
exec mako
|
||||
exec pipewire
|
||||
exec_always notify-send -a "Sway" -i ~/.wallpaper "Sway configuration loaded."
|
||||
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
}
|
||||
|
||||
# TODO: exec_always?
|
||||
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
||||
exec mako
|
||||
exec pipewire
|
||||
exec gammastep -t 6500:3500 -l 39.0:-94.5
|
||||
exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000'
|
||||
|
||||
exec_always 'killall kanshi; kanshi'
|
||||
exec_always notify-send -a "Sway" -i ~/.wallpaper "Sway configuration loaded."
|
||||
|
||||
no_focus [class=".*"]
|
||||
output * bg $HOME/.wallpaper fill
|
||||
|
||||
include $XDG_CONFIG_HOME/lytedev-env/*/sway/config
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"position": "bottom",
|
||||
"output": ["eDP-1", "DP-1"],
|
||||
"height": 32,
|
||||
"modules-left": ["sway/workspaces"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-left": ["clock"],
|
||||
"modules-center": ["sway/workspaces"],
|
||||
"modules-right": [
|
||||
"idle_inhibitor",
|
||||
"pulseaudio",
|
||||
|
|
Reference in a new issue