From 589d333a6163bdb1a1af4a1f91a2d2de78c65ea1 Mon Sep 17 00:00:00 2001 From: TuDatTr Date: Tue, 2 Jan 2018 21:52:58 +0100 Subject: [PATCH] Added Latex-stuff for moderncv, changed color/fonts in i3 and termite --- .config/i3/config | 94 ++++++++----------- .config/termite/config | 10 +- .../snippets/latex-mode/moderncv-cvcomputer | 2 +- .emacs.d/snippets/latex-mode/moderncv-cvitem | 6 ++ .../latex-mode/moderncv-cvitemwithcomment | 6 ++ .emacs.d/snippets/latex-mode/moderncv-cvskill | 6 ++ .emacs.d/snippets/latex-mode/textit | 5 + .emacs.d/snippets/latex-mode/usepackage | 2 +- Latex-Templates/cv.tex | 26 +++++ 9 files changed, 93 insertions(+), 64 deletions(-) create mode 100644 .emacs.d/snippets/latex-mode/moderncv-cvitem create mode 100644 .emacs.d/snippets/latex-mode/moderncv-cvitemwithcomment create mode 100644 .emacs.d/snippets/latex-mode/moderncv-cvskill create mode 100644 .emacs.d/snippets/latex-mode/textit create mode 100644 Latex-Templates/cv.tex diff --git a/.config/i3/config b/.config/i3/config index 0d84764..21dd0df 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -12,7 +12,7 @@ floating_modifier $mod # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -font xft:Noto Sans 10 +font xft:Noto Sans 12 ####################### ### Window Settings ### @@ -21,26 +21,8 @@ font xft:Noto Sans 10 # Configure border style new_window pixel 1 new_float normal - -# Hide borders hide_edge_borders none -# change borders -bindsym $mod+u border none -bindsym $mod+y border pixel 1 -bindsym $mod+n border normal - -# start a terminal -bindsym $mod+Return exec terminal - -# kill focused window -bindsym $mod+Shift+q kill - -# start program launcher -bindsym $mod+d exec --no-startup-id dmenu_run - -# launch categorized menu -bindsym $mod+z exec --no-startup-id morc_menu ################################################################################################ ## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ## @@ -53,6 +35,17 @@ bindsym $mod+Ctrl+m exec terminal -e 'alsamixer' #bindsym $mod+Ctrl+m exec pavucontrol ################################################################################################ +# start a terminal +bindsym $mod+Return exec terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start program launcher +bindsym $mod+d exec --no-startup-id dmenu_run + +# launch categorized menu +bindsym $mod+z exec --no-startup-id morc_menu # Screen brightness controls bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'" @@ -75,30 +68,19 @@ bindsym $mod+Ctrl+x --release exec --no-startup-id xkill focus_follows_mouse no + # change focus bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+semicolon focus right -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - # move focused window bindsym $mod+Shift+j move left bindsym $mod+Shift+k move down bindsym $mod+Shift+l move up bindsym $mod+Shift+semicolon move right -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - # split orientation bindsym $mod+h split h;exec notify-send 'tile horizontally' bindsym $mod+v split v;exec notify-send 'tile vertically' @@ -136,15 +118,13 @@ bindsym $mod+Ctrl+Right workspace next bindsym $mod+Ctrl+Left workspace prev # Workspace names -# to display names or symbols instead of plain workspace numbers you can use -# something like: set $ws1 "" set $ws2 "" -set $ws3 "" -set $ws4 "" +set $ws3 "" +set $ws4 "" set $ws5 "5" set $ws6 "6" -set $ws7 "" +set $ws7 "" set $ws8 "" # switch to workspace @@ -179,13 +159,13 @@ bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8 # Open applications on specific workspaces assign [class="Firefox"] $ws2 -assign [class="Spotify"] $ws4 -assign [class="Thunderbird"] $ws7 +assign [class="Spotify"] $ws7 +assign [class="Thunderbird"] $ws3 assign [class="Keepassx2"] $ws8 assign [class="Veracrypt"] $ws8 # Open specific applications in floating mode -for_window [title="alsamixer"] floating enable border pixel 1 +for_window [title="alsamixer"] flMoating enable border pixel 1 for_window [class="Calamares"] floating enable border normal for_window [class="Clipgrab"] floating enable for_window [title="File Transfer*"] floating enable @@ -296,24 +276,24 @@ exec --no-startup-id ~/.scripts/dotfiles.sh # to: # background $term_background # Same logic applied to everything else. -set_from_resource $term_background background -set_from_resource $term_foreground foreground -set_from_resource $term_color0 color0 -set_from_resource $term_color1 color1 -set_from_resource $term_color2 color2 -set_from_resource $term_color3 color3 -set_from_resource $term_color4 color4 -set_from_resource $term_color5 color5 -set_from_resource $term_color6 color6 -set_from_resource $term_color7 color7 -set_from_resource $term_color8 color8 -set_from_resource $term_color9 color9 -set_from_resource $term_color10 color10 -set_from_resource $term_color11 color11 -set_from_resource $term_color12 color12 -set_from_resource $term_color13 color13 -set_from_resource $term_color14 color14 -set_from_resource $term_color15 color15 +# set_from_resource $term_background background +# set_from_resource $term_foreground foreground +# set_from_resource $term_color0 color0 +# set_from_resource $term_color1 color1 +# set_from_resource $term_color2 color2 +# set_from_resource $term_color3 color3 +# set_from_resource $term_color4 color4 +# set_from_resource $term_color5 color5 +# set_from_resource $term_color6 color6 +# set_from_resource $term_color7 color7 +# set_from_resource $term_color8 color8 +# set_from_resource $term_color9 color9 +# set_from_resource $term_color10 color10 +# set_from_resource $term_color11 color11 +# set_from_resource $term_color12 color12 +# set_from_resource $term_color13 color13 +# set_from_resource $term_color14 color14 +# set_from_resource $term_color15 color15 # Color palette used for i3 # Variables are set based on the documentation: diff --git a/.config/termite/config b/.config/termite/config index eac2e21..b92a350 100644 --- a/.config/termite/config +++ b/.config/termite/config @@ -1,9 +1,9 @@ -[options] +x[options] #allow_bold = true #audible_bell = false #clickable_url = true #dynamic_title = true -font = Monospace 9 +font = Monospace 12 #fullscreen = true #geometry = 640x480 #icon_name = terminal @@ -55,7 +55,7 @@ background = rgba(63, 63, 63, 0.4) # Colors from color0 to color254 can be set color0 = #303462 -color1 = #705050 +color1 = #60b48a color2 = #60b48a color3 = #dfaf8f color4 = #5294E2 @@ -63,8 +63,8 @@ color5 = #dc8cc3 color6 = #8cd0d3 color7 = #dcdccc color8 = #709080 -color9 = #dca3a3 -color10 = #c3bf9f +color9 = #60b48a +color10 = #60b48a color11 = #f0dfaf color12 = #94bff3 color13 = #ec93d3 diff --git a/.emacs.d/snippets/latex-mode/moderncv-cvcomputer b/.emacs.d/snippets/latex-mode/moderncv-cvcomputer index d73a6f0..1d69393 100644 --- a/.emacs.d/snippets/latex-mode/moderncv-cvcomputer +++ b/.emacs.d/snippets/latex-mode/moderncv-cvcomputer @@ -2,5 +2,5 @@ # name: moderncv-cvcomputer # key: cvcomp # -- -\cvcomputer{${1:category}}{${2:programs}}{${3:category}}{${3:programs}} +\cvcomputer{${1:category}}{${2:programs}}{${3:category}}{${4:programs}} $0 diff --git a/.emacs.d/snippets/latex-mode/moderncv-cvitem b/.emacs.d/snippets/latex-mode/moderncv-cvitem new file mode 100644 index 0000000..268973a --- /dev/null +++ b/.emacs.d/snippets/latex-mode/moderncv-cvitem @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: moderncv-cvitem +# key: cvi +# -- +\cvitem{${1:item}}{} +$0 diff --git a/.emacs.d/snippets/latex-mode/moderncv-cvitemwithcomment b/.emacs.d/snippets/latex-mode/moderncv-cvitemwithcomment new file mode 100644 index 0000000..1a38902 --- /dev/null +++ b/.emacs.d/snippets/latex-mode/moderncv-cvitemwithcomment @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: moderncv-cvitemwithcomment +# key: cviwc +# -- +\cvitemwithcomment{${1:item}}{${2:item}}{${3:item}} +$0 diff --git a/.emacs.d/snippets/latex-mode/moderncv-cvskill b/.emacs.d/snippets/latex-mode/moderncv-cvskill new file mode 100644 index 0000000..c5c8161 --- /dev/null +++ b/.emacs.d/snippets/latex-mode/moderncv-cvskill @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: moderncv-cvskill +# key: cvskill +# -- +\cvitemwithcomment{${1:skill}}{\skill{${2:level}}}{${3:comment}} +$0 diff --git a/.emacs.d/snippets/latex-mode/textit b/.emacs.d/snippets/latex-mode/textit new file mode 100644 index 0000000..8c1ca27 --- /dev/null +++ b/.emacs.d/snippets/latex-mode/textit @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: textit +# key: i +# -- +\textit{$1}$0 \ No newline at end of file diff --git a/.emacs.d/snippets/latex-mode/usepackage b/.emacs.d/snippets/latex-mode/usepackage index 2afd38b..223ba70 100644 --- a/.emacs.d/snippets/latex-mode/usepackage +++ b/.emacs.d/snippets/latex-mode/usepackage @@ -1,5 +1,5 @@ # -*- mode: snippet -*- # name: usepackage -# key: pkg +# key: use # -- \usepackage{$0} \ No newline at end of file diff --git a/Latex-Templates/cv.tex b/Latex-Templates/cv.tex new file mode 100644 index 0000000..75c31a3 --- /dev/null +++ b/Latex-Templates/cv.tex @@ -0,0 +1,26 @@ +\documentclass[12pt,a4paper,sans]{moderncv} +\usepackage[utf8]{inputenc} +\usepackage[a4paper, top=1.5cm, margin=2.5cm]{geometry} +\usepackage{tikz} +\usepackage{xcolor} + +\definecolor{white}{RGB}{255,255,255} +\definecolor{blue}{HTML}{3970AB} +\definecolor{gray}{HTML}{B9B9B9} +\definecolor{mint}{HTML}{50B48A} + +\newcommand\skill[1]{ + \begin{tikzpicture} + \foreach [count=\i] \x/\y in {#1} + { + \draw[fill=gray, gray] (0,\i) rectangle (\y,\i+0.4); + \draw[fill=white,mint](0,\i) rectangle (\x,\i+0.4); + } + \end{tikzpicture} +} +\newcommand{\givenskill}{} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: "../CV" +%%% End: