From 108b882957a50aaace887ccac91ccb6136820411 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 9 Aug 2021 17:59:10 +0200 Subject: Update i3 configuration --- i3/.config/i3/config | 38 ++++++++++++++++++++------------------ i3/scripts/i3/gaps.sh | 4 ++++ 2 files changed, 24 insertions(+), 18 deletions(-) create mode 100755 i3/scripts/i3/gaps.sh (limited to 'i3') diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 58df58b..e1b66c7 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -36,7 +36,9 @@ set_from_resource $color7 i3wm.COLOR7 #e6e6e6 set_from_resource $color15 i3wm.COLOR15 #eeeeee # The workspaces are just the number, without label. -# Icon will be associated with polybar +# This allow to set only an icon, without any other texte (if the workspace has a +# name, polybar will always display it, it is not possible to replace the label +# with the icon) set $workspace_1 1: set $workspace_2 2: set $workspace_3 3: @@ -49,7 +51,7 @@ set $workspace_9 9: set $workspace_10 10: set $workspace_11 11: set $workspace_12 12: -set $Teams 98: +set $Messages 98: set $Inkscape 99: set $Mail 100: set $Web 101: @@ -170,18 +172,18 @@ bindsym $mod+a focus parent # switch to workspace -bindsym $modAltkey+F1 workspace $workspace_1 -bindsym $modAltkey+F2 workspace $workspace_2 -bindsym $modAltkey+F3 workspace $workspace_3 -bindsym $modAltkey+F4 workspace $workspace_4 -bindsym $modAltkey+F5 workspace $workspace_5 -bindsym $modAltkey+F6 workspace $workspace_6 -bindsym $modAltkey+F7 workspace $workspace_7 -bindsym $modAltkey+F8 workspace $workspace_8 -bindsym $modAltkey+F9 workspace $workspace_9 -bindsym $modAltkey+F10 workspace $workspace_10 -bindsym $modAltkey+F11 workspace $workspace_11 -bindsym $modAltkey+F12 workspace $workspace_12 +bindsym $modAltkey+F1 workspace number $workspace_1 +bindsym $modAltkey+F2 workspace number $workspace_2 +bindsym $modAltkey+F3 workspace number $workspace_3 +bindsym $modAltkey+F4 workspace number $workspace_4 +bindsym $modAltkey+F5 workspace number $workspace_5 +bindsym $modAltkey+F6 workspace number $workspace_6 +bindsym $modAltkey+F7 workspace number $workspace_7 +bindsym $modAltkey+F8 workspace number $workspace_8 +bindsym $modAltkey+F9 workspace number $workspace_9 +bindsym $modAltkey+F10 workspace number $workspace_10 +bindsym $modAltkey+F11 workspace number $workspace_11 +bindsym $modAltkey+F12 workspace number $workspace_12 bindsym XF86Mail workspace $Mail bindsym XF86Calculator workspace $Musique @@ -243,10 +245,9 @@ bindsym $modAltkey+Escape workspace back_and_forth bindsym shift+$modAltkey+Escape move container to workspace back_and_forth bindsym shift+XF86HomePage exec pcmanfm-qt -assign [class="Microsoft Teams"] $Teams -assign [class="Inkscape"] $Inkscape - -for_window [class="crimson"] floating enable +assign [class="Microsoft Teams"] $Messages +assign [class="Signal"] $Messages +assign [class="Inkscape"] $Inkscape # Add background, with a gradient on top exec --no-startup-id ~/scripts/i3/wallpaper.sh ~/wallpaper/current.jpg @@ -255,5 +256,6 @@ exec --no-startup-id xrdb .Xdefaults exec --no-startup-id "xrdb .Xdefaults; polybar i3" #exec --no-startup-id "unclutter" exec_always --no-startup-id /home/sebastien/Projets/ocaml/i3_workspaces/i3_workspaces +exec_always --no-startup-id /home/sebastien/scripts/i3/gaps.sh # for_window [class="URxvt"] layout tabbed diff --git a/i3/scripts/i3/gaps.sh b/i3/scripts/i3/gaps.sh new file mode 100755 index 0000000..4e09c01 --- /dev/null +++ b/i3/scripts/i3/gaps.sh @@ -0,0 +1,4 @@ +#!/bin/sh +i3-msg gaps inner all set 5 +i3-msg gaps outer all set 0 + -- cgit v1.2.3