The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

Assigning wallpaper to workspaces

asked 2015-01-19 12:16:05 +0000

boy_with_duckfeet gravatar image

Is it possible to assign specific wallaper to workspaces?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-01-19 12:32:16 +0000

lasers gravatar image

You could do something like this.

# alias
set $feh exec --no-startup-id feh --bg-scale

# switch workspace
bindsym $mod+1 workspace 1 ; $feh ~/wp/1.jpg
bindsym $mod+2 workspace 2 ; $feh ~/wp/2.jpg
bindsym $mod+3 workspace 3 ; $feh ~/wp/3.jpg
bindsym $mod+4 workspace 4 ; $feh ~/wp/4.jpg
bindsym $mod+5 workspace 5 ; $feh ~/wp/5.jpg
bindsym $mod+6 workspace 6 ; $feh ~/wp/6.jpg
bindsym $mod+7 workspace 7 ; $feh ~/wp/7.jpg
bindsym $mod+8 workspace 8 ; $feh ~/wp/8.jpg
bindsym $mod+9 workspace 9 ; $feh ~/wp/9.jpg
bindsym $mod+0 workspace 10 ; $feh ~/wp/10.jpg
edit flag offensive delete link more


so changing the wallpaper each time I switch workspace?

boy_with_duckfeet gravatar imageboy_with_duckfeet ( 2015-01-19 13:16:05 +0000 )edit

Nice idea, but it does not work when switching workspaces by other means: `workspace back_and_forth`, `workspace_auto_back_and_forth`, clicking in the i3-bar, `[some_criteria] focus`, etc.

Adaephon gravatar imageAdaephon ( 2015-01-19 14:06:41 +0000 )edit

answered 2015-01-20 08:36:53 +0000

updated 2015-01-20 08:39:18 +0000

For me, just having exec --no-startup-id feh --bg-max <path-to-image> in the config (not bound to any keyboard shortcut, must as a single line in the config) is working.

edit flag offensive delete link more

Question Tools


Asked: 2015-01-19 12:16:05 +0000

Seen: 919 times

Last updated: Jan 20