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"],
|
"coc.preferences.formatOnSaveFiletypes": ["ex", "exs", "elixir"],
|
||||||
"diagnostic-languageserver.filetypes": {
|
"diagnostic-languageserver.filetypes": {
|
||||||
"elixir": ["mix_credo", "mix_credo_compile"],
|
"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",
|
"elixir.pathToElixirLS": "~/.elixir-ls/release/language_server.sh",
|
||||||
"codeLens.enable": true
|
"codeLens.enable": true
|
||||||
|
|
|
@ -142,6 +142,10 @@ xnoremap < <gv
|
||||||
xnoremap > >gv
|
xnoremap > >gv
|
||||||
|
|
||||||
nnoremap gd :call CocAction('jumpDefinition')<CR>
|
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:`
|
" TODO: learn about the wildmenu `q:`
|
||||||
|
|
||||||
|
@ -238,10 +242,8 @@ function! StatusLine()
|
||||||
" endtry
|
" endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
augroup slime
|
augroup slime | au! BufNewFile,BufRead *.slimleex set syntax=slim | augroup END
|
||||||
au!
|
augroup ctmpl | au! BufNewFile,BufRead *.ctmpl set syntax=gohtmltmpl | augroup END
|
||||||
autocmd BufNewFile,BufRead *.slimleex set syntax=slim
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
" set laststatus=0 showtabline tabline=%!StatusLine()
|
" set laststatus=0 showtabline tabline=%!StatusLine()
|
||||||
set statusline=%!StatusLine()
|
set statusline=%!StatusLine()
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
exec libinput-gestures -c $DOTFILES_PATH/os/linux/libinput/sway-gestures.conf
|
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
|
bindswitch lid:toggle exec swaylock
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,16 @@ profile desktop-H-2x4kside2 {
|
||||||
exec "$DOTFILES_PATH/os/linux/kanshi/desktop-H-workspaces.sh"
|
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 {
|
# profile desktop-H-2x4kside2 {
|
||||||
# output "Dell Inc. DELL U2720Q D3TM623" enable mode 3840x2160@60Hz position 0,0 scale 1.5 transform 270
|
# 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
|
# 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 [app_id="floating_terminal"] floating enable
|
||||||
for_window [class="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 #66d9ef #66d9ef #66d9ef #66d9ef #66d9ef
|
||||||
client.focused_inactive #111111 #111111 #ffffff #111111 #111111
|
client.focused_inactive #111111 #111111 #ffffff #111111 #111111
|
||||||
client.unfocused #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 {
|
bar {
|
||||||
swaybar_command waybar
|
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 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
|
output * bg $HOME/.wallpaper fill
|
||||||
|
|
||||||
include $XDG_CONFIG_HOME/lytedev-env/*/sway/config
|
include $XDG_CONFIG_HOME/lytedev-env/*/sway/config
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
"position": "bottom",
|
"position": "bottom",
|
||||||
"output": ["eDP-1", "DP-1"],
|
"output": ["eDP-1", "DP-1"],
|
||||||
"height": 32,
|
"height": 32,
|
||||||
"modules-left": ["sway/workspaces"],
|
"modules-left": ["clock"],
|
||||||
"modules-center": ["clock"],
|
"modules-center": ["sway/workspaces"],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"idle_inhibitor",
|
"idle_inhibitor",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
|
|
Reference in a new issue