My Keybinding Won't Work!

The keybinding $mod+c to launcher wofer (a file manager won’t work). I can launch via terminal with the command “wofer” and if works fine.
$mod+d to launch dolphin too won’t work

Here’s my config

# Autostart
exec systemctl --user import-environment SWAYSOCK WAYLAND_DISPLAY
exec /home/aryan/Apps/pcloud
exec /usr/lib/kdeconnectd
exec kdeconnect-indicator
exec picom --experimental-backends
exec mako
exec /usr/lib/polkit-kde-authentication-agent-1
exec nm-applet --indicator
exec autotiling-rs
exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob --border-color '#ff5e81ac' --background-color '#cc2e3440' --bar-color '#ff5e81ac'
exec ~/.azotebg
exec gammastep
exec lxpolkit
exec swaybg -i /home/aryan/Pictures/wallpapers/firecool.png
exec mako

# exec /usr/share/sway/scripts/inactive-windows-transparency.py
# exec syncthing -no-browser

# Dynamic Wallpaper
# exec oguri -c ~/.config/oguri/config
# exec dwall -s flcl &
input * xkb_layout "gb"
# Windows Rules 
for_window [class="(?i)ark"] floating enable
for_window [class="(?i)mpv"] floating enable
for_window [app_id="imv"] floating enable, border pixel 3
for_window [app_id="pavucontrol"] floating enable, sticky enable, resize set width 550 px height 600px, move position cursor, move down 330
for_window [title=".+[Ss]haring (Indicator|your screen)"] floating enable, move to scratchpad
for_window [title="Copying"] floating enable
for_window [title="Discord Updater"] floating enable
for_window [app_id="dolphin" window_type="utility"] floating enable
for_window [title="File Already Exist"] floating enable
for_window [workspace="4"] layout tabbed
for_window [workspace="5"] layout tabbed

### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
#
set $menu wofi -c ~/.config/wofi/config -I 
bindsym $mod+backspace exec fish -c wofer
bindsym $mod+c exec wofer
bindsym $mod+d exec wofi-emoji
#bindsym $mod+m exec fish -c 'manga_menu'

# Disable titlebar
default_border pixel 3

# Font
# title_align center
font pango:ProductSansMedium 14px 

# Window decoration
# class                 border  backgr. text    indicator child_border
client.focused          #5e81ac #5e81ac #eceff4 #434c5e   #5e81ac
client.focused_inactive #4c566a #4c566a #d8dee9 #3b4252   #434c5e
client.unfocused        #4c566a #4c566a #d8dee9 #3b4252   #434c5e
client.urgent           #7c818c #bf616a #eceff4 #900000   #bf616a
client.placeholder      #000000 #0c0c0c #eceff4 #000000   #0c0c0c

#Asignments
assign [app_id="lutris"] 4
assign [app_id="gamehub"] 4
assign [app_id="steam"] 4
assign [app_id="virt-manager"] 6
assign [app_id="virtualbox"] 6
assign [app_id="Signal"] 5
assign [title="Signal"] 5
assign [app_id="discord"] 5
assign [title="discord"] 5
assign [title="Wine System Tray"] scratchpad

# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
#gaps inner 10
gaps outer 5

### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output "*" bg ~/wallpapers/1.jpg fill
# swaybg_command -
#
# Example configuration:
#
  output HDMI-A-I {
    pos 0 0
    res 2560x1440
    adaptive_sync off
    scale 1
  }
  # output HDMI-A-1 resolution 2560x1440 position 0,0 scale
#
# You can get the names of your outputs by running: swaymsg -t get_outputs

### Idle configuration
#
# Example configuration:
#
exec swayidle -w\
      timeout 1070 'swaylock -f -C ~/.config/swaylock/config'\
      timeout 770 'swaymsg "output * dpms off"' \
      resume 'swaymsg "output * dpms on"' \
      before-sleep 'swaylock -C ~/.config/swaylock/config'
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.

# Screenlocking
bindsym $mod+f1 exec ~/.config/sway/lockman.sh
bindsym $mod+f12 exec ~/.config/sway/lockman.sh

# Screenshot with grim and swappy
bindsym print exec /home/aryan/.config/sway/screenshot.sh


### Input configuration
#
# Example configuration:
#
   input "1267:12363:ELAN0650:01_04F3:304B_Touchpad" {
       dwt enabled
       tap enabled
       natural_scroll enabled
       middle_emulation enabled
   }
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.

   
#Borders
border_images.focused ~/.config/sway/borders/focused.png
border_images.focused_inactive ~/.config/sway/borders/focused_inactive.png
border_images.unfocused ~/.config/sway/borders/unfocused.png
border_images.urgent ~/.config/sway/borders/urgent.png

gaps inner 28   

### Key bindings
#
# Basics:
#

    # Launch a terminal
    bindsym $mod+return exec $term

    # Kill focused window
    bindsym $mod+X kill

    # Start your launcher
    bindsym $mod+Space exec $menu

	# Launch Dolphin
	# bindsym $mod+d exec dolphin
	
    # Drag floating windows by holding down $mod and left mouse button.
    # Resize them with right mouse button + $mod.
    # Despite the name, also works for non-floating windows.
    # Change normal to inverse to use left mouse button for resizing and right
    # mouse button for dragging.
    floating_modifier $mod normal

    # Reload the configuration file
    bindsym $mod+Shift+c reload

    # Power menu
    bindsym $mod+Shift+e exec wlogout -p layer-shell
#
# Moving around:
#
    # Move your focus around
    bindsym $mod+$left focus left
    bindsym $mod+$down focus down
    bindsym $mod+$up focus up
    bindsym $mod+$right focus right
    # Or use $mod+[up|down|left|right]
    bindsym $mod+Left focus left
    bindsym $mod+Down focus down
    bindsym $mod+Up focus up
    bindsym $mod+Right focus right

    # Move the focused window with the same, but add Shift
    bindsym $mod+Shift+$left move left
    bindsym $mod+Shift+$down move down
    bindsym $mod+Shift+$up move up
    bindsym $mod+Shift+$right move right
    # Ditto, with arrow keys
    bindsym $mod+Shift+Left move left
    bindsym $mod+Shift+Down move down
    bindsym $mod+Shift+Up move up
    bindsym $mod+Shift+Right move right
#
# Workspaces:
#
    # Switch to workspace
    bindsym $mod+1 workspace 1
    bindsym $mod+2 workspace 2
    bindsym $mod+3 workspace 3
    bindsym $mod+4 workspace 4
    bindsym $mod+5 workspace 5
    bindsym $mod+6 workspace 6
    bindsym $mod+7 workspace 7
    bindsym $mod+8 workspace 8
    bindsym $mod+9 workspace 9
    bindsym $mod+0 workspace 10
    # Move focused container to workspace
    bindsym $mod+Shift+1 move container to workspace 1
    bindsym $mod+Shift+2 move container to workspace 2
    bindsym $mod+Shift+3 move container to workspace 3
    bindsym $mod+Shift+4 move container to workspace 4
    bindsym $mod+Shift+5 move container to workspace 5
    bindsym $mod+Shift+6 move container to workspace 6
    bindsym $mod+Shift+7 move container to workspace 7
    bindsym $mod+Shift+8 move container to workspace 8
    bindsym $mod+Shift+9 move container to workspace 9
    bindsym $mod+Shift+0 move container to workspace 10
    # Note: workspaces can have any name you want, not just numbers.
    # We just use 1-10 as the default.
    # Switch to next/previous workspace
    bindsym ctrl+Alt+Right workspace next_on_output
    bindsym ctrl+Alt+$right workspace next_on_output
    bindsym ctrl+Alt+Left workspace prev_on_output
    bindsym ctrl+Alt+$left workspace prev_on_output
#
# Layout stuff:
#
    # You can "split" the current object of your focus with
    # $mod+b or $mod+v, for horizontal and vertical splits
    # respectively.
    bindsym $mod+b splith
    bindsym $mod+v splitv

    # Switch the current container between different layout styles
    bindsym $mod+s layout stacking
    bindsym $mod+Tab layout tabbed
    bindsym $mod+e layout toggle split

    # Make the current focus fullscreen
    bindsym $mod+f fullscreen

    # Toggle the current focus between tiling and floating mode
    bindsym alt+Space floating toggle

    # Swap focus between the tiling area and the floating area
    bindsym shift+space focus mode_toggle

    # Move focus to the parent container
    bindsym $mod+a focus parent

    # Back and Forth

	# bindsym $mod+d workspace back_and_forth
#
# Scratchpad:
#
    # Sway has a "scratchpad", which is a bag of holding for windows.
    # You can send windows there and get them back later.

    # Move the currently focused window to the scratchpad
    bindsym $mod+Shift+minus move scratchpad
	
    # Show the next scratchpad window or hide the focused scratchpad window.
    # If there are multiple scratchpad windows, this command cycles through them.
    bindsym alt+tab scratchpad show
    bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
    bindsym $mod+alt+$left resize shrink width 20px
    bindsym $mod+alt+$up resize grow height 20px
    bindsym $mod+alt+$down resize shrink height 20px
    bindsym $mod+alt+$right resize grow width 20px

    # Ditto, with arrow keys
    bindsym $mod+alt+Left resize shrink width 20px
    bindsym $mod+alt+Up resize grow height 20px
    bindsym $mod+alt+Down resize shrink height 20px
    bindsym $mod+alt+Right resize grow width 20px

    # Return to default mode
    # bindsym Return mode "default"
    # bindsym Escape mode "default"

# mode resize {
    # left will shrink the containers width
    # right will grow the containers width
    # up will shrink the containers height
    # down will grow the containers height
# }

# bindsym $mod+r mode "resize"

#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
   swaybar_command waybar
}

include /etc/sway/config.d/*

# Special keys
# /usr/include/xkbcommon/xkbcommon-keysyms.h
bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume > $SWAYSOCK.wob
bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume > $SWAYSOCK.wob
bindsym XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $SWAYSOCK.wob ) || pamixer --get-volume > $SWAYSOCK.wob
bindsym XF86MonBrightnessUp exec brightnessctl -c backlight set +1%
bindsym XF86MonBrightnessDown exec brightnessctl -c backlight set 1%-
bindsym XF86KbdBrightnessUp exec brightnessctl -c backlight set +1%
bindsym XF86KbdBrightnessDown exec brightnessctl -c backlight set 1%-
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous

exec_always {
   gsettings set org.gnome.desktop.interface gtk-theme 'NordSur-dark'  
   #gsettings set $gnome-schema gtk-theme 'NordSur-dark'
   gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark' 
   }

In your code the only $mod+d I see is below how you want launch Dolphin with it ?

bindsym $mod+d exec wofi-emoji

What is it, where did you get it and does run as a gui or in a terminal?

Found it:

On sway, paste this bindsym $mod+d exec ~/wofi/wofer.sh wofi -c /path/to/config in your config file

Check the paths first.

1 Like