aboutsummaryrefslogtreecommitdiff
path: root/i3
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2019-09-01 22:12:27 +0200
committerSébastien Dailly <sebastien@chimrod.com>2019-09-01 22:12:27 +0200
commitaa18d3f888d6fb4d598c22fcf825a78e5540c1e7 (patch)
treeec8f58cf76a7c729e6b0650ae0cbcb87ad8b5a80 /i3
parent65915ec6c0311ef8a0af24bfe82bd10f338afa86 (diff)
Update i3 config
Diffstat (limited to 'i3')
-rw-r--r--i3/.config/i3/config8
-rw-r--r--i3/.config/i3/workspaces/50:pdf_edit.json (renamed from i3/.config/i3/workspaces/50:code-pdf.json)8
-rw-r--r--i3/.config/i3/workspaces/51:code.json (renamed from i3/.config/i3/workspaces/50:code-filer.json)2
-rwxr-xr-xi3/scripts/i3/launch.sh11
-rwxr-xr-xi3/scripts/i3/wallpaper.sh23
5 files changed, 27 insertions, 25 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
index 9611aa0..8b6f4fe 100644
--- a/i3/.config/i3/config
+++ b/i3/.config/i3/config
@@ -181,9 +181,9 @@ bindsym $modAltkey+F10 workspace $workspace_10
bindsym $modAltkey+F11 workspace $workspace_11
bindsym $modAltkey+F12 workspace $workspace_12
-bindsym XF86Mail exec --no-startup-id "~/scripts/i3/launch.sh $Mail thunderbird"
-bindsym XF86Calculator exec --no-startup-id "~/scripts/i3/launch.sh $Musique gmpc"
-bindsym XF86HomePage exec --no-startup-id "~/scripts/i3/launch.sh $Web firefox"
+bindsym XF86Mail workspace $Mail
+bindsym XF86Calculator workspace $Musique
+bindsym XF86HomePage workspace $Web
# move focused container to workspace
bindsym $modAltkey+Shift+F1 move container to workspace $workspace_1
@@ -257,5 +257,7 @@ exec_always --no-startup-id ~/scripts/i3/wallpaper.sh ~/wallpaper/current.jpg
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"
+exec --no-startup-id "/home/sebastien/Projets/ocaml/i3_workspaces/i3_workspaces"
+exec --no-startup-id "unclutter"
# for_window [class="URxvt"] layout tabbed
diff --git a/i3/.config/i3/workspaces/50:code-pdf.json b/i3/.config/i3/workspaces/50:pdf_edit.json
index 19c9c96..11d654f 100644
--- a/i3/.config/i3/workspaces/50:code-pdf.json
+++ b/i3/.config/i3/workspaces/50:pdf_edit.json
@@ -25,13 +25,11 @@
"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\\)$"
+ "class": "^(MuPDF)|(Zathura)$",
+ "instance": "^(mupdf)|(zathura)$"
}
],
"type": "con"
@@ -48,7 +46,6 @@
"x": 0,
"y": 0
},
- // "name": "sebastien@trunk: ~/sync/arduino",
"percent": 0.202941176470588,
"swallows": [
{
@@ -56,7 +53,6 @@
"instance": "^urxvt$",
// Prevent vim to be here
"title": "^((?!vim).)*$"
- // "title": "^sebastien\\@trunk\\:\\ \\~\\/sync\\/arduino$"
}
],
"type": "con"
diff --git a/i3/.config/i3/workspaces/50:code-filer.json b/i3/.config/i3/workspaces/51:code.json
index fcbc5f3..9e42cd5 100644
--- a/i3/.config/i3/workspaces/50:code-filer.json
+++ b/i3/.config/i3/workspaces/51:code.json
@@ -76,7 +76,7 @@
{
"class": "^URxvt$",
"instance": "^urxvt$",
- "title": "^vim$"
+ "title": "^(vim)|(nvim)$"
}
],
"type": "con"
diff --git a/i3/scripts/i3/launch.sh b/i3/scripts/i3/launch.sh
deleted file mode 100755
index ddfbee6..0000000
--- a/i3/scripts/i3/launch.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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
diff --git a/i3/scripts/i3/wallpaper.sh b/i3/scripts/i3/wallpaper.sh
index 5bc0d2b..20ef0c9 100755
--- a/i3/scripts/i3/wallpaper.sh
+++ b/i3/scripts/i3/wallpaper.sh
@@ -1,11 +1,26 @@
#!/bin/sh
#image=$(find ~/wallpaper/wallpaper/wallpapers -type f \( -name '*.jpg' -o -name '*.png' \) -print0 | shuf -n1 -z | xargs -0)
image=$1
+
+#height=$(identify -format '%[fx:h/1.11]' ${image})
+#convert -crop %100x10+0+${height} ${image} out.jpg
+#color=$(.virtualenvs/pywal/bin/colorz -n 1 --no-preview out.jpg | cut -d' ' -f1)
+#rm out.jpg
+#echo $color
+#neg=$(python ~/scripts/i3/negate_color.py "${color}")
+
#.virtualenvs/pywal/bin/wal -n -i "${image}" --saturate .8 -a 90
+#hsetroot \
+# -fill "${image}" \
+# -add "#ffffffff" \
+# -addd "#77777700" 5 \
+# -addd "#ffffff00" 10 \
+# -addd "#ffffff00" 90 \
+# -gradient 0
hsetroot \
-fill "${image}" \
- -add "#ffffffff" \
- -addd "#ffffff00" 5 \
- -addd "#ffffff00" 5 \
- -add "#000000ff" \
+ -add "#ffffff77" \
+ -addd "#ffffff77" 2 \
+ -addd "#ffffff00" 0 \
+ -addd "#ffffff00" 90 \
-gradient 0