You are not logged in.

#476 2016-03-14 10:18:33

jv2112
Member
Registered: 2011-07-23
Posts: 154

Re: i3 desktop screenshots and config sharing

raeste

Please share your confiig . Love your Ba r  !!  smile


Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / -  My Pastebin

Offline

#477 2016-04-23 12:09:01

stupidus
Member
Registered: 2012-02-27
Posts: 73

Re: i3 desktop screenshots and config sharing

I made a python script to show all my i3 workspaces sorted according to the screen they're on. And then I piped it into lemonbar. I think I just need to rework the colors a bit.

lemonbar.png

Offline

#478 2016-05-15 11:06:10

raeste
Member
Registered: 2011-10-01
Posts: 16

Re: i3 desktop screenshots and config sharing

jv2112 wrote:

raeste

Please share your confiig . Love your Ba r  !!  smile

Here is my i3 config. Since one of the last updates i have a problem with the icons in the bar some of them are not longer displayed correctly. I don't know why..

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
font pango:Source Code Pro 10
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.

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

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

# kill focused window
bindsym $mod+Shift+q kill

# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop

# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+odiaeresis focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+odiaeresis move right

# alternatively, you can use the cursor 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

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

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

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

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

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

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

# focus the child container
#bindsym $mod+d focus child

set $ws1 "1:"
set $ws2 "2:"
set $ws3 "3:"
set $ws4 "4:"
set $ws5 "5:"
set $ws6 "6:"
set $ws7 "7:"
set $ws8 "8:"
set $ws9 "9:"
set $ws10 "10:"

# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10

# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"

# resize window (you can also use the mouse for that)
mode "resize" {
        # These bindings trigger as soon as you enter the resize mode

        # Pressing left will shrink the window’s width.
        # Pressing right will grow the window’s width.
        # Pressing up will shrink the window’s height.
        # Pressing down will grow the window’s height.
        bindsym j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym odiaeresis resize grow width 10 px or 10 ppt

        # same bindings, but for the arrow keys
        bindsym Left resize shrink width 10 px or 10 ppt
        bindsym Down resize grow height 10 px or 10 ppt
        bindsym Up resize shrink height 10 px or 10 ppt
        bindsym Right resize grow width 10 px or 10 ppt

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

set $bg-color               #2f343f
set $inactive-bg-color      #2f343f
set $text-color             #f3f4f5
set $inactive-text-color    #676E7D
set $urgent-bg-color        #E53935

#window colors
#                       border              background          text
client.focused          $bg-color           $bg-color           $text-color             #00ff00
client.unfocused        $inactive-bg-color  $inactive-bg-color  $inactive-text-color    #00ff00
client.focused_inactive $inactive-bg-color  $inactive-bg-color  $inactive-text-color    #00ff00
client.urgent           $urgent-bg-color    $urgent-bg-color    $text-color             #00ff00

hide_edge_borders both

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
    status_command i3blocks -c ~/.config/i3/i3blocks.conf
    position top
    colors {
        background $bg-color
        separator #757575
        #
        focused_workspace   $bg-color           $bg-color           $text-color
        inactive_workspace  $inactive-bg-color  $inactive-bg-color  $inactive-text-color
        urgent_workspace    $urgent-bg-color    $urgent-bg-color    $text-color
    }
}

exec_always --no-startup-id feh --bg-scale ~/Bilder/.wallpaper/new.jpg
bindsym $mod+Shift+P move scratchpad
bindsym $mod+p scratchpad show
exec --no-startup-id i3-msg 'exec thunderbird; exec chromium; exec urxvt'
assign [class="Firefox"] $ws1
assign [class="chromium"] $ws1
assign [class="Thunderbird"] $ws8
assign [class="URxvt"] $ws2
assign [class="QtCreator"] $ws3
assign [class="NetBeans IDE 8.1"] $ws3
assign [class="telegram-desktop"] $ws9
assign [class="sun-awt-X11-XFramePeer"] $ws3
assign [class="jetbrains-studio"] $ws3
assign [class="Steam"] $ws4
assign [class="Spotify"] $ws9
assign [class="TeXstudio"] $ws5
assign [class="Eclipse"] $ws3
bindsym Print exec scrot '%Y-%m-%d-%T-screenshot.png' -e 'mv $f /tmp/'
set $Locker i3lock -i ~/Bilder/.wallpaper/lock.png
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
    bindsym l exec --no-startup-id $Locker, mode "default"
    bindsym e exec --no-startup-id i3-msg exit, mode "default"
    bindsym r exec --no-startup-id systemctl reboot, mode "default"
    bindsym s exec --no-startup-id systemctl suspend, mode "default"
    bindsym h exec --no-startup-id systemctl hibernate, mode "default"
    bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"

    # back
    bindsym Return mode "default"
    bindsym Escape mode "default"
}
bindsym $mod+Insert mode "$mode_system"
bindsym $mod+m exec --no-startup-id /home/kev/.screenlayout/laptop.sh
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1  +5% && pactl set-sink-mute 1 0 && killall -SIGUSR1 i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1  -5% && pactl set-sink-mute 1 0 && killall -SIGUSR1 i3status
bindsym XF86AudioMute exec amixer -q set Master toggle
bindsym XF86MonBrightnessUp exec xbacklight -inc 5
bindsym XF86MonBrightnessDown exec xbacklight -dec 5
bindsym XF86Explorer exec thunar
bindsym XF86Tools exec lxappearance
bindsym XF86Search exec playerctl previous
bindsym XF86LaunchA exec playerctl next
bindsym XF86Display exec arandr
bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 400 -opacity "75" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" -font "Hack 12"
exec --no-startup-id nm-applet
exec --no-startup-id dropbox
exec --no-startup-id compton -f
exec --no-startup-id xss-lock -- $Locker

As Bar i use i3blocks.
Here is the config for i3blocks.

# Global properties
#
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
#command=/usr/lib/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=none


[Weather]
command=~/.bin/IconicWeather.sh "<Country/CityCode"
interval=1800
color=#e97ac8

# Disk usage
#
# The directory defaults to $HOME if the instance is not specified.
# The script may be called with a optional argument to set the alert
# (defaults to 10 for 10%).
[disk]
label=:
command=/usr/lib/i3blocks/disk 
instance=/
interval=30
color=#1793D1

[disk]
label=:
command=/usr/lib/i3blocks/disk $HOME
interval=30
color=#859900

[ssid]
label=SSID:
command=echo "$(iw dev wlp3s0 link | grep SSID | cut -d " " -f 2-)"
color=#d33682
interval=5

[wireless]
command=/usr/lib/i3blocks/iface
instance=wlp3s0
color=#00FF00
interval=10

[strength]
command=echo "$(iw dev wlp3s0 link | grep signal | cut -d " " -f 2-)"
interval=10
color=#cb4b16

[VPN]
command=~/.bin/nm-vpn.sh
interval=10
color=#00ff00

[temp]
label=
command=echo "$(sensors coretemp-isa-0000 | awk '/Physical/ {print $4}')"
interval=2
color=#b58900

[fanspeed]
label=speed:
command=~/.bin/fanspeed
interval=5
color=#6c71c4

[load]
label= 
command=/usr/lib/i3blocks/load_average
interval=10
color=#6c71c4

# CPU usage
#
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.

#[load_average]
#label=Load
#interval=10

# Battery indicator
#
# The battery instance defaults to 0.
[battery]
label=BAT0:
command=/usr/lib/i3blocks/battery
instance=0
interval=1

[battery]
label=BAT1:
command=/usr/lib/i3blocks/battery
instance=1
interval=1

[time]
label=
command=date '+%H:%M:%S'
interval=1
color=#50C878

# Date Time
#
[date]
label=
command=date '+%a %d %b %y'
interval=200
color=#50C878

[volume]
label=Vol:
command=/usr/lib/i3blocks/volume
instance=Master
#instance=PCM
interval=once
signal=10
color=#d70a53

Offline

#479 2016-05-26 23:37:07

blubbblubb
Member
Registered: 2015-04-01
Posts: 3

Re: i3 desktop screenshots and config sharing

raeste wrote:

...
As Bar i use i3blocks.
Here is the config for i3blocks.

...
[VPN]
command=~/.bin/nm-vpn.sh
interval=10
color=#00ff00
...

Mind sharing your vpn script? Im not really happy with my solution.

62unCJdt.png

Wq47nhot.png

Last edited by blubbblubb (2016-05-27 16:00:03)

Offline

#480 2016-06-10 22:31:15

mrshadowtux
Member
From: Düsseldorf, Germany
Registered: 2016-06-10
Posts: 2
Website

Re: i3 desktop screenshots and config sharing

So, my first post in this forum. smile

Here's my current i3 environment.

GTK Theme: arc
Icon Theme: arc, font-awesome
GUI fonts: Roboto and Noto Sans
Terminal font: Monospace
i3status: i3pystatus

Empty:
5572e4225614314e8df08987255b404a.png

Busy:
9f34ccbea84ac71b54a859d569cb6b9f.png

GTK:
5e99ed05b6461627a6541b1f15fa4e0a.png

i3 config (full of custom bindsyms):

# vim:filetype=i3

set $mod Mod4
font pango:Roboto, FontAwesome 10

floating_modifier $mod
bindsym $mod+Shift+q kill

bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

bindsym $mod+f fullscreen toggle

bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

bindsym $mod+Shift+space floating toggle

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

bindsym $mod+a focus parent
#bindsym $mod+d focus child

bindsym $mod+v split vertical
bindsym $mod+h split horizontal

# 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


mode "resize"
{
	bindsym j resize shrink width 10 px or 10 ppt
	bindsym k resize grow height 10 px or 10 ppt
	bindsym l resize shrink height 10 px or 10 ppt
	bindsym semicolon resize grow width 10 px or 10 ppt

	bindsym Left resize shrink width 10 px or 10 ppt
	bindsym Down resize grow height 10 px or 10 ppt
	bindsym Up resize shrink height 10 px or 10 ppt
	bindsym Right resize grow width 10 px or 10 ppt

	bindsym Return mode "default"
	bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"


bar
{
	status_command python ~/.config/i3/i3pystatus_config.py
	workspace_buttons yes
	colors {
		background #003242
		statusline #ffffff
	}
}


# Shortcuts
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'i3 wirklich beenden?' -b 'Ja' 'i3-msg exit'"

bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
bindsym $mod+d exec i3-dmenu-desktop
bindsym XF86MonBrightnessDown exec --no-startup-id sudo bright_down
bindsym XF86MonBrightnessUp exec --no-startup-id sudo bright_up
bindsym XF86AudioRaiseVolume exec pamixer --increase 5
bindsym XF86AudioLowerVolume exec pamixer --decrease 5
bindsym XF86AudioMute exec pamixer -t
bindsym XF86LaunchA exec --no-startup-id /usr/local/bin/touchpad_toggle.sh &
bindsym --release Print exec --no-startup-id import -window root ~/Bilder/Screens/screen_$(date +%Y-%m-%d_%H-%M-%S).png
bindsym $mod+l exec --no-startup-id xscreensaver-command --lock &
bindsym $mod+shift+l exec --no-startup-id leafpad &
bindsym $mod+x [urgent=latest] focus
bindsym $mod+b exec --no-startup-id vivaldi-stable &
bindsym $mod+n exec --no-startup-id caja &
bindsym $mod+z exec --no-startup-id google-chrome-stable --app=http://zattoo.com &
bindsym $mod+j exec --no-startup-id feh --bg-fill "$(find /home/afeld/Bilder/Wallpaper/ | shuf -n1)" &
bindsym $mod+F2 exec --no-startup-id xfce4-appfinder &

# Autostart
#exec --no-startup-id /usr/local/bin/touchpad_toggle.sh &
exec --no-startup-id sh ~/.fehbg &
exec --no-startup-id xscreensaver -no-splash &
exec --no-startup-id dunst &
exec --no-startup-id shutter --min_at_startup &
exec --no-startup-id autokey-gtk &
exec --no-startup-id parcellite &
exec --no-startup-id pamac-tray &
exec --no-startup-id /usr/local/bin/screenlayout.sh &

i3pystatus config:

from i3pystatus import Status
status = Status(standalone=True)


status.register("clock",
	format=" %a %-d %b %X KW%V",
	on_leftclick= ["/usr/local/bin/orage_toggle"],
)


status.register("network",
	interface="enp0s31f6",
	format_up=" {v4cidr}",
	format_down=" enp0s31f6 down",
	color_up="#FFFFFF",
	color_down="#A3A3A3",
)


status.register("network",
	interface="wlp4s0",
	format_up=" {essid} {quality:3.0f}% ({v4cidr})",
	format_down=" WLAN aus",
	color_up="#FFFFFF",
	color_down="#A3A3A3",
)


status.register("pulseaudio",
	format=" {volume}",
	format_muted=" {volume}",
)


status.register("shell",
	command="sudo /usr/local/bin/bright_get"
)


status.register("battery",
	format="{status} {percentage:.0f}",
	full_color="#FFFFFF",
	color="#FFFFFF",
	charging_color="#FFFFFF",
	alert=True,
	alert_percentage=7,
	status={
		"DIS": "",
		"CHR": "",
		"FULL": "",
	},
)


# location_codes unter: https://weather.codes/germany/
status.register("weather",
	location_code="GMXX0446",
	format="S: {current_temp}",
	colorize=False,
	units="metric",
	on_leftclick= ["google-chrome-stable --app=http://www.weather.com/de-DE/wetter/heute/l/GMXX0446"],
)


status.register("weather",
	location_code="GMXX0028",
	format="D: {current_temp}",
	colorize=False,
	units="metric",
	on_leftclick= ["google-chrome-stable --app=http://www.yr.no/place/Germany/North_Rhine-Westphalia/D%C3%BCsseldorf/"],
)


status.run()

-- read the rules and only post thumbnails https://bbs.archlinux.org/viewtopic.php?id=61754  [jwr] --

All of the big screenshots were thumbnails. Or do you really desire to do a thumbnail of a 589x453 window screenshot or even a i3bar with almost no height? That's kind of rediculous.. Please leave the pictures now as they are.

Last edited by mrshadowtux (2016-06-11 23:23:03)

Offline

#481 2016-06-13 22:39:09

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 644
Website

Re: i3 desktop screenshots and config sharing

@stupidus holy cow that's a crafted setup!
Almost makes me like colors wink


Seeded week #28: Arch 25 gig (stock 12, Talking 1, Anywhere 11, Apricity 1)
Desktop @3.30GHz 8 gig RAM, Arch linux-ck
laptop1 Atom 2 gig RAM, Arch linux stock i686 (5+H battery smile) & 2: ARM Tegra K1 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Online

#482 2016-06-15 19:31:02

tfbio
Member
Registered: 2016-01-28
Posts: 4

Re: i3 desktop screenshots and config sharing

stupidus wrote:

I made a python script to show all my i3 workspaces sorted according to the screen they're on. And then I piped it into lemonbar. I think I just need to rework the colors a bit.

lemonbar.png

Hey, I really like the idea of having all monitors workspaces everywhere, do you mind sharing your python script?

Offline

#483 2016-06-16 16:02:25

stupidus
Member
Registered: 2012-02-27
Posts: 73

Re: i3 desktop screenshots and config sharing

I uploaded the script here. It is using the lemonbar syntax, so you need to pipe it into lemonbar or change it to whatever formatting syntax you like to use.
I have a workspace for music, that I bound to the key left of "1", so I manually moved that workspace in the beginning of the list. Unless, you are using a similar keybinding you could probably remove that part of the script.
The script also includes an indicator for the mode (e.g. resize).

http://pastebin.com/kQNbh70P

If you want, I can also upload the lemonbar script, but I should probably create a github account for that.

Offline

#484 2016-08-01 12:16:20

ioanm
Member
From: 127.0.0.1
Registered: 2014-05-03
Posts: 34
Website

Re: i3 desktop screenshots and config sharing

My i3 config

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod1

for_window [class="XCalc" instance="xcalc"] floating enable

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:monospace 8

# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8

# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.

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

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

# kill focused window
bindsym $mod+Shift+q kill

# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop

# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right

# alternatively, you can use the cursor 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

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

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

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

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

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

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

# focus the child container
#bindsym $mod+d focus child

# 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

# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec --no-startup-id "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# turn off computer
bindsym $mod+Shift+s exec --no-startup-id systemctl poweroff

# resize window (you can also use the mouse for that)
mode "resize" {
        # These bindings trigger as soon as you enter the resize mode

        # Pressing left will shrink the window’s width.
        # Pressing right will grow the window’s width.
        # Pressing up will shrink the window’s height.
        # Pressing down will grow the window’s height.
        bindsym j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym semicolon resize grow width 10 px or 10 ppt

        # same bindings, but for the arrow keys
        bindsym Left resize shrink width 10 px or 10 ppt
        bindsym Down resize grow height 10 px or 10 ppt
        bindsym Up resize shrink height 10 px or 10 ppt
        bindsym Right resize grow width 10 px or 10 ppt

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
        status_command i3status
}

Features:
* Shutdown shortcut (Alt+Shift+S)
* XCalc always floats
* Alt as modifier

Enjoy!


Arch Linux + i3wm (amd64)

Offline

Board footer

Powered by FluxBB