aboutsummaryrefslogtreecommitdiff
path: root/i3
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2019-04-22 11:45:44 +0200
committerSébastien Dailly <sebastien@chimrod.com>2019-04-22 11:45:44 +0200
commit4e3bbbc43654f4c4d4e992d9c09bc270572f6032 (patch)
tree34c35f2046f3406e336a4205bcd3e5bb6aa9a42e /i3
parent4c7aaef74b7c1507ae79f7794eeef80f01dd40e9 (diff)
Update conf
Diffstat (limited to 'i3')
-rw-r--r--i3/.config/i3/config10
-rw-r--r--i3/.config/i3/workspaces/50:code-pdf.json (renamed from i3/.config/i3/workspaces/0:code-pdf.json)0
-rwxr-xr-xi3/scripts/i3/wallpaper.sh10
3 files changed, 16 insertions, 4 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
index e8f6d73..cbed167 100644
--- a/i3/.config/i3/config
+++ b/i3/.config/i3/config
@@ -35,9 +35,10 @@ set_from_resource $color8 i3wm.COLOR8 #0a0a0a
set_from_resource $color7 i3wm.COLOR7 #e6e6e6
set_from_resource $color15 i3wm.COLOR15 #eeeeee
-set $Mail 100:Mail
-set $Web 101:Web
-set $Musique 102:Musique
+set $Inkscape 99:Inkscape
+set $Mail 100:Mail
+set $Web 101:Web
+set $Musique 102:Musique
set_from_resource $black i3wm.COLOR0 #444444
@@ -224,6 +225,7 @@ bindsym $mod+o mode $mode_resize
bindsym $modAltkey+Escape workspace back_and_forth
bindsym shift+XF86HomePage exec pcmanfm
+assign [class="Inkscape"] $Inkscape
assign [class="Firefox"] $Web
assign [class="Chromium"] $Web
assign [class="Thunderbird"] $Mail
@@ -236,7 +238,7 @@ for_window [class="crimson"] floating enable
#exec_always --no-startup-id /home/sebastien/scripts/i3/wallpaper_root.py
# Add background, with a gradient on top
-exec_always --no-startup-id hsetroot -fill ~/wallpaper/current.jpg -add "#ffffffff" -add "#ffffff00" -add "#00000000" -gradient 0
+exec_always --no-startup-id ~/scripts/i3/wallpaper.sh
exec_always --no-startup-id xrdb .Xdefaults
exec_always --no-startup-id compton -i .8 --focus-exclude '_NET_WM_NAME@:s = "rofi"' --blur-background --blur-kern '3,3,0.1,1,1,1,1,1,1,1'
exec --no-startup-id "xrdb .Xdefaults; polybar i3"
diff --git a/i3/.config/i3/workspaces/0:code-pdf.json b/i3/.config/i3/workspaces/50:code-pdf.json
index 19c9c96..19c9c96 100644
--- a/i3/.config/i3/workspaces/0:code-pdf.json
+++ b/i3/.config/i3/workspaces/50:code-pdf.json
diff --git a/i3/scripts/i3/wallpaper.sh b/i3/scripts/i3/wallpaper.sh
new file mode 100755
index 0000000..cb76cef
--- /dev/null
+++ b/i3/scripts/i3/wallpaper.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+#image=$(find ~/wallpaper/wallpaper/wallpapers -type f \( -name '*.jpg' -o -name '*.png' \) -print0 | shuf -n1 -z | xargs -0)
+image=~/wallpaper/current.jpg
+hsetroot \
+ -fill "${image}" \
+ -add "#ffffffff" \
+ -addd "#ffffff00" 5 \
+ -addd "#ffffff00" 5 \
+ -add "#ffffffff" \
+ -gradient 0