aboutsummaryrefslogtreecommitdiff
path: root/i3
diff options
context:
space:
mode:
Diffstat (limited to 'i3')
-rw-r--r--i3/.config/i3/config16
-rwxr-xr-xi3/scripts/i3/launch.sh11
2 files changed, 21 insertions, 6 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
index f2287bc..bea1e04 100644
--- a/i3/.config/i3/config
+++ b/i3/.config/i3/config
@@ -52,9 +52,9 @@ hide_edge_borders smart
#for_window [class="^.*"] border pixel 0
# i3 gaps
-smart_gaps on
-gaps inner 10
-gaps outer 0
+#smart_gaps on
+#gaps inner 10
+#gaps outer 0
#hide_edge_borders smart
set $mod Mod4
@@ -76,9 +76,9 @@ font pango:DejaVu Sans Mono 5
floating_modifier $mod
# start a terminal
-#bindsym $mod+Return exec urxvtcd
+bindsym $mod+Return exec urxvtcd
#bindsym $mod+Return exec /usr/local/bin/tabbed -c -r 2 st -w ''
-bindsym $mod+Return exec /usr/local/bin/tabbed -c urxvtcd -embed
+#bindsym $mod+Return exec /usr/local/bin/tabbed -c urxvtcd -embed
# kill focused window
bindsym $mod+q kill
@@ -218,6 +218,7 @@ bindsym $modAltkey+Escape workspace back_and_forth
bindsym shift+XF86HomePage exec pcmanfm
assign [class="Firefox"] $Web
+assign [class="Chromium"] $Web
assign [class="Thunderbird"] $Mail
assign [class="Gmpc"] $Musique
@@ -225,8 +226,11 @@ for_window [class="crimson"] floating enable
#exec_always --no-startup-id find ~/wallpaper/wallpaper/wallpapers -type f \( -name '*.jpg' -o -name '*.png' \) -print0 | shuf -n1 -z | xargs -0 feh --bg-scale
-exec_always --no-startup-id feh --bg-scale ~/wallpaper/current.jpg
+#exec_always --no-startup-id feh --bg-scale ~/wallpaper/current.jpg
+#exec_always --no-startup-id hsetroot -fill ~/wallpaper/current.jpg -add "#00770077" -add "#00000000" -addd "#00000000" 15 -gradient 0
+exec_always --no-startup-id /home/sebastien/scripts/i3/wallpaper_root.py
exec_always compton -cCz --inactive-dim 0.4 --mark-ovredir-focused
exec_always polybar i3
+exec_always xrdb .Xdefaults
# for_window [class="URxvt"] layout tabbed
diff --git a/i3/scripts/i3/launch.sh b/i3/scripts/i3/launch.sh
new file mode 100755
index 0000000..ddfbee6
--- /dev/null
+++ b/i3/scripts/i3/launch.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+workspace=$1
+shift
+pgrep -U $(whoami) -af "$*" | grep -qv $(basename "$0")
+ret=$?
+if [ $ret = 1 ]; then
+ i3-msg "exec $*; workspace ${workspace}"
+else
+ i3-msg "workspace ${workspace}"
+fi
+killall -USR1 i3status