Ajout de configs

This commit is contained in:
Breizh 2018-06-02 00:13:25 +02:00
parent 38bad21137
commit 7e24f38161
8 changed files with 596 additions and 0 deletions

10
.config/mpv/mpv.conf Normal file
View file

@ -0,0 +1,10 @@
profile=opengl-hq
cache-pause
input-ipc-server=/tmp/mpvsocket
sub-back-color=0.0/0.0/0.0/0.5
sub-use-margins
hwdec=auto-copy
hwdec-codecs=all
#hwdec=no
hr-seek-framedrop=no
no-resume-playback

49
.surf/build/PKGBUILD Normal file
View file

@ -0,0 +1,49 @@
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Pierre Chapuis <catwell at archlinux dot us>
# Contributor: Ray Kohler <ataraxia937 at gmail dot com>
# Contributor: Michael Witten <mfwitten>
# Contributor: Raphael Proust <raphlalou at gmail dot com>
pkgname=surf
pkgver=0.7+199+gda5290a
pkgrel=1
pkgdesc='A simple web browser based on WebKit/GTK+.'
arch=('i686' 'x86_64')
url='http://surf.suckless.org/'
license=('MIT')
depends=('webkit2gtk' 'xorg-xprop')
optdepends=('dmenu: URL-bar'
'ca-certificates: SSL verification'
'xterm: default download handler'
'curl: default download handler')
makedepends=('git')
install='surf.install'
_commit=da5290a41aac4eabef83f6b88039f44d28b0ea00 # surf-webkit2
source=("git+git://git.suckless.org/surf#commit=$_commit"
'config.h')
md5sums=('SKIP'
'SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --tags | sed 's/-/+/g' | sed 's/0.6/0.7/'
}
build() {
cd "${srcdir}/${pkgname}"
cp "${srcdir}/config.h" config.h
sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
sed -i 's/CFLAGS =/CFLAGS +=/g' config.mk
sed -i 's/LDFLAGS =/LDFLAGS +=/g' config.mk
make
}
package() {
cd "${srcdir}/${pkgname}"
make PREFIX=/usr DESTDIR="${pkgdir}" install
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

180
.surf/build/config.h Normal file
View file

@ -0,0 +1,180 @@
/* modifier 0 means no modifier */
static int surfuseragent = 1; /* Append Surf version to default WebKit user agent */
static char *fulluseragent = ""; /* Or override the whole user agent string */
static char *scriptfile = "~/.surf/script.js";
static char *styledir = "~/.surf/styles/";
static char *cachedir = "/tmp/surf/cache/";
static char *cookiefile = "~/.surf/cookies";
/* Webkit default features */
static Parameter defconfig[ParameterLast] = {
SETB(AcceleratedCanvas, 1),
SETB(CaretBrowsing, 0),
SETV(CookiePolicies, "@Aa"),
SETB(DiskCache, 1),
SETB(DNSPrefetch, 0),
SETI(FontSize, 16),
SETB(FrameFlattening, 0),
SETB(Geolocation, 0),
SETB(HideBackground, 0),
SETB(Inspector, 1),
SETB(JavaScript, 1),
SETB(KioskMode, 0),
SETB(LoadImages, 1),
SETB(MediaManualPlay, 1),
SETB(Plugins, 1),
SETV(PreferredLanguages, ((char *[]){ "fr_FR", "en_US", NULL })),
SETB(RunInFullscreen, 0),
SETB(ScrollBars, 1),
SETB(ShowIndicators, 1),
SETB(SiteQuirks, 1),
SETB(SpellChecking, 1),
SETV(SpellLanguages, ((char *[]){ "fr_FR", NULL })),
SETB(StrictSSL, 0),
SETB(Style, 1),
SETF(ZoomLevel, 1.0),
};
static UriParameters uriparams[] = {
{ "(://|\\.)suckless\\.org(/|$)", {
FSETB(JavaScript, 0),
FSETB(Plugins, 0),
}, },
};
static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
WEBKIT_FIND_OPTIONS_WRAP_AROUND;
#define SETPROP(p, q) { \
.v = (const char *[]){ "/bin/sh", "-c", \
"prop=\"`xprop -id $2 $0 " \
"| sed \"s/^$0(STRING) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \
"| xargs -0 printf %b | cat - ~/.surf/bookmarks | dmenu -l 10 -w $2 -fn \"xos4 Terminus\" -nb \"#2d2d2d\" -nf \"#747369\" -sb \"#6699cc\" -sf \"#2d2d2d\"` \" &&" \
"xprop -id $2 -f $1 8s -set $1 \"$prop\"", \
p, q, winid, NULL \
} \
}
/* DOWNLOAD(URI, referer) */
#define DOWNLOAD(d, r) { \
.v = (char *[]){ "/bin/sh", "-c", \
"cd \"$(yad --file --directory)\"&&" \
"urxvt -e /bin/sh -c \"aria2c -U '$1'" \
" --referer '$2' --load-cookies $3 --save-cookies $3 '$0';" \
" sleep 3;\"", \
d, useragent, r, cookiefile, NULL \
} \
}
#define BM_ADD { .v = (char *[]){ "/bin/sh", "-c", \
"(echo `xprop -id $0 _SURF_URI | cut -d '\"' -f 2` && "\
"cat ~/.surf/bookmarks) | awk '!seen[$0]++' > ~/.surf/bookmarks_new && "\
"mv ~/.surf/bookmarks_new ~/.surf/bookmarks", \
winid, NULL } }
#define BM_DEL { .v = (char *[]){ "/bin/sh", "-c", \
"grep -v \"$(xprop -id $0 _SURF_URI | cut -d '\"' -f 2)\" ~/.surf/bookmarks > ~/.surf/bookmarks_new && "\
"mv ~/.surf/bookmarks_new ~/.surf/bookmarks", \
winid, 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 \
} \
}
/* styles */
/*
* The iteration will stop at the first match, beginning at the beginning of
* the list.
*/
static SiteStyle styles[] = {
/* regexp file in $styledir */
{ ".*", "default.css" },
};
#define MODKEY GDK_CONTROL_MASK
/* 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 */
{ MODKEY, GDK_KEY_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
{ MODKEY, GDK_KEY_f, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
{ MODKEY, GDK_KEY_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
{ 0, GDK_KEY_Escape, stop, { 0 } },
{ MODKEY, GDK_KEY_c, stop, { 0 } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_r, reload, { .b = 1 } },
{ MODKEY, GDK_KEY_r, reload, { .b = 0 } },
{ MODKEY, GDK_KEY_l, navigate, { .i = +1 } },
{ MODKEY, GDK_KEY_h, navigate, { .i = -1 } },
/* Currently we have to use scrolling steps that WebKit2GTK+ gives us
* d: step down, u: step up, r: step right, l:step left
* D: page down, U: page up */
{ MODKEY, GDK_KEY_j, scroll, { .i = 'd' } },
{ MODKEY, GDK_KEY_k, scroll, { .i = 'u' } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_space, scroll, { .i = 'U' } },
{ MODKEY, GDK_KEY_space, scroll, { .i = 'D' } },
{ MODKEY, GDK_KEY_i, scroll, { .i = 'r' } },
{ MODKEY, GDK_KEY_u, scroll, { .i = 'l' } },
{ MODKEY, GDK_KEY_b, spawn, BM_ADD },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_b, spawn, BM_DEL },
{ 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 } },
{ MODKEY, GDK_KEY_p, clipboard, { .b = 1 } },
{ MODKEY, GDK_KEY_y, clipboard, { .b = 0 } },
{ MODKEY, GDK_KEY_n, find, { .i = +1 } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_n, find, { .i = -1 } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_p, print, { 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_f, toggle, { .i = FrameFlattening } },
{ 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_m, toggle, { .i = Style } },
};
/* 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, { .b = 0 }, 1 },
{ OnLink, MODKEY, 2, clicknewwindow, { .b = 1 }, 1 },
{ OnLink, MODKEY, 1, clicknewwindow, { .b = 1 }, 1 },
{ OnAny, 0, 8, clicknavigate, { .i = -1 }, 1 },
{ OnAny, 0, 9, clicknavigate, { .i = +1 }, 1 },
{ OnMedia, MODKEY, 1, clickexternplayer, { 0 }, 1 },
};

0
.surf/script.js Normal file
View file

0
.surf/styles/default.css Normal file
View file

45
.xinitrc Normal file
View file

@ -0,0 +1,45 @@
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export XDG_CURRENT_DESKTOP="i3"
DEFAULT_SESSION='i3 --shmlog-size 0'
/usr/bin/numlockx on
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
[[ -f ~/.fehbg ]] && ~/.fehbg
#wal -R
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
case $1 in
awesome ) exec dbus-launch awesome ;;
bspwm ) exec dbus-launch bspwm-session ;;
budgie ) exec dbus-launch budgie-desktop ;;
cinnamon ) exec dbus-launch cinnamon-session ;;
deepin ) exec dbus-launch startdde ;;
enlightenment ) exec dbus-launch enlightenment_start ;;
fluxbox ) exec dbus-launch startfluxbox ;;
gnome ) exec dbus-launch gnome-session ;;
i3|i3wm ) exec dbus-launch i3 --shmlog-size 0 ;;
jwm ) exec dbus-launch jwm ;;
kde ) exec dbus-launch startkde ;;
lxde ) exec dbus-launch startlxde ;;
lxqt ) exec dbus-launch lxqt-session ;;
mate ) exec dbus-launch mate-session ;;
xfce ) exec dbus-launch xfce4-session ;;
* ) exec dbus-launch $DEFAULT_SESSION ;;
esac

24
.xprofile Normal file
View file

@ -0,0 +1,24 @@
#
# ~/.xprofile
#
# sourced by /etc/lxdm/Xsession
#
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi
# Environment variables
#
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export EDITOR=vim
export PAGER=less
export QT_QPA_PLATFORMTHEME=qt5ct
export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
export PATH=$PATH:~/bin:~/.gem/ruby/2.4.0/bin
export LANG=br_FR.UTF-8
export LANGUAGE=br_FR:fr:en
#export LANG=fr_FR.UTF-8
#eval $(ssh-agent -s)

288
.xscreensaver Normal file
View file

@ -0,0 +1,288 @@
# XScreenSaver Preferences File
# Written by xscreensaver-demo 5.39 for breizh on Sun Apr 22 13:17:44 2018.
# https://www.jwz.org/xscreensaver/
timeout: 0:15:00
cycle: 0:05:00
lock: True
lockTimeout: 0:30:00
passwdTimeout: 0:00:30
visualID: default
installColormap: True
verbose: False
timestamp: True
splash: True
splashDuration: 0:00:05
demoCommand: xscreensaver-demo
prefsCommand: xscreensaver-demo -prefs
nice: 10
memoryLimit: 0
fade: False
unfade: False
fadeSeconds: 0:00:03
fadeTicks: 20
captureStderr: True
ignoreUninstalledPrograms:False
font: *-medium-r-*-140-*-m-*
dpmsEnabled: False
dpmsQuickOff: False
dpmsStandby: 2:00:00
dpmsSuspend: 2:00:00
dpmsOff: 4:00:00
grabDesktopImages: True
grabVideoFrames: False
chooseRandomImages: True
imageDirectory: /home/breizh/Images/wallpapers_bak
mode: random
selected: -1
textMode: url
textLiteral: mepuʁkwaikskrinseivøʁdekonotãavεkl'yteεfɥit
textFile:
textProgram:
textURL: https://danstonchat.com/rss.xml
programs: \
maze -root \n\
- electricsheep --root 1 \n\
- GL: superquadrics -root \n\
attraction -root \n\
blitspin -root \n\
greynetic -root \n\
helix -root \n\
hopalong -root \n\
imsmap -root \n\
- noseguy -root \n\
- pyro -root \n\
qix -root \n\
- rocks -root \n\
rorschach -root \n\
decayscreen -root \n\
- flame -root \n\
halo -root \n\
slidescreen -root \n\
pedal -root \n\
- bouboule -root \n\
- braid -root \n\
coral -root \n\
- deco -root \n\
- drift -root \n\
fadeplot -root \n\
galaxy -root \n\
- goop -root \n\
grav -root \n\
- ifs -root \n\
GL: jigsaw -root -resolution 300 -fps \n\
julia -root \n\
kaleidescope -root \n\
- GL: moebius -root \n\
- moire -root \n\
GL: morph3d -root \n\
mountain -root \n\
munch -root \n\
penrose -root \n\
GL: pipes -root \n\
- rd-bomb -root \n\
GL: rubik -root -hideshuffling \n\
- sierpinski -root \n\
slip -root \n\
GL: sproingies -root \n\
starfish -root \n\
strange -root \n\
swirl -root \n\
triangle -root \n\
xjack -root \n\
- xlyap -root \n\
- GL: atlantis -root \n\
bsod -root -atari -bsd -sparclinux \n\
- GL: bubble3d -root \n\
GL: cage -root \n\
- crystal -root \n\
cynosure -root \n\
- discrete -root \n\
distort -root \n\
epicycle -root \n\
flow -root \n\
- GL: glplanet -root \n\
- interference -root \n\
kumppa -root \n\
- GL: lament -root \n\
- moire2 -root \n\
any: sonar -root -ping $HOME/.ssh/known_hosts \n\
GL: stairs -root \n\
- truchet -root \n\
- vidwhacker -root \n\
blaster -root \n\
bumps -root \n\
ccurve -root \n\
compass -root \n\
deluxe -root \n\
- demon -root \n\
- GL: extrusion -root \n\
loop -root \n\
penetrate -root -smart \n\
petri -root \n\
phosphor -root -scale 4 -fg #ff7900 \n\
GL: pulsar -root \n\
ripples -root \n\
shadebobs -root \n\
GL: sierpinski3d -root \n\
spotlight -root \n\
squiral -root \n\
- wander -root \n\
webcollage -root \n\
- xflame -root \n\
xmatrix -root \n\
GL: gflux -root \n\
- nerverot -root \n\
xrayswarm -root \n\
xspirograph -root \n\
- GL: circuit -root \n\
- GL: dangerball -root \n\
- GL: dnalogo -root \n\
GL: engine -root -titles \n\
GL: flipscreen3d -root \n\
GL: gltext -root \n\
GL: menger -root \n\
GL: molecule -root -no-labels -no-shells \n\
rotzoomer -root \n\
- speedmine -root \n\
GL: starwars -root \n\
GL: stonerview -root \n\
vermiculate -root \n\
whirlwindwarp -root \n\
zoom -root \n\
- anemone -root \n\
apollonian -root \n\
GL: boxed -root \n\
- GL: cubenetic -root \n\
GL: endgame -root \n\
euler2d -root \n\
fluidballs -root \n\
GL: flurry -root \n\
GL: glblur -root \n\
GL: glsnake -root \n\
halftone -root \n\
GL: juggler3d -root \n\
- GL: lavalite -root \n\
- polyominoes -root \n\
GL: queens -root \n\
- GL: sballs -root \n\
- GL: spheremonics -root \n\
- thornbird -root \n\
twang -root \n\
GL: antspotlight -root \n\
apple2 -root \n\
GL: atunnel -root \n\
barcode -root \n\
GL: blinkbox -root \n\
GL: blocktube -root \n\
- GL: bouncingcow -root \n\
- cloudlife -root \n\
GL: cubestorm -root \n\
eruption -root \n\
GL: flipflop -root -texture \n\
- GL: flyingtoasters -root \n\
fontglide -root \n\
GL: gleidescope -root \n\
- GL: glknots -root \n\
GL: glmatrix -root \n\
GL: glslideshow -root \n\
GL: hypertorus -root \n\
- GL: jigglypuff -root \n\
- metaballs -root \n\
GL: mirrorblob -root \n\
piecewise -root \n\
GL: polytopes -root \n\
pong -root \n\
- popsquares -root \n\
GL: surfaces -root \n\
xanalogtv -root \n\
abstractile -root \n\
anemotaxis -root \n\
- GL: antinspect -root \n\
fireworkx -root -maxlife 35 -shoot \n\
- fuzzyflakes -root \n\
interaggregate -root \n\
intermomentary -root \n\
memscroller -root \n\
GL: noof -root \n\
pacman -root \n\
GL: pinion -root \n\
GL: polyhedra -root -duration 27 \n\
- GL: providence -root \n\
substrate -root \n\
wormhole -root \n\
- GL: antmaze -root \n\
GL: boing -root \n\
boxfit -root \n\
GL: carousel -root -no-titles \n\
celtic -root \n\
GL: crackberg -root \n\
GL: cube21 -root \n\
- fiberlamp -root \n\
GL: fliptext -root \n\
GL: glhanoi -root \n\
GL: tangram -root \n\
- GL: timetunnel -root \n\
- GL: glschool -root \n\
GL: topblock -root \n\
GL: cubicgrid -root \n\
- cwaves -root \n\
GL: gears -root \n\
- GL: glcells -root \n\
GL: lockward -root \n\
m6502 -root \n\
GL: moebiusgears -root \n\
- GL: voronoi -root \n\
- GL: hypnowheel -root \n\
GL: klein -root \n\
- lcdscrub -root \n\
GL: photopile -root -no-titles \n\
- GL: skytentacles -root \n\
GL: rubikblocks -root \n\
GL: companioncube -root \n\
- GL: hilbert -root \n\
GL: tronbit -root \n\
GL: geodesic -root \n\
hexadrop -root \n\
GL: kaleidocycle -root \n\
- GL: quasicrystal -root \n\
- GL: unknownpleasures -root \n\
binaryring -root \n\
GL: cityflow -root \n\
GL: geodesicgears -root \n\
GL: projectiveplane -root \n\
- GL: romanboy -root \n\
- tessellimage -root \n\
- GL: winduprobot -root \n\
GL: splitflap -root \n\
GL: dymaxionmap -root \n\
GL: energystream -root \n\
- GL: hydrostat -root \n\
GL: raverhoop -root \n\
GL: unicrud -root \n\
GL: cubestack -root \n\
GL: cubetwist -root \n\
GL: discoball -root \n\
GL: hexstrut -root \n\
GL: splodesic -root \n\
GL: vigilance -root \n\
GL: esper -root \n\
GL: crumbler -root \n\
GL: maze3d -root \n\
GL: peepers -root \n\
GL: razzledazzle -root \n\
pointerPollTime: 0:00:05
pointerHysteresis: 10
windowCreationTimeout:0:00:30
initialDelay: 0:00:00
GetViewPortIsFullOfLies:False
procInterrupts: True
xinputExtensionDev: False
overlayStderr: True
authWarningSlack: 20