aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i3/.config/i3/config16
-rwxr-xr-xi3/scripts/i3/launch.sh11
-rw-r--r--latex_docutils/texmf/tex/latex/docUtils/DUStyle/DUStyle.sty44
3 files changed, 65 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
diff --git a/latex_docutils/texmf/tex/latex/docUtils/DUStyle/DUStyle.sty b/latex_docutils/texmf/tex/latex/docUtils/DUStyle/DUStyle.sty
new file mode 100644
index 0000000..45092b2
--- /dev/null
+++ b/latex_docutils/texmf/tex/latex/docUtils/DUStyle/DUStyle.sty
@@ -0,0 +1,44 @@
+\NeedsTeXFormat{LaTeX2e}[1994/06/01]
+\ProvidesPackage{DUStyle}[2018/02/25 DUStyle Package]
+
+\RequirePackage{tikz}
+\RequirePackage{mdframed}
+\RequirePackage{xcolor}
+
+\definecolor{lightGray}{RGB}{245, 245, 245}
+
+% arg1 : The circle backround color
+% arg2 : The dot text
+% arg3 : The title command prefix
+% arg4 : The title
+\newcommand{\DUIconizedTitle}[4]{%
+ \begin{#3}
+ \tikz[baseline]{
+ \node[circle,fill=#1,inner sep=3pt,anchor=base] at (0, 0)
+ {\color{lightGray}#2};
+ }
+ {#4}
+ \end{#3}
+}
+
+\newcommand{\colorBox}[2]{%
+ \begin{mdframed}[topline=false,
+ bottomline=false,
+ rightline=false,
+ linecolor=#1,
+ linewidth=3pt,
+ skipabove=0.5cm,
+ backgroundcolor=lightGray]%
+ #2
+ \end{mdframed}
+}
+
+% Create two commands with the same style :
+% - for the admonition colored box
+% - for the titles in styles (sidebar, admonitions...)
+\newcommand\createIconifiedDUStyle[4]{%
+ \expandafter\newcommand\csname DUadmonition#1\endcsname[1]{\colorBox{#2}{##1}}
+ \expandafter\newcommand\csname DUtitle#1\endcsname[1]{\DUIconizedTitle{#2}{#3}{#4}{##1}}
+}
+
+