~piotr-machura/dotfiles

cd990ef2e907f8ed50e4f5264b21ebb043eee1e1 — Piotr Machura 27 days ago 2874c39
Add markup to kakoune messages
6 files changed, 10 insertions(+), 26 deletions(-)

M .config/kak/kakrc
M .config/qtile/config.py
M .config/sk.bash
D .local/share/applications/nvim.desktop
M .local/share/applications/rstudio.desktop
M .profile
M .config/kak/kakrc => .config/kak/kakrc +2 -2
@@ 80,12 80,12 @@ define-command skim -docstring 'Choose a file and open it in new client' %{

define-command xclip-yank -docstring 'Yank selection into system clipboard' %{
    execute-keys -draft '<a-|> xclip -in -selection clipboard<ret>'
    echo 'yanked selection into system clipboard'
    echo -markup '{PrimarySelection}yanked selection into system clipboard'
}

define-command xclip-paste -docstring 'Paste from system clipboard' %{
    execute-keys -draft '! xclip -out -selection clipboard<ret>'
    echo 'pasted from system clipboard'
    echo -markup '{PrimarySelection}pasted from system clipboard'
}

declare-option -docstring 'Used by format-width' int fmtwidth 88

M .config/qtile/config.py => .config/qtile/config.py +1 -0
@@ 4,6 4,7 @@
"""

# pylint: disable=C0103,C0115,C0116,W0201

from libqtile import bar, hook, layout, qtile, widget
from libqtile.config import Click, Drag, Group, Key, Match, Screen
from libqtile.lazy import lazy

M .config/sk.bash => .config/sk.bash +0 -9
@@ 1,15 1,6 @@
# -------------
# SKIM COMMANDS
# -------------
export SKIM_DEFAULT_COMMAND="rg --files"

export SKIM_COLORS='hl:6,hl+:6,fg:-1,fg+:4,bg:-1,bg+:,matched_bg:0,current_match_bg:0'
export SKIM_COLORS="$SKIM_COLORS,header:2,info:0,query:7,pointer:3,marker:1,prompt:3,cursor:6,spinner:0"

export SKIM_DEFAULT_OPTIONS="--ansi --reverse --no-hscroll --height 50%"
export SKIM_DEFAULT_OPTIONS="$SKIM_DEFAULT_OPTIONS --prompt ' ' --cmd-prompt ' '"
export SKIM_DEFAULT_OPTIONS="$SKIM_DEFAULT_OPTIONS --color '$SKIM_COLORS'"

skcd() {
    local d query
    [ -n "$@" ] && query="--query=$@"

D .local/share/applications/nvim.desktop => .local/share/applications/nvim.desktop +0 -13
@@ 1,13 0,0 @@
[Desktop Entry]
Name=Neovim
GenericName=Text Editor
Comment=Modern vi-style editor
Icon=nvim
TryExec=nvim
Exec=nvim %f
Type=Application
StartupNotify=true
Categories=Development;TextEditor;
Keywords=Text;editor;
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Hidden=true

M .local/share/applications/rstudio.desktop => .local/share/applications/rstudio.desktop +1 -1
@@ 1,5 1,5 @@
[Desktop Entry]
Exec=/usr/bin/rstudio-bin --no-sandbox %F
Exec=/usr/bin/rstudio-bin --no-sandbox %f
Icon=rstudio
Type=Application
Terminal=false

M .profile => .profile +6 -1
@@ 85,7 85,12 @@ export SAGE_BANNER='no'
export _JAVA_OPTIONS="$_JAVA_OPTIONS -Dawt.useSystemAAFontSettings=lcd"

# Skim settings
source "$XDG_CONFIG_HOME/sk.bash"
export SKIM_DEFAULT_COMMAND="fd -H"
SKIM_COLORS='hl:6,hl+:6,fg:-1,fg+:4,bg:-1,bg+:,matched_bg:0,current_match_bg:0,pointer:3'
SKIM_COLORS="$SKIM_COLORS,header:2,info:0,query:7,marker:1,prompt:3,cursor:6,spinner:0"
export SKIM_DEFAULT_OPTIONS="--ansi --reverse --no-hscroll --height 50%"
export SKIM_DEFAULT_OPTIONS="$SKIM_DEFAULT_OPTIONS --prompt ' ' --cmd-prompt ' '"
export SKIM_DEFAULT_OPTIONS="$SKIM_DEFAULT_OPTIONS --color '$SKIM_COLORS'"

# Mark the profile as loaded
export LOADED_DOTPROFILE=1