Compare commits
7 Commits
94af5b761a
...
2025
Author | SHA1 | Date | |
---|---|---|---|
|
57f0d97072 | ||
|
df97a3cfc3 | ||
|
7303d805ef | ||
|
1521e5ddf2 | ||
ebd0e1bffa | |||
06805d6245 | |||
|
8deeba646d |
26
i3/config
26
i3/config
@@ -50,11 +50,16 @@ exec --no-startup-id gentoo-pipewire-launcher restart &
|
|||||||
|
|
||||||
set $refresh_i3status killall -SIGUSR1 i3status
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
|
|
||||||
# Use pactl to adjust volume in PulseAudio.
|
# Software volume should not be lower than 80% unless you want to lose dynamic range.
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
|
set $lower-volume wpctl set-volume @DEFAULT_SINK@ 0.01- && $refresh_i3status
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status
|
set $raise-volume wpctl set-volume @DEFAULT_SINK@ 0.01+ --limit 1 && $refresh_i3status
|
||||||
bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
set $mute-sink wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||||
bindsym XF86AudioMicMute exec --no-startup-id wpctl set-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
set $mute-source wpctl set-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||||
|
|
||||||
|
bindsym XF86AudioRaiseVolume exec --no-startup-id $raise-volume
|
||||||
|
bindsym XF86AudioLowerVolume exec --no-startup-id $lower-volume
|
||||||
|
bindsym XF86AudioMute exec --no-startup-id $mute-sink
|
||||||
|
bindsym XF86AudioMicMute exec --no-startup-id $mute-source
|
||||||
|
|
||||||
# Media player key bindings (need media-sound/playerctl for playerctl.)
|
# Media player key bindings (need media-sound/playerctl for playerctl.)
|
||||||
bindsym XF86AudioPlay exec playerctl play
|
bindsym XF86AudioPlay exec playerctl play
|
||||||
@@ -66,13 +71,9 @@ bindsym $mod+Shift+comma exec playerctl previous
|
|||||||
bindsym $mod+Shift+period exec playerctl next
|
bindsym $mod+Shift+period exec playerctl next
|
||||||
bindsym $mod+Shift+slash exec playerctl play-pause
|
bindsym $mod+Shift+slash exec playerctl play-pause
|
||||||
|
|
||||||
#bindcode $mod+Shift+58 exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
bindsym $mod+slash exec --no-startup-id $mute-sink
|
||||||
#bindcode $mod+60 exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
|
bindsym $mod+period exec --no-startup-id $raise-volume
|
||||||
#bindcode $mod+59 exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status
|
bindsym $mod+comma exec --no-startup-id $lower-volume
|
||||||
|
|
||||||
bindsym $mod+slash exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
|
||||||
bindsym $mod+period exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
|
|
||||||
bindsym $mod+comma exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status
|
|
||||||
|
|
||||||
# Brightness key bindings
|
# Brightness key bindings
|
||||||
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
||||||
@@ -248,6 +249,7 @@ bindsym $mod+r mode "resize"
|
|||||||
#floating
|
#floating
|
||||||
for_window [class="Signal"] floating enable
|
for_window [class="Signal"] floating enable
|
||||||
for_window [class="Fluffychat"] floating enable
|
for_window [class="Fluffychat"] floating enable
|
||||||
|
for_window [class="Proton VPN"] floating enable
|
||||||
for_window [class="Dino"] floating enable
|
for_window [class="Dino"] floating enable
|
||||||
for_window [class="ownCloud"] floating enable
|
for_window [class="ownCloud"] floating enable
|
||||||
for_window [class="firefox"] move container to workspace 1
|
for_window [class="firefox"] move container to workspace 1
|
||||||
|
@@ -33,6 +33,7 @@ Plug 'kevinhwang91/nvim-bqf'
|
|||||||
Plug 'morhetz/gruvbox'
|
Plug 'morhetz/gruvbox'
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'ynkdir/vim-diff'
|
Plug 'ynkdir/vim-diff'
|
||||||
|
Plug '4ree/vim-ime'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
"Color scheme
|
"Color scheme
|
||||||
@@ -107,72 +108,6 @@ filetype plugin on
|
|||||||
set splitright
|
set splitright
|
||||||
set splitbelow
|
set splitbelow
|
||||||
|
|
||||||
|
|
||||||
let g:input_lang = system('fcitx5-remote')
|
|
||||||
function! FcitxOff()
|
|
||||||
let l:input_status = system('fcitx5-remote')
|
|
||||||
let g:input_lang = l:input_status
|
|
||||||
if l:input_status == 2 "second input method
|
|
||||||
silent! execute '!fcitx5-remote -c'
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! FcitxOn()
|
|
||||||
let l:input_status = system('fcitx5-remote')
|
|
||||||
if l:input_status == 1
|
|
||||||
if g:input_lang == 2
|
|
||||||
silent! execute '!fcitx5-remote -o'
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
|
|
||||||
augroup fcitxHandler
|
|
||||||
autocmd CmdLineEnter [/?] silent call FcitxOn()
|
|
||||||
autocmd CmdLineLeave [/?] silent call FcitxOff()
|
|
||||||
autocmd CmdLineEnter \? silent call FcitxOn()
|
|
||||||
autocmd CmdLineLeave \? silent call FcitxOff()
|
|
||||||
autocmd InsertEnter * silent call FcitxOn()
|
|
||||||
autocmd InsertLeave * silent call FcitxOff()
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
"function! IBusOff()
|
|
||||||
"" Lưu engine hiện tại
|
|
||||||
"let g:ibus_prev_engine = system('ibus engine')
|
|
||||||
"" Chuyển sang engine tiếng Anh
|
|
||||||
"" Nếu bạn thấy cái cờ ở đây
|
|
||||||
"" khả năng là font của bạn đang renderemoji lung tung...
|
|
||||||
"" xkb : us :: eng (không có dấu cách)
|
|
||||||
"silent! execute '!ibus engine xkb🇺🇸:eng'
|
|
||||||
"endfunction
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"function! IBusOn()
|
|
||||||
"let l:current_engine = system('ibus engine')
|
|
||||||
"" nếu engine được set trong normal mode thì
|
|
||||||
"" lúc vào insert mode duùn luôn engine đó
|
|
||||||
"if l:current_engine !~? 'xkb🇺🇸:eng'
|
|
||||||
"let g:ibus_prev_engine = l:current_engine
|
|
||||||
"endif
|
|
||||||
"" Khôi phục lại engine
|
|
||||||
"silent! execute '!ibus engine ' . g:ibus_prev_engine
|
|
||||||
"endfunction
|
|
||||||
|
|
||||||
"augroup IBusHandler
|
|
||||||
"" Khôi phục ibus engine khi tìm kiếm
|
|
||||||
"autocmd CmdLineEnter [/?] silent call IBusOn()
|
|
||||||
"autocmd CmdLineLeave [/?] silent call IBusOff()
|
|
||||||
"autocmd CmdLineEnter \? silent call IBusOn()
|
|
||||||
"autocmd CmdLineLeave \? silent call IBusOff()
|
|
||||||
"" Khôi phục ibus engine khi vào insert mode
|
|
||||||
"autocmd InsertEnter * silent call IBusOn()
|
|
||||||
"" Tắt ibus engine khi vào normal mode
|
|
||||||
"autocmd InsertLeave * silent call IBusOff()
|
|
||||||
"augroup END
|
|
||||||
|
|
||||||
"silent call IBusOff()
|
|
||||||
|
|
||||||
let g:vimtex_view_method= 'zathura'
|
let g:vimtex_view_method= 'zathura'
|
||||||
|
|
||||||
"Language tool
|
"Language tool
|
||||||
|
25
sway/config
25
sway/config
@@ -24,7 +24,7 @@ set $menu rofi -show drun
|
|||||||
### Output configuration
|
### Output configuration
|
||||||
#
|
#
|
||||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||||
set $bg /data/sync/images/wallpapers/0002.png
|
set $bg /data/sync/images/wallpapers/0002.jpg
|
||||||
set $screenlock 'swaylock -i $bg'
|
set $screenlock 'swaylock -i $bg'
|
||||||
set $images $(xdg-user-dir PICTURES)/$(date +'%s_grim.png')
|
set $images $(xdg-user-dir PICTURES)/$(date +'%s_grim.png')
|
||||||
#
|
#
|
||||||
@@ -87,14 +87,19 @@ exec --no-startup-id xset m 1/1 0
|
|||||||
exec --no-startup-id /usr/lib/pam_kwallet_init
|
exec --no-startup-id /usr/lib/pam_kwallet_init
|
||||||
|
|
||||||
|
|
||||||
# Use pactl to adjust volume in PulseAudio.
|
set $lower-volume wpctl set-volume @DEFAULT_SINK@ 0.01-
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
|
set $raise-volume wpctl set-volume @DEFAULT_SINK@ 0.01+ --limit 1
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status
|
set $mute-sink wpctl set-mute @DEFAULT_SINK@ toggle
|
||||||
bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
set $mute-source wpctl set-mute @DEFAULT_SOURCE@ toggle
|
||||||
bindsym XF86AudioMicMute exec --no-startup-id wpctl set-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
|
||||||
bindsym $mod+slash exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
|
||||||
bindsym $mod+period exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
|
bindsym XF86AudioRaiseVolume exec --no-startup-id $raise-volume
|
||||||
bindsym $mod+comma exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status
|
bindsym XF86AudioLowerVolume exec --no-startup-id $lower-volume
|
||||||
|
bindsym XF86AudioMute exec --no-startup-id $mute-sink
|
||||||
|
bindsym XF86AudioMicMute exec --no-startup-id $mute-source
|
||||||
|
bindsym $mod+slash exec --no-startup-id wpctl $mute-sink
|
||||||
|
bindsym $mod+period exec --no-startup-id $raise-volume
|
||||||
|
bindsym $mod+comma exec --no-startup-id $lower-volume
|
||||||
|
|
||||||
|
|
||||||
# Brightness key bindings
|
# Brightness key bindings
|
||||||
@@ -139,7 +144,7 @@ bindsym $mod+Shift+c reload
|
|||||||
|
|
||||||
# Exit sway (logs you out of your Wayland session)
|
# Exit sway (logs you out of your Wayland session)
|
||||||
#bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
|
#bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
|
||||||
bindsym $mod+Shift+p exec systemctl poweroff
|
bindsym $mod+Shift+p exec loginctl poweroff
|
||||||
bindsym $mod+Shift+l exec swaymsg exit
|
bindsym $mod+Shift+l exec swaymsg exit
|
||||||
#
|
#
|
||||||
# Moving around:
|
# Moving around:
|
||||||
|
Reference in New Issue
Block a user