From bd2823e0eb73cf3beab1d456a2f396de758c6990 Mon Sep 17 00:00:00 2001 From: Yigit Colakoglu Date: Mon, 5 Apr 2021 23:29:55 +0300 Subject: [PATCH] Configuration --- .../suckless@surf@config.h | 251 ++++++++++++++++++ .../suckless@surf@config.h.blob | Bin 0 -> 4161 bytes .gitsecret/keys/random_seed | Bin 0 -> 600 bytes .gitsecret/paths/mapping.cfg | 2 +- arch-setup/chroot.sh | 1 + arch-setup/packages.base.artix | 7 +- arch-setup/packages.rice | 8 + config/.gitignore | 1 + config/X11/xinitrc | 10 +- config/calcurse/caldav/config.secret | Bin 1105 -> 1103 bytes config/isync/mbsyncrc.secret | Bin 934 -> 931 bytes config/msmtp/config.secret | Bin 762 -> 760 bytes config/nextcloud/nextcloud.secret | Bin 870 -> 867 bytes config/spotifyd/spotifyd.conf.secret | Bin 812 -> 810 bytes config/surf/styles/default.css | 15 ++ config/zsh/secret.secret | Bin 657 -> 657 bytes install.sh | 13 +- local/bin/.gitignore | 2 +- local/bin/check-updates | 30 +++ local/bin/firefox-sync | 2 + local/bin/mailsync | 22 +- local/bin/status-bar/arch | 17 +- notes/firefox.md | 2 +- profile | 4 + root/quark | 19 ++ suckless/surf/config.h | 2 +- 26 files changed, 377 insertions(+), 31 deletions(-) create mode 100644 .ccls-cache/@home@yigit@.dotfiles/suckless@surf@config.h create mode 100644 .ccls-cache/@home@yigit@.dotfiles/suckless@surf@config.h.blob create mode 100644 .gitsecret/keys/random_seed create mode 100644 config/surf/styles/default.css create mode 100755 local/bin/check-updates create mode 100755 root/quark diff --git a/.ccls-cache/@home@yigit@.dotfiles/suckless@surf@config.h b/.ccls-cache/@home@yigit@.dotfiles/suckless@surf@config.h new file mode 100644 index 00000000..49283b3f --- /dev/null +++ b/.ccls-cache/@home@yigit@.dotfiles/suckless@surf@config.h @@ -0,0 +1,251 @@ +/* modifier 0 means no modifier */ +static int surfuseragent = 0; /* Append Surf version to default WebKit user agent */ +static char *fulluseragent = "Mozilla/5.0 (X11; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"; /* Or override the whole user agent string */ +static char *scriptfiles[] = { + "~/.config/surf/scripts/default.js", +}; +static char *styledir = "~/.config/surf/styles/"; +static char *certdir = "~/.cache/surf/certificates/"; +static char *cachedir = "~/.cache/surf/cache/"; +static char *historyfile = "~/.cache/surf/history.txt"; +static char *cookiefile = "~/.cache/surf/cookies.txt"; +static char *searchengine = "https://google.com/search?q="; +static char **plugindirs = (char*[]){ + "~/.config/surf/plugins/", + LIBPREFIX "/mozilla/plugins/", + NULL +}; + +/* Webkit default features */ +/* Highest priority value will be used. + * Default parameters are priority 0 + * Per-uri parameters are priority 1 + * Command parameters are priority 2 + */ +static Parameter defconfig[ParameterLast] = { + /* parameter Arg value priority */ + [AcceleratedCanvas] = { { .i = 1 }, }, + [AccessMicrophone] = { { .i = 0 }, }, + [AccessWebcam] = { { .i = 0 }, }, + [Certificate] = { { .i = 0 }, }, + [CaretBrowsing] = { { .i = 0 }, }, + [CookiePolicies] = { { .v = "A" }, }, + [DefaultCharset] = { { .v = "UTF-8" }, }, + [DiskCache] = { { .i = 1 }, }, + [DNSPrefetch] = { { .i = 0 }, }, + [Ephemeral] = { { .i = 0 }, }, + [FileURLsCrossAccess] = { { .i = 0 }, }, + [FontSize] = { { .i = 12 }, }, + [FrameFlattening] = { { .i = 0 }, }, + [Geolocation] = { { .i = 0 }, }, + [HideBackground] = { { .i = 0 }, }, + [Inspector] = { { .i = 0 }, }, + [Java] = { { .i = 1 }, }, + [JavaScript] = { { .i = 1 }, }, + [KioskMode] = { { .i = 0 }, }, + [LoadImages] = { { .i = 1 }, }, + [MediaManualPlay] = { { .i = 1 }, }, + [Plugins] = { { .i = 1 }, }, + [PreferredLanguages] = { { .v = (char *[]){ NULL } }, }, + [RunInFullscreen] = { { .i = 0 }, }, + [ScrollBars] = { { .i = 1 }, }, + [ShowIndicators] = { { .i = 1 }, }, + [SiteQuirks] = { { .i = 1 }, }, + [SmoothScrolling] = { { .i = 0 }, }, + [SpellChecking] = { { .i = 0 }, }, + [SpellLanguages] = { { .v = ((char *[]){ "en_US", NULL }) }, }, + [StrictTLS] = { { .i = 1 }, }, + [Style] = { { .i = 1 }, }, + [WebGL] = { { .i = 0 }, }, + [ZoomLevel] = { { .f = 1.0 }, }, + [ClipboardNotPrimary] = { { .i = 1 }, }, +}; + + +#define SETURI(p) { .v = (char *[]){ "/bin/sh", "-c", \ +"prop=\"`surf_history_dmenu.sh`\" &&" \ +"xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ +p, winid, NULL } } + +static UriParameters uriparams[] = { + { "(://|\\.)suckless\\.org(/|$)", { + [JavaScript] = { { .i = 0 }, 1 }, + [Plugins] = { { .i = 0 }, 1 }, + }, }, +}; + +/* default window size: width, height */ +static int winsize[] = { 800, 600 }; + +static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | + WEBKIT_FIND_OPTIONS_WRAP_AROUND; + +#define PROMPT_GO "Go:" +#define PROMPT_FIND "Find:" + +/* SETPROP(readprop, setprop, prompt)*/ +#define SETPROP(r, s, p) { \ + .v = (const char *[]){ "/bin/sh", "-c", \ + "prop=\"$(printf '%b' \"$(xprop -id $1 $2 " \ + "| sed \"s/^$2(STRING) = //;s/^\\\"\\(.*\\)\\\"$/\\1/\" && cat ~/.config/surf/bookmarks)\" " \ + "| dmenu -l 10 -p \"$4\" -w $1)\" && " \ + "xprop -id $1 -f $3 8s -set $3 \"$prop\"", \ + "surf-setprop", winid, r, s, p, NULL \ + } \ +} + +/* DOWNLOAD(URI, referer) */ +#define DOWNLOAD(d, r) { \ + .v = (char *[]){ "/bin/sh", "-c", \ + "cd ~/Downloads;"\ + "st -e /bin/sh -c \"aria2c -U '$1'" \ + " --referer '$2' --load-cookies $3 --save-cookies $3 '$0';" \ + " sleep 3;\"", \ + d, useragent, r, cookiefile, NULL \ + } \ +} + +/* PLUMB(URI) */ +/* This called when some URI which does not begin with "about:", + * "http://" or "https://" should be opened. + */ +#define PLUMB(u) {\ + .v = (const char *[]){ "/bin/sh", "-c", \ + "xdg-open \"$0\"", u, NULL \ + } \ +} + +/* VIDEOPLAY(URI) */ +#define VIDEOPLAY(u) {\ + .v = (const char *[]){ "/bin/sh", "-c", \ + "mpv --really-quiet \"$0\"", u, NULL \ + } \ +} + +/* BM_ADD(readprop) */ +#define BM_ADD(r) {\ + .v = (const char *[]){ "/bin/sh", "-c", \ + "(echo $(xprop -id $0 $1) | cut -d '\"' -f2 " \ + "| sed 's/.*https*:\\/\\/\\(www\\.\\)\\?//' && cat ~/.config/surf/bookmarks) " \ + "| awk '!seen[$0]++' > ~/.config/surf/bookmarks.tmp && " \ + "mv ~/.config/surf/bookmarks.tmp ~/.config/surf/bookmarks", \ + winid, r, NULL \ + } \ +} + +/* styles */ +/* + * The iteration will stop at the first match, beginning at the beginning of + * the list. + */ +static SiteSpecific styles[] = { + /* regexp file in $styledir */ + { ".*", "localwiki.css" }, +}; + +/* certificates */ +/* + * Provide custom certificate for urls + */ +static SiteSpecific certs[] = { + /* regexp file in $certdir */ + { "://suckless\\.org/", "suckless.org.crt" }, +}; + +#define MODKEY GDK_CONTROL_MASK + +static char *linkselect_curwin [] = { "/bin/sh", "-c", + "surf_linkselect.sh $0 'Link' | xargs -r xprop -id $0 -f _SURF_GO 8s -set _SURF_GO", + winid, NULL +}; +static char *linkselect_newwin [] = { "/bin/sh", "-c", + "surf_linkselect.sh $0 'Link (new window)' | xargs -r /home/yigit/.scripts/tabbed_surf", + winid, NULL +}; +static char *editscreen[] = { "/bin/sh", "-c", "edit_screen.sh", NULL }; + +#define WATCH {.v = (char *[]){ "/bin/sh", "-c", \ + "/home/yigit/.scripts/watch_mpv.sh $(xprop -id $0 _SURF_URI | cut -d \\\" -f 2)", \ + winid, NULL } } + +#define WALLABAG {.v = (char *[]){ "/bin/sh", "-c", \ + "wallabag add $(xprop -id $0 _SURF_URI | cut -d '\"' -f 2) ; echo test > /tmp/aaa", \ + winid, NULL }} + +/* hotkeys */ +/* + * If you use anything else but MODKEY and GDK_SHIFT_MASK, don't forget to + * edit the CLEANMASK() macro. + */ +static Key keys[] = { + /* modifier keyval function arg */ + { 0, GDK_KEY_i, insert, { .i = 1 } }, + { 0, GDK_KEY_Escape, insert, { .i = 0 } }, + { 0, GDK_KEY_o, spawn, SETPROP("_SURF_URI", "_SURF_GO", PROMPT_GO) }, + { MODKEY, GDK_KEY_f, spawn, SETPROP("_SURF_FIND", "_SURF_FIND", PROMPT_FIND) }, + { MODKEY, GDK_KEY_b, spawn, BM_ADD("_SURF_URI") }, + + { 0, GDK_KEY_Escape, stop, { 0 } }, + + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_r, reload, { .i = 1 } }, + { MODKEY, GDK_KEY_r, reload, { .i = 0 } }, + + { 0, GDK_KEY_l, navigate, { .i = +1 } }, + { 0, GDK_KEY_h, navigate, { .i = -1 } }, + + /* vertical and horizontal scrolling, in viewport percentage */ + { 0, GDK_KEY_j, scrollv, { .i = +10 } }, + { 0, GDK_KEY_k, scrollv, { .i = -10 } }, + { 0, GDK_KEY_space, scrollv, { .i = +50 } }, + { 0, GDK_KEY_b, scrollv, { .i = -50 } }, + { 0, GDK_KEY_u, scrollh, { .i = -10 } }, + + + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_j, zoom, { .i = -1 } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_k, zoom, { .i = +1 } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_q, zoom, { .i = 0 } }, + { MODKEY, GDK_KEY_minus, zoom, { .i = -1 } }, + { MODKEY, GDK_KEY_plus, zoom, { .i = +1 } }, + + { 0, GDK_KEY_p, clipboard, { .i = 1 } }, + { 0, GDK_KEY_y, clipboard, { .i = 0 } }, + + { 0, GDK_KEY_n, find, { .i = +1 } }, + { GDK_SHIFT_MASK, GDK_KEY_n, find, { .i = -1 } }, + + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_p, print, { 0 } }, + { MODKEY, GDK_KEY_t, showcert, { 0 } }, + + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_a, togglecookiepolicy, { 0 } }, + { 0, GDK_KEY_F11, togglefullscreen, { 0 } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_o, toggleinspector, { 0 } }, + + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_c, toggle, { .i = CaretBrowsing } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_g, toggle, { .i = Geolocation } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_s, toggle, { .i = JavaScript } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_i, toggle, { .i = LoadImages } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_v, toggle, { .i = Plugins } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_b, toggle, { .i = ScrollBars } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_t, toggle, { .i = StrictTLS } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_m, toggle, { .i = Style } }, + { MODKEY, GDK_KEY_d, externalpipe, { .v = linkselect_curwin } }, + { GDK_SHIFT_MASK|MODKEY, GDK_KEY_d, externalpipe, { .v = linkselect_newwin } }, + { MODKEY, GDK_KEY_o, externalpipe, { .v = editscreen } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_w, spawn, WATCH }, + { MODKEY, GDK_KEY_m, spawn, WALLABAG }, + { MODKEY , GDK_KEY_Return, spawn, SETURI("_SURF_GO") }, +}; + +/* button definitions */ +/* target can be OnDoc, OnLink, OnImg, OnMedia, OnEdit, OnBar, OnSel, OnAny */ +static Button buttons[] = { + /* target event mask button function argument stop event */ + { OnLink, 0, 2, clicknewwindow, { .i = 0 }, 1 }, + { OnLink, MODKEY, 2, clicknewwindow, { .i = 0 }, 1 }, + { OnLink, MODKEY, 1, clicknewwindow, { .i = 0 }, 1 }, + { OnAny, 0, 8, clicknavigate, { .i = -1 }, 1 }, + { OnAny, 0, 9, clicknavigate, { .i = +1 }, 1 }, + { OnMedia, MODKEY, 1, clickexternplayer, { 0 }, 1 }, +}; + +#define HOMEPAGE "http://localhost:9999" diff --git a/.ccls-cache/@home@yigit@.dotfiles/suckless@surf@config.h.blob b/.ccls-cache/@home@yigit@.dotfiles/suckless@surf@config.h.blob new file mode 100644 index 0000000000000000000000000000000000000000..4b7bf11b743fb34106cc3dd99b8d9b976259391b GIT binary patch literal 4161 zcmb_fYitzP6}~gj!Co9PMaZ>Qu5&v@U_0K24Y*()@%nA-^}4pfjW8_Z+1cHRXJ*_0iB<|EN~HpM0Z9nYMnwXZ2sOCp&cogn zxS~>5t8-`X-E+_Td}qqhgEzLHdk;~_7grOaZ%B$shR+*Oji@Axx=&9D1F(_@E$S0g zB`U?daWq$uc_oHC8MXg8Q81*m=n! z@}V?y$s%*6O70(ZeZQi7Z0haXmCKsg%|%o7-|f2~Cf9T5CsXgbGl4_Kg|}Kl!N$%& zb0cuFKaGe{NfEKLhq<_6Bx`&=SrvFWuIfh3D)?|9?ml}T(}Z@SDGGR}Uj5bj2V0J8 zIj0-EAqiMg3_KtX>6*wK zv^72p2NB%d&=&4)X>IBW2Ls)06*!_QOAQ=VwU}sNLv@J}3D&rX>)RUx9ppcyWjMhL zn(9T=(ZZu8G<6gmEkRFEH0bB}AWJ{6)(RY`xDfS<{R40zZ1O1?LSkc|&TObr7je5R=>~Xuv~&~{8bzbaZBOrQ z%j@{NHukQqkPzoJTwb1(Q*a^VvW|+27eNLU6c_kussI)EZN57TckXmV1RzXz0?SqtIywdNlz}0>~9zjlW0%JrS#Duv9ZiyHWu($|WY9K0D z7+g$KK@@DV1v^EbB><{Cq9zR;5}yTKLsg+VnhK#%ot;xU^)Juw&i=NgH_+Z5s0%b_ zHwR}A4|~&~U#S(}O`FSxG3V=-6rUdFDlq2}fcClaxj|l*`F-}UB$7U!=dEkO15%^{ zcWh{H$0H+P!#Fz*4QZS`Tw*pP>SoQ&^|jPgegjoHe$}PqgfR}83;om%ap7!d569SM zbYh(E&W9AvNBK^Se=|Pk+NGY%o-9{G!JE}=mE%Itw6VN#4NWzo#x-_;Mqk=f{rb1j zrW`%Y%z|=(9AqDP@UV7PGLq!WbLW-QR36HU+aj7iTiS5=bn*6_o6OGeC=t$qBf>;C zE6c5J;v+&BHv>W##K^XgUtT%!;`!L-PjZC_-~bCWAAgeeTwVRj% zm%PcoSxghU&P{gU|-=vT~FK)+_b26~0L0`wc^8=zO2 zt3aMnN|=soTp(5a5YMpFjT0aRQ3u(BZW`zz&NAZ0_8YH*5z8(|Gpjz?x5l=+skNg4Oeu6s z$=b$T6X1#IkZ!hn2~7d5w(goZG;s>88x(Co7-)7mLbmVsBvXBa;Y zs&E8E*7k8*Ns5H+t{jdeL?s1o*$O5vS;7JOa9L)-SdUx~1IO1_nJ4yE0q)|MYQZ`-Wg$c7)B1(o`89?sHid zVaFmBKnVYLv~)PkmCHn89u<_(W9H?mtSF8X-|Cp8M+}A zMNu)kIT_>*xDUXja{wKvvP=2k$H%%}dH>bk97aLZ3=3DA#qaoDW(H;tr^qhW$nc1UwmWRoJXC=oq@$GYW z{AkZbX=7_cW2mz|@GLM+m-+PO|0#%2so3MuM3{nxJkO^j$h^l0XPQkzV@b2y9GyR# ze0kUC7f%h=1;c>`V(B!tIXlz{I|8XX!oFhhP?Pdx2Etg@QuOP;Og*t9tFaQFTl0tu zk!Q!v=1W4Srlv{z7E&-IC2-a`dH2F8P1X^$yL2~9(!0@aC+3sY^uEMPuhr$mT$Ypp zU6kSNH7ukwC@wQ+NaGxHkHHKyhQ{jbScb0l{aZQp%;_vG;dRh}nz5#1Wc?!T9BP!j zznE`k25-I%3cNyI#6n7gDpbG%&^18T)T o8>X4t=ytiS5w+-t`9J^L=_hBiND&9KE!ywi4;Jl5`)!N<13H`mpa1{> literal 0 HcmV?d00001 diff --git a/.gitsecret/keys/random_seed b/.gitsecret/keys/random_seed new file mode 100644 index 0000000000000000000000000000000000000000..f985511a727390bdfe10dba5fa49cd17baef8f79 GIT binary patch literal 600 zc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--git a/config/isync/mbsyncrc.secret b/config/isync/mbsyncrc.secret index b99bd796326f53de9f49350aca784b945639d5f1..bab88d4f8daf6937f4d01c113a2b2bf14f61cedb 100644 GIT binary patch literal 931 zcmV;U16=%t0t^F?ut;Rv{V9Y25C3S8S#Wu0UvNjZ~xDp+&j z5OlW3Q-X=D%HsDGfpk%;EQTDEnbuT0RAKPC3+;Kf;Sk6wuAn)t^}2z6LsaOM3Jl^soU zC{lj*eR4^M-BeRfNb~N{FeO$+6!wLhyV5g%G;)fD@&(wlJL^C@XE@dZrchr1TW}YN z2xfi0M#Q8ULs~l%cMhsGSpMe@p0$e0Cy}p8`~uiUl9t|LEeAXv-gom zAuupvXcbm6dtD#Jn|E9AqzA=!r1LhrxxL2p6ZBG)6V*eoe|#08#2(oD#D5Px`sEaw z=27-mevF2Ky5(u_4BFUct|@@C}@M)9nH40CRO$j8vWKf+7xK~2!u^U2$jKZUl`oY`EcpNrDGN&yd{=nO~1>Vx;<&?(ez z%)tlx92TLjT(@imR8iuY;Y97%5wT6!A7$B$&af)u>mkd*tB!9#nq?^mm7QDClgqzs zea|Z6W$EPC#K77pStbGUXm@C<s=uK;)s3{!BB zRJ3H?NFc{55uY52xSn+#6YqY)$~k4rn#)&_?@MK(4Knt9X9>(R@2OoJq&suT3S`DI zDS+ebbEZFNV!woF1|>29sS<{@*shd6PBKD_@uNePv52DsqU=q7evfb+p}>>&9`*C# zUnwN(7cW-WKh}9$)|B|+8QNr)#L3hlp~>HR4iLX3wSsjyi!UYTCgF1We*uODJ3 FocW(4(9{3` literal 934 zcmV;X16llq0t^F?ut;Rv{V9Y25B(nMl=aDX#8A4umgm*%rK)O)Dyyy}jj^vF=!Tk(+`pkuZh91AB{EpU)L9BN8M< z!K0*?7r55HIFFX0Aq!@2n|O~xH7pCMVsIoHuNl{;Tn^8W5}L9#G@6~WC2b#hJe_Tn z`qf=~Yf3;!1(0HsDG8wpdvv(o%*6D*iYTgBOje18xm(F!7_i|rW8K)ZLuy@C`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yfpM|kD{ literal 762 zcmVnn$F)Ak1aV(-_T%L?i9;-^rb80G@rw4~ex&ZB;G|WmyYCM2k3_-)Bk`#Oo z3=|GG#x~AKs*+HZAQ)4t(Zz_@HF&TFu#syCi*4up5BwrLFk!KD)p4fAwLT04_MSlJ zpZUY5Nv4JlnWayXwxx6IwM$&3HRunCQGGwH0XQUVl!ji>Pu2EYu9`~~0WPzbGMGOF z>3g0?0pE}KV8Dn~>~L7HtN>iIt`!JhkqfxZ%#3des?TMuI6tV@)nj8L^|12?UnVXq zIQa@~{W=J(t_}br&RxNvGAL{Eer7|f6`boejB{{q$w_5DDr;Ac!fRh~2sU}ai6&`V z*`jyrMqmz=PcMHfoo0*tOoZ3)ee5q{tE{`O??@Luq>2>*3E#M^nuLH{ZTxpwk9>8z$AO& z9fP@--5S;Lqt)6TU>j$MjIV1GJT~AB;Gy8jUYK)fRb0O?+ct6`lotAlwiE^%mk{r& z2@iBJ!!064MNlYu)Z)^>C;>W&CPf-a#{;oR(-1Qi{+lvZPyDGFRjmf|t@%Wv1Pi3O z!fY%Q1#9n|H$b5j#yTj*=AM9&gNT-H=kRQKm$-zR9<=^)75_>qbJ*vE5O_{Vst?3! z2y=3I#It%0*{>Mmlg%v}8A!(pDZJ;_;&U@3vOXlvBq@TD)r%?l)( zM5CF`JKRP7Mvb1klwBcdvMFeMehl)IpS;zh{f~2XT&$!7GMTyU$~8Q=Dco4oqz(P| slJl^I8213zMvIib@7H`B8uHg2Df|+h$*v>p7IG9=M8U0i1lqs`%=(jZD*ylh diff --git a/config/nextcloud/nextcloud.secret b/config/nextcloud/nextcloud.secret index 48932377029aa16fcb7b5ff6498446ec43524f22..e30080812029e785cc3ded1fc248c4bd8921faac 100644 GIT binary patch literal 867 zcmV-p1DyPY0t^F?ut;Rv{V9Y25CE0#pUi*$l2Ti!$$6dGV4T4&on&EV$oGMnKU9*31D^pmsfU;wtM8Ry%#T zrzZoJZ_r2D14&{%6^Y%?@%DXI&763L!;<_PqN3}Y)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OpIf6Lq>PH57=lmW$XA}0P)9$Gm-Jv$@Ah^KTGFRg>YloP&{#3pA~J8gA= z4X`Q-vjY(47-A};xK-<%V{>HXNoqPHjJV*t%38^Q~Jo)ZTN^{_Q3 z7QzZ>#T06MwbD$32skpO&X$mpG+r84-X$B97q3gUT72T?}M2sr>d98 w8AqW{TG2~xlE^%)9HMf)SM}6z-zFg&2Z#hmLJ%z<50$d#yo=e-8>WO*lC<5fDgXcg diff --git a/config/spotifyd/spotifyd.conf.secret b/config/spotifyd/spotifyd.conf.secret index f248997f1f275f918d5e07d7abb0cb45b960bd68..66bc7beef747e74e61dcd2c6d81cde37123c5d3d 100644 GIT binary patch literal 810 zcmV+_1J(S60t^F?ut;Rv{V9Y25B(M^1tneQT=po<)`14=YrO5_K8)Gf0qP^t=y-VB zP6JMlyz7LbZRq|EV@+cL_IMY3j>OTy@2TK4r!&4XsnJ_?qw?2pWPA)xyI5r4xym;8 z2P;7n(X2QC$(Qq72(Q@kYoT>?aD&C+)c17v?$rFB6x2^ z3IDfrC#3oJ-cyRZA3fuzysVrtNF$BM2k~jS?^rondu5Vs#Dn>3{Wo*$^)iTB{)8hd zzB@LsUT8u@7}2-*OnFUY>`+fu7)K{1a*a0R7w6i~-T+obSgbwr)nvsX*$D(?8MfYH z!xZU!nzI#@RtV^;5H;Q*Q!KMg9E-sX1JM7_Qd;H)?BJa*O4Pf#)8E_Q*Nhf^nJx%v z-N3;Bo2wso6c)#2xOtnW0Ol&fu>AG5G@H?ymin3i^3euxo)Y#vWY#P(64H zaNJ-iX*iDFJ06xXfZ<@~lN0sRzuInhyzVxopV0LTJo}Dc3oEahp05cMzMZe~pLIs` oM_h3w90&hVNg+l7T49&viu$K~&~>qSP1ReY1D6C1`6~J+2$i*tWB>pF literal 812 zcmV+{1JnG40t^F?ut;Rv{V9Y25C2(PHsS6EEwH#&vEXFONfz$RLYTEJ2ACC<*LK{+ zRWK#^lU9Ir@LT0MhK4zw^e{@2{~5Cxm(i=r&Tix(hvP^|Kg{Wi9!n>`hdhkRHzTQ# zGX=c2s`%!#aMmXgKBq?v+92YBlIz?~h0IruTpvK=hPv7_#C5NSy?QwiJN0;#Vs6~7 z7X_$=gYyu0Y6&EzFw`hQth6V8r}8L9?p43C0dwz{nW2WeUWZP&{ZUI|Q_cJw4(n}g zGCI%gj(w2;G*l(d%J`u_kOLX#o%o7HPrdbe!DmlVMA__rsm!nko)zYk!uQ@)V)4d``gJ zZKDPm$=i#6_`=6|rgCIzYmQ?D)5t49JZuJF>-GqP6Xcaln`$pU4 zu3!8{siI{p%JmX|vo6xWS^=t}z`7DLDa9pZ>Kzbp2;Jd;X=)eBe+<;<)Y2uTzHRxZ z?fgR}7^*eiMGJ@je8!6ELU}E-{*S5w8R7SbldlbE49}EIfcme2USZ6)G!v#)e4p9;N^n>Y3B&_qn z+)FkXI6}sJrS^DIz-R3mA2oy&6FykfAMb}kkS_N;d{`}08^{^j_epbaLJzP7kELh} qm<8w;XQ)>A&Pld0oM+Wa6=hx7h=#ijILEeq9M11=Y;mS`HY9U#nU6mJ diff --git a/config/surf/styles/default.css b/config/surf/styles/default.css new file mode 100644 index 00000000..3012a18f --- /dev/null +++ b/config/surf/styles/default.css @@ -0,0 +1,15 @@ + *,div,pre,textarea,body,input,td,tr,p { + background-color: #202020 !important; + background-image: none !important; + color: #bbbbbb !important; + } + h1,h2,h3,h4 { + background-color: #202020 !important; + color: #b8ddea !important; + } + img { + opacity: .5; + } + img:hover { + opacity: 1; + } diff --git a/config/zsh/secret.secret b/config/zsh/secret.secret index f0a69b3283e4f0d24c7ffe9b779609fdb77ec676..92761d533638f18399536c5d963d26e97f01a188 100644 GIT binary patch literal 657 zcmV;C0&e|<0t^F?ut;Rv{V9Y25B@uT`LXFjM5yzOSQZ~A1Y=PzQ(83b-W(EdlHY;? zfwV?G*nfQ=0(Akr*zm4^IT|9nZL}U5QiLe%y5YiNVTdXs>*1W5bm$JZ6Rpw*XNmp` zvfr@Ew0^x&8Y&s;#2n=Cne-~ojreqV;lGCL2x!jTTXk9Z)o>T>U#W5F8G z1AN}U_co3~RxEInm-QzU_oQdd*&iGRQY_gC>{v_w_dD7v^Q%f0Y@--75qFl0?}4k9 zI=BWdlP66+`;lHh%E?XV(KWpbZZsCl6VBfpaeM1?Y znlYn_sXd=Gq1{a$+0?^*SvW)rk>pVVr%=No&e8?i&bTQ}Z&?ipap>dwmxvE?b}|?j znJKNstntDgo420CV~W)nd`+cpH4^JPzZS$kp2mrCW}hP)d8tH@Wa_!EOe_nyCe(CE z-!3oUYAC@uQVrS;H~vDg`gA?V(4jFobkqNHi-CjQHYSS-W+EcynKJumU)?JS8ZSm} z70VU%WR7RdOjU^eeGbxq0mzEP`wslo7J?rp=hnMTG5J-F8rLCd&7=y}u$GFHzdmHG z&A*VvAC@x~X)0SYArQkKMc6=?I5rAuScHN@0hyUwZz1Z)=fKFjwHgIqJAXV2&f*r< rX$C8*ZNxG6uKfO;l=tTQeN$_lLcvNx^^m7@2vJG+*^p*ieS|H=RRlkM literal 657 zcmV;C0&e|<0t^F?ut;Rv{V9Y25B@gVfkP+|xh5N9547;32hR=jEtdZn9xrrU<70r% zwkpD@BHVn*NjtdkzQ{Ng7)0m)u24=MFIOvn7CbxAhfY<4>*r(0nQ_JJV01q-Q? zz?V2nuS(Bin}(@a%AuG)%Dk&y;G3aGxo=lg&Go_=N>l=<6L9SaA1c@q$XaA$Q$NOV zt7C+)n+_EckG@=m(JgU5sYKPhk-wW=qkP5B`C7pm!9Y0nj_hDYp%@0NqJhiMk0|`V$vqr9tB)OWq%fGVc%=7ySx? z6TFuLiM@xry%u}8q0HJSJ4cwQEW3MTzQDJ^2OvtEy*(607r4e*p= /var/spool/cron/$username echo "*/15 * * * * /home/$username/.local/bin/nextcloud-sync" >> /var/spool/cron/$username - echo "* */1 * * * /home/$username/.local/bin/check-updates" >> /var/spool/cron/$username + echo "0 * * * * /home/$username/.local/bin/check-updates" >> /var/spool/cron/$username echo "*/30 * * * * /home/$username/.local/bin/firefox-sync" >> /var/spool/cron/$username echo "*/30 * * * * calcurse-caldav" >> /var/spool/cron/$username echo "*/30 * * * * vdirsyncer sync" >> /var/spool/cron/$username @@ -119,7 +119,7 @@ else cp /var/spool/cron/$username ~/.dotfiles_backup/crontab echo "*/8 * * * * /home/$username/.local/bin/mailsync" > /var/spool/cron/$username echo "*/15 * * * * /home/$username/.local/bin/nextcloud-sync" >> /var/spool/cron/$username - echo "* */1 * * * /home/$username/.local/bin/check-updates" >> /var/spool/cron/$username + echo "0 * * * * /home/$username/.local/bin/check-updates" >> /var/spool/cron/$username echo "*/30 * * * * /home/$username/.local/bin/firefox-sync" >> /var/spool/cron/$username echo "*/30 * * * * calcurse-caldav" >> /var/spool/cron/$username echo "*/30 * * * * vdirsyncer sync" >> /var/spool/cron/$username @@ -154,7 +154,11 @@ sudo cp ~/.dotfiles/root/dwm.desktop /usr/share/xsessions sudo cp ~/.dotfiles/root/issue /etc/issue sudo cp ~/.dotfiles/root/motd /etc/motd sudo cp ~/.dotfiles/root/nancyj.flf /usr/share/figlet/fonts -sudo cp ~/.dotfiles/root/quark.service /usr/lib/systemd/system +if [ "$(grep artix < $(uname -a))" = "" ]; then + sudo cp ~/.dotfiles/root/quark /etc/init.d +else + sudo cp ~/.dotfiles/root/quark.service /usr/lib/systemd/system +fi sudo cp ~/.dotfiles/root/kdialog /usr/local/bin/kdialog sudo cp ~/.dotfiles/root/udevil.conf /etc/udevil/udevil.conf sudo chmod +x /usr/local/bin/kdialog @@ -182,6 +186,7 @@ echo "Installing Icons" echo "Setting up start page" prev=$(pwd) cd ~/.dotfiles/browser/startpage +sudo npm install -g parcel-bundler npm install > /dev/null 2> /dev/null npm run build > /dev/null 2> /dev/null cd $prev diff --git a/local/bin/.gitignore b/local/bin/.gitignore index a98733d5..00aacdaa 100644 --- a/local/bin/.gitignore +++ b/local/bin/.gitignore @@ -59,4 +59,4 @@ !ytfzf_dmenu !zaread !texclear -!check-updated +!check-updates diff --git a/local/bin/check-updates b/local/bin/check-updates new file mode 100755 index 00000000..2d13179a --- /dev/null +++ b/local/bin/check-updates @@ -0,0 +1,30 @@ +#!/bin/sh + +case "$(readlink -f /sbin/init)" in + *systemd*) export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus ;; +esac + +ping -q -c 1 example.org > /dev/null || exit + + +pgrepoutput="$(pgrep -a X\(org\|wayland\))" +displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)" +notify() { + [ -n "$pgrepoutput" ] && for x in ${displays:-:0}; do + export DISPLAY=$x + notify-send --app-name="auto-update" "$1" "$2" + done ; +} + +notify " Repository Sync" "Checking for package updates..." + +sudo pacman -Syyuw --noconfirm || notify " An error occured" "Error downloading updates. +Check your internet connection, if pacman is already running, or run update manually to see errors." +pkill -RTMIN+8 "${STATUSBAR:-dwmblocks}" + +if pacman -Qu | grep -v "\[ignored\]" +then + notify " Repository Sync" "Updates available. Click statusbar icon () for update." +else + notify " Repository Sync" "Sync complete. No new packages for update." +fi diff --git a/local/bin/firefox-sync b/local/bin/firefox-sync index deae09a0..4a6d761f 100755 --- a/local/bin/firefox-sync +++ b/local/bin/firefox-sync @@ -1,5 +1,7 @@ #!/bin/bash +source ~/.profile + if [ ! "$BROWSER" = "firefox" ]; then echo "Default browser is not firefox, exiting..." exit 0 diff --git a/local/bin/mailsync b/local/bin/mailsync index 54d3795b..a196f400 100755 --- a/local/bin/mailsync +++ b/local/bin/mailsync @@ -1,6 +1,5 @@ #!/bin/sh - export XDG_CONFIG_HOME="$HOME"/.config export MBSYNCRC="$XDG_CONFIG_HOME"/isync/mbsyncrc @@ -18,7 +17,7 @@ export MBSYNCRC="$XDG_CONFIG_HOME"/isync/mbsyncrc # Run only if user logged in (prevent cron errors) pgrep -u "${USER:=$LOGNAME}" >/dev/null || { echo "$USER not logged in; sync will not run."; exit ;} # Run only if not already running in other instance -pgrep -x mbsync >/dev/null && { echo "mbsync is already running." ; exit ;} +pidof -s mbsync >/dev/null && { echo "mbsync is already running." ; exit ;} # First, we have to get the right variables for the mbsync file, the pass # archive, notmuch and the GPG home. This is done by searching common profile @@ -26,7 +25,7 @@ pgrep -x mbsync >/dev/null && { echo "mbsync is already running." ; exit ;} # will work on the maximum number of machines. eval "$(grep -h -- \ "^\s*\(export \)\?\(MBSYNCRC\|PASSWORD_STORE_DIR\|NOTMUCH_CONFIG\|GNUPGHOME\)=" \ - "$HOME/.profile" "$HOME/.bash_profile" "$HOME/.zprofile" "$HOME/.config/zsh/.zprofile" \ + "$HOME/.profile" "$HOME/.bash_profile" "$HOME/.zprofile" "$HOME/.config/zsh/.zprofile" "$HOME/.zshenv" \ "$HOME/.bashrc" "$HOME/.zshrc" "$HOME/.config/zsh/.zshrc" "$HOME/.pam_environment" 2>/dev/null)" case "$(readlink -f /sbin/init)" in @@ -43,14 +42,16 @@ case "$(uname)" in messageinfo() { osascript -e "display notification with title \"📧 $from\" subtitle \"$subject\"" ;} ;; *) - displays="$(pgrep -a X\(org\|wayland\) | grep -wo "[0-9]*:[0-9]\+" | sort -u)" - notify() { for x in $displays; do + # remember if a display server is running since `ps` doesn't always contain a display + pgrepoutput="$(pgrep -a X\(org\|wayland\))" + displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)" + notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-:0}; do export DISPLAY=$x - notify-send --app-name="mutt-wizard" "📧mutt-wizard" "$(echo $2 | xargs) new mail(s) in \`$1\` account." + notify-send --app-name="mutt-wizard" "mutt-wizard" "ﯬ $2 new mail(s) in \`$1\` account." done ;} - messageinfo() { for x in $displays; do + messageinfo() { [ -n "$pgrepoutput" ] && for x in ${displays:-:0}; do export DISPLAY=$x - notify-send --app-name="mutt-wizard" "📧$from:" "$subject" + notify-send --app-name="mutt-wizard" " $from:" "$subject" done ;} ;; esac @@ -61,10 +62,8 @@ syncandnotify() { if [ -z "$opts" ]; then mbsync "$acc"; else mbsync "$opts" "$acc"; fi new=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun" 2> /dev/null) newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l) - echo -n "$newcount" > ~/.cache/mcount - date +"%R" > ~/.cache/msync if [ "$newcount" -gt "0" ]; then - notify "$acc" "$newcount" & + notify "$acc" "$newcount" & for file in $new; do # Extract subject and sender from mail. from=$(awk '/^From: / && ++n ==1,/^\<.*\>:/' "$file" | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | awk '{ $1=""; if (NF>=3)$NF=""; print $0 }' | sed 's/^[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//') @@ -92,4 +91,5 @@ done wait notmuch new 2>/dev/null + kill -57 $(pidof dwmblocks) diff --git a/local/bin/status-bar/arch b/local/bin/status-bar/arch index ce3cdafc..64fa006f 100755 --- a/local/bin/status-bar/arch +++ b/local/bin/status-bar/arch @@ -1,17 +1,24 @@ #!/bin/sh -icon= +icon= -if ! updates=$(checkupdates 2> /dev/null | wc -l ); then - updates=0 +if [ ! -f ~/.cache/pacman_updates ]; then + updates=0 +else + updates=$(wc -l < ~/.cache/pacman_updates) + if [ "$updates" = "" ]; then + updates=0 + fi fi + +checkupdates 2> /dev/null > ~/.cache/pacman_updates & + case $BLOCK_BUTTON in 1) PATH="/opt/google-cloud-sdk/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" setsid -f "$TERMINAL" -c center -n center -e yay -Syu;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac -echo $updates > ~/.cache/pacman_updates #echo "$ifg $icon $tfg$(cat ~/.cache/pacman_updates)" -echo "^c#a48ead^$icon ^d^ $(cat ~/.cache/pacman_updates)" +echo "^c#a48ead^$icon ^d^ $updates" diff --git a/notes/firefox.md b/notes/firefox.md index 03400ae1..f9b6de24 100644 --- a/notes/firefox.md +++ b/notes/firefox.md @@ -3,7 +3,7 @@ Here are some `about:config` variables that you might want to set: | Variable | Value | --------------------- +|----------|-------| | services.sync.prefs.sync.browser.uiCustomization.state | true | | extensions.pocket.enabled | false | | browser.cache.disk.parent_directory | /run/user/*UID*/firefox | diff --git a/profile b/profile index 79db5ac1..c0848e16 100755 --- a/profile +++ b/profile @@ -73,6 +73,10 @@ export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc +case "$(readlink -f /sbin/init)" in + *systemd*) export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus ;; +esac + if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then if [ ! "$DBUS_SESSION_BUS_ADDRESS" ] && [ ! $(command -v dbus-launch) ]; then exec dbus-launch --exit-with-session xinit 2> $XDG_RUNTIME_DIR/xinit.err > $XDG_RUNTIME_DIR/xinit || exit diff --git a/root/quark b/root/quark new file mode 100755 index 00000000..afa6fc06 --- /dev/null +++ b/root/quark @@ -0,0 +1,19 @@ +#!/usr/bin/openrc-run + + +depend() { +need net +need localmount +} + +start() { +ebegin "Starting quark" +start-stop-daemon --background --start --exec /usr/local/bin/quark -- -p 9999 -d /home/yigit/.dotfiles/browser/startpage/dist -h 127.0.0.1 +eend $? +} + +stop() { +ebegin "Stopping myApp" +eend $? +} + diff --git a/suckless/surf/config.h b/suckless/surf/config.h index 49283b3f..706f7bf9 100644 --- a/suckless/surf/config.h +++ b/suckless/surf/config.h @@ -140,7 +140,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | */ static SiteSpecific styles[] = { /* regexp file in $styledir */ - { ".*", "localwiki.css" }, + { ".*", "default.css" }, }; /* certificates */