Compare commits

...
17 Commits
11 changed files with 672 additions and 57 deletions

No files matched your search

@@ -0,0 +1,175 @@
# Five alt colors dark theme
evaluate-commands %sh{
bg="rgb:1c1120" # oklch(0.2 0.0333 317.4)
bgmenu="rgb:021921" # oklch(0.2 0.0333 222.6)
fg="rgb:7a9098" # oklch(0.6382 0.0284 222.6)
gray="rgb:938797" # oklch(0.6382 0.0284 317.4)
red1="rgb:b4745b" # oklch(0.6206 0.0886 42.6)
red2="rgb:9e5f46" # oklch(0.55 0.09 42.6)
red3="rgb:7b452e" # oklch(0.45 0.0826 42.6)
yellow1="rgb:9d8343" # oklch(0.6206 0.0886 87.6)
yellow2="rgb:886e2c" # oklch(0.55 0.09 87.6)
yellow3="rgb:695214" # oklch(0.45 0.0826 87.6)
green1="rgb:729259" # oklch(0.6206 0.0886 132.6)
green2="rgb:5d7d44" # oklch(0.55 0.09 132.6)
green3="rgb:435f2d" # oklch(0.45 0.0826 132.6)
blue1="rgb:4092ad" # oklch(0.6206 0.0886 222.6)
blue2="rgb:257d98" # oklch(0.55 0.09 222.6)
blue3="rgb:035f76" # oklch(0.45 0.0826 222.6)
violet1="rgb:9c75aa" # oklch(0.6206 0.0886 317.4)
violet2="rgb:876094" # oklch(0.55 0.09 317.4)
violet3="rgb:684673" # oklch(0.45 0.0826 317.4)
echo "
## CODE
set-face global value $violet2
set-face global type $green2
set-face global variable $yellow3
set-face global module $green1
set-face global function $blue2
set-face global string $yellow2
set-face global keyword $violet3
set-face global operator $red2
set-face global attribute $green3
set-face global comment $gray
set-face global documentation $gray
set-face global meta $blue3
set-face global builtin $violet1
## MARKUP
set-face global title $red3
set-face global header $violet3
set-face global mono $yellow2
set-face global block $blue3
set-face global link $blue2
set-face global bullet $red2
set-face global list $red2
## BUILTIN
set-face global Default $fg,$bg
set-face global PrimarySelection $bg,$green3
set-face global SecondarySelection $bg,$blue3
set-face global PrimaryCursor $bg,$green1
set-face global SecondaryCursor $bg,$blue1
set-face global PrimaryCursorEol $bg,$red1
set-face global SecondaryCursorEol $bg,$yellow1
set-face global MenuForeground $bgmenu,$yellow1
set-face global MenuBackground $fg,$bgmenu
set-face global MenuInfo $green2
set-face global Information $fg,$bgmenu
set-face global InlineInformation $blue2,$bgmenu
set-face global Error $red2
set-face global DiagnosticError default,default,$red2+c
set-face global DiagnosticWarning default,default,$yellow2+c
set-face global DiagnosticInfo default,default,$green2+c
set-face global DiagnosticHint default,default,$blue2+c
set-face global StatusLine $fg,$bgmenu
set-face global StatusLineMode $green2
set-face global StatusLineInfo $yellow2
set-face global StatusLineValue $blue2
set-face global StatusCursor $bg,$green1
set-face global Prompt $green2
set-face global BufferPadding $bg,$bg
# Built-in highlighter faces
set-face global LineNumbers $gray
set-face global LineNumberCursor $green3
set-face global LineNumbersWrapped $bg,$bg
set-face global MatchingChar $blue1
set-face global Whitespace $gray
set-face global WhitespaceIndent $gray
set-face global WrapMarker $yellow1
# PLUGINS
# kak-lsp
set-face global InfoDefault default
set-face global InfoBlock $green2
set-face global InfoBlockQuote $yellow2
set-face global InfoBullet $red2
set-face global InfoHeader $red3
set-face global InfoLink $blue2
set-face global InfoLinkMono $blue3
set-face global InfoMono $blue2
set-face global InfoRule $yellow2
set-face global InfoDiagnosticError $red2
set-face global InfoDiagnosticHint $blue2
set-face global InfoDiagnosticInformation $green2
set-face global InfoDiagnosticWarning $yellow2
set-face global LineFlagError $red2
set-face global LineFlagHint $blue2
set-face global LineFlagInfo $green2
set-face global LineFlagWarning $yellow2
set-face global InlayDiagnosticError $red2
set-face global InlayDiagnosticHint $blue2
set-face global InlayDiagnosticInfo $green2
set-face global InlayDiagnosticWarning $yellow2
set-face global SnippetsNextPlaceholders $bg,$green2
set-face global SnippetsOtherPlaceholders $bg,$yellow2
# kak-tree-sitter
set-face global ts_attribute $green3
set-face global ts_comment $gray
set-face global ts_constant $violet2
set-face global ts_conceal $red1
set-face global ts_constructor $red1
set-face global ts_diff_plus $green2
set-face global ts_diff_minus $red2
set-face global ts_diff_delta $blue2
set-face global ts_error $red2
set-face global ts_function $blue2
set-face global ts_hint $green2
set-face global ts_info $blue2
set-face global ts_keyword $violet3
set-face global ts_label $red1
set-face global ts_bold $green2+b
set-face global ts_markup_heading $red3
set-face global ts_markup_italic $green2+i
set-face global ts_markup_list_checked $red2
set-face global ts_markup_list_numbered $red2
set-face global ts_markup_list_unchecked $red2
set-face global ts_markup_list_unnumbered $red2
set-face global ts_markup_link_label $green2
set-face global ts_markup_link_url $blue2
set-face global ts_markup_link_uri $blue2
set-face global ts_markup_link_text $red1
set-face global ts_markup_quote $blue3
set-face global ts_markup_raw $yellow2
set-face global ts_markup_strikethrough $red2+s
set-face global ts_namespace $green3
set-face global ts_operator $red2
set-face global ts_property $green3
set-face global ts_punctuation $red3
set-face global ts_special $red3
set-face global ts_spell $red1+c
set-face global ts_string $yellow2
set-face global ts_string_regex $yellow1+b
set-face global ts_string_regexp $yellow1+b
set-face global ts_string_escape $yellow1+b
set-face global ts_string_special $yellow1+b
set-face global ts_string_symbol $yellow1+b
set-face global ts_tag $green2
set-face global ts_tag_error $red2+c
set-face global ts_text $red1
set-face global ts_text_title $red3
set-face global ts_type $green2
set-face global ts_variable $blue3
set-face global ts_warning $yellow2+c
"
}
@@ -0,0 +1,175 @@
# Five alt colors light theme
evaluate-commands %sh{
bg="rgb:f2eee5" # oklch(0.95 0.0133 87.6)
bgmenu="rgb:f8eed6" # oklch(0.95 0.0333 87.6)
fg="rgb:7a9098" # oklch(0.6382 0.0284 222.6)
gray="rgb:938797" # oklch(0.6382 0.0284 317.4)
red1="rgb:b4745b" # oklch(0.6206 0.0886 42.6)
red2="rgb:9e5f46" # oklch(0.55 0.09 42.6)
red3="rgb:7b452e" # oklch(0.45 0.0826 42.6)
yellow1="rgb:9d8343" # oklch(0.6206 0.0886 87.6)
yellow2="rgb:886e2c" # oklch(0.55 0.09 87.6)
yellow3="rgb:695214" # oklch(0.45 0.0826 87.6)
green1="rgb:729259" # oklch(0.6206 0.0886 132.6)
green2="rgb:5d7d44" # oklch(0.55 0.09 132.6)
green3="rgb:435f2d" # oklch(0.45 0.0826 132.6)
blue1="rgb:4092ad" # oklch(0.6206 0.0886 222.6)
blue2="rgb:257d98" # oklch(0.55 0.09 222.6)
blue3="rgb:035f76" # oklch(0.45 0.0826 222.6)
violet1="rgb:9c75aa" # oklch(0.6206 0.0886 317.4)
violet2="rgb:876094" # oklch(0.55 0.09 317.4)
violet3="rgb:684673" # oklch(0.45 0.0826 317.4)
echo "
## CODE
set-face global value $violet2
set-face global type $green2
set-face global variable $yellow3
set-face global module $green1
set-face global function $blue2
set-face global string $yellow2
set-face global keyword $violet3
set-face global operator $red2
set-face global attribute $green3
set-face global comment $gray
set-face global documentation $gray
set-face global meta $blue3
set-face global builtin $violet1
## MARKUP
set-face global title $red3
set-face global header $violet3
set-face global mono $yellow2
set-face global block $blue3
set-face global link $blue2
set-face global bullet $red2
set-face global list $red2
## BUILTIN
set-face global Default $fg,$bg
set-face global PrimarySelection $bg,$green3
set-face global SecondarySelection $bg,$blue3
set-face global PrimaryCursor $bg,$green1
set-face global SecondaryCursor $bg,$blue1
set-face global PrimaryCursorEol $bg,$red1
set-face global SecondaryCursorEol $bg,$yellow1
set-face global MenuForeground $bgmenu,$yellow1
set-face global MenuBackground $fg,$bgmenu
set-face global MenuInfo $green2
set-face global Information $fg,$bgmenu
set-face global InlineInformation $blue2,$bgmenu
set-face global Error $red2
set-face global DiagnosticError default,default,$red2+c
set-face global DiagnosticWarning default,default,$yellow2+c
set-face global DiagnosticInfo default,default,$green2+c
set-face global DiagnosticHint default,default,$blue2+c
set-face global StatusLine $fg,$bgmenu
set-face global StatusLineMode $green2
set-face global StatusLineInfo $yellow2
set-face global StatusLineValue $blue2
set-face global StatusCursor $bg,$green1
set-face global Prompt $green2
set-face global BufferPadding $bg,$bg
# Built-in highlighter faces
set-face global LineNumbers $gray
set-face global LineNumberCursor $green3
set-face global LineNumbersWrapped $bg,$bg
set-face global MatchingChar $blue1
set-face global Whitespace $gray
set-face global WhitespaceIndent $gray
set-face global WrapMarker $yellow1
# PLUGINS
# kak-lsp
set-face global InfoDefault default
set-face global InfoBlock $green2
set-face global InfoBlockQuote $yellow2
set-face global InfoBullet $red2
set-face global InfoHeader $red3
set-face global InfoLink $blue2
set-face global InfoLinkMono $blue3
set-face global InfoMono $blue2
set-face global InfoRule $yellow2
set-face global InfoDiagnosticError $red2
set-face global InfoDiagnosticHint $blue2
set-face global InfoDiagnosticInformation $green2
set-face global InfoDiagnosticWarning $yellow2
set-face global LineFlagError $red2
set-face global LineFlagHint $blue2
set-face global LineFlagInfo $green2
set-face global LineFlagWarning $yellow2
set-face global InlayDiagnosticError $red2
set-face global InlayDiagnosticHint $blue2
set-face global InlayDiagnosticInfo $green2
set-face global InlayDiagnosticWarning $yellow2
set-face global SnippetsNextPlaceholders $bg,$green2
set-face global SnippetsOtherPlaceholders $bg,$yellow2
# kak-tree-sitter
set-face global ts_attribute $green3
set-face global ts_comment $gray
set-face global ts_constant $violet2
set-face global ts_conceal $red1
set-face global ts_constructor $red1
set-face global ts_diff_plus $green2
set-face global ts_diff_minus $red2
set-face global ts_diff_delta $blue2
set-face global ts_error $red2
set-face global ts_function $blue2
set-face global ts_hint $green2
set-face global ts_info $blue2
set-face global ts_keyword $violet3
set-face global ts_label $red1
set-face global ts_bold $green2+b
set-face global ts_markup_heading $red3
set-face global ts_markup_italic $green2+i
set-face global ts_markup_list_checked $red2
set-face global ts_markup_list_numbered $red2
set-face global ts_markup_list_unchecked $red2
set-face global ts_markup_list_unnumbered $red2
set-face global ts_markup_link_label $green2
set-face global ts_markup_link_url $blue2
set-face global ts_markup_link_uri $blue2
set-face global ts_markup_link_text $red1
set-face global ts_markup_quote $blue3
set-face global ts_markup_raw $yellow2
set-face global ts_markup_strikethrough $red2+s
set-face global ts_namespace $green3
set-face global ts_operator $red2
set-face global ts_property $green3
set-face global ts_punctuation $red3
set-face global ts_special $red3
set-face global ts_spell $red1+c
set-face global ts_string $yellow2
set-face global ts_string_regex $yellow1+b
set-face global ts_string_regexp $yellow1+b
set-face global ts_string_escape $yellow1+b
set-face global ts_string_special $yellow1+b
set-face global ts_string_symbol $yellow1+b
set-face global ts_tag $green2
set-face global ts_tag_error $red2+c
set-face global ts_text $red1
set-face global ts_text_title $red3
set-face global ts_type $green2
set-face global ts_variable $blue3
set-face global ts_warning $yellow2+c
"
}
+30 -24
View File
@@ -8,7 +8,7 @@ hook global ModuleLoaded wayland %{
} }
hook global WinCreate .* %{ hook global WinCreate .* %{
add-highlighter window/number-lines number-lines -relative -hlcursor add-highlighter window/number-lines number-lines -relative -hlcursor -min-digits 3
} }
hook global BufCreate .*\.templ %{ set buffer filetype templ } hook global BufCreate .*\.templ %{ set buffer filetype templ }
@@ -77,6 +77,10 @@ map global -docstring 'Options' user 'o' ': enter-user-mode options-mode<ret>'
map global -docstring 'Five Dark mode' options-mode 'd' ': colorscheme five-colors-dark<ret>' map global -docstring 'Five Dark mode' options-mode 'd' ': colorscheme five-colors-dark<ret>'
map global -docstring 'Five Light mode' options-mode 'l' ': colorscheme five-colors-light<ret>' map global -docstring 'Five Light mode' options-mode 'l' ': colorscheme five-colors-light<ret>'
map global -docstring 'Five Alt Dark mode' options-mode 'a' ': colorscheme five-alt-colors-dark<ret>'
map global -docstring 'Five Alt Light mode' options-mode 'b' ': colorscheme five-alt-colors-light<ret>'
map global -docstring 'Fifteen Dark mode' options-mode 'D' ': colorscheme fifteen-colors-dark<ret>'
map global -docstring 'Fifteen Light mode' options-mode 'L' ': colorscheme fifteen-colors-light<ret>'
declare-user-mode make-mode declare-user-mode make-mode
map global -docstring 'Make' user 'k' ': enter-user-mode make-mode<ret>' map global -docstring 'Make' user 'k' ': enter-user-mode make-mode<ret>'
@@ -283,33 +287,35 @@ bundle match 'https://github.com/kmafeni04/match.kak' %{
map global match U ': match-surround-redo<ret>' -docstring "Redo" map global match U ': match-surround-redo<ret>' -docstring "Redo"
} }
# PICKERS # LIVE GREP
bundle pickers https://codeberg.org/kmafeni04/pickers.kak %{ bundle live-grep https://codeberg.org/raiguard/kak-live-grep %{
declare-user-mode pickers map global -docstring 'Live grep' file-mode g ': live-grep<ret>'
map global user u ':enter-user-mode pickers<ret>' -docstring 'pickers mode' map global -docstring 'Live grep (selection)' file-mode 'G' ': live-grep %val{selection}<ret>'
map global pickers b ':pickers-buffer<ret>' -docstring 'Open fuzzy buffer picker' }
map global pickers i ':pickers-buffer-info<ret>' -docstring 'Show currently open buffers'
map global pickers a ':pickers-buffer-alternate<ret>' -docstring 'Switch to previously opened buffer'
map global pickers f ':pickers-file<ret>' -docstring 'Open fuzzy file picker in git root or current working directory'
map global pickers n ':pickers-file /home/lupan/notes/<ret>' -docstring 'Open fuzzy file picker in notes directory'
map global pickers o ':pickers-file-cbd<ret>' -docstring "Open fuzzy file picker in current buffer's directory"
map global pickers g ':pickers-grep<ret>' -docstring "Open grep picker in git root"
map global pickers G "<dquote>/y:pickers-grep<ret>" -docstring "Open grep picker in git root with selection as init"
map global pickers <a-g> ':pickers-grep-cbd<ret>' -docstring "Open grep picker in buffer's directory"
map global pickers <a-G> "<dquote>/y:pickers-grep-cbd<ret>" -docstring "Open grep picker in buffer's directory with selection as init"
hook global WinCreate \*pickers-grep\* %{ # FZF
map window normal <ret> ':pickers-grep-open<ret>'
map window normal <a-ret> "%%s<ret>)" -docstring "Select all matched grep text" bundle fzf https://github.com/andreyorst/fzf.kak %{
alias window write pickers-grep-write map global user u ': fzf-mode<ret>' -docstring 'Fzf'
alias window w pickers-grep-write
hook global ModuleLoaded fzf %{
define-command -hidden fzf-git-grep %{
set local fzf_grep_command "git grep -n ''"
fzf-grep
} }
hook global WinCreate \*pickers-file\* %{ define-command -hidden fzf-file-grep %{
map window normal <ret> ':pickers-file-open<ret>' set local fzf_grep_command "grep -Hn '' %val{buffile}"
set local fzf_grep_preview false
fzf-grep
} }
hook global WinCreate \*pickers-buffer\* %{ define-command -hidden fzf-file-dir-grep %{
map window normal <ret> ':pickers-buffer-open<ret>' set local fzf_grep_command "grep -RHn '' %sh{dirname ""$kak_buffile""}"
fzf-grep
}
map -docstring 'git grep' global fzf G ': require-module fzf-grep; fzf-git-grep<ret>'
map -docstring 'file grep' global fzf l ': require-module fzf-grep; fzf-file-grep<ret>'
map -docstring 'file dir grep' global fzf d ': require-module fzf-grep; fzf-file-dir-grep<ret>'
} }
} }
+18 -5
View File
@@ -1,27 +1,40 @@
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
void show(struct tm *tm) void show(char *prefix, struct tm *tm)
{ {
char s[6]; char s[6];
strftime(s, sizeof(s), "%H:%M", tm); strftime(s, sizeof(s), "%H:%M", tm);
printf("%s\n", s); printf("%s%s\n", prefix, s);
fflush(stdout); fflush(stdout);
} }
int main() { int main(int argc, char **argv) {
int h, m, init = 60; int h, m, init = 60, opt;
time_t t; time_t t;
struct tm *tm; struct tm *tm;
char *prefix = "";
while ((opt = getopt(argc, argv, "p:")) != -1) {
switch (opt) {
case 'p':
prefix = optarg;
break;
default:
fprintf(stderr, "Usage: %s [-p PREFIX]\n", argv[0]);
exit(EXIT_FAILURE);
}
}
while (1) { while (1) {
t = time(NULL); t = time(NULL);
tm = localtime(&t); tm = localtime(&t);
if (tm->tm_hour != h || tm->tm_min != m || init > 0) { if (tm->tm_hour != h || tm->tm_min != m || init > 0) {
show(tm); show(prefix, tm);
h = tm->tm_hour; h = tm->tm_hour;
m = tm->tm_min; m = tm->tm_min;
init = (init > 0) ? init - 1 : 0; init = (init > 0) ? init - 1 : 0;
+216
View File
@@ -0,0 +1,216 @@
import libqtile.resources
from libqtile import bar, layout, qtile, widget
from libqtile.config import Click, Drag, Group, Key, KeyChord, Match, Output, Screen
from libqtile.lazy import lazy
from libqtile.utils import guess_terminal
mod = "mod4"
terminal = guess_terminal()
keys = [
# A list of available commands that can be bound to keys can be found
# at https://docs.qtile.org/en/latest/manual/config/lazy.html
# Switch between windows
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"),
# Move windows between left/right columns or move up/down in current stack.
# Moving out of range in Columns layout will create new column.
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"),
# Grow windows. If current window is on the edge of screen and direction
# will be to screen edge - window would shrink.
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"),
# Toggle between split and unsplit sides of stack.
# Split = all windows displayed
# Unsplit = 1 window displayed, like Max layout, but still with
# multiple stack panes
Key(
[mod, "shift"],
"Return",
lazy.layout.toggle_split(),
desc="Toggle between split and unsplit sides of stack",
),
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
# Toggle between different layouts as defined below
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
Key([mod], "p", lazy.spawncmd(), desc="Spawn a command using a prompt widget"),
KeyChord([mod], "semicolon", [
Key(
[],
"f",
lazy.window.toggle_fullscreen(),
desc="Toggle fullscreen on the focused window",
),
Key(["control"], "w", lazy.window.kill(), desc="Kill focused window"),
Key(["control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
Key(["control"], "r", lazy.reload_config(), desc="Reload the config"),
Key([], "t", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"),
]),
]
# 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", "mod1"],
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 "qwertasdfgzxcvb"]
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_focus_stack=["#d75f5f", "#8f3d3d"], border_width=4),
layout.Max(),
# Try more layouts by unleashing below layouts.
# layout.Stack(num_stacks=2),
# layout.Bsp(),
# layout.Matrix(),
# layout.MonadTall(),
# layout.MonadWide(),
# layout.RatioTile(),
# layout.Tile(),
# layout.TreeTab(),
# layout.VerticalTile(),
# layout.Zoomy(),
]
widget_defaults = dict(
font="sans",
fontsize=24,
padding=3,
)
extension_defaults = widget_defaults.copy()
def generate_screens(outputs: list[Output]) -> list[Screen]:
return [
Screen(
top=bar.Bar(
[
widget.CurrentLayout(),
widget.GroupBox(),
widget.Prompt(),
widget.WindowName(),
widget.Chord(
chords_colors={
"launch": ("#ff0000", "#ffffff"),
},
name_transform=lambda name: name.upper(),
),
# NB Systray is incompatible with Wayland, consider using StatusNotifier instead
# widget.StatusNotifier(),
#widget.Systray(),
widget.Clock(format="%Y-%m-%d %a %H:%M"),
],
48,
# border_width=[2, 0, 2, 0], # Draw top and bottom borders
# border_color=["ff00ff", "000000", "ff00ff", "000000"] # Borders are magenta
),
background="#000000",
# You can uncomment this variable if you see that on X11 floating resize/moving is laggy
# By default we handle these events delayed to already improve performance, however your system might still be struggling
# This variable is set to None (no cap) by default, but you can set it to 60 to indicate that you limit it to 60 events per second
# x11_drag_polling_rate = 60,
)
for output in outputs
]
# Instead of screens, you can define a function here to specify which Screen
# should correspond to which Output.
fake_screens: list[Screen] | None = None
# Drag floating layouts.
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
]
)
auto_fullscreen = True
focus_on_window_activation = "smart"
focus_previous_on_window_remove = False
reconfigure_screens = True
# How long (in seconds) to wait after a screen change event before firing the
# screen_change hook, coalescing bursts of events into a single one.
screen_change_debounce_timeout = 1
# If things like steam games want to auto-minimize themselves when losing
# focus, should we respect this or not?
auto_minimize = True
# When using the Wayland backend, this can be used to configure input devices.
wl_input_rules = None
# xcursor theme (string or None) and size (integer) for Wayland backend
wl_xcursor_theme = "breeze_cursors"
wl_xcursor_size = 24
idle_timers = [] # type: list
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"
+18 -1
View File
@@ -5,12 +5,29 @@
# If not running interactively, don't do anything # If not running interactively, don't do anything
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
alias ls='ls --color=auto' shopt -s histappend
PROMPT_COMMAND="history -a; history -n; $PROMPT_COMMAND"
PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m \$ ' PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m \$ '
if [ -e /usr/share/git/git-prompt.sh ]; then
source /usr/share/git/git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=1
PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m$(__git_ps1) \$ '
fi
HISTTIMEFORMAT='%F %R '
function before_command() { echo -ne '\e[2 q'; } function before_command() { echo -ne '\e[2 q'; }
trap before_command DEBUG trap before_command DEBUG
# Aliases.
for f in ~/.config/shellconfig/*.sh; do source "$f"; done
if [[ "$TERM" = st-256color ]]; then
tput smkx
fi
if [[ -f /usr/share/bash-completion/bash_completion ]]; then if [[ -f /usr/share/bash-completion/bash_completion ]]; then
. /usr/share/bash-completion/bash_completion . /usr/share/bash-completion/bash_completion
fi fi
+27 -26
View File
@@ -1,35 +1,42 @@
alias v=nvim alias v=nvim
alias k=kak alias k=kak
alias kd='kak -s "$(basename $PWD)"' alias hs='history $HISTSIZE | rg'
alias ll='ls -l' alias kc='kak -c "$(kak -l | kff)"'
alias kf='fd -t f | kff | xargs kd'
alias kh='fd -H -t f | kff | xargs kd'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias tl='tmux list-sessions' alias tl='tmux list-sessions'
alias rgh='rg -.' alias rgh='rg -.'
alias fdh='fd -H' alias fdh='fd -H'
alias lg=lazygit alias lg=lazygit
alias z='cd $(fd -t d --one-file-system . ~ | kff)'
if alias st > /dev/null; then eval $(dircolors)
alias gst='_vcs status'
unalias st
fi
if alias r > /dev/null; then
unalias r
fi
if which eza > /dev/null; then
alias ls='eza --icons'
alias tree='eza --tree --icons'
elif which exa > /dev/null; then
alias ls='exa --icons'
alias tree='exa --tree --icons'
else
eval $(dircolors)
alias ls='ls --color=auto'
fi
alias nocaps='setxkbmap pl -option ctrl:nocaps' alias nocaps='setxkbmap pl -option ctrl:nocaps'
alias fixdp='xrandr --output DP-0 --right-of DP-2' alias fixdp='xrandr --output DP-0 --right-of DP-2'
alias a4='COLORTERM=truecolor TERM=xterm-256color a4' alias a4='COLORTERM=truecolor TERM=xterm-256color a4'
mon() {
local mon=$(KFF_DEFAULT_COMMAND='xrandr | grep -i "^[a-z]"' kff | awk '{print $1}')
local res=$(KFF_DEFAULT_COMMAND='echo "1920x1080\n2560x1440\n3840x2160"' kff)
local where=$(KFF_DEFAULT_COMMAND='echo "left-of\nright-of\nbelow\nabove\nsame-as"' kff)
local alt=$(KFF_DEFAULT_COMMAND='xrandr | grep -i "^[a-z]"' kff | awk '{print $1}')
xrandr --output "$mon" --mode "$res" "--$where" "$alt" --auto
}
zzz() {
sudo echo
if [[ -n "$WAYLAND_DISPLAY" ]]; then
swaylock &
else
slock &
fi
sleep 1
sudo /usr/bin/zzz
}
a4i() { a4i() {
local Q="${@:-}" local Q="${@:-}"
local NAME=$(a4 -l | grep '^ ' | fzy -q "$Q" | tr '\t' ' ' | cut -d' ' -f6-) local NAME=$(a4 -l | grep '^ ' | fzy -q "$Q" | tr '\t' ' ' | cut -d' ' -f6-)
@@ -38,12 +45,6 @@ a4i() {
fi fi
} }
kc() {
local Q="${@:-}"
local NAME=$(kak -l | fzy -q "$Q")
[ -n "$NAME" ] && kak -c "$NAME"
}
tn() { tn() {
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
tmux new tmux new
+8
View File
@@ -2,3 +2,11 @@ alias hs='history -$HISTSIZE | rg'
alias -s pdf=zathura alias -s pdf=zathura
alias -s {jpg,jpeg,png}=sxiv alias -s {jpg,jpeg,png}=sxiv
if alias st > /dev/null; then
alias gst='_vcs status'
unalias st
fi
if alias r > /dev/null; then
unalias r
fi
+2
View File
@@ -14,6 +14,8 @@ export EDITOR=kak
export VISUAL=kak export VISUAL=kak
export BAT_THEME='Catppuccin Frappe' export BAT_THEME='Catppuccin Frappe'
export XDG_RUNTIME_DIR="$HOME/local/run"
export KFF_DEFAULT_COMMAND='fd -t f'
# if running bash # if running bash
if [ -n "$BASH_VERSION" ]; then if [ -n "$BASH_VERSION" ]; then
+2 -1
View File
@@ -3,6 +3,7 @@
#if HEIGHT >= 2160 #if HEIGHT >= 2160
Xft.dpi: 160 Xft.dpi: 160
Xcursor.size: 48 Xcursor.size: 48
Xcursor.theme: Vanilla-DMZ
polybar.height: 40 polybar.height: 40
#else #else
Xft.dpi: 107 Xft.dpi: 107
@@ -56,7 +57,7 @@ XTerm.vt100.color14: #8FBCBB
XTerm.vt100.color7: #E5E9F0 XTerm.vt100.color7: #E5E9F0
XTerm.vt100.color15: #ECEFF4 XTerm.vt100.color15: #ECEFF4
st.font: HurmitNerdFont:size=16 st.font: HurmitNerdFont:size=14
! kanagawa wave colors from https://github.com/rebelot/kanagawa.nvim/blob/master/extras/alacritty/kanagawa_wave.toml ! kanagawa wave colors from https://github.com/rebelot/kanagawa.nvim/blob/master/extras/alacritty/kanagawa_wave.toml
! dayfox colors from https://github.com/edeneast/nightfox.nvim/raw/main/extra/dayfox/alacritty.toml ! dayfox colors from https://github.com/edeneast/nightfox.nvim/raw/main/extra/dayfox/alacritty.toml
+1
View File
@@ -8,6 +8,7 @@ xset b off
xrandr --auto xrandr --auto
xrandr --output DP-0 --left-of DP-2 --primary xrandr --output DP-0 --left-of DP-2 --primary
xrandr --output HDMI-0 --left-of DP-0 xrandr --output HDMI-0 --left-of DP-0
xrandr --output HDMI-A-0 --mode 3840x2160 --right-of eDP --auto
xrdb -merge ~/.Xresources -DHOME="$HOME" xrdb -merge ~/.Xresources -DHOME="$HOME"
setxkbmap pl -option ctrl:nocaps setxkbmap pl -option ctrl:nocaps