Skip to content

Commit

Permalink
feat: change input method to kime
Browse files Browse the repository at this point in the history
  • Loading branch information
xvzc committed Aug 29, 2024
1 parent 3530912 commit 0db0705
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 10 deletions.
18 changes: 18 additions & 0 deletions GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@ echo "$(whoami) ALL=(root) NOPASSWD: sha256:$(shasum -a 256 $(which yabai) | cut

```

# (Arch Linux) Graphic Driver
## AMD
```bash
yay -S xf86-video-amdgpu
```

> /etc/X11/20-amdgpu.conf
```
Section "OutputClass"
Identifier "AMD"
MatchDriver "amdgpu"
Driver "amdgpu"
Option "TearFree" "true"
Option "VariableRefresh" "true"
Option "AsyncFlipSecondaries" "true" #multimonitor setup, but at least one is not FreeSync capable
EndSection
```

# (Arch Linux) Set locale
```bash
sudo locale-gen en_US.UTF-8
Expand Down
63 changes: 63 additions & 0 deletions dot_config/alacritty/alacritty.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[window]
opacity = 0.9
dimensions.columns = 125
dimensions.lines = 35
padding.x = 3
padding.y = 3
decorations = 'buttonless'

[font]
normal.family = 'JetBrainsMono Nerd Font'
normal.style = 'Regular'

bold.family = 'JetBrainsMono Nerd Font'

italic.family = 'JetBrainsMono Nerd Font'

bold_italic.family = 'JetBrainsMono Nerd Font'

size = 11.5

offset.x = 0
offset.y = 0

[colors]
primary.background = '#2c2c2c'
primary.foreground = '#c5c8c6'

cursor.text = '#2c2c2c'
cursor.cursor = '#dbdbc1'

vi_mode_cursor.text = '#2c2c2c'
vi_mode_cursor.cursor = '#dbdbc1'

selection.text = '#2c2c2c'
selection.cursor = '#dbdbc1'

# Normal colors
normal.black = '#2c2c2c'
normal.red = '#ba5458'
normal.green = '#b9ca4a'
normal.yellow = '#ebba7a'
normal.blue = '#89a4f0'
normal.magenta = '#b294bb'
normal.cyan = '#70c0b1'
normal.white = '#c5c8c6'

# Bright colors
bright.black = '#8c8787'
bright.red = '#cc6666'
bright.green = '#b5bd68'
bright.yellow = '#e6b137'
bright.blue = '#89a4f0'
bright.magenta = '#c397d8'
bright.cyan = '#8abeb7'
bright.white = '#dbdbc1'


[[keyboard.bindings]]
key = 'Space'
mods = 'Control'
chars = '\x00'


3 changes: 3 additions & 0 deletions dot_config/bspwm/executable_bspwmrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ bspc config border_width 1
bspc config click_to_focus true
# bspc config active_border_color "#d9fccf"
bspc config focused_border_color "#d9fccf"

bspc config pointer_modifier mod1

bspc rule -a '*:pavucontrol' state=floating follow=on focus=on
bspc rule -a '*:flameshot' state=floating follow=on focus=on
bspc rule -a '*:chat-gpt' state=fullscreen follow=on focus=on
bspc rule -a '*:kakaotalk.exe' split_ratio=0.8 split_dir=east

(pgrep -x picom > /dev/null && pkill -9 -f picom);
(picom --config ~/.config/bspwm/picom.conf &)
Expand Down
6 changes: 4 additions & 2 deletions dot_config/bspwm/picom.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# fix tearing issue
backend = "glx";
# vsync = true;

glx-copy-from-front = true;
vsync = true;

refresh-rate = 0;
glx-copy-from-front = false;
glx-swap-method = 2;
xrender-sync = true;
xrender-sync-fence = true;
Expand Down
4 changes: 1 addition & 3 deletions dot_config/bspwm/sxhkdrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ alt + space

# make sxhkd reload its configuration files:
alt + ctrl + super + r
bspc wm -r
xset r rate 200 50
bspc wm -r && xset r rate 200 50

Pause
betterlockscreen -l -q
Expand Down Expand Up @@ -47,7 +46,6 @@ alt + super + f
alt + super + y
bspc node -g sticky


#
# focus/swap
#
Expand Down
35 changes: 35 additions & 0 deletions dot_config/kime/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
daemon:
modules:
- Xim
- Wayland
- Indicator
indicator:
icon_color: Black
log:
global_level: DEBUG
engine:
translation_layer: null
default_category: Latin
global_category_state: false
global_hotkeys:
Super-Space:
behavior: !Toggle
- Hangul
- Latin
result: Consume
Esc:
behavior: !Switch Latin
result: Bypass
# M-C-Backslash:
# behavior: Ignore
# M-C-E:
# behavior: Ignore
# Muhenkan:
# behavior: Ignore
# result: Bypass
# AltR:
# behavior: Ignore
# result: Bypass
# Hangul:
# behavior: Ignore
# result: Bypass
9 changes: 4 additions & 5 deletions dot_xinitrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/bin/bash

export GTK_IM_MODULE=nimf
export QT4_IM_MODULE=nimf
export QT_IM_MODULE=nimf
export XMODIFIERS="@im=nimf"
nimf
export GTK_IM_MODULE=kime
export QT_IM_MODULE=kime
export XMODIFIERS=@im=kime
kime

xset -dpms

Expand Down

0 comments on commit 0db0705

Please sign in to comment.