Hello guys, how to change default terminal??
I want to change terminal to kitty
and updated shortcut command in ~/.config/sxhkd/sxhkdrc
but not appear.
have you reload sxhkdrc
after change?
Yes, i do that too but not changed
Are you sure that you’re not using a sxhkdrc located somewhere else?
Nope
I think you meant to reply with yes? Well if the path in your autostart.sh pointing to sxhkdrc is correct and you did reload it after editing all is left is that you did not edit the file correctly.
Post the part of the file you have modified.
Here is my config
#
# wm independent hotkeys
#
# terminal emulator
super + Return
xfce4-terminal
# kitty
# program launcher
super + d
rofi -modi drun -show drun -line-padding 4 \
-columns 2 -padding 50 -hide-scrollbar -terminal xfce4-terminal \
-show-icons -drun-icon-theme "Qogir-dark" -font "Droid Sans Regular 10"
# show open window
super + ctrl + d
rofi -modi drun -show window -line-padding 4 \
-columns 2 -padding 50 -hide-scrollbar -terminal xfce4-terminal \
-show-icons -drun-icon-theme "Qogir-dark" -font "Droid Sans Regular 10"
# show ssh sesssions
super + shift + d
rofi -modi drun -show ssh -line-padding 4 \
-columns 2 -padding 50 -hide-scrollbar -terminal xfce4-terminal \
-show-icons -drun-icon-theme "Qogir-dark" -font "Droid Sans Regular 10"
# power-menu
super + shift + e
~/.config/rofi/powermenu.sh
# make sxhkd reload its configuration files:
super + Escape
pkill -USR1 -x sxhkd
#
# bspwm hotkeys
#
# quit/restart bspwm
super + alt + {q,r}
bspc {quit,wm -r}
# close and kill
super + {_,shift + }q
bspc node -{c,k}
# alternate between the tiled and monocle layout
super + m
bspc desktop -l next
# send the newest marked node to the newest preselected node
super + y
bspc node newest.marked.local -n newest.!automatic.local
# swap the current node and the biggest window
super + g
bspc node -s biggest.window
#
# state/flags
#
# set the window state
super + {t,shift + t,s,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
# set the node flags
super + ctrl + {m,x,y,z}
bspc node -g {marked,locked,sticky,private}
#
# focus/swap
#
# focus the node in the given direction
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# focus the node for the given path jump
super + {p,b,comma,period}
bspc node -f @{parent,brother,first,second}
# focus the next/previous window in the current desktop
super + {_,shift + }c
bspc node -f {next,prev}.local.!hidden.window
# focus the next/previous desktop in the current monitor
super + bracket{left,right}
bspc desktop -f {prev,next}.local
# focus the last node/desktop
super + {grave,Tab}
bspc {node,desktop} -f last
# focus the older or newer node in the focus history
super + {o,i}
bspc wm -h off; \
bspc node {older,newer} -f; \
bspc wm -h on
# focus or send to the given desktop
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'
#
# preselect
#
# preselect the direction
super + ctrl + {h,j,k,l}
bspc node -p {west,south,north,east}
# preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# cancel the preselection for the focused node
super + ctrl + space
bspc node -p cancel
# cancel the preselection for the focused desktop
super + ctrl + shift + space
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
#
# move/resize
#
# expand a window by moving one of its side outward
super + alt + {h,j,k,l}
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
# contract a window by moving one of its side inward
super + alt + shift + {h,j,k,l}
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
# move a floating window
super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}
#
# Special hotkeys
#
# Multimedia keys
# XF86AudioRaiseVolume
# amixer -q set Master 5%+ unmute
# Still multimedia
#XF86Audio{Raise,Lower}Volume
# amixer -q set Master 5%- unmute
# pulsemixer --change-volume {+,-}10
XF86Audio{Raise,Lower}Volume
pulsemixer --change-volume {+,-}10
XF86AudioPlay
playerctl play
XF86AudioPause
playerctl pause
XF86AudioNext
playerctl next
XF86AudioPrev
playerctl previous
# still
XF86AudioMute
amixer -D pulse sset Master toggle-mute
# amixer -q set Master toggle
# Simple amixer command seems to have problems unmuting device
# Brightness up
XF86MonBrightnessUp
brightnessctl -c backlight set +5%
# And brightness down
XF86MonBrightnessDown
brightnessctl -c backlight set 5%-
# Screenshot
Print
scrot ~/$HOME/Pictures/Screenshot-$(date +%F_%T).png
# gnome-screenshot
super + Print
~/.config/bspwm/scripts/screenshot.sh
# Shortcuts
super + w
firefox
super + n
thunar
super + F1
~/.config/bspwm/scripts/keybindings_rofi.sh
# terminal emulator
super + Return
xfce4-terminal
# kitty
to
# terminal emulator
super + Return
kitty
to reload sxhkdrc
super + Escape
pkill -USR1 -x sxhkd
I run with bspwm myself
and it works fine here
my keybindings are a little different
I’ve tried this but it still doesn’t work
Show us your sxhkdrc config and the output of
pacman -Q | grep kitty
Here the result
kitty 0.26.3-1
kitty-shell-integration 0.26.3-1
kitty-terminfo 0.26.3-1
And your sxkhdrc
I’m going for my morning run, it’s 7 am here…
take it easy brother
here is my config sxkhdrc
#
# wm independent hotkeys
#
# terminal emulator
super + Return
xfce4-terminal
# kitty
# gnome-terminal
# program launcher
super + d
rofi -modi drun -show drun -line-padding 4 \
-columns 2 -padding 50 -hide-scrollbar -terminal xfce4-terminal \
-show-icons -drun-icon-theme "Qogir-dark" -font "Droid Sans Regular 10"
# show open window
super + ctrl + d
rofi -modi drun -show window -line-padding 4 \
-columns 2 -padding 50 -hide-scrollbar -terminal xfce4-terminal \
-show-icons -drun-icon-theme "Qogir-dark" -font "Droid Sans Regular 10"
# show ssh sesssions
super + shift + d
rofi -modi drun -show ssh -line-padding 4 \
-columns 2 -padding 50 -hide-scrollbar -terminal xfce4-terminal \
-show-icons -drun-icon-theme "Qogir-dark" -font "Droid Sans Regular 10"
# power-menu
super + shift + e
~/.config/rofi/powermenu.sh
# make sxhkd reload its configuration files:
super + Escape
pkill -USR1 -x sxhkd
#
# bspwm hotkeys
#
# quit/restart bspwm
super + alt + {q,r}
bspc {quit,wm -r}
# close and kill
super + {_,shift + }q
bspc node -{c,k}
# alternate between the tiled and monocle layout
super + m
bspc desktop -l next
# send the newest marked node to the newest preselected node
super + y
bspc node newest.marked.local -n newest.!automatic.local
# swap the current node and the biggest window
super + g
bspc node -s biggest.window
#
# state/flags
#
# set the window state
super + {t,shift + t,s,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
# set the node flags
super + ctrl + {m,x,y,z}
bspc node -g {marked,locked,sticky,private}
#
# focus/swap
#
# focus the node in the given direction
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# focus the node for the given path jump
super + {p,b,comma,period}
bspc node -f @{parent,brother,first,second}
# focus the next/previous window in the current desktop
super + {_,shift + }c
bspc node -f {next,prev}.local.!hidden.window
# focus the next/previous desktop in the current monitor
super + bracket{left,right}
bspc desktop -f {prev,next}.local
# focus the last node/desktop
super + {grave,Tab}
bspc {node,desktop} -f last
# focus the older or newer node in the focus history
super + {o,i}
bspc wm -h off; \
bspc node {older,newer} -f; \
bspc wm -h on
# focus or send to the given desktop
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'
#
# preselect
#
# preselect the direction
super + ctrl + {h,j,k,l}
bspc node -p {west,south,north,east}
# preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# cancel the preselection for the focused node
super + ctrl + space
bspc node -p cancel
# cancel the preselection for the focused desktop
super + ctrl + shift + space
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
#
# move/resize
#
# expand a window by moving one of its side outward
super + alt + {h,j,k,l}
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
# contract a window by moving one of its side inward
super + alt + shift + {h,j,k,l}
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
# move a floating window
super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}
#
# Special hotkeys
#
# Multimedia keys
# XF86AudioRaiseVolume
# amixer -q set Master 5%+ unmute
# Still multimedia
XF86Audio{Raise,Lower}Volume
pulsemixer --change-volume {+,-}10
XF86AudioPlay
playerctl play
XF86AudioPause
playerctl pause
XF86AudioNext
playerctl next
XF86AudioPrev
playerctl previous
# still
XF86AudioMute
amixer -D pulse sset Master toggle-mute
# amixer -q set Master toggle
# Simple amixer command seems to have problems unmuting device
# Brightness up
XF86MonBrightnessUp
brightnessctl -c backlight set +5%
# And brightness down
XF86MonBrightnessDown
brightnessctl -c backlight set 5%-
# Screenshot
Print
# scrot ~/$HOME/Pictures/Screenshot-$(date +%F_%T).png
gnome-screenshot
super + Print
~/.config/bspwm/scripts/screenshot.sh
# Shortcuts
super + w
google-chrome-stable
# firefox
super + n
thunar
super + F1
~/.config/bspwm/scripts/keybindings_rofi.sh
Change this:
# terminal emulator
super + Return
xfce4-terminal
# kitty
# gnome-terminal
to:
# terminal emulator
super + Return
kitty
Like @anon79429890 said. Save the file and reload your sxkhd with super + escape.
Really it is that easy.
I have done this too but when I press Super + Return it does not show kitty terminal
I wonder why
What happens when you press super + return after the changes? And you did reload sxkhd right?
yes, it has been reloaded, but it still doesn’t show my terminal
So nothing happens? Or do you get another terminal??
yes it doesn’t show anything, tried another terminal still the same