Skip to content

Commit

Permalink
i3wm: fix options for kitty for avoiding chaos when being used in i3-…
Browse files Browse the repository at this point in the history
…scratchpad
  • Loading branch information
c02y committed Sep 24, 2024
1 parent d693de4 commit 942018f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions i3wm/.config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,14 @@ bindsym $mod+p $Exec $open qpdfview
# float rule in i3/config is much better than i3-scratchpad -f, since if not set float rule in i3/config, -f will show the resizment
bindsym $mod+Return $Exec $open -f alacritty -t Alacritty
bindsym $mod+Shift+Return $Exec alacritty
bindsym $mod+f $Exec $open -f kitty -T=YaziFM yazi
bindsym $mod+F1 $Exec $open -f kitty -T=Btop btop
bindsym $mod+F2 $Exec $open -f kitty -T=Nvtop nvtop
bindsym $mod+f $Exec $open -f kitty -T YaziFM yazi
bindsym $mod+F1 $Exec $open -f kitty -T Btop btop
bindsym $mod+F2 $Exec $open -f kitty -T Nvtop nvtop
bindsym $mod+$Alt+m move scratchpad
# floating toggle on a window to remove it from the scratchpad
bindsym $mod+m scratchpad show
# NOTE: 30 and 98% are to make the top margin of Dropdown_Kitty and bottom margin of i3status-bar work well
bindsym F12 $Exec "~/.config/i3/i3-scratchpad -a -d100%x98% -p0,30 -f -F env GLFW_IM_MODULE=ibus kitty --class=Dropdown --title=Dropdown_Kitty"
bindsym F12 $Exec "~/.config/i3/i3-scratchpad -a -d100%x98% -p0,30 -f -F env GLFW_IM_MODULE=ibus kitty --class Dropdown --title Dropdown_Kitty"
# if $mod+q fails, use $mod+d
bindsym $mod+d $Exec dmenu_run -l 6 -i -p 'RUN' -fn 'Noto Sans Mono 12' -nb '$bgc_df' -nf '$txt_ia' -sf '$txt_hi' -sb '$bgc_df'

Expand Down
4 changes: 2 additions & 2 deletions i3wm/.config/i3/i3status-rust.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ alert_bg = "#353535"

[[block.click]]
button = "left"
cmd = "~/.config/i3/i3-scratchpad -d75%x75% -f kitty -T=Btop btop"
cmd = "~/.config/i3/i3-scratchpad -d75%x75% -f kitty -T Btop btop"

[[block]]
block = "memory"
Expand All @@ -116,7 +116,7 @@ alert = 2.0
alert_unit = "GiB"
[[block.click]]
button = "left"
cmd = "~/.config/i3/i3-scratchpad -d75%x75% -f kitty -T=YaziFM yazi"
cmd = "~/.config/i3/i3-scratchpad -d75%x75% -f kitty -T YaziFM yazi"
# [[block.click]]
# button = "right"
# TODO: not work
Expand Down

0 comments on commit 942018f

Please sign in to comment.