From 65b81fc9d8b59f4b44e9d773b4e057156bb81fa5 Mon Sep 17 00:00:00 2001 From: Yigit Colakoglu Date: Sat, 3 Apr 2021 17:35:30 +0300 Subject: [PATCH] Skeleton Files Added --- config/vim/vimrc | 1 - local/share/vim/skeleton/skeleton.c | 14 ++++++++++++ local/share/vim/skeleton/skeleton.cpp | 14 ++++++++++++ local/share/vim/skeleton/skeleton.h | 13 +++++++++++ local/share/vim/skeleton/skeleton.hpp | 13 +++++++++++ local/share/vim/skeleton/skeleton.html | 10 +++++++++ local/share/vim/skeleton/skeleton.java | 13 +++++++++++ local/share/vim/skeleton/skeleton.py | 15 +++++++++++++ local/share/vim/skeleton/skeleton.sh | 2 ++ local/share/vim/skeleton/skeleton.tex | 30 ++++++++++++++++++++++++++ suckless/dwm/config.h | 2 ++ suckless/dwm/keybind.h | 3 ++- suckless/dwm/rules.h | 1 + 13 files changed, 129 insertions(+), 2 deletions(-) create mode 100644 local/share/vim/skeleton/skeleton.c create mode 100644 local/share/vim/skeleton/skeleton.cpp create mode 100644 local/share/vim/skeleton/skeleton.h create mode 100644 local/share/vim/skeleton/skeleton.hpp create mode 100644 local/share/vim/skeleton/skeleton.html create mode 100644 local/share/vim/skeleton/skeleton.java create mode 100644 local/share/vim/skeleton/skeleton.py create mode 100644 local/share/vim/skeleton/skeleton.sh create mode 100644 local/share/vim/skeleton/skeleton.tex diff --git a/config/vim/vimrc b/config/vim/vimrc index e55c7ab9..0dfae9ee 100644 --- a/config/vim/vimrc +++ b/config/vim/vimrc @@ -192,7 +192,6 @@ packadd termdebug " Use skeleton files if has("autocmd") augroup templates - autocmd BufNewFile main.* silent! execute '0r ~/.local/share/vim/templates/skeleton-main.'.expand(":e") autocmd BufNewFile *.* silent! execute '0r ~/.local/share/vim/templates/skeleton.'.expand(":e") autocmd BufNewFile * %substitute#\[:VIM_EVAL:\]\(.\{-\}\)\[:END_EVAL:\]#\=eval(submatch(1))#ge augroup END diff --git a/local/share/vim/skeleton/skeleton.c b/local/share/vim/skeleton/skeleton.c new file mode 100644 index 00000000..773bdef5 --- /dev/null +++ b/local/share/vim/skeleton/skeleton.c @@ -0,0 +1,14 @@ +/* +* [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +* [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +* +* Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +* Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +*/ + +#include + +int main(int argc, char *argv[]) { + +} + diff --git a/local/share/vim/skeleton/skeleton.cpp b/local/share/vim/skeleton/skeleton.cpp new file mode 100644 index 00000000..1b7db2f9 --- /dev/null +++ b/local/share/vim/skeleton/skeleton.cpp @@ -0,0 +1,14 @@ +/* +* [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +* [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +* +* Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +* Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +*/ + +#include + +int main(int argc, char *argv[]) { + +} + diff --git a/local/share/vim/skeleton/skeleton.h b/local/share/vim/skeleton/skeleton.h new file mode 100644 index 00000000..07caee4a --- /dev/null +++ b/local/share/vim/skeleton/skeleton.h @@ -0,0 +1,13 @@ +home/home/ +home/home/ [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +home/home/ [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +home/home/ +home/home/ Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%mhome/%dhome/%y')[:END_EVAL:]. +home/home/ Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +home/home/ + +#ifndef [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] +#define [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] + + +#endif home/* [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] *home/ diff --git a/local/share/vim/skeleton/skeleton.hpp b/local/share/vim/skeleton/skeleton.hpp new file mode 100644 index 00000000..ed6c7f12 --- /dev/null +++ b/local/share/vim/skeleton/skeleton.hpp @@ -0,0 +1,13 @@ +// +// [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +// [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +// +// Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +// Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +// + +#ifndef [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] +#define [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] + + +#endif /* [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] */ diff --git a/local/share/vim/skeleton/skeleton.html b/local/share/vim/skeleton/skeleton.html new file mode 100644 index 00000000..512346bc --- /dev/null +++ b/local/share/vim/skeleton/skeleton.html @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/local/share/vim/skeleton/skeleton.java b/local/share/vim/skeleton/skeleton.java new file mode 100644 index 00000000..fb916ca4 --- /dev/null +++ b/local/share/vim/skeleton/skeleton.java @@ -0,0 +1,13 @@ +home/home/ +home/home/ [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +home/home/ [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +home/home/ +home/home/ Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%mhome/%dhome/%y')[:END_EVAL:]. +home/home/ Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +home/home/ + +class Untitled { + public static void main(String[] args) { + + } +} diff --git a/local/share/vim/skeleton/skeleton.py b/local/share/vim/skeleton/skeleton.py new file mode 100644 index 00000000..43941914 --- /dev/null +++ b/local/share/vim/skeleton/skeleton.py @@ -0,0 +1,15 @@ +#!/usr/local/bin/python3 +# +# [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +# [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +# +# Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +# Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +# + +def main(): + print("hello world") + + +if __name__ == "__main__": + main() diff --git a/local/share/vim/skeleton/skeleton.sh b/local/share/vim/skeleton/skeleton.sh new file mode 100644 index 00000000..05a7907c --- /dev/null +++ b/local/share/vim/skeleton/skeleton.sh @@ -0,0 +1,2 @@ +#!/bin/bash + diff --git a/local/share/vim/skeleton/skeleton.tex b/local/share/vim/skeleton/skeleton.tex new file mode 100644 index 00000000..89f08da6 --- /dev/null +++ b/local/share/vim/skeleton/skeleton.tex @@ -0,0 +1,30 @@ +% +% [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +% [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +% +% Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +% Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +% + +\RequirePackage[l2tabu, orthodox]{nag} +\documentclass[12pt]{article} + +\usepackage{amssymb} +\usepackage{amsmath} +\usepackage{verbatim} +\usepackage{graphicx} +\usepackage{microtype} +\usepackage{upquote} +\usepackage{units} +\usepackage{booktabs} +\usepackage{siunitx} +\usepackage{xcolor} + +\title{} +\date{\today} +\author{Yigit Colakoglu} + +\begin{document} +\maketitle + +\end{document} diff --git a/suckless/dwm/config.h b/suckless/dwm/config.h index f88c3d2f..959dbfd7 100644 --- a/suckless/dwm/config.h +++ b/suckless/dwm/config.h @@ -57,6 +57,7 @@ const char *spcmd2[] = {"feh", "--title", "scratchpad", "--class", "spfeh", "-g" const char *spcmd3[] = {"st", "-c", "scratchpad", "-n", "spmutt", "-g", "180x51", "-e", "neomutt", NULL }; static const char *spcmd4[] = { "/usr/local/bin/st", "-g", "150x35", "-c", "spfile", "-n", "spfile", "-e", "/home/yigit/.local/bin/lf-ueberzug", NULL }; static const char *spcmd5[] = { "/usr/local/bin/st", "-g", "150x35", "-c", "spmusic", "-n", "spmusic", "-e", "ncmpcpp", NULL }; +static const char *spcmd6[] = { "/usr/local/bin/st", "-g", "150x35", "-c", "spcal", "-n", "spcal", "-e", "calcurse", NULL }; static Sp scratchpads[] = { {"spterm", spcmd1}, @@ -64,6 +65,7 @@ static Sp scratchpads[] = { {"spmutt", spcmd3}, {"spfile", spcmd4}, {"spmusic", spcmd5}, + {"spcal", spcmd6}, }; static const BarRule barrules[] = { diff --git a/suckless/dwm/keybind.h b/suckless/dwm/keybind.h index c7462d87..adba7777 100644 --- a/suckless/dwm/keybind.h +++ b/suckless/dwm/keybind.h @@ -136,7 +136,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_w, spawn, {.v = wallabag} }, { MODKEY, XK_w, spawn, {.v = wiki} }, { MODKEY, XK_g, spawn, {.v = google} }, - { MODKEY|ShiftMask, XK_c, spawn, {.v = online_class} }, + { MODKEY, XK_t, spawn, {.v = online_class} }, { MODKEY|ShiftMask, XK_m, spawn, {.v = mconnect} }, { MODKEY|ShiftMask, XK_d, spawn, {.v = udevil} }, { MODKEY|ShiftMask, XK_u, spawn, {.v = udevil_umount} }, @@ -146,6 +146,7 @@ static Key keys[] = { { MODKEY, XK_m, togglescratch, {.ui = 2 } }, { MODKEY|ShiftMask, XK_f, togglescratch, {.ui = 3} }, { MODKEY, XK_n, togglescratch, {.ui = 4} }, + { MODKEY|ShiftMask, XK_c, togglescratch, {.ui = 5} }, /* FloatPos Patch Keybinds */ { Mod3Mask, XK_u, floatpos, {.v = "-26x -26y" } }, // ↖ { Mod3Mask, XK_i, floatpos, {.v = " 0x -26y" } }, // ↑ diff --git a/suckless/dwm/rules.h b/suckless/dwm/rules.h index 1154202c..9063dd86 100644 --- a/suckless/dwm/rules.h +++ b/suckless/dwm/rules.h @@ -28,6 +28,7 @@ static const Rule rules[] = { RULE(.instance = "spmutt", .tags = SPTAG(2), .isfloating = 1) RULE(.instance = "spfile", .tags = SPTAG(3), .isfloating = 1) RULE(.instance = "spmusic", .tags = SPTAG(4), .isfloating = 1) + RULE(.instance = "spcal", .tags = SPTAG(5), .isfloating = 1) /* Terminal Window Rules */ RULE(.class = "ranger", 0, .isfloating = 1, .floatpos="50% 50% 800W 560H") RULE(.class = "lf", 0, .isfloating = 1, .floatpos="50% 50% 800W 560H")