dots

Dotfiles for Linux
git clone https://git.ckiri.com/cmk/dots.git
Log | Files | Refs | README

commit a2f6416e123805f906de6130a6c42cf7b04b479a
parent b35af67f514665dc36187e72092444109d8d67fc
Author: Chris Kiriakou <chris@kiriakou.net>
Date:   Fri, 13 Nov 2026 14:44:16 +0100

Add qtile and general updates

Diffstat:
M.gitignore | 1+
Acwm/dot-cwmrc | 14++++++++++++++
Mfontconfig/dot-config/fontconfig/conf.d/99-inconsolata.conf | 2+-
Mfontconfig/dot-config/fontconfig/fonts.conf | 2+-
Mfoot/dot-config/foot/foot.ini | 4++--
Amimeapps/dot-config/mimeapps.list | 419+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aqtile/dot-config/qtile/config.py | 168+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ascripts/dot-local/bin/autostart.sh | 10++++++++++
Ascripts/dot-local/bin/bewerbung.sh | 79+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ascripts/dot-local/bin/restore_screen.sh | 3+++
Ascripts/dot-local/bin/screen_dimmer.sh | 3+++
Ascripts/dot-local/bin/screen_off.sh | 3+++
Ascripts/dot-local/bin/screen_on.sh | 3+++
Rscripts/dot-local/bin/switch-scheme.sh -> scripts/dot-local/bin/switch_scheme.sh | 0
Msway/dot-config/sway/config | 31+++++++++++++++----------------
Mtmux/dot-config/tmux/statusline.conf | 16++++++++--------
Mvim/dot-vimrc | 6+++---
Mvis/dot-config/vis/themes/min/init.lua | 130++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------
Mvis/dot-config/vis/visrc.lua | 2+-
Mzsh/dot-zshenv | 4++--
Mzsh/dot-zshrc | 1+
21 files changed, 830 insertions(+), 71 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -40,3 +40,4 @@ scripts/dot-local/bin/virtualenv scripts/dot-local/bin/wheel scripts/dot-local/bin/vibe* scripts/dot-local/bin/zotero +__pycache__ diff --git a/cwm/dot-cwmrc b/cwm/dot-cwmrc @@ -0,0 +1,14 @@ +fontname "Terminus" + +sticky yes + +bind-key MS-R restart +bind-key MS-P menu-exec +bind-key MS-Return "st" +bind-key M-C window-close +bind-key MS-Q quit +bind-key M-1 group-only-1 +bind-key M-2 group-only-2 +bind-key M-3 group-only-3 +bind-key M-4 group-only-4 +bind-key M-5 group-only-5 diff --git a/fontconfig/dot-config/fontconfig/conf.d/99-inconsolata.conf b/fontconfig/dot-config/fontconfig/conf.d/99-inconsolata.conf @@ -4,7 +4,7 @@ <alias binding="strong"> <family>monospace</family> <prefer> - <family>Terminus</family> + <family>Inconsolata</family> </prefer> </alias> </fontconfig> diff --git a/fontconfig/dot-config/fontconfig/fonts.conf b/fontconfig/dot-config/fontconfig/fonts.conf @@ -11,6 +11,6 @@ </alias> <alias binding="strong"> <family>monospace</family> - <prefer><family>Terminus</family></prefer> + <prefer><family>Inconsolata</family></prefer> </alias> </fontconfig> diff --git a/foot/dot-config/foot/foot.ini b/foot/dot-config/foot/foot.ini @@ -1,6 +1,6 @@ term=foot app-id=foot -font=monospace:size=12 +font=monospace:size=11 pad=0x0 center-when-maximized-and-fullscreen workers=2 @@ -41,7 +41,7 @@ regular3=cc9000 regular4=0000ff regular5=900090 regular6=009090 -regular7=cccccc +regular7=ffffff bright0=222222 bright1=cc0000 bright2=40cc40 diff --git a/mimeapps/dot-config/mimeapps.list b/mimeapps/dot-config/mimeapps.list @@ -0,0 +1,419 @@ +[Default Applications] +text/cache-manifest=vim.desktop; +text/calendar=vim.desktop; +text/css=vim.desktop; +text/csv-schema=vim.desktop; +text/csv=vim.desktop; +text/enriched=vim.desktop; +text/html=org.gnome.Epiphany.desktop +text/javascript=vim.desktop; +text/jscript.encode=vim.desktop; +text/julia=vim.desktop; +text/markdown=vim.desktop; +text/n3=vim.desktop; +text/org=vim.desktop; +text/plain=vim.desktop; +text/rfc822-headers=vim.desktop; +text/richtext=vim.desktop; +text/rust=vim.desktop; +text/scriptlet=vim.desktop; +text/sgml=vim.desktop; +text/slint=vim.desktop; +text/spdx=vim.desktop; +text/tab-separated-values=vim.desktop; +text/tcl=vim.desktop; +text/troff=vim.desktop; +text/turtle=vim.desktop; +text/vbscript.encode=vim.desktop; +text/vbscript=vim.desktop; +text/vcard=vim.desktop; +text/vnd.familysearch.gedcom=vim.desktop; +text/vnd.graphviz=vim.desktop; +text/vnd.plantuml=vim.desktop; +text/vnd.rn-realtext=vim.desktop; +text/vnd.senx.warpscript=vim.desktop; +text/vnd.sun.j2me.app-descriptor=vim.desktop; +text/vnd.trolltech.linguist=vim.desktop; +text/vnd.typst=vim.desktop; +text/vnd.wap.wmlscript=vim.desktop; +text/vnd.wap.wml=vim.desktop; +text/vtt=vim.desktop; +text/x-adasrc=vim.desktop; +text/x-asm=vim.desktop; +text/x-authors=vim.desktop; +text/x-awk=vim.desktop; +text/x-basic=vim.desktop; +text/x-bibtex=vim.desktop; +text/x-blueprint=vim.desktop; +text/x-changelog=vim.desktop; +text/x-c++hdr=vim.desktop; +text/x-chdr=vim.desktop; +text/x-cmake=vim.desktop; +text/x-cobol=vim.desktop; +text/x-common-lisp=vim.desktop; +text/x-component=vim.desktop; +text/x-copying=vim.desktop; +text/x-credits=vim.desktop; +text/x-crystal=vim.desktop; +text/x-csharp=vim.desktop; +text/x-csh=vim.desktop; +text/x-c++src=vim.desktop; +text/x-csrc=vim.desktop; +text/x-cython=vim.desktop; +text/x-dbus-service=vim.desktop; +text/x-dcl=vim.desktop; +text/x-devicetree-binary=vim.desktop; +text/x-devicetree-source=vim.desktop; +text/x-dockerfile=vim.desktop; +text/x-dsl=vim.desktop; +text/x-dsrc=vim.desktop; +text/x-eiffel=vim.desktop; +text/x-elixir=vim.desktop; +text/x-emacs-lisp=vim.desktop; +text/x-erlang=vim.desktop; +text/x-fortran=vim.desktop; +text/x-gawk=vim.desktop; +text/x-gcode-gx=vim.desktop; +text/x.gcode=vim.desktop; +text/x-genie=vim.desktop; +text/x-gettext-translation-template=vim.desktop; +text/x-gettext-translation=vim.desktop; +text/x-gherkin=vim.desktop; +text/x-google-video-pointer=vim.desktop; +text/x-go=vim.desktop; +text/x-gradle-kts=vim.desktop; +text/x-gradle=vim.desktop; +text/x-groovy=vim.desktop; +text/x-haskell=vim.desktop; +text/x-idl=vim.desktop; +text/x-iMelody=vim.desktop; +text/x-install=vim.desktop; +text/x-iptables=vim.desktop; +text/x-java=vim.desktop; +text/x-kaitai-struct=vim.desktop; +text/x-kotlin=vim.desktop; +text/x-ldif=vim.desktop; +text/x-lilypond=vim.desktop; +text/x-literate-haskell=vim.desktop; +text/x-log=vim.desktop; +text/x-lrc=vim.desktop; +text/x-lua=vim.desktop; +text/x-makefile=vim.desktop; +text/x-matlab=vim.desktop; +text/x-maven+xml=vim.desktop; +text/xmcd=vim.desktop; +text/x-meson=vim.desktop; +text/x-microdvd=vim.desktop; +text/x-moc=vim.desktop; +text/x-modelica=vim.desktop; +text/x-mof=vim.desktop; +text/x-mpl2=vim.desktop; +text/x-mpsub=vim.desktop; +text/x-mrml=vim.desktop; +text/x-ms-regedit=vim.desktop; +text/x-ms-visualstudio.project=vim.desktop; +text/x-ms-visualstudio.workspace=vim.desktop; +text/x-mup=vim.desktop; +text/x-nawk=vim.desktop; +text/x-nfo=vim.desktop; +text/x-nimscript=vim.desktop; +text/x-nim=vim.desktop; +text/x-nix=vim.desktop; +text/x-nsis=vim.desktop; +text/x-objc++src=vim.desktop; +text/x-objcsrc=vim.desktop; +text/x-ocaml=vim.desktop; +text/x-ocl=vim.desktop; +text/x-ooc=vim.desktop; +text/x-opencl-c++src=vim.desktop; +text/x-opencl-csrc=vim.desktop; +text/x-opml+xml=vim.desktop; +text/x-pascal=vim.desktop; +text/x-patch=vim.desktop; +text/x-python2=vim.desktop; +text/x-python3=vim.desktop; +text/x-python=vim.desktop; +text/x-qml=vim.desktop; +text/x-readme=vim.desktop; +text/x-reject=vim.desktop; +text/x-rpm-spec=vim.desktop; +text/x-rst=vim.desktop; +text/x-sagemath=vim.desktop; +text/x-sass=vim.desktop; +text/x-scala=vim.desktop; +text/x-scheme=vim.desktop; +text/x-scons=vim.desktop; +text/x-scss=vim.desktop; +text/x-sed=vim.desktop; +text/x-setext=vim.desktop; +text/x-shellscript=vim.desktop; +text/x-ssa=vim.desktop; +text/x-ssh-private-key=vim.desktop; +text/x-ssh-public-key=vim.desktop; +text/x-subviewer=vim.desktop; +text/x-svhdr=vim.desktop; +text/x-svsrc=vim.desktop; +text/x-systemd-unit=vim.desktop; +text/x-tex=vim.desktop; +text/x-todo-txt=vim.desktop; +text/x-troff-me=vim.desktop; +text/x-troff-mm=vim.desktop; +text/x-troff-ms=vim.desktop; +text/x-twig=vim.desktop; +text/x-txt2tags=vim.desktop; +text/x-uil=vim.desktop; +text/x-uri=vim.desktop; +text/x-uuencode=vim.desktop; +text/x-vala=vim.desktop; +text/x-vb=vim.desktop; +text/x-verilog=vim.desktop; +text/x-vhdl=vim.desktop; +text/x-vpy=vim.desktop; +text/x-xmi=vim.desktop; +text/x-xslfo=vim.desktop; +video/3gpp=mpv.desktop; +video/3gpp2=mpv.desktop; +video/annodex=mpv.desktop; +video/dv=mpv.desktop; +video/isivideo=mpv.desktop; +video/matroska=mpv.desktop; +video/matroska-3d=mpv.desktop; +video/mj2=mpv.desktop; +video/mp2t=mpv.desktop; +video/mp4=mpv.desktop; +video/mpeg=mpv.desktop; +video/ogg=mpv.desktop; +video/quicktime=mpv.desktop; +video/vnd.avi=mpv.desktop; +video/vnd.mpegurl=mpv.desktop; +video/vnd.radgamettools.bink=mpv.desktop; +video/vnd.radgamettools.smacker=mpv.desktop; +video/vnd.rn-realvideo=mpv.desktop; +video/vnd.vivo=mpv.desktop; +video/vnd.youtube.yt=mpv.desktop; +video/wavelet=mpv.desktop; +video/webm=mpv.desktop; +video/x-anim=mpv.desktop; +video/x-flic=mpv.desktop; +video/x-flv=mpv.desktop; +video/x-javafx=mpv.desktop; +video/x-mjpeg=mpv.desktop; +video/x-mng=mpv.desktop; +video/x-ms-wmv=mpv.desktop; +video/x-nsv=mpv.desktop; +video/x-ogm+ogg=mpv.desktop; +video/x-sgi-movie=mpv.desktop; +video/x-theora+ogg=mpv.desktop; +image/apng=imv.desktop; +image/astc=imv.desktop; +image/avci=imv.desktop; +image/avif=imv.desktop; +image/bmp=imv.desktop; +image/cgm=imv.desktop; +image/dpx=imv.desktop; +image/emf=imv.desktop; +image/g3fax=imv.desktop; +image/gif=imv.desktop; +image/heif=imv.desktop; +image/hej2k=imv.desktop; +image/ief=imv.desktop; +image/jp2=imv.desktop; +image/jpeg=imv.desktop; +image/jpm=imv.desktop; +image/jpx=imv.desktop; +image/jxl=imv.desktop; +image/jxr=imv.desktop; +image/ktx=imv.desktop; +image/ktx2=imv.desktop; +image/openraster=imv.desktop; +image/png=imv.desktop; +image/qoi=imv.desktop; +image/rle=imv.desktop; +image/svg+xml=imv.desktop; +image/svg+xml-compressed=imv.desktop; +image/tiff=imv.desktop; +image/vnd.adobe.photoshop=imv.desktop; +image/vnd.djvu=imv.desktop; +image/vnd.djvu+multipage=imv.desktop; +image/vnd.dwg=imv.desktop; +image/vnd.dxf=imv.desktop; +image/vnd.fpx=imv.desktop; +image/vnd.microsoft.icon=firefox.desktop; +image/vnd.ms-dds=imv.desktop; +image/vnd.ms-modi=imv.desktop; +image/vnd.radiance=imv.desktop; +image/vnd.rn-realpix=imv.desktop; +image/vnd.wap.wbmp=imv.desktop; +image/vnd.zbrush.pcx=imv.desktop; +image/webp=imv.desktop; +image/wmf=imv.desktop; +image/x-3ds=imv.desktop; +image/x-adobe-dng=imv.desktop; +image/x-applix-graphics=imv.desktop; +image/x-aseprite=imv.desktop; +image/x-bzeps=imv.desktop; +image/x-canon-cr2=imv.desktop; +image/x-canon-cr3=imv.desktop; +image/x-canon-crw=imv.desktop; +image/x-cmu-raster=imv.desktop; +image/x-compressed-xcf=imv.desktop; +image/x-dcraw=imv.desktop; +image/x-dib=imv.desktop; +image/x-eps=imv.desktop; +image/x-epson-erf=imv.desktop; +image/x-exr=imv.desktop; +image/x-farbfeld=imv.desktop; +image/x-fuji-raf=imv.desktop; +image/x-gimp-gbr=imv.desktop; +image/x-gimp-gih=imv.desktop; +image/x-gimp-pat=imv.desktop; +image/x-gtk-path-animation=imv.desktop; +image/x-gzeps=imv.desktop; +image/x-hasselblad-3fr=imv.desktop; +image/x-hasselblad-fff=imv.desktop; +image/x-icns=imv.desktop; +image/x-ilbm=imv.desktop; +image/x-jng=imv.desktop; +image/x-jp2-codestream=imv.desktop; +image/x-kiss-cel=imv.desktop; +image/x-kodak-dcr=imv.desktop; +image/x-kodak-k25=imv.desktop; +image/x-kodak-kdc=imv.desktop; +image/x-leaf-mos=imv.desktop; +image/x-lwo=imv.desktop; +image/x-lws=imv.desktop; +image/x-macpaint=imv.desktop; +image/x-mamiya-mef=imv.desktop; +image/x-minolta-mdc=imv.desktop; +image/x-minolta-mrw=imv.desktop; +image/x-msod=imv.desktop; +image/x-niff=imv.desktop; +image/x-nikon-nef=imv.desktop; +image/x-nikon-nrw=imv.desktop; +image/x-olympus-orf=imv.desktop; +image/x-panasonic-rw=imv.desktop; +image/x-panasonic-rw2=imv.desktop; +image/x-pentax-pef=imv.desktop; +image/x-pfm=imv.desktop; +image/x-phaseone-iiq=imv.desktop; +image/x-phm=imv.desktop; +image/x-photo-cd=imv.desktop; +image/x-pict=imv.desktop; +image/x-portable-anymap=imv.desktop; +image/x-portable-bitmap=imv.desktop; +image/x-portable-graymap=imv.desktop; +image/x-portable-pixmap=imv.desktop; +image/x-pxr=imv.desktop; +image/x-quicktime=imv.desktop; +image/x-rgb=imv.desktop; +image/x-samsung-srw=imv.desktop; +image/x-sct=imv.desktop; +image/x-sgi=imv.desktop; +image/x-sigma-x3f=imv.desktop; +image/x-sinar-sti=imv.desktop; +image/x-skencil=imv.desktop; +image/x-sony-arw=imv.desktop; +image/x-sony-sr2=imv.desktop; +image/x-sony-srf=imv.desktop; +image/x-sun-raster=imv.desktop; +image/x-tga=imv.desktop; +image/x-tiff-multipage=imv.desktop; +image/x-tim=imv.desktop; +image/x-win-bitmap=imv.desktop; +image/x-xbitmap=imv.desktop; +image/x-xcf=imv.desktop; +image/x-xcursor=imv.desktop; +image/x-xfig=imv.desktop; +image/x-xpixmap=imv.desktop; +image/x-xwindowdump=imv.desktop; +image/x.sf3=imv.desktop; +image/x.sf3-vector=imv.desktop; +audio/AMR=mpv.desktop; +audio/AMR-WB=mpv.desktop; +audio/aac=mpv.desktop; +audio/ac3=mpv.desktop; +audio/annodex=mpv.desktop; +audio/basic=mpv.desktop; +audio/flac=mpv.desktop; +audio/matroska=mpv.desktop; +audio/midi=mpv.desktop; +audio/mobile-xmf=mpv.desktop; +audio/mp2=mpv.desktop; +audio/mp4=mpv.desktop; +audio/mpeg=mpv.desktop; +audio/ogg=mpv.desktop; +audio/prs.sid=mpv.desktop; +audio/usac=mpv.desktop; +audio/vnd.audible.aax=mpv.desktop; +audio/vnd.audible.aaxc=mpv.desktop; +audio/vnd.dts=mpv.desktop; +audio/vnd.dts.hd=mpv.desktop; +audio/vnd.rn-realaudio=mpv.desktop; +audio/vnd.wave=mpv.desktop; +audio/webm=mpv.desktop; +audio/x-669=mpv.desktop; +audio/x-adpcm=mpv.desktop; +audio/x-aifc=mpv.desktop; +audio/x-aiff=mpv.desktop; +audio/x-amzxml=mpv.desktop; +audio/x-ape=mpv.desktop; +audio/x-dff=mpv.desktop; +audio/x-dsf=mpv.desktop; +audio/x-dsp=mpv.desktop; +audio/x-flac+ogg=mpv.desktop; +audio/x-gsm=mpv.desktop; +audio/x-iriver-pla=mpv.desktop; +audio/x-it=mpv.desktop; +audio/x-m4b=mpv.desktop; +audio/x-m4r=mpv.desktop; +audio/x-med=mpv.desktop; +audio/x-minipsf=mpv.desktop; +audio/x-mo3=mpv.desktop; +audio/x-mod=mpv.desktop; +audio/x-mpegurl=mpv.desktop; +audio/x-ms-asx=mpv.desktop; +audio/x-ms-wma=mpv.desktop; +audio/x-mtm=mpv.desktop; +audio/x-musepack=mpv.desktop; +audio/x-opus+ogg=mpv.desktop; +audio/x-pn-audibleaudio=mpv.desktop; +audio/x-psf=mpv.desktop; +audio/x-psflib=mpv.desktop; +audio/x-riff=mpv.desktop; +audio/x-s3m=mpv.desktop; +audio/x-scpls=mpv.desktop; +audio/x-speex=mpv.desktop; +audio/x-speex+ogg=mpv.desktop; +audio/x-stm=mpv.desktop; +audio/x-tak=mpv.desktop; +audio/x-tta=mpv.desktop; +audio/x-ult=mpv.desktop; +audio/x-voc=mpv.desktop; +audio/x-vorbis+ogg=mpv.desktop; +audio/x-wavpack=mpv.desktop; +audio/x-wavpack-correction=mpv.desktop; +audio/x-xi=mpv.desktop; +audio/x-xm=mpv.desktop; +audio/x-xmf=mpv.desktop; +audio/x.sf3=mpv.desktop; +message/rfc822=userapp-Thunderbird-8OCBV3.desktop; +x-scheme-handler/mailto=userapp-Thunderbird-8OCBV3.desktop; +x-scheme-handler/mid=userapp-Thunderbird-8OCBV3.desktop; +x-scheme-handler/net.thunderbird=userapp-Thunderbird-U4FAV3.desktop; +x-scheme-handler/http=org.gnome.Epiphany.desktop +x-scheme-handler/https=org.gnome.Epiphany.desktop +x-scheme-handler/chrome=firefox.desktop; +application/x-extension-htm=firefox.desktop; +application/x-extension-html=firefox.desktop; +application/x-extension-shtml=firefox.desktop; +application/xhtml+xml=org.gnome.Epiphany.desktop +application/x-extension-xhtml=firefox.desktop; +application/x-extension-xht=firefox.desktop; +application/pdf=org.pwmt.zathura.desktop; +application/postscript=org.pwmt.zathura.desktop; + +[Added Associations] +x-scheme-handler/http=org.gnome.Epiphany.desktop; +x-scheme-handler/https=org.gnome.Epiphany.desktop; +text/html=org.gnome.Epiphany.desktop; +application/xhtml+xml=org.gnome.Epiphany.desktop; diff --git a/qtile/dot-config/qtile/config.py b/qtile/dot-config/qtile/config.py @@ -0,0 +1,168 @@ +import os +import json +import subprocess +from collections.abc import Callable + +import libqtile.resources +from libqtile import bar, hook, layout, qtile, widget +from libqtile.backend.wayland import InputConfig +from libqtile.config import Click, Drag, Group, IdleTimer, Key, Match, Output, Screen +from libqtile.lazy import lazy + +userpath = os.path.expanduser('~') + +@hook.subscribe.startup_once +def autostart(): + subprocess.Popen( + [os.path.join(userpath, '.local/bin/autostart.sh')], + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, + start_new_session=True, + ) + +mod = "mod1" + +keys = [ + Key([mod], "h", lazy.layout.left(), desc="Move focus to left"), + Key([mod], "l", lazy.layout.right(), desc="Move focus to right"), + Key([mod], "j", lazy.layout.down(), desc="Move focus down"), + Key([mod], "k", lazy.layout.up(), desc="Move focus up"), + Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"), + Key([mod, "shift"], "h", lazy.layout.shuffle_left(), desc="Move window to the left"), + Key([mod, "shift"], "l", lazy.layout.shuffle_right(), desc="Move window to the right"), + Key([mod, "shift"], "j", lazy.layout.shuffle_down(), desc="Move window down"), + Key([mod, "shift"], "k", lazy.layout.shuffle_up(), desc="Move window up"), + Key([mod, "control"], "h", lazy.layout.grow_left(), desc="Grow window to the left"), + Key([mod, "control"], "l", lazy.layout.grow_right(), desc="Grow window to the right"), + Key([mod, "control"], "j", lazy.layout.grow_down(), desc="Grow window down"), + Key([mod, "control"], "k", lazy.layout.grow_up(), desc="Grow window up"), + Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"), + Key([mod, "shift"], "Return", lazy.spawn("/usr/bin/footclient"), desc="Launch terminal"), + # Toggle between different layouts as defined below + Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), + Key([mod, "shift"], "c", lazy.window.kill(), desc="Kill focused window"), + Key( + [mod], + "f", + lazy.window.toggle_fullscreen(), + desc="Toggle fullscreen on the focused window", + ), + Key([mod], "t", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"), + Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"), + Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"), + Key([mod], "p", lazy.spawn("wmenu-run"), desc="Spawn a command using a prompt widget"), +] + +# Add key bindings to switch VTs in Wayland. +# We can't check qtile.core.name in default config as it is loaded before qtile is started +# We therefore defer the check until the key binding is run by using .when(func=...) +for vt in range(1, 8): + keys.append( + Key( + ["control", "mod4"], + f"f{vt}", + lazy.core.change_vt(vt).when(func=lambda: qtile.core.name == "wayland"), + desc=f"Switch to VT{vt}", + ) + ) + +groups = [Group(i) for i in "123456789"] + +for i in groups: + keys.extend( + [ + # mod + group number = switch to group + Key( + [mod], + i.name, + lazy.group[i.name].toscreen(), + desc=f"Switch to group {i.name}", + ), + # mod + shift + group number = switch to & move focused window to group + Key( + [mod, "shift"], + i.name, + lazy.window.togroup(i.name, switch_group=True), + desc=f"Switch to & move focused window to group {i.name}", + ), + # Or, use below if you prefer not to switch to that group. + # # mod + shift + group number = move focused window to group + # Key([mod, "shift"], i.name, lazy.window.togroup(i.name), + # desc="move focused window to group {}".format(i.name)), + ] + ) + +layouts = [ + layout.Columns(border_on_single=True, border_normal="#ffffff", border_focus="#000000", border_width=2, margin=5, num_columns=2), + layout.Floating(border_focus="#000000", border_normal="#ffffff", border_width=2), + layout.Max(border_focus="#000000", border_normal="#ffffff", border_width=2), +] + +screens = [ + Screen( + background="#777777", # solid color for the whole screen + ), +] + +mouse = [ + Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), + Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), + Click([mod], "Button2", lazy.window.bring_to_front()), +] + +dgroups_key_binder = None +dgroups_app_rules = [] # type: list +follow_mouse_focus = True +bring_front_click = False +floats_kept_above = True +cursor_warp = False +floating_layout = layout.Floating( + float_rules=[ + # Run the utility of `xprop` to see the wm class and name of an X client. + *layout.Floating.default_float_rules, + Match(wm_class="confirmreset"), # gitk + Match(wm_class="makebranch"), # gitk + Match(wm_class="maketag"), # gitk + Match(wm_class="ssh-askpass"), # ssh-askpass + Match(title="branchdialog"), # gitk + Match(title="pinentry"), # GPG key password entry + Match(wm_class="ffplay", title="/dev/video0"), + ], + border_focus="#000000", + border_normal="#ffffff", + border_width=2, +) + +auto_fullscreen = True +focus_on_window_activation = "smart" +focus_previous_on_window_remove = False +reconfigure_screens = True +screen_change_debounce_timeout = 1 +auto_minimize = True + +wl_input_rules = { + "type:pointer": InputConfig(pointer_accel=0, accel_profile='flat'), + "type:keyboard": InputConfig(kb_repeat_delay=300, kb_repeat_rate=45), +} + +wl_xcursor_theme = None +wl_xcursor_size = 24 + +idle_timers = [ + IdleTimer( + 1200, + action=lazy.spawn(os.path.join(userpath, '.local/bin/screen_off.sh')), + resume=lazy.spawn(os.path.join(userpath, '.local/bin/screen_on.sh')) + ) +] +idle_inhibitors = [] # type: list + +# XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this +# string besides java UI toolkits; you can see several discussions on the +# mailing lists, GitHub issues, and other WM documentation that suggest setting +# this string if your java app doesn't work correctly. We may as well just lie +# and say that we're a working one by default. +# +# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in +# java that happens to be on java's whitelist. +wmname = "LG3D" diff --git a/scripts/dot-local/bin/autostart.sh b/scripts/dot-local/bin/autostart.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Auotstart applications for wayland compositors + +dbus-update-activation-environment \ + --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP >/dev/null 2>&1 +wlr-randr --output HDMI-A-1 --scale 1.5 >/dev/null 2>&1 +foot --server >/dev/null 2>&1 & +gammastep -l 49.0:9.2 -t 5700:3600 >/dev/null 2>&1 & +~/.local/bin/switch_scheme.sh --light >/dev/null 2>&1 diff --git a/scripts/dot-local/bin/bewerbung.sh b/scripts/dot-local/bin/bewerbung.sh @@ -0,0 +1,79 @@ +#/bin/sh +# +# Script to generate a Bewerbungsmappe -- saving a lot of manual labor +# Run `bewerbung ats` to generate ats compliant (fully maschine-parseable) documents + +POSTFIX="Chris_Kiriakou" +CV_LOCATION="${HOME}/proj/cv" +CERT_LOCATION="${HOME}/docs/certs" +LETTER_LOCATION="${HOME}/proj/letter" +BASENAME=$(basename "$PWD") +WORKDIR=$(pwd) + +# Generate `lebenslauf.tex` template and link it to the `content` directory of +# the cv project. This is just the technical skill section. Only Add add +# technical skills that are required/related. +test ! -f ./lebenslauf.tex && cat << 'EOF' > ./lebenslauf.tex +\section*{Technische Fähigkeiten} + +\makebox[3.5cm][l]{Programmiersprachen:} Python, C, POSIX-Shell, Go, SQL \\ +\makebox[3.5cm][l]{Technologien:} Git, Make, GDB, Jenkins, Ansible, GNU-Coreutils, SSH, Rsync, Docker, KVM/QEMU \\ +\makebox[3.5cm][l]{Unternehmenssysteme:} SAP Datasphere, SAP Analytics Cloud, Microsoft Office \\ +\makebox[3.5cm][l]{Webtechnologien:} Nginx, HTML, CSS, Hugo \\ +\makebox[3.5cm][l]{Projektmanagement:} Jira, Confluence \\ +EOF + +test ! -f ${CV_LOCATION}/content/${BASENAME}.tex && ln -s ${WORKDIR}/lebenslauf.tex ${CV_LOCATION}/content/${BASENAME}.tex + +# Generate `anschrieben.tex` template and link it to the `content` directory of +# the letter project. +test ! -f ./anschreiben.tex && cat << 'EOF' > ./anschreiben.tex +\setkomavar{subject}{Betreff des Anschreibens} + +% Empfängeradressdaten +\begin{letter}{ + Vorname Nachname \\ + Unternehmen \\ + Abteilung \\ + Straße Hausnummer \\ + Postleitzahl Stadt +} + +\opening{Sehr geehrte Damen und Herren,} + +Inhalt des Anschreibens. + +Mit freundlichen Grüßen \\ +EOF + +test ! -f ${LETTER_LOCATION}/content/${BASENAME}.tex && ln -s ${WORKDIR}/anschreiben.tex ${LETTER_LOCATION}/content/${BASENAME}.tex + +# Generate the CV +cd $CV_LOCATION + +make $1 doc=${BASENAME} +cp ./build/${BASENAME}.pdf ${WORKDIR}/Lebenslauf_${POSTFIX}.pdf + +# Generate a single file containing all certificates +cd $CERT_LOCATION + +# TODO: Add SATA Bescheinigung/Arbeitszeugnis +pdftk \ + hhn/bsc_de.pdf \ + hhn/general_studies.pdf \ + mb/internship.pdf \ + valeo/working_student.pdf \ + bsbb/1bkfh.pdf \ + valeo/testing_specialist.pdf \ + ihk/apprenticeship_exam.pdf \ + valeo/apprentisceship.pdf \ + css/berufsschule.pdf \ + output ${WORKDIR}/Zeugnisse_${POSTFIX}.pdf + +# Generate the cover letter +cd $LETTER_LOCATION + +make $1 doc=${BASENAME} +cp ./build/${BASENAME}.pdf ${WORKDIR}/Anschreiben_${POSTFIX}.pdf + +cd $WORKDIR diff --git a/scripts/dot-local/bin/restore_screen.sh b/scripts/dot-local/bin/restore_screen.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +brightnessctl --restore diff --git a/scripts/dot-local/bin/screen_dimmer.sh b/scripts/dot-local/bin/screen_dimmer.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +brightnessctl --save && brightnessctl set 1% diff --git a/scripts/dot-local/bin/screen_off.sh b/scripts/dot-local/bin/screen_off.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +wlopm --off \* diff --git a/scripts/dot-local/bin/screen_on.sh b/scripts/dot-local/bin/screen_on.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +wlopm --on \* diff --git a/scripts/dot-local/bin/switch-scheme.sh b/scripts/dot-local/bin/switch_scheme.sh diff --git a/sway/dot-config/sway/config b/sway/dot-config/sway/config @@ -12,20 +12,23 @@ set $opm_off 'swaymsg "output * power off"' set $opm_on 'swaymsg "output * power on"' # Options ###################################################################### floating_modifier $mod -font Monospace 9 +font Monospace 10 titlebar_padding 2 2 +gaps inner 12 +gaps outer 4 # Autostart apps ############################################################### exec swayidle -w \ - timeout 900 $opm_dim resume $opm_restore \ + timeout 900 $ope_dim resume $opm_restore \ timeout 1200 'swaylock -f' \ timeout 1260 $opm_off resume $opm_on \ + timeout 2700 'systemctl suspend-then-hibernate' \ before-sleep 'swaylock -f' >/dev/null 2>&1 exec gammastep -l 49.0:9.2 -t 5700:3600 >/dev/null 2>&1 exec foot --server >/dev/null 2>&1 -exec ~/.local/bin/switch-scheme.sh --dark >/dev/null 2>&1 -exec swaybg --color '#777777' >/dev/null 2>&1 +exec ~/.local/bin/switch_scheme.sh --light >/dev/null 2>&1 exec dbus-update-activation-environment \ --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP >/dev/null 2>&1 +exec swaybg -c "#777777" >/dev/null 2>&1 exec_always swaymsg focus_follows_mouse no >/dev/null 2>&1 # Keybindings ################################################################## bindsym $mod+Shift+Return exec $TERMINAL @@ -42,7 +45,7 @@ bindsym F9+Shift exec gromit-mpx --clear bindsym Print exec ~/.local/bin/wayshot.sh bindsym $wmod+Shift+s exec ~/.local/bin/wayshot.sh bindsym $wmod+s exec ~/.local/bin/websearch.sh -bindsym $mod+Shift+s exec ~/.local/bin/switch-scheme.sh --toggle +bindsym $mod+Shift+s exec ~/.local/bin/switch_scheme.sh --toggle bindsym $wmod+w exec ~/.local/bin/webcam.sh bindsym XF86MonBrightnessUp exec brightnessctl --exponent=5 set +5% bindsym XF86MonBrightnessDown exec brightnessctl --exponent=5 set 5%- @@ -92,30 +95,26 @@ bindsym $mod+minus scratchpad show bindsym $mod+Shift+o sticky toggle bindsym $mod+i inhibit_idle visible bindsym $mod+Shift+i inhibit_idle none -bindsym $mod+r mode "resize" -mode "resize" { - bindsym $left resize shrink width 10px - bindsym $down resize grow height 10px - bindsym $up resize shrink height 10px - bindsym $right resize grow width 10px - bindsym Return mode "default" - bindsym Escape mode "default" -} +bindsym $mod+Ctrl+$up resize shrink down 50px +bindsym $mod+Ctrl+$down resize grow down 50px +bindsym $mod+Ctrl+$right resize grow right 50px +bindsym $mod+Ctrl+$left resize shrink right 50px # Window rules ################################################################# for_window [instance="pinentry-gtk"] floating enable for_window [app_id="org.pulseaudio.pavucontrol"] floating enable for_window [app_id="thunderbird" title="Erinnerung"] floating enable for_window [app_id="xdg-desktop-portal-gtk"] floating enable for_window [app_id="nvim-lua-make-external" title="Make"] floating enable, move position 10 10 -for_window [title="/dev/video*"] floating enable, resize set 640px height 360px, move position 10 10 +for_window [title="/dev/video*"] floating enable, resize set 720px height 480px, move position 10 10 no_focus [title="Make"] # Workspace configuration ###################################################### #workspace 11 output DP-1 # Statusbar #################################################################### bindsym $mod+Comma bar mode toggle bar { + mode hide position bottom - font Monospace 9 + font Monospace 10 height 0 status_command slstatus -s colors { diff --git a/tmux/dot-config/tmux/statusline.conf b/tmux/dot-config/tmux/statusline.conf @@ -1,20 +1,20 @@ -set -g mode-style "fg=black,bg=grey" +set -g mode-style "fg=brightwhite,bg=black" set -g message-style "fg=brightwhite,bg=black,fill=black" set -g message-command-style "fg=brightwhite,bg=black,fill=black" set -g prompt-cursor-color "brightwhite" -set -g pane-border-style "fg=white" -set -g pane-active-border-style "fg=#4c7899" +set -g pane-border-style "fg=black" +set -g pane-active-border-style "fg=black" set -g status "on" set -g status-interval 1 set -g status-justify "left" -set -g status-style "fg=black,bg=white" +set -g status-style "fg=brightwhite,bg=black" -set -g status-bg "white" +set -g status-bg "black" set -g status-left-length "100" set -g status-right-length "100" @@ -25,9 +25,9 @@ set -g status-right-style NONE set -g status-left "[#S] " set -g status-right "#{pane_current_path}" -setw -g window-status-activity-style "underscore,fg=black,bg=white" +setw -g window-status-activity-style "underscore,fg=brightwhite,bg=black" setw -g window-status-separator " " -setw -g window-status-style "NONE,fg=black,bg=white" -setw -g window-status-current-style "NONE,fg=black,bg=white" +setw -g window-status-style "NONE,fg=brightwhite,bg=black" +setw -g window-status-current-style "NONE,fg=brightwhite,bg=black" setw -g window-status-format '#I:#W-' setw -g window-status-current-format '#I:#W*' diff --git a/vim/dot-vimrc b/vim/dot-vimrc @@ -59,11 +59,11 @@ nnoremap <leader>B :bprev<CR> " jump to a specific buffer nnoremap <leader>bl :buffers<CR>:b " go to Tag (ctags) -nnoremap <leader>t <C-]> +nnoremap gt <C-]> " jump back (ctags) -nnoremap <leader>T <C-t> +nnoremap gT <C-t> " taglist (ctags) -nnoremap <leader>tl <tselect<CR> +nnoremap <leader>tl :tselect<CR> nnoremap j gj nnoremap k gk diff --git a/vis/dot-config/vis/themes/min/init.lua b/vis/dot-config/vis/themes/min/init.lua @@ -1,41 +1,97 @@ -- A minimal editor color scheme local lexers = vis.lexers -lexers.STYLE_DEFAULT = 'back:#ffffff,fore:black' -lexers.STYLE_NOTHING = 'back:white' -lexers.STYLE_ATTRIBUTE = 'fore:black' -lexers.STYLE_CLASS = 'fore:black' -lexers.STYLE_COMMENT = 'fore:#666666' -lexers.STYLE_CONSTANT = 'fore:black' -lexers.STYLE_DEFINITION = 'fore:black' -lexers.STYLE_ERROR = 'fore:white,back:red' -lexers.STYLE_DELETION = 'fore:black' -lexers.STYLE_FUNCTION = 'fore:black' -lexers.STYLE_KEYWORD = 'fore:black' -lexers.STYLE_LABEL = 'fore:black' -lexers.STYLE_NUMBER = 'fore:black' -lexers.STYLE_OPERATOR = 'fore:black' -lexers.STYLE_REGEX = 'fore:black' -lexers.STYLE_STRING = 'fore:blue' -lexers.STYLE_PREPROCESSOR = 'fore:black' -lexers.STYLE_TAG = 'fore:black' -lexers.STYLE_TAG_OVERDUE = 'fore:black' -lexers.STYLE_DELETION = 'fore:black' -lexers.STYLE_TYPE = 'fore:black' -lexers.STYLE_VARIABLE = 'fore:black' -lexers.STYLE_WHITESPACE = '' -lexers.STYLE_EMBEDDED = 'fore:black' -lexers.STYLE_IDENTIFIER = 'fore:black' +vis:option_register( + "min_dark", + "bool", + function(value, toggle) + vis.min_dark = toggle and not vis.min_dark or value + vis:command('set theme min') + return true + end, + "min_dark toggles the min theme dark mode" +) -lexers.STYLE_LINENUMBER = 'back:#cccccc,fore:black' -lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER -lexers.STYLE_CURSOR = 'back:white,fore:black' -lexers.STYLE_CURSOR_PRIMARY = 'back:#222222,fore:#ffffff' -lexers.STYLE_CURSOR_LINE = 'underlined' -lexers.STYLE_COLOR_COLUMN = 'back:#f2f2f2' -lexers.STYLE_SELECTION = 'back:#dddddd' -lexers.STYLE_STATUS = 'back:black,fore:#ffffff' -lexers.STYLE_STATUS_FOCUSED = 'back:black,fore:#ffffff,bold' -lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT -lexers.STYLE_INFO = 'fore:default,back:default,bold' -lexers.STYLE_EOF = '' +if vis.min_dark == nil +then + vis_min_dark = true +end + +if vis.min_dark +then + lexers.STYLE_DEFAULT = 'back:black,fore:white' + lexers.STYLE_NOTHING = 'back:black' + lexers.STYLE_ATTRIBUTE = 'fore:white' + lexers.STYLE_CLASS = 'fore:white' + lexers.STYLE_COMMENT = 'fore:#aaaaaa' + lexers.STYLE_CONSTANT = 'fore:white' + lexers.STYLE_DEFINITION = 'fore:white' + lexers.STYLE_ERROR = 'fore:white,back:red' + lexers.STYLE_DELETION = 'fore:white' + lexers.STYLE_FUNCTION = 'fore:white' + lexers.STYLE_KEYWORD = 'fore:white' + lexers.STYLE_LABEL = 'fore:white' + lexers.STYLE_NUMBER = 'fore:white' + lexers.STYLE_OPERATOR = 'fore:white' + lexers.STYLE_REGEX = 'fore:white' + lexers.STYLE_STRING = 'fore:blue' + lexers.STYLE_PREPROCESSOR = 'fore:white' + lexers.STYLE_TAG = 'fore:white' + lexers.STYLE_TAG_OVERDUE = 'fore:white' + lexers.STYLE_DELETION = 'fore:white' + lexers.STYLE_TYPE = 'fore:white' + lexers.STYLE_VARIABLE = 'fore:white' + lexers.STYLE_WHITESPACE = '' + lexers.STYLE_EMBEDDED = 'fore:white' + lexers.STYLE_IDENTIFIER = 'fore:white' + lexers.STYLE_LINENUMBER = 'back:#333333,fore:white' + lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER + lexers.STYLE_CURSOR = 'back:black,fore:white' + lexers.STYLE_CURSOR_PRIMARY = 'back:white,fore:black' + lexers.STYLE_CURSOR_LINE = 'underlined' + lexers.STYLE_COLOR_COLUMN = 'back:#121212' + lexers.STYLE_SELECTION = 'back:#222222' + lexers.STYLE_STATUS = 'back:white,fore:#black' + lexers.STYLE_STATUS_FOCUSED = 'back:white,fore:black,bold' + lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT + lexers.STYLE_INFO = 'fore:default,back:default,bold' + lexers.STYLE_EOF = '' +else + lexers.STYLE_DEFAULT = 'back:#ffffff,fore:black' + lexers.STYLE_NOTHING = 'back:white' + lexers.STYLE_ATTRIBUTE = 'fore:black' + lexers.STYLE_CLASS = 'fore:black' + lexers.STYLE_COMMENT = 'fore:#666666' + lexers.STYLE_CONSTANT = 'fore:black' + lexers.STYLE_DEFINITION = 'fore:black' + lexers.STYLE_ERROR = 'fore:white,back:red' + lexers.STYLE_DELETION = 'fore:black' + lexers.STYLE_FUNCTION = 'fore:black' + lexers.STYLE_KEYWORD = 'fore:black' + lexers.STYLE_LABEL = 'fore:black' + lexers.STYLE_NUMBER = 'fore:black' + lexers.STYLE_OPERATOR = 'fore:black' + lexers.STYLE_REGEX = 'fore:black' + lexers.STYLE_STRING = 'fore:blue' + lexers.STYLE_PREPROCESSOR = 'fore:black' + lexers.STYLE_TAG = 'fore:black' + lexers.STYLE_TAG_OVERDUE = 'fore:black' + lexers.STYLE_DELETION = 'fore:black' + lexers.STYLE_TYPE = 'fore:black' + lexers.STYLE_VARIABLE = 'fore:black' + lexers.STYLE_WHITESPACE = '' + lexers.STYLE_EMBEDDED = 'fore:black' + lexers.STYLE_IDENTIFIER = 'fore:black' + lexers.STYLE_LINENUMBER = 'back:#cccccc,fore:black' + lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER + lexers.STYLE_CURSOR = 'back:white,fore:black' + lexers.STYLE_CURSOR_PRIMARY = 'back:#222222,fore:#ffffff' + lexers.STYLE_CURSOR_LINE = 'underlined' + lexers.STYLE_COLOR_COLUMN = 'back:#f2f2f2' + lexers.STYLE_SELECTION = 'back:#dddddd' + lexers.STYLE_STATUS = 'back:black,fore:#ffffff' + lexers.STYLE_STATUS_FOCUSED = 'back:black,fore:#ffffff,bold' + lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT + lexers.STYLE_INFO = 'fore:default,back:default,bold' + lexers.STYLE_EOF = '' +end diff --git a/vis/dot-config/vis/visrc.lua b/vis/dot-config/vis/visrc.lua @@ -22,5 +22,5 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win) vis:command('set tabwidth 8') end - vis:command('set theme min') + --vis:command('set theme min') end) diff --git a/zsh/dot-zshenv b/zsh/dot-zshenv @@ -5,7 +5,7 @@ export XDG_CACHE_HOME="$HOME/.cache" export XKB_DEFAULT_LAYOUT="de" export EDITOR="/usr/bin/vim" -export BROWSER="/usr/bin/firefox" +export BROWSER="/usr/bin/luakit" export TERMINAL="/usr/bin/footclient" export CLIPBOARD="/usr/bin/wl-copy -n" @@ -13,7 +13,7 @@ export HISTFILE="${XDG_STATE_HOME}/zsh/history" export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc" export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority" -export XDG_CURRENT_DESKTOP="sway" +export XDG_CURRENT_DESKTOP="dwl" # Dev-Tools export CARGO_HOME="${XDG_DATA_HOME}/cargo" diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc @@ -54,4 +54,5 @@ bindkey -M vicmd '/' history-incremental-search-backward # Aliases alias nano="${EDITOR}" +alias nvim="${EDITOR}" alias open="xdg-open"