From 4e3bbbc43654f4c4d4e992d9c09bc270572f6032 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 22 Apr 2019 11:45:44 +0200 Subject: Update conf --- i3/.config/i3/config | 10 ++-- i3/.config/i3/workspaces/0:code-pdf.json | 88 ------------------------------- i3/.config/i3/workspaces/50:code-pdf.json | 88 +++++++++++++++++++++++++++++++ i3/scripts/i3/wallpaper.sh | 10 ++++ 4 files changed, 104 insertions(+), 92 deletions(-) delete mode 100644 i3/.config/i3/workspaces/0:code-pdf.json create mode 100644 i3/.config/i3/workspaces/50:code-pdf.json create mode 100755 i3/scripts/i3/wallpaper.sh (limited to 'i3') 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/0:code-pdf.json deleted file mode 100644 index 19c9c96..0000000 --- a/i3/.config/i3/workspaces/0:code-pdf.json +++ /dev/null @@ -1,88 +0,0 @@ -// vim:ts=4:sw=4:et -{ - // splitv split container with 2 children - "border": "pixel", - "floating": "auto_off", - "layout": "splitv", - "percent": 0.55, - "type": "con", - "nodes": [ - { - // splith split container with 1 children - "border": "pixel", - "floating": "auto_off", - "layout": "splith", - "percent": 0.8, - "type": "con", - "nodes": [ - { - "border": "pixel", - "current_border_width": 2, - "floating": "auto_off", - "geometry": { - "height": 945, - "width": 745, - "x": 10, - "y": 10 - }, - //"name": "notes_arduino.pdf - 1/27 (90 dpi)", - "percent": 1, - "swallows": [ - { - "class": "^MuPDF$", - "instance": "^mupdf$" - // "title": "^notes_arduino\\.pdf\\ \\-\\ 1\\/27\\ \\(90\\ dpi\\)$" - } - ], - "type": "con" - } - ] - }, - { - "border": "pixel", - "current_border_width": 2, - "floating": "auto_off", - "geometry": { - "height": 408, - "width": 720, - "x": 0, - "y": 0 - }, - // "name": "sebastien@trunk: ~/sync/arduino", - "percent": 0.202941176470588, - "swallows": [ - { - "class": "^URxvt$", - "instance": "^urxvt$", - // Prevent vim to be here - "title": "^((?!vim).)*$" - // "title": "^sebastien\\@trunk\\:\\ \\~\\/sync\\/arduino$" - } - ], - "type": "con" - } - ] -} - -{ - "border": "pixel", - "current_border_width": 2, - "floating": "auto_off", - "geometry": { - "height": 408, - "width": 720, - "x": 0, - "y": 0 - }, - "name": "vim", - "percent": 0.5, - "swallows": [ - { - "class": "^URxvt$", - "instance": "^urxvt$", - "title": "^vim$" - } - ], - "type": "con" -} - diff --git a/i3/.config/i3/workspaces/50:code-pdf.json b/i3/.config/i3/workspaces/50:code-pdf.json new file mode 100644 index 0000000..19c9c96 --- /dev/null +++ b/i3/.config/i3/workspaces/50:code-pdf.json @@ -0,0 +1,88 @@ +// vim:ts=4:sw=4:et +{ + // splitv split container with 2 children + "border": "pixel", + "floating": "auto_off", + "layout": "splitv", + "percent": 0.55, + "type": "con", + "nodes": [ + { + // splith split container with 1 children + "border": "pixel", + "floating": "auto_off", + "layout": "splith", + "percent": 0.8, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 945, + "width": 745, + "x": 10, + "y": 10 + }, + //"name": "notes_arduino.pdf - 1/27 (90 dpi)", + "percent": 1, + "swallows": [ + { + "class": "^MuPDF$", + "instance": "^mupdf$" + // "title": "^notes_arduino\\.pdf\\ \\-\\ 1\\/27\\ \\(90\\ dpi\\)$" + } + ], + "type": "con" + } + ] + }, + { + "border": "pixel", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 408, + "width": 720, + "x": 0, + "y": 0 + }, + // "name": "sebastien@trunk: ~/sync/arduino", + "percent": 0.202941176470588, + "swallows": [ + { + "class": "^URxvt$", + "instance": "^urxvt$", + // Prevent vim to be here + "title": "^((?!vim).)*$" + // "title": "^sebastien\\@trunk\\:\\ \\~\\/sync\\/arduino$" + } + ], + "type": "con" + } + ] +} + +{ + "border": "pixel", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 408, + "width": 720, + "x": 0, + "y": 0 + }, + "name": "vim", + "percent": 0.5, + "swallows": [ + { + "class": "^URxvt$", + "instance": "^urxvt$", + "title": "^vim$" + } + ], + "type": "con" +} + 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 -- cgit v1.2.3