From fbcdaa4c0ea6620e4e2053a4a6159318a4f117d2 Mon Sep 17 00:00:00 2001 From: jay Date: Wed, 19 Apr 2023 10:41:55 +0800 Subject: [PATCH] update --- home/dot_config/hypr/hyprland.conf | 16 +++++++++++++--- home/dot_config/nvim/init.vim.tmpl | 5 ++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/home/dot_config/hypr/hyprland.conf b/home/dot_config/hypr/hyprland.conf index 600a6ce..3826209 100644 --- a/home/dot_config/hypr/hyprland.conf +++ b/home/dot_config/hypr/hyprland.conf @@ -22,10 +22,18 @@ monitor=eDP-1,preferred,auto,1 exec-once = dbus-update-activation-environment --all exec-once = kanshi exec-once = dex -a -e kypr -exec-once = swayidle -w timeout 300 'swaylock -f -i ~/.config/swaylock/bg.png -s fill' timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' before-sleep 'swaylock -f -i ~/.config/swaylock/bg.png -s fill' +exec-once = swayidle -w \ + timeout 300 'swaylock -f -i ~/.config/swaylock/bg.png -s fill' \ + timeout 600 'hyprctl dispatch dpms off' \ + resume 'hyprctl dispatch dpms on' \ + before-sleep 'swaylock -f -i ~/.config/swaylock/bg.png -s fill' exec-once = waybar exec-once = swaybg -i ~/.config/hypr/bg.png -m fill exec-once = udiskie & + +# start applications +exec-once = telegram-desktop +exec-once = slack # Source a file (multi-file configs) @@ -236,5 +244,7 @@ wsbind = 9, eDP-1 wsbind = 10, eDP-1 # set window rule -windowrulev2 = float,class:([Ss]lack) -windowrulev2 = float,class:(telegram) +windowrulev2 = float,class:^(Slack)$ +windowrulev2 = workspace 8,class:^(Slack)$ +windowrulev2 = float,class:^(org.telegram.desktop)$ +windowrulev2 = workspace 8,class:^(org.telegram.desktop)$ diff --git a/home/dot_config/nvim/init.vim.tmpl b/home/dot_config/nvim/init.vim.tmpl index a308f55..5cc7395 100644 --- a/home/dot_config/nvim/init.vim.tmpl +++ b/home/dot_config/nvim/init.vim.tmpl @@ -133,9 +133,8 @@ function! AdaptColorscheme() endfunction autocmd ColorScheme * call AdaptColorscheme() -" colorscheme turtles -" colorscheme afterglow - +" for chezmoi after edit auto apply +autocmd BufWritePost ~/.local/share/chezmoi/* ! chezmoi apply --source-path "%" " define leader key let mapleader=";"