Airblader / i3

A fork of the i3 window manager with gaps and some other features. :warning: i3-gaps has been merged into i3.
BSD 3-Clause "New" or "Revised" License
5.88k stars 321 forks source link

"exec-always" not working #350

Closed viniciusalmada closed 4 years ago

viniciusalmada commented 4 years ago

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

Reload i3 with super+shift+R and "exec-always" not working.

Expected Behavior

Execute the "exec-always" instructions

Reproduction Instructions

Set up an "exec-always" instructions like: exec-always feh --bg-scale ~/Picture/some_image.png

Environment

Output of i3 --moreversion 2>&-:

Binary i3 version:  4.18.1 (2020-04-23) © 2009 Michael Stapelberg and contributors
(Getting version from running i3, press ctrl-c to abort…)
Running i3 version: 4.18.1 (2020-04-23) (pid 677)
Loaded i3 config: /home/vinicius-devel/.config//i3/config (Last modified: Sun 03 May 2020 02:41:44 AM -03, 3038 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3-with-/i3
i3 version 4.18.1 (2020-04-23) © 2009 Michael Stapelberg and contributors
# i3 config file (v4)

# set modifier
set $super Mod4
set $alt Mod1

# set font
font pango: JetBrains Mono 10

# Use Mouse+$super to drag floating windows to their wanted position
floating_modifier $super

# Gaps
gaps inner 25
smart_gaps on
#gaps outer 15

#autostart
exec --no-startup-id picom --experimental-backends -b

# start a terminal
bindsym $super+Return exec i3-sensible-terminal

# start dmenu (a program launcher)
bindsym $super+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'JetBrains Mono:size=8'"
bindsym $super+d exec rofi -show drun

# common apps keybinds
bindsym Print exec flameshot gui
bindsym $super+l exec i3lock -i ~/.dotfiles/lock-wallpaper

#change volume
# using pamixer
bindsym XF86AudioRaiseVolume exec pamixer -i 5
bindsym XF86AudioLowerVolume exec pamixer -d 5
bindsym XF86AudioMute exec pamixer -t

# music control
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPrev exec mpc prev
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioStop exec mpc stop

# kill focused window
bindsym $super+Shift+q kill
bindsym $alt+F4 kill

# change focus
bindsym $super+Left focus left
bindsym $super+Down focus down
bindsym $super+Up focus up
bindsym $super+Right focus right

# move focused window
bindsym $super+Shift+Left move left
bindsym $super+Shift+Down move down
bindsym $super+Shift+Up move up
bindsym $super+Shift+Right move right

# split in horizontal orientation
bindsym $super+h split h

# split in vertical orientation
bindsym $super+v split v

# enter fullscreen mode for the focused container
bindsym $super+f fullscreen toggle

# change container layout split
bindsym $super+s layout toggle split

# toggle tiling / floating
bindsym $super+space floating toggle

# change focus between tiling / floating windows
bindsym $super+Shift+space focus mode_toggle

# names for workspaces
# icons from 
set $ws1 "| 1 ARCH  |"
set $ws2 "| 2 WEB  |"
set $ws3 "| 3 DEV  |"
set $ws4 "| 4 TERM  |"
set $ws5 "| 5 MEDIA  |"
set $ws6 "| 6 MISC  |"

# programs
exec-always feh --bg-scale ~/Picture/arch-light.png 

# switch to workspace
bindsym $super+Control+Right workspace next
bindsym $super+Control+Left workspace prev
bindsym $super+1 workspace $ws1
bindsym $super+2 workspace $ws2
bindsym $super+3 workspace $ws3
bindsym $super+4 workspace $ws4
bindsym $super+5 workspace $ws5
bindsym $super+6 workspace $ws6

# move focused container to workspace
bindsym $super+Shift+1 move container to workspace $ws1
bindsym $super+Shift+2 move container to workspace $ws2
bindsym $super+Shift+3 move container to workspace $ws3
bindsym $super+Shift+4 move container to workspace $ws4
bindsym $super+Shift+5 move container to workspace $ws5
bindsym $super+Shift+6 move container to workspace $ws6

# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $super+Shift+r restart

# exit i3
bindsym $super+Shift+e exec "i3-nagbar -t warning -m 'Really, exit?' -b 'Yes' 'i3-msg exit'"

# resize window (you can also use the mouse for that)
mode "resize" {
        bindsym Left resize shrink width 2 px or 2 ppt
        bindsym Down resize grow height 2 px or 2 ppt
        bindsym Up resize shrink height 2 px or 2 ppt
        bindsym Right resize grow width 2 px or 2 ppt
        bindsym Shift+Left resize shrink width 6 px or 6 ppt
        bindsym Shift+Down resize grow height 6 px or 6 ppt
        bindsym Shift+Up resize shrink height 6 px or 6 ppt
        bindsym Shift+Right resize grow width 6 px or 6 ppt
        bindsym Return mode "default"
        bindsym Escape mode "default"
}
bindsym $super+r mode "resize"

# panel
bar {
        colors {
            background #2f343f
            statusline #2f343f
            separator #4b5262

            # colour of border, background, and text
            focused_workspace       #2f343f #bf616a #d8dee8
            active_workspace        #2f343f #2f343f #d8dee8
            inactive_workspace      #2f343f #2f343f #d8dee8
            urgent_workspacei       #2f343f #ebcb8b #2f343f
        }
        status_command i3status

}

# window rules, you can find the window class using xprop
for_window [class=".*"] border pixel 0
for_window [class=Lxappearance] floating enable
for_window [class=Sxiv] floating enable

# colour of border, background, text, indicator, and child_border
client.focused              #bf616a #2f343f #d8dee8 #bf616a #d8dee8
client.focused_inactive     #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.unfocused            #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.urgent               #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.placeholder          #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.background           #2f343f
Logfile URL: https://logs.i3wm.org/logs/5714248793587712.bz2
- Linux Distribution & Version: `Arch Linux (5.6.8-arch1-1)`
- Are you using a compositor (e.g., xcompmgr or compton): `picom-ibhagwan-git 1379_Next.98.g68c8f1b_2020.04.26-1`
Airblader commented 4 years ago

Since this issue is not related specifically to i3-gaps, can you please open it upstream at i3/i3? Thank you!