mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-21 22:59:38 +01:00
Compare commits
2 Commits
d4ea79d054
...
b73d6d8218
Author | SHA1 | Date | |
---|---|---|---|
b73d6d8218 | |||
5097686b8a |
@ -22,16 +22,18 @@ monitor=HDMI-A-1,preferred,0x0,1.3
|
||||
|
||||
|
||||
# monitor=eDP-1, disable
|
||||
# monitor=,preferred,auto,1,mirror,HDMI-A-1
|
||||
# monitor=eDP-1,preferred,auto,1,mirror,HDMI-A-1
|
||||
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
|
||||
# Execute your favorite apps at launch
|
||||
# exec-once = waybar & hyprpaper & firefox
|
||||
exec-once = dunst
|
||||
# exec-once = swaync
|
||||
exec-once = ags
|
||||
exec-once = /usr/libexec/kf5/polkit-kde-authentication-agent-1
|
||||
|
||||
exec-once = swaybg -i "$HOME/Pictures/Wallpapers/minimal.jpg"
|
||||
# Dim screen after 60 seconds of inactivity
|
||||
exec-once = swayidle -w timeout 60 'dim-screen &' resume 'undim-screen'
|
||||
# Lock screen after idle for 120s
|
||||
@ -48,11 +50,22 @@ exec-once = swayidle -w timeout 20 'if pgrep -x swaylock; then hyprctl dispatch
|
||||
|
||||
# Some default env vars.
|
||||
env = XCURSOR_SIZE,24
|
||||
#
|
||||
|
||||
# env = QT_QPA_PLATFORM,wayland,xcb
|
||||
# env = GDK_BACKEND,x11
|
||||
|
||||
# unscale XWayland
|
||||
# xwayland {
|
||||
# force_zero_scaling = false
|
||||
# }
|
||||
|
||||
# toolkit-specific scale
|
||||
env = GDK_SCALE,1
|
||||
|
||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||
input {
|
||||
kb_layout = tr
|
||||
kb_variant = legacy-fix-ansi
|
||||
kb_layout = tr,us
|
||||
kb_variant = legacy-fix-ansi,
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
@ -68,23 +81,25 @@ input {
|
||||
}
|
||||
|
||||
device:apple-mtp-keyboard {
|
||||
kb_layout = tr
|
||||
kb_variant = legacy-fix-iso
|
||||
kb_layout = tr,us
|
||||
kb_variant = legacy-fix-iso,
|
||||
kb_model =
|
||||
kb_options = ctrl:swapcaps
|
||||
kb_options = altwin:alt_super_win,shift:both_capslock_cancel,lv3:ralt_switch,caps:ctrl_modifier
|
||||
kb_rules =
|
||||
}
|
||||
|
||||
general {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
gaps_in = 5
|
||||
gaps_out = 20
|
||||
gaps_in = 2
|
||||
gaps_out = 8
|
||||
border_size = 2
|
||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||
# col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||
col.active_border = rgba(F9DEA9ee) rgba(F2C294ee) 45deg
|
||||
# col.active_border = rgba(1affffee) rgba(ff0000ee) 45deg # was my config
|
||||
col.inactive_border = rgba(595959aa)
|
||||
|
||||
layout = dwindle
|
||||
layout = master
|
||||
|
||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false
|
||||
@ -105,32 +120,53 @@ decoration {
|
||||
shadow_range = 4
|
||||
shadow_render_power = 3
|
||||
col.shadow = rgba(1a1a1aee)
|
||||
|
||||
dim_inactive = true
|
||||
dim_strength = 0.1 # how much inactive windows should be dimmed, 0.0 - 1.0
|
||||
dim_around = 0.5 # how much the dimaround window rule should dim by. 0.0 - 1.0
|
||||
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = yes
|
||||
|
||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
#
|
||||
# animation=NAME,ONOFF,SPEED,CURVE,STYLE or
|
||||
# animation=NAME,ONOFF,SPEED,CURVE
|
||||
# ONOFF can be either 0 or 1, 0 to disable, 1 to enable. note: if it’s 0, you can omit further args.
|
||||
# SPEED is the amount of ds (1ds = 100ms) the animation will take
|
||||
# CURVE is the bezier curve name, see curves.
|
||||
# STYLE (optional) is the animation style
|
||||
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
bezier = overshot,0.05,0.9,0.1,1.1
|
||||
bezier = easeOutBack, 0.075, 0.82, 0.165, 1
|
||||
bezier = easeInBack,0.075, 0.82, 0.165, 1
|
||||
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 6, default
|
||||
animation = windows, 1, 5, default
|
||||
# animation = windows, 0
|
||||
animation = windowsIn,1,5,default,slide
|
||||
animation = windowsOut, 1, 4, easeInBack, slide
|
||||
animation = border, 1, 10, overshot
|
||||
animation = borderangle, 1, 10, default, once
|
||||
animation = fade, 1, 4, default
|
||||
# animation = fade, 0
|
||||
animation = workspaces, 1, 4, default, slide
|
||||
animation = specialWorkspace, 1, 3, easeOutBack, slidefadevert
|
||||
}
|
||||
|
||||
dwindle {
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mod + P in the keybinds section below
|
||||
preserve_split = yes # you probably want this
|
||||
}
|
||||
|
||||
master {
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
new_is_master = true
|
||||
allow_small_split = true
|
||||
always_center_master = false
|
||||
}
|
||||
|
||||
gestures {
|
||||
@ -142,6 +178,21 @@ gestures {
|
||||
misc {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
force_default_wallpaper = -1 # Set to 0 to disable the anime mascot wallpapers
|
||||
# If true, will animate manual window resizes/moves
|
||||
# animate_manual_resizes = false
|
||||
# Enable window swallowing
|
||||
# enable_swallow = false
|
||||
# swallow_regex = str
|
||||
# focus_on_activate = false
|
||||
}
|
||||
|
||||
|
||||
binds {
|
||||
# If enabled, an attempt to switch to the currently focused workspace will
|
||||
# instead switch to the previous workspace. Akin to i3’s auto_back_and_forth.
|
||||
workspace_back_and_forth = true
|
||||
allow_workspace_cycles = true
|
||||
|
||||
}
|
||||
|
||||
# Example per-device config
|
||||
@ -157,79 +208,135 @@ device:epic-mouse-v1 {
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
|
||||
windowrulev2 = float,class:^(nm-connection-editor)$,
|
||||
windowrulev2 = float,title:^(Picture-in-Picture)$,
|
||||
windowrulev2 = pin,title:^(Picture-in-Picture)$,
|
||||
|
||||
windowrulev2=dimaround,class:^(pinentry-qt)$,
|
||||
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = SUPER
|
||||
$mod = SUPER
|
||||
|
||||
bind = $mainMod, tab, workspace, previous
|
||||
bind = $mod, tab, workspace, previous
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, return, exec, kitty
|
||||
bind = $mainMod, q, killactive,
|
||||
bind = $mainMod control, q, exit,
|
||||
bind = $mainMod, E, exec, dolphin
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, semicolon, exec, wofi --show drun --normal-window
|
||||
bind = $mainMod, p, exec, passmenu
|
||||
bind = $mainMod, t, pseudo, # dwindle
|
||||
bind = $mainMod, s, togglesplit, # dwindle
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, h, movefocus, l
|
||||
bind = $mainMod, l, movefocus, r
|
||||
bind = $mainMod, k, movefocus, u
|
||||
bind = $mainMod, j, movefocus, d
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, a, workspace, 1
|
||||
bind = $mainMod, s, workspace, 2
|
||||
bind = $mainMod, d, workspace, 3
|
||||
bind = $mainMod, f, workspace, 4
|
||||
bind = $mainMod, g, workspace, 5
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
bind = $mainMod, 4, workspace, 4
|
||||
bind = $mainMod, 5, workspace, 5
|
||||
bind = $mainMod, 6, workspace, 6
|
||||
bind = $mainMod, 7, workspace, 7
|
||||
bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
bind = $mainMod, 0, workspace, 10
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, a, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, s, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, d, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, f, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, g, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
bind = $mod, return, exec, open-kitty-or-focus
|
||||
# bind = $mod, return, exec, kitty --single-instance
|
||||
bind = $mod, q, killactive,
|
||||
bind = $mod, c, exec, smart-exec
|
||||
bind = $mod control, q, exit,
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, i, togglespecialworkspace, magic
|
||||
bind = $mainMod SHIFT, i, movetoworkspace, special:magic
|
||||
bind = $mod, w, togglespecialworkspace, magic
|
||||
bind = $mod SHIFT, w, movetoworkspace, special:magic
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
bind = $mod control, n, exec, lock-screen
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
bind = $mod, e, exec, wofi --show drun --normal-window
|
||||
# bind = $mod, semicolon, exec, wofi --show drun --normal-window
|
||||
bind = $mod shift, p, exec, passmenu
|
||||
bind = $mod, o, togglefloating,
|
||||
bind = $mod, y, togglefloating
|
||||
bind = $mod, v, exec, rofi-wireguard --toggle
|
||||
bind = $mod, y, pin
|
||||
# bind = $mod, t, exec, smart-tab
|
||||
bind = $mod, t, togglegroup, # dwindle
|
||||
# bind = $mod, t, pseudo, # dwindle
|
||||
bind = $mod, s, togglesplit, # dwindle
|
||||
bind = $mod, m, fullscreen, 1
|
||||
|
||||
### master layout keybindings
|
||||
bind = $mod, semicolon, layoutmsg,swapwithmaster master
|
||||
bind = $mod, space, layoutmsg,orientationnext
|
||||
|
||||
bind = $mod SHIFT, m, fullscreen, 0
|
||||
bind = $mod SHIFT, b, fakefullscreen,
|
||||
bind = $mod shift, n, exec, swaync-client -t -sw
|
||||
# bindl = $mod SHIFT, L, exec, sleep 1 && hyprctl dispatch dpms off
|
||||
|
||||
# focus windows with mod + hjkl
|
||||
bind = $mod, h, movefocus, l
|
||||
bind = $mod, l, movefocus, r
|
||||
bind = $mod, k, movefocus, u
|
||||
bind = $mod, j, movefocus, d
|
||||
|
||||
# Move windows with mod + shift + hjkl
|
||||
bind = $mod shift, h, swapwindow, l
|
||||
bind = $mod shift, l, swapwindow, r
|
||||
bind = $mod shift, k, swapwindow, u
|
||||
bind = $mod shift, j, swapwindow, d
|
||||
|
||||
bind = $mod, left, movewindow, l
|
||||
bind = $mod, right, movewindow, r
|
||||
bind = $mod, down, movewindow, d
|
||||
bind = $mod, up, movewindow, u
|
||||
|
||||
# resize windows with mod + control + hjkl
|
||||
binde = $mod control, h, resizeactive, -20 0
|
||||
binde = $mod control, l, resizeactive, 20 0
|
||||
binde = $mod control, k, resizeactive, 0 -20
|
||||
binde = $mod control, j, resizeactive, 0 20
|
||||
|
||||
|
||||
|
||||
# Switch workspaces with mod + [0-9]
|
||||
|
||||
bind = $mod, p, workspace, e-1
|
||||
bind = $mod, n, workspace, e+1
|
||||
bind = $mod, a, workspace, 1
|
||||
bind = $mod, s, workspace, 2
|
||||
bind = $mod, d, workspace, 3
|
||||
bind = $mod, f, workspace, 4
|
||||
bind = $mod, g, workspace, 5
|
||||
bind = $mod, 1, workspace, 1
|
||||
bind = $mod, 2, workspace, 2
|
||||
bind = $mod, 3, workspace, 3
|
||||
bind = $mod, 4, workspace, 4
|
||||
bind = $mod, 5, workspace, 5
|
||||
bind = $mod, 6, workspace, 6
|
||||
bind = $mod, 7, workspace, 7
|
||||
bind = $mod, 8, workspace, 8
|
||||
bind = $mod, 9, workspace, 9
|
||||
bind = $mod, 0, workspace, 10
|
||||
|
||||
bind = $mod, comma, swapnext, prev
|
||||
bind = $mod, period, swapnext
|
||||
|
||||
# Move active window to a workspace with mod + SHIFT + [0-9]
|
||||
bind = $mod SHIFT, a, movetoworkspace, 1
|
||||
bind = $mod SHIFT, s, movetoworkspace, 2
|
||||
bind = $mod SHIFT, d, movetoworkspace, 3
|
||||
bind = $mod SHIFT, f, movetoworkspace, 4
|
||||
bind = $mod SHIFT, g, movetoworkspace, 5
|
||||
bind = $mod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
|
||||
# Scroll through existing workspaces with mod + scroll
|
||||
bind = $mod, mouse_down, workspace, e+1
|
||||
bind = $mod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mod + LMB/RMB and dragging
|
||||
bindm = $mod, mouse:272, movewindow
|
||||
bindm = $mod, mouse:273, resizewindow
|
||||
|
||||
# Scroll through existing workspaces with mod + scroll
|
||||
# doesn't seem to work with touchpad.
|
||||
# check and see if this works with mouse
|
||||
bind = $mod, mouse_down, workspace, e+1
|
||||
bind = $mod, mouse_up, workspace, e-1
|
||||
|
||||
|
||||
# screen
|
||||
bindle=,XF86MonBrightnessUp, exec, light -A 3; light -O
|
||||
bindle=,XF86MonBrightnessDown, exec, light -U 3; light -O
|
||||
bindle=,XF86MonBrightnessUp, exec, light -A 1; light -O
|
||||
bindle=,XF86MonBrightnessDown, exec, light -U 1; light -O
|
||||
# bindle=,XF86KbdBrightnessUp, exec, ags -r 'brightness.kbd++; indicator.kbd()'
|
||||
# bindle=,XF86KbdBrightnessDown, exec, ags -r 'brightness.kbd--; indicator.kbd()'
|
||||
#
|
||||
@ -237,9 +344,79 @@ bindle=,XF86MonBrightnessDown, exec, light -U 3; light -O
|
||||
bindle=,XF86AudioRaiseVolume, exec, volume up
|
||||
bindle=,XF86AudioLowerVolume, exec, volume down
|
||||
bindle=,XF86AudioMute, exec, volume toggle-mute
|
||||
bind = $mainMod SHIFT, q, exec, lock-screen
|
||||
# bindl = $mainMod SHIFT, L, exec, sleep 1 && hyprctl dispatch dpms off
|
||||
|
||||
# bindle=, XF86KbdBrightnessUp, exec, keyboard_backlight inc
|
||||
# bindle=, XF86KbdBrightnessDown, exec, keyboard_backlight dec
|
||||
|
||||
|
||||
# check switch name with hyprctl devices
|
||||
# lock screen when lid is closed or opened
|
||||
# bindl=,switch:Apple SMC power/lid events,exec,lock-screen
|
||||
|
||||
# trigger when the lid is opened
|
||||
bindl=,switch:off:Apple SMC power/lid events,exec,smart-switch open
|
||||
# trigger when the lid is closed
|
||||
bindl=,switch:on:Apple SMC power/lid events,exec,smart-switch close
|
||||
|
||||
windowrulev2 = stayfocused,class:(wofi)
|
||||
windowrulev2 = noborder,class:(wofi)
|
||||
|
||||
# # bind = $mod, Return, exec, st -e tmux new-session -A -s st
|
||||
# bind = $mod SHIFT, q, exec, xkill
|
||||
# binde = $mod CONTROL, s, exec, toggle-screenkey
|
||||
# bind = $mod, e, exec, rofimoji
|
||||
# bind = $mod, b, exec, rofi-bluetooth
|
||||
# # bind = SUPER, E, exec, [workspace 2 silent;float;noanim] st
|
||||
# bind = $mod, i, exec, dictionary
|
||||
# bind = $mod, r, swapnext,
|
||||
# bind = $mod, semicolon, exec, wofi --show drun
|
||||
# bind = $mod SHIFT, O, workspaceopt, allpseudo # dwindle
|
||||
# bind = $mod, space, exec, hypr-toggle-layout
|
||||
#
|
||||
#
|
||||
# bind = $mod SHIFT, Return, togglesplit, # dwindle
|
||||
#
|
||||
# # bind = $mod, j, changegroupactive, b
|
||||
# # bind = $mod, k, changegroupactive, f
|
||||
#
|
||||
#
|
||||
# # to switch between windows in a floating workspace
|
||||
# bind = SUPER,comma,cyclenext, # change focus to another window
|
||||
# bind = SUPER,comma,bringactivetotop, # bring it to the top
|
||||
# bind = SUPER,period,cyclenext, prev # change focus to another window
|
||||
# bind = SUPER,period,bringactivetotop, # bring it to the top
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
# # bind=SUPER,mouse_down,workspace,e-1
|
||||
#
|
||||
# # bindle=, Print, exec, flameshot gui
|
||||
# # bindr=SUPER, SUPER_L, exec, pkill wofi || wofi --show drun
|
||||
#
|
||||
#
|
||||
# # will switch to a submap called notifications
|
||||
# bind = $mod, n, submap, notifications
|
||||
#
|
||||
# # will start a submap called "notifications"
|
||||
# submap=notifications
|
||||
#
|
||||
# # sets repeatable binds for resizing the active window
|
||||
# binde=$mod, n, exec, dunstctl close
|
||||
# bind=$mod, n, submap, reset
|
||||
# binde=$mod, k, exec, dunstctl history-pop
|
||||
# binde=$mod, j, exec, dunstctl close
|
||||
# binde=$mod, m, exec, dunstctl context
|
||||
# bind=$mod, m, submap, reset
|
||||
# binde=$mod, p, exec, toggle-notifications
|
||||
# bind=$mod, p, submap, reset
|
||||
#
|
||||
# # use reset to go back to the global submap
|
||||
# bind=,escape,submap,reset
|
||||
#
|
||||
# # will reset the submap, meaning end the current one and return to the global one
|
||||
# submap=reset
|
||||
#
|
||||
# # keybinds further down will be global again...
|
||||
|
47
.config/hypr/shaders/blue-light-v2.frag
Normal file
47
.config/hypr/shaders/blue-light-v2.frag
Normal file
@ -0,0 +1,47 @@
|
||||
precision mediump float;
|
||||
varying vec2 v_texcoord;
|
||||
uniform sampler2D tex;
|
||||
// 17.00 5600
|
||||
// 17.30 5300
|
||||
const float temperature = 2300.0;
|
||||
const float temperatureStrength = 1.0;
|
||||
|
||||
#define WithQuickAndDirtyLuminancePreservation
|
||||
const float LuminancePreservationFactor = 1.0;
|
||||
|
||||
// function from https://www.shadertoy.com/view/4sc3D7
|
||||
// valid from 1000 to 40000 K (and additionally 0 for pure full white)
|
||||
vec3 colorTemperatureToRGB(const in float temperature){
|
||||
// values from: http://blenderartists.org/forum/showthread.php?270332-OSL-Goodness&p=2268693&viewfull=1#post2268693
|
||||
mat3 m = (temperature <= 6500.0) ? mat3(vec3(0.0, -2902.1955373783176, -8257.7997278925690),
|
||||
vec3(0.0, 1669.5803561666639, 2575.2827530017594),
|
||||
vec3(1.0, 1.3302673723350029, 1.8993753891711275)) :
|
||||
mat3(vec3(1745.0425298314172, 1216.6168361476490, -8257.7997278925690),
|
||||
vec3(-2666.3474220535695, -2173.1012343082230, 2575.2827530017594),
|
||||
vec3(0.55995389139931482, 0.70381203140554553, 1.8993753891711275));
|
||||
return mix(
|
||||
clamp(vec3(m[0] / (vec3(clamp(temperature, 1000.0, 40000.0)) + m[1]) + m[2]), vec3(0.0), vec3(1.0)),
|
||||
vec3(1.0),
|
||||
smoothstep(1000.0, 0.0, temperature)
|
||||
);
|
||||
}
|
||||
|
||||
void main() {
|
||||
vec4 pixColor = texture2D(tex, v_texcoord);
|
||||
|
||||
// RGB
|
||||
vec3 color = vec3(pixColor[0], pixColor[1], pixColor[2]);
|
||||
|
||||
#ifdef WithQuickAndDirtyLuminancePreservation
|
||||
color *= mix(1.0,
|
||||
dot(color, vec3(0.2126, 0.7152, 0.0722)) / max(dot(color, vec3(0.2126, 0.7152, 0.0722)), 1e-5),
|
||||
LuminancePreservationFactor);
|
||||
#endif
|
||||
|
||||
color = mix(color, color * colorTemperatureToRGB(temperature), temperatureStrength);
|
||||
|
||||
vec4 outCol = vec4(color, pixColor[3]);
|
||||
|
||||
gl_FragColor = outCol;
|
||||
}
|
||||
|
20
.config/hypr/shaders/blue-light.frag
Normal file
20
.config/hypr/shaders/blue-light.frag
Normal file
@ -0,0 +1,20 @@
|
||||
// vim: set ft=glsl:
|
||||
// blue light filter shader
|
||||
// values from https://reshade.me/forum/shader-discussion/3673-blue-light-filter-similar-to-f-lux
|
||||
|
||||
precision mediump float;
|
||||
varying vec2 v_texcoord;
|
||||
uniform sampler2D tex;
|
||||
|
||||
void main() {
|
||||
|
||||
vec4 pixColor = texture2D(tex, v_texcoord);
|
||||
|
||||
// green
|
||||
pixColor[1] *= 0.855;
|
||||
|
||||
// blue
|
||||
pixColor[2] *= 0.725;
|
||||
|
||||
gl_FragColor = pixColor;
|
||||
}
|
16
.config/hypr/shaders/example.frag
Normal file
16
.config/hypr/shaders/example.frag
Normal file
@ -0,0 +1,16 @@
|
||||
//
|
||||
// Example blue light filter shader.
|
||||
//
|
||||
|
||||
precision mediump float;
|
||||
varying vec2 v_texcoord;
|
||||
uniform sampler2D tex;
|
||||
|
||||
void main() {
|
||||
|
||||
vec4 pixColor = texture2D(tex, v_texcoord);
|
||||
|
||||
pixColor[2] *= 0.8;
|
||||
|
||||
gl_FragColor = pixColor;
|
||||
}
|
18
.config/hypr/shaders/grayscale.frag
Normal file
18
.config/hypr/shaders/grayscale.frag
Normal file
@ -0,0 +1,18 @@
|
||||
//
|
||||
// Example grayscale shader.
|
||||
//
|
||||
|
||||
precision mediump float;
|
||||
varying vec2 v_texcoord;
|
||||
uniform sampler2D tex;
|
||||
|
||||
void main() {
|
||||
vec4 pixColor = texture2D(tex, v_texcoord);
|
||||
|
||||
gl_FragColor = vec4(
|
||||
pixColor[0] * 0.299 + pixColor[1] * 0.587 + pixColor[2] * 0.114,
|
||||
pixColor[0] * 0.299 + pixColor[1] * 0.587 + pixColor[2] * 0.114,
|
||||
pixColor[0] * 0.299 + pixColor[1] * 0.587 + pixColor[2] * 0.114,
|
||||
pixColor[3]
|
||||
);
|
||||
}
|
40
.config/hypr/shaders/vibrance.frag
Normal file
40
.config/hypr/shaders/vibrance.frag
Normal file
@ -0,0 +1,40 @@
|
||||
// vibrance for hyprland
|
||||
|
||||
precision mediump float;
|
||||
varying vec2 v_texcoord;
|
||||
uniform sampler2D tex;
|
||||
|
||||
// see https://github.com/CeeJayDK/SweetFX/blob/a792aee788c6203385a858ebdea82a77f81c67f0/Shaders/Vibrance.fx#L20-L30
|
||||
const vec3 VIB_RGB_BALANCE = vec3(1.0, 1.0, 1.0);
|
||||
const float VIB_VIBRANCE = 0.15;
|
||||
|
||||
|
||||
const vec3 VIB_coeffVibrance = VIB_RGB_BALANCE * -VIB_VIBRANCE;
|
||||
|
||||
void main() {
|
||||
|
||||
vec4 pixColor = texture2D(tex, v_texcoord);
|
||||
|
||||
// RGB
|
||||
vec3 color = vec3(pixColor[0], pixColor[1], pixColor[2]);
|
||||
|
||||
|
||||
// vec3 VIB_coefLuma = vec3(0.333333, 0.333334, 0.333333); // was for `if VIB_LUMA == 1`
|
||||
vec3 VIB_coefLuma = vec3(0.212656, 0.715158, 0.072186); // try both and see which one looks nicer.
|
||||
|
||||
float luma = dot(VIB_coefLuma, color);
|
||||
|
||||
float max_color = max(color[0], max(color[1], color[2]));
|
||||
float min_color = min(color[0], min(color[1], color[2]));
|
||||
|
||||
float color_saturation = max_color - min_color;
|
||||
|
||||
vec3 p_col = vec3(vec3(vec3(vec3(sign(VIB_coeffVibrance) * color_saturation) - 1.0) * VIB_coeffVibrance) + 1.0);
|
||||
|
||||
pixColor[0] = mix(luma, color[0], p_col[0]);
|
||||
pixColor[1] = mix(luma, color[1], p_col[1]);
|
||||
pixColor[2] = mix(luma, color[2], p_col[2]);
|
||||
|
||||
gl_FragColor = pixColor;
|
||||
}
|
||||
|
129
.config/kitty/diff.conf
Normal file
129
.config/kitty/diff.conf
Normal file
@ -0,0 +1,129 @@
|
||||
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
|
||||
|
||||
#: Diffing {{{
|
||||
|
||||
syntax_aliases pyj:py recipe:py
|
||||
|
||||
#: File extension aliases for syntax highlight For example, to syntax
|
||||
#: highlight file.xyz as file.abc use a setting of xyz:abc
|
||||
|
||||
num_context_lines 3
|
||||
|
||||
#: The number of lines of context to show around each change.
|
||||
|
||||
diff_cmd auto
|
||||
|
||||
#: The diff command to use. Must contain the placeholder _CONTEXT_
|
||||
#: which will be replaced by the number of lines of context. The
|
||||
#: default is to search the system for either git or diff and use
|
||||
#: that, if found.
|
||||
|
||||
replace_tab_by \x20\x20\x20\x20
|
||||
|
||||
#: The string to replace tabs with. Default is to use four spaces.
|
||||
|
||||
#: }}}
|
||||
|
||||
#: Colors {{{
|
||||
|
||||
pygments_style monokai
|
||||
|
||||
#: The pygments color scheme to use for syntax highlighting. See
|
||||
#: pygments colors schemes <https://help.farbox.com/pygments.html> for
|
||||
#: a list of schemes.
|
||||
|
||||
foreground #EDDFAA
|
||||
background #252322
|
||||
|
||||
#: Basic colors
|
||||
|
||||
title_fg #EDDFAA
|
||||
title_bg #2D2A28
|
||||
|
||||
#: Title colors
|
||||
|
||||
margin_fg #48403A
|
||||
margin_bg #2D2A28
|
||||
|
||||
#: Margin colors
|
||||
|
||||
removed_bg #23090A
|
||||
highlight_removed_bg #EB5864
|
||||
removed_margin_bg #37080B
|
||||
|
||||
#: Removed text backgrounds
|
||||
|
||||
added_bg #164113
|
||||
highlight_added_bg #16670B
|
||||
added_margin_bg #16670B
|
||||
|
||||
#: Added text backgrounds
|
||||
|
||||
filler_bg #2D2A28
|
||||
|
||||
#: Filler (empty) line background
|
||||
|
||||
hunk_margin_bg #FEC14E
|
||||
hunk_bg #FEC14E
|
||||
|
||||
#: Hunk header colors
|
||||
|
||||
search_bg #FEC14E
|
||||
search_fg black
|
||||
select_bg #6F96FF
|
||||
select_fg #252322
|
||||
|
||||
#: Highlighting
|
||||
|
||||
#: }}}
|
||||
|
||||
#: Keyboard shortcuts {{{
|
||||
|
||||
#####
|
||||
map q quit
|
||||
map esc quit
|
||||
map j scroll_by 1
|
||||
map down scroll_by 1
|
||||
map k scroll_by -1
|
||||
map up scroll_by -1
|
||||
#####
|
||||
|
||||
#####
|
||||
map home scroll_to start
|
||||
map g scroll_to start
|
||||
|
||||
map end scroll_to end
|
||||
map shift+g scroll_to end
|
||||
#####
|
||||
|
||||
#####
|
||||
map page_down scroll_to next-page
|
||||
map ctrl+d scroll_to next-page
|
||||
map space scroll_to next-page
|
||||
|
||||
map page_up scroll_to prev-page
|
||||
map ctrl+u scroll_to prev-page
|
||||
map backspace scroll_to prev-page
|
||||
#####
|
||||
|
||||
#####
|
||||
map n scroll_to next-change
|
||||
map l scroll_to next-change
|
||||
|
||||
map p scroll_to prev-change
|
||||
map h scroll_to prev-change
|
||||
#####
|
||||
|
||||
map a change_context all
|
||||
map = change_context default
|
||||
map + change_context 5
|
||||
map - change_context -5
|
||||
map / start_search regex forward
|
||||
map ? start_search regex backward
|
||||
map . scroll_to next-match
|
||||
map > scroll_to next-match
|
||||
map , scroll_to prev-match
|
||||
map < scroll_to prev-match
|
||||
map f start_search substring forward
|
||||
map b start_search substring backward
|
||||
#: }}}
|
@ -1,8 +1,23 @@
|
||||
# vim:fileencoding=utf-8:foldmethod=marker
|
||||
# vim:fileencoding=utf-8:foldmethod=marker:ft=kitty
|
||||
|
||||
# map f1 show_kitty_env_vars
|
||||
|
||||
kitty_mod alt
|
||||
#: Special modifier key alias for default shortcuts. You can change
|
||||
#: the value of this option to alter all default shortcuts that use
|
||||
#: kitty_mod.
|
||||
|
||||
clear_all_shortcuts yes
|
||||
#: Remove all shortcut definitions up to this point. Useful, for
|
||||
#: instance, to remove the default shortcuts.
|
||||
|
||||
|
||||
# kitty-scrollback.nvim Kitten alias
|
||||
action_alias kitty_scrollback_nvim kitten $HOME/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py --no-nvim-args
|
||||
|
||||
# include ./themes/themes/OneDark.conf
|
||||
include ~/.local/share/nvim/lazy/tokyonight.nvim/extras/kitty/tokyonight_day.conf
|
||||
# include ~/.local/share/nvim/lazy/tokyonight.nvim/extras/kitty/tokyonight_day.conf
|
||||
include ~/.local/share/nvim/lazy/kanagawa.nvim/extras/kanagawa_light.conf
|
||||
#include ./tokyonight.conf
|
||||
#Fonts {{{
|
||||
|
||||
@ -11,6 +26,12 @@ include ~/.local/share/nvim/lazy/tokyonight.nvim/extras/kitty/tokyonight_day.con
|
||||
#: characters.
|
||||
|
||||
font_family FantasqueSansM Nerd Font Mono
|
||||
|
||||
# font_family Fira Code
|
||||
# bold_font Fira Code Bold
|
||||
# italic_font Maple Mono Italic
|
||||
# bold_italic_font Maple Mono BoldItalic
|
||||
|
||||
# font_family MesloLGS NF
|
||||
# font_family monospace
|
||||
# bold_font auto
|
||||
@ -30,7 +51,7 @@ font_family FantasqueSansM Nerd Font Mono
|
||||
#: italic_font Operator Mono Book Italic
|
||||
#: bold_italic_font Operator Mono Medium Italic
|
||||
|
||||
font_size 13.0
|
||||
font_size 11.0
|
||||
|
||||
#: Font size (in pts)
|
||||
|
||||
@ -56,6 +77,8 @@ font_size 13.0
|
||||
|
||||
#: E.g. symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols
|
||||
|
||||
symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0-U+E0C8,U+E0CA,U+E0CC-U+E0D2,U+E0D4,U+E200-U+E2A9,U+E300-U+E3E3,U+E5FA-U+E634,U+E700-U+E7C5,U+EA60-U+EBEB,U+F000-U+F2E0,U+F300-U+F32F,U+F400-U+F4A9,U+F500-U+F8FF Symbols Nerd Font Mono
|
||||
|
||||
#: Map the specified Unicode codepoints to a particular font. Useful
|
||||
#: if you need special rendering for some symbols, such as for
|
||||
#: Powerline. Avoids the need for patched fonts. Each Unicode code
|
||||
@ -80,16 +103,10 @@ font_size 13.0
|
||||
|
||||
#: narrow_symbols codepoints [optionally the number of cells]
|
||||
|
||||
# disable_ligatures never
|
||||
|
||||
#: Choose how you want to handle multi-character ligatures. The
|
||||
#: default is to always render them. You can tell kitty to not render
|
||||
#: them when the cursor is over them by using cursor to make editing
|
||||
#: easier, or have kitty never render them at all by using always, if
|
||||
#: you don't like them. The ligature strategy can be set per-window
|
||||
#: either using the kitty remote control facility or by defining
|
||||
#: shortcuts for it in kitty.conf, for example::
|
||||
# always, cursor, never
|
||||
disable_ligatures cursor
|
||||
|
||||
#: or you can set shortcuts
|
||||
#: map alt+1 disable_ligatures_in active always
|
||||
#: map alt+2 disable_ligatures_in all never
|
||||
#: map alt+3 disable_ligatures_in tab cursor
|
||||
@ -164,9 +181,9 @@ font_size 13.0
|
||||
#: suffix px for pixels or % for percentage of original value. No
|
||||
#: suffix means use pts. For example::
|
||||
|
||||
#: modify_font underline_position -2
|
||||
#: modify_font underline_thickness 150%
|
||||
#: modify_font strikethrough_position 2px
|
||||
modify_font underline_position 1
|
||||
# modify_font underline_thickness 150%
|
||||
# modify_font strikethrough_position 2px
|
||||
|
||||
#: Additionally, you can modify the size of the cell in which each
|
||||
#: font glyph is rendered and the baseline at which the glyph is
|
||||
@ -256,7 +273,7 @@ font_size 13.0
|
||||
|
||||
#: Cursor customization {{{
|
||||
|
||||
# cursor #cccccc
|
||||
cursor none
|
||||
|
||||
#: Default cursor color. If set to the special value none the cursor
|
||||
#: will be rendered with a "reverse video" effect. It's color will be
|
||||
@ -266,7 +283,7 @@ font_size 13.0
|
||||
#: precedence. Also, the cursor colors are modified if the cell
|
||||
#: background and foreground colors have very low contrast.
|
||||
|
||||
# cursor_text_color #111111
|
||||
# cursor_text_color background
|
||||
|
||||
#: The color of text under the cursor. If you want it rendered with
|
||||
#: the background color of the cell underneath instead, use the
|
||||
@ -284,7 +301,7 @@ font_size 13.0
|
||||
#: the cursor shape to beam at shell prompts. You can avoid this by
|
||||
#: setting shell_integration to no-cursor.
|
||||
|
||||
# cursor_beam_thickness 1.5
|
||||
cursor_beam_thickness 1.0
|
||||
|
||||
#: The thickness of the beam cursor (in pts).
|
||||
|
||||
@ -319,6 +336,7 @@ font_size 13.0
|
||||
#: ones.
|
||||
|
||||
# scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
|
||||
scrollback_pager nvim +"source $HOME/.config/kitty/vi-mode.lua"
|
||||
|
||||
#: Program with which to view scrollback in a new window. The
|
||||
#: scrollback buffer is passed as STDIN to this program. If you change
|
||||
@ -330,7 +348,7 @@ font_size 13.0
|
||||
#: set to 0 if there is no cursor, for example, when showing the last
|
||||
#: command output.
|
||||
|
||||
# scrollback_pager_history_size 0
|
||||
scrollback_pager_history_size 10
|
||||
|
||||
#: Separate scrollback history size (in MB), used only for browsing
|
||||
#: the scrollback buffer with pager. This separate buffer is not
|
||||
@ -376,7 +394,7 @@ font_size 13.0
|
||||
|
||||
#: Mouse {{{
|
||||
|
||||
# mouse_hide_wait 3.0
|
||||
mouse_hide_wait -1
|
||||
|
||||
#: Hide mouse cursor after the specified number of seconds of the
|
||||
#: mouse not being used. Set to zero to disable mouse cursor hiding.
|
||||
@ -386,12 +404,12 @@ font_size 13.0
|
||||
#: much effort.
|
||||
|
||||
# url_color #0087bd
|
||||
# url_style curly
|
||||
url_style straight
|
||||
|
||||
#: The color and style for highlighting URLs on mouse-over. url_style
|
||||
#: can be one of: none, straight, double, curly, dotted, dashed.
|
||||
|
||||
# open_url_with default
|
||||
open_url_with default
|
||||
|
||||
#: The program to open clicked URLs. The special value default with
|
||||
#: first look for any URL handlers defined via the open_actions
|
||||
@ -423,7 +441,7 @@ font_size 13.0
|
||||
#: specified using backslash escapes, to specify a backslash use a
|
||||
#: double backslash.
|
||||
|
||||
# show_hyperlink_targets no
|
||||
show_hyperlink_targets no
|
||||
|
||||
#: When the mouse hovers over a terminal hyperlink, show the actual
|
||||
#: URL that will be activated when the hyperlink is clicked.
|
||||
@ -438,7 +456,7 @@ font_size 13.0
|
||||
#: value to/from always will only affect text subsequently received by
|
||||
#: kitty.
|
||||
|
||||
# copy_on_select no
|
||||
copy_on_select clipboard
|
||||
|
||||
#: Copy to clipboard or a private buffer on select. With this set to
|
||||
#: clipboard, selecting text with the mouse will cause the text to be
|
||||
@ -455,7 +473,7 @@ font_size 13.0
|
||||
#: programs, including websites open in your browser can read the
|
||||
#: contents of the system clipboard.
|
||||
|
||||
# paste_actions quote-urls-at-prompt,confirm
|
||||
paste_actions quote-urls-at-prompt,confirm,confirm-if-large
|
||||
|
||||
#: A comma separated list of actions to take when pasting text into
|
||||
#: the terminal. The supported paste actions are:
|
||||
@ -507,7 +525,7 @@ font_size 13.0
|
||||
#: clicks (in seconds). Negative numbers will use the system default
|
||||
#: instead, if available, or fallback to 0.5.
|
||||
|
||||
# focus_follows_mouse no
|
||||
focus_follows_mouse no
|
||||
|
||||
#: Set the active window to the window under the mouse when moving the
|
||||
#: mouse around. On macOS, this will also cause the OS Window under
|
||||
@ -573,7 +591,7 @@ font_size 13.0
|
||||
|
||||
#: Click the link under the mouse or move the cursor
|
||||
|
||||
# mouse_map left click ungrabbed mouse_handle_click selection link prompt
|
||||
mouse_map left click ungrabbed mouse_handle_click selection link prompt
|
||||
|
||||
#:: First check for a selection and if one exists do nothing. Then
|
||||
#:: check for a link under the mouse cursor and if one exists, click
|
||||
@ -582,6 +600,9 @@ font_size 13.0
|
||||
#:: that this requires shell integration
|
||||
#:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
|
||||
|
||||
# select the output of a command by right clicking the mouse on the output
|
||||
mouse_map right press ungrabbed mouse_select_command_output
|
||||
|
||||
#: Click the link under the mouse or move the cursor even when grabbed
|
||||
|
||||
# mouse_map shift+left click grabbed,ungrabbed mouse_handle_click selection link prompt
|
||||
@ -679,6 +700,8 @@ font_size 13.0
|
||||
|
||||
# mouse_map ctrl+shift+right press ungrabbed mouse_show_command_output
|
||||
|
||||
mouse_map kitty_mod+right press ungrabbed combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output
|
||||
|
||||
#:: Requires shell integration
|
||||
#:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
|
||||
|
||||
@ -719,13 +742,12 @@ font_size 13.0
|
||||
|
||||
#: Terminal bell {{{
|
||||
|
||||
# enable_audio_bell yes
|
||||
enable_audio_bell no
|
||||
|
||||
#: The audio bell. Useful to disable it in environments that require
|
||||
#: silence.
|
||||
|
||||
# visual_bell_duration 0.0
|
||||
|
||||
visual_bell_duration 0.05
|
||||
#: The visual bell duration (in seconds). Flash the screen when a bell
|
||||
#: occurs for the specified number of seconds. Set to zero to disable.
|
||||
|
||||
@ -818,14 +840,14 @@ font_size 13.0
|
||||
#: that setting a non-zero window_margin_width overrides this and
|
||||
#: causes all borders to be drawn.
|
||||
|
||||
# window_margin_width 0
|
||||
# window_margin_width 0 12
|
||||
|
||||
#: The window margin (in pts) (blank area outside the border). A
|
||||
#: single value sets all four sides. Two values set the vertical and
|
||||
#: horizontal sides. Three values set top, horizontal and bottom. Four
|
||||
#: values set top, right, bottom and left.
|
||||
|
||||
# single_window_margin_width -1
|
||||
single_window_margin_width 0 2
|
||||
|
||||
#: The window margin to use when only a single window is visible (in
|
||||
#: pts). Negative values will cause the value of window_margin_width
|
||||
@ -871,12 +893,12 @@ font_size 13.0
|
||||
#: The color for the border of inactive windows in which a bell has
|
||||
#: occurred.
|
||||
|
||||
# inactive_text_alpha 1.0
|
||||
inactive_text_alpha 0.7
|
||||
|
||||
#: Fade the text in inactive windows by the specified amount (a number
|
||||
#: between zero and one, with zero being fully faded).
|
||||
|
||||
# hide_window_decorations no
|
||||
hide_window_decorations yes
|
||||
|
||||
#: Hide the window decorations (title-bar and window borders) with
|
||||
#: yes. On macOS, titlebar-only and titlebar-and-corners can be used
|
||||
@ -930,7 +952,7 @@ font_size 13.0
|
||||
#: used to keep the margins as small as possible when resizing the OS
|
||||
#: window. Note that this does not currently work on Wayland.
|
||||
|
||||
# visual_window_select_characters 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
visual_window_select_characters hjklfdsagtyrueiwoqpbnvmcxz
|
||||
|
||||
#: The list of characters for visual window selection. For example,
|
||||
#: for selecting a window to focus on with focus_visible_window. The
|
||||
@ -972,7 +994,7 @@ font_size 13.0
|
||||
#: The second number is the margin between the tab bar and the
|
||||
#: contents of the current tab.
|
||||
|
||||
# tab_bar_style fade
|
||||
tab_bar_style powerline
|
||||
|
||||
#: The tab bar style, can be one of:
|
||||
|
||||
@ -998,7 +1020,7 @@ font_size 13.0
|
||||
#: a mapping for the select_tab action which presents you with a list of
|
||||
#: tabs and allows for easy switching to a tab.
|
||||
|
||||
# tab_bar_align left
|
||||
tab_bar_align left
|
||||
|
||||
#: The horizontal alignment of the tab bar, can be one of: left,
|
||||
#: center, right.
|
||||
@ -1030,7 +1052,7 @@ font_size 13.0
|
||||
#: The separator between tabs in the tab bar when using separator as
|
||||
#: the tab_bar_style.
|
||||
|
||||
# tab_powerline_style angled
|
||||
tab_powerline_style slanted
|
||||
|
||||
#: The powerline separator style between tabs in the tab bar when
|
||||
#: using powerline as the tab_bar_style, can be one of: angled,
|
||||
@ -1043,12 +1065,13 @@ font_size 13.0
|
||||
#: leading or trailing spaces, surround the text with quotes. See
|
||||
#: tab_title_template for how this is rendered.
|
||||
|
||||
# tab_title_max_length 0
|
||||
tab_title_max_length 20
|
||||
|
||||
#: The maximum number of cells that can be used to render the text in
|
||||
#: a tab. A value of zero means that no limit is applied.
|
||||
|
||||
# tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title}"
|
||||
# tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{index}:{title}"
|
||||
tab_title_template "{title}{fmt.bold}{' ' if num_windows > 1 and layout_name == 'stack' else ''}"
|
||||
|
||||
#: A template to render the tab title. The default just renders the
|
||||
#: title with optional symbols for bell and activity. If you wish to
|
||||
@ -1089,8 +1112,7 @@ font_size 13.0
|
||||
#: Note that for backward compatibility, if {bell_symbol} or
|
||||
#: {activity_symbol} are not present in the template, they are
|
||||
#: prepended to it.
|
||||
|
||||
# active_tab_title_template none
|
||||
active_tab_title_template "{fmt.fg.tab}{index}{sup.layout_name[:2].lower()}:{title}"
|
||||
|
||||
#: Template to use for active tabs. If not specified falls back to
|
||||
#: tab_title_template.
|
||||
@ -1125,7 +1147,7 @@ font_size 13.0
|
||||
|
||||
#: The foreground and background colors.
|
||||
|
||||
# background_opacity 1.0
|
||||
background_opacity 1
|
||||
|
||||
#: The opacity of the background. A number between zero and one, where
|
||||
#: one is opaque and zero is fully transparent. This will only work if
|
||||
@ -1161,8 +1183,6 @@ font_size 13.0
|
||||
#: platform implements it, so use with care. Currently supported on
|
||||
#: macOS and KDE under X11.
|
||||
|
||||
# background_image none
|
||||
|
||||
#: Path to a background image. Must be in PNG format.
|
||||
|
||||
# background_image_layout tiled
|
||||
@ -1177,14 +1197,14 @@ font_size 13.0
|
||||
#: When background image is scaled, whether linear interpolation
|
||||
#: should be used.
|
||||
|
||||
# dynamic_background_opacity no
|
||||
dynamic_background_opacity yes
|
||||
|
||||
#: Allow changing of the background_opacity dynamically, using either
|
||||
#: keyboard shortcuts (increase_background_opacity and
|
||||
#: decrease_background_opacity) or the remote control facility.
|
||||
#: Changing this option by reloading the config is not supported.
|
||||
|
||||
# background_tint 0.0
|
||||
# background_tint 1
|
||||
|
||||
#: How much to tint the background image by the background color. This
|
||||
#: option makes it easier to read the text. Tinting is done using the
|
||||
@ -1358,7 +1378,8 @@ font_size 13.0
|
||||
#: See rc_custom_auth <https://sw.kovidgoyal.net/kitty/remote-
|
||||
#: control/#rc-custom-auth> for details.
|
||||
|
||||
# allow_remote_control no
|
||||
allow_remote_control socket-only
|
||||
listen_on unix:@mykitty
|
||||
|
||||
#: Allow other programs to control kitty. If you turn this on, other
|
||||
#: programs can control all aspects of kitty, including sending text
|
||||
@ -1445,7 +1466,7 @@ font_size 13.0
|
||||
#: exe_search_path +/some/appended/path
|
||||
#: exe_search_path -/some/excluded/path
|
||||
|
||||
# update_check_interval 24
|
||||
update_check_interval 0
|
||||
|
||||
#: The interval to periodically check if an update to kitty is
|
||||
#: available (in hours). If an update is found, a system notification
|
||||
@ -1455,7 +1476,7 @@ font_size 13.0
|
||||
#: builds do not do update checking. Changing this option by reloading
|
||||
#: the config is not supported.
|
||||
|
||||
# startup_session none
|
||||
startup_session sessions/example.session
|
||||
|
||||
#: Path to a session file to use for all kitty instances. Can be
|
||||
#: overridden by using the kitty --session =none command line option
|
||||
@ -1767,22 +1788,13 @@ font_size 13.0
|
||||
#: The full list of actions that can be mapped to key presses is
|
||||
#: available here <https://sw.kovidgoyal.net/kitty/actions/>.
|
||||
|
||||
# kitty_mod ctrl+alt+shift
|
||||
#: Special modifier key alias for default shortcuts. You can change
|
||||
#: the value of this option to alter all default shortcuts that use
|
||||
#: kitty_mod.
|
||||
#default was ctrl+shift. I changed it because it was masking
|
||||
# my tmux keybindings with ctrl shift.
|
||||
|
||||
# clear_all_shortcuts yes
|
||||
|
||||
#: Remove all shortcut definitions up to this point. Useful, for
|
||||
#: instance, to remove the default shortcuts.
|
||||
# I just get rid of all shortcuts because I don't use a single one of them
|
||||
|
||||
# action_alias
|
||||
|
||||
#: E.g. action_alias launch_tab launch --type=tab --cwd=current
|
||||
action_alias launch_tab launch --type=tab --cwd=current
|
||||
|
||||
|
||||
|
||||
#: Define action aliases to avoid repeating the same options in
|
||||
#: multiple mappings. Aliases can be defined for any action and will
|
||||
@ -1790,7 +1802,7 @@ font_size 13.0
|
||||
#: create mappings to launch a new tab in the current working
|
||||
#: directory without duplication::
|
||||
|
||||
#: map f1 launch_tab vim
|
||||
map f1 launch_tab ${EDITOR}
|
||||
#: map f2 launch_tab emacs
|
||||
|
||||
#: Similarly, to alias kitten invocation::
|
||||
@ -1812,7 +1824,7 @@ font_size 13.0
|
||||
|
||||
#: Copy to clipboard
|
||||
|
||||
# map kitty_mod+c copy_to_clipboard
|
||||
map ctrl+c copy_and_clear_or_interrupt
|
||||
# map cmd+c copy_to_clipboard
|
||||
|
||||
#:: There is also a copy_or_interrupt action that can be optionally
|
||||
@ -1823,7 +1835,7 @@ font_size 13.0
|
||||
|
||||
#: Paste from clipboard
|
||||
|
||||
# map kitty_mod+v paste_from_clipboard
|
||||
map kitty_mod+v paste_from_clipboard
|
||||
# map cmd+v paste_from_clipboard
|
||||
|
||||
#: Paste from selection
|
||||
@ -1855,40 +1867,42 @@ font_size 13.0
|
||||
#: Scroll line up
|
||||
|
||||
# map kitty_mod+up scroll_line_up
|
||||
# map kitty_mod+k scroll_line_up
|
||||
map kitty_mod+k scroll_line_up
|
||||
# map opt+cmd+page_up scroll_line_up
|
||||
# map cmd+up scroll_line_up
|
||||
|
||||
#: Scroll line down
|
||||
|
||||
# map kitty_mod+down scroll_line_down
|
||||
# map kitty_mod+j scroll_line_down
|
||||
map kitty_mod+j scroll_line_down
|
||||
# map opt+cmd+page_down scroll_line_down
|
||||
# map cmd+down scroll_line_down
|
||||
|
||||
#: Scroll page up
|
||||
|
||||
# map kitty_mod+page_up scroll_page_up
|
||||
map kitty_mod+u scroll_page_up
|
||||
map kitty_mod+page_up scroll_page_up
|
||||
# map cmd+page_up scroll_page_up
|
||||
|
||||
#: Scroll page down
|
||||
|
||||
# map kitty_mod+page_down scroll_page_down
|
||||
map kitty_mod+d scroll_page_down
|
||||
map kitty_mod+page_down scroll_page_down
|
||||
# map cmd+page_down scroll_page_down
|
||||
|
||||
#: Scroll to top
|
||||
|
||||
# map kitty_mod+home scroll_home
|
||||
map kitty_mod+home scroll_home
|
||||
# map cmd+home scroll_home
|
||||
|
||||
#: Scroll to bottom
|
||||
|
||||
# map kitty_mod+end scroll_end
|
||||
map kitty_mod+end scroll_end
|
||||
# map cmd+end scroll_end
|
||||
|
||||
#: Scroll to previous shell prompt
|
||||
|
||||
# map kitty_mod+z scroll_to_prompt -1
|
||||
map kitty_mod+z scroll_to_prompt -1
|
||||
|
||||
#:: Use a parameter of 0 for scroll_to_prompt to scroll to the last
|
||||
#:: jumped to or the last clicked position. Requires shell
|
||||
@ -1897,12 +1911,16 @@ font_size 13.0
|
||||
|
||||
#: Scroll to next shell prompt
|
||||
|
||||
# map kitty_mod+x scroll_to_prompt 1
|
||||
map kitty_mod+x scroll_to_prompt 1
|
||||
|
||||
#: Browse scrollback buffer in pager
|
||||
|
||||
# map kitty_mod+h show_scrollback
|
||||
|
||||
# Browse scrollback buffer in nvim
|
||||
map kitty_mod+h kitty_scrollback_nvim
|
||||
|
||||
|
||||
#:: You can pipe the contents of the current screen and history
|
||||
#:: buffer as STDIN to an arbitrary program using launch --stdin-
|
||||
#:: source. For example, the following opens the scrollback buffer in
|
||||
@ -1916,6 +1934,9 @@ font_size 13.0
|
||||
#: Browse output of the last shell command in pager
|
||||
|
||||
# map kitty_mod+g show_last_command_output
|
||||
# Browse output of the last shell command in nvim
|
||||
map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
||||
# Show clicked command output in nvim
|
||||
|
||||
#:: You can also define additional shortcuts to get the command
|
||||
#:: output. For example, to get the first command output on screen::
|
||||
@ -1931,7 +1952,7 @@ font_size 13.0
|
||||
#:: using the launch action. For example, the following opens the
|
||||
#:: output in less in an overlay window::
|
||||
|
||||
#:: map f1 launch --stdin-source=@last_cmd_output --stdin-add-formatting --type=overlay less +G -R
|
||||
# map f1 launch --stdin-source=@last_cmd_output --stdin-add-formatting --type=overlay less +G -R
|
||||
|
||||
#:: To get the output of the first command on the screen, use
|
||||
#:: @first_cmd_output_on_screen. To get the output of the last jumped
|
||||
@ -1946,7 +1967,7 @@ font_size 13.0
|
||||
|
||||
#: New window
|
||||
|
||||
# map kitty_mod+enter new_window
|
||||
map kitty_mod+c launch --cwd=current
|
||||
# map cmd+enter new_window
|
||||
|
||||
#:: You can open a new kitty window running an arbitrary program, for
|
||||
@ -1969,8 +1990,9 @@ font_size 13.0
|
||||
#:: You can open a new window next to the currently active window or
|
||||
#:: as the first window, with::
|
||||
|
||||
#:: map ctrl+n launch --location=neighbor
|
||||
#:: map ctrl+f launch --location=first
|
||||
## new window beside
|
||||
map kitty_mod+b launch --location=neighbor
|
||||
map kitty_mod+f launch --location=first
|
||||
|
||||
#:: For more details, see launch
|
||||
#:: <https://sw.kovidgoyal.net/kitty/launch/>.
|
||||
@ -1986,7 +2008,7 @@ font_size 13.0
|
||||
|
||||
#: Close window
|
||||
|
||||
# map kitty_mod+w close_window
|
||||
map kitty_mod+q close_window
|
||||
# map shift+cmd+d close_window
|
||||
|
||||
#: Next window
|
||||
@ -1999,18 +2021,28 @@ font_size 13.0
|
||||
|
||||
#: Move window forward
|
||||
|
||||
# map kitty_mod+f move_window_forward
|
||||
map kitty_mod+. move_window_forward
|
||||
|
||||
#: Move window backward
|
||||
|
||||
# map kitty_mod+b move_window_backward
|
||||
map kitty_mod+, move_window_backward
|
||||
|
||||
#: Move window to top
|
||||
#: Make window mAin window
|
||||
map kitty_mod+a move_window_to_top
|
||||
|
||||
# map kitty_mod+` move_window_to_top
|
||||
|
||||
map ctrl+j kitten pass_keys.py neighboring_window bottom ctrl+j
|
||||
map ctrl+k kitten pass_keys.py neighboring_window top ctrl+k
|
||||
map ctrl+h kitten pass_keys.py neighboring_window left ctrl+h
|
||||
map ctrl+l kitten pass_keys.py neighboring_window right ctrl+l
|
||||
|
||||
# the 3 here is the resize amount, adjust as needed
|
||||
map kitty_mod+ctrl+j kitten pass_keys.py relative_resize down 3 alt+j
|
||||
map kitty_mod+ctrl+k kitten pass_keys.py relative_resize up 3 alt+k
|
||||
map kitty_mod+ctrl+h kitten pass_keys.py relative_resize left 3 alt+h
|
||||
map kitty_mod+ctrl+l kitten pass_keys.py relative_resize right 3 alt+l
|
||||
|
||||
#: Start resizing window
|
||||
|
||||
# map kitty_mod+r start_resizing_window
|
||||
# map cmd+r start_resizing_window
|
||||
|
||||
@ -2065,7 +2097,7 @@ font_size 13.0
|
||||
|
||||
#: Visually select and focus window
|
||||
|
||||
# map kitty_mod+f7 focus_visible_window
|
||||
map kitty_mod+s focus_visible_window
|
||||
|
||||
#:: Display overlay numbers and alphabets on the window, and switch
|
||||
#:: the focus to the window when you press the key. When there are
|
||||
@ -2075,7 +2107,7 @@ font_size 13.0
|
||||
|
||||
#: Visually swap window with another
|
||||
|
||||
# map kitty_mod+f8 swap_with_window
|
||||
map kitty_mod+ctrl+s swap_with_window
|
||||
|
||||
#:: Works like focus_visible_window above, but swaps the window.
|
||||
|
||||
@ -2085,24 +2117,28 @@ font_size 13.0
|
||||
|
||||
#: Next tab
|
||||
|
||||
map kitty_mod+n next_tab
|
||||
# map kitty_mod+right next_tab
|
||||
# map shift+cmd+] next_tab
|
||||
# map ctrl+tab next_tab
|
||||
|
||||
#: Previous tab
|
||||
|
||||
map kitty_mod+p previous_tab
|
||||
# map kitty_mod+left previous_tab
|
||||
# map shift+cmd+[ previous_tab
|
||||
# map ctrl+shift+tab previous_tab
|
||||
map kitty_mod+shift+t new_tab
|
||||
map kitty_mod+shift+t new_tab
|
||||
|
||||
#: New tab
|
||||
|
||||
# map kitty_mod+t new_tab
|
||||
map kitty_mod+t new_tab !neighbor
|
||||
# map cmd+t new_tab
|
||||
|
||||
#: Close tab
|
||||
|
||||
# map kitty_mod+q close_tab
|
||||
map kitty_mod+w close_tab
|
||||
# map cmd+w close_tab
|
||||
|
||||
#: Close OS window
|
||||
@ -2111,15 +2147,15 @@ font_size 13.0
|
||||
|
||||
#: Move tab forward
|
||||
|
||||
# map kitty_mod+. move_tab_forward
|
||||
map kitty_mod+shift+. move_tab_forward
|
||||
|
||||
#: Move tab backward
|
||||
|
||||
# map kitty_mod+, move_tab_backward
|
||||
map kitty_mod+shift+, move_tab_backward
|
||||
|
||||
#: Set tab title
|
||||
|
||||
# map kitty_mod+alt+t set_tab_title
|
||||
map kitty_mod+r set_tab_title
|
||||
# map shift+cmd+i set_tab_title
|
||||
|
||||
|
||||
@ -2127,8 +2163,27 @@ font_size 13.0
|
||||
#: the first tab, 2 the second tab and -1 being the previously active
|
||||
#: tab, and any number larger than the last tab being the last tab::
|
||||
|
||||
#: map ctrl+alt+1 goto_tab 1
|
||||
#: map ctrl+alt+2 goto_tab 2
|
||||
map ctrl+s>' goto_tab -1
|
||||
map kitty_mod+tab goto_tab -1
|
||||
map kitty_mod+1 goto_tab 1
|
||||
map kitty_mod+2 goto_tab 2
|
||||
map kitty_mod+3 goto_tab 3
|
||||
map kitty_mod+4 goto_tab 4
|
||||
map kitty_mod+5 goto_tab 5
|
||||
map kitty_mod+6 goto_tab 6
|
||||
map kitty_mod+7 goto_tab 7
|
||||
map kitty_mod+8 goto_tab 8
|
||||
map kitty_mod+9 goto_tab 9
|
||||
|
||||
# map kitty_mod+ctrl+q goto_tab 1
|
||||
# map kitty_mod+ctrl+w goto_tab 2
|
||||
# map kitty_mod+ctrl+e goto_tab 3
|
||||
# map kitty_mod+ctrl+r goto_tab 4
|
||||
# map kitty_mod+ctrl+t goto_tab 5
|
||||
# map kitty_mod+ctrl+y goto_tab 6
|
||||
# map kitty_mod+ctrl+u goto_tab 7
|
||||
# map kitty_mod+ctrl+i goto_tab 8
|
||||
# map kitty_mod+ctrl+o goto_tab 9
|
||||
|
||||
#: Just as with new_window above, you can also pass the name of
|
||||
#: arbitrary commands to run when using new_tab and new_tab_with_cwd.
|
||||
@ -2136,6 +2191,7 @@ font_size 13.0
|
||||
#: rather than at the end of the tabs list, use::
|
||||
|
||||
#: map ctrl+t new_tab !neighbor [optional cmd to run]
|
||||
map kitty_mod+shift+t new_tab
|
||||
#: }}}
|
||||
|
||||
#: Layout management {{{
|
||||
@ -2143,6 +2199,7 @@ font_size 13.0
|
||||
#: Next layout
|
||||
|
||||
# map kitty_mod+l next_layout
|
||||
map kitty_mod+space next_layout
|
||||
|
||||
|
||||
#: You can also create shortcuts to switch to specific layouts::
|
||||
@ -2153,6 +2210,8 @@ font_size 13.0
|
||||
#: Similarly, to switch back to the previous layout::
|
||||
|
||||
#: map ctrl+alt+p last_used_layout
|
||||
map kitty_mod+shift+space last_used_layout
|
||||
map kitty_mod+ctrl+space last_used_layout
|
||||
|
||||
#: There is also a toggle_layout action that switches to the named
|
||||
#: layout or back to the previous layout if in the named layout.
|
||||
@ -2160,6 +2219,7 @@ font_size 13.0
|
||||
#: stack layout::
|
||||
|
||||
#: map ctrl+alt+z toggle_layout stack
|
||||
map kitty_mod+m toggle_layout stack
|
||||
#: }}}
|
||||
|
||||
#: Font sizes {{{
|
||||
@ -2169,23 +2229,24 @@ font_size 13.0
|
||||
|
||||
#: Increase font size
|
||||
|
||||
# map kitty_mod+equal change_font_size all +2.0
|
||||
# map kitty_mod+plus change_font_size all +2.0
|
||||
# map kitty_mod+kp_add change_font_size all +2.0
|
||||
map kitty_mod+equal change_font_size all +0.5
|
||||
map kitty_mod+plus change_font_size all +0.5
|
||||
map kitty_mod+kp_add change_font_size all +0.5
|
||||
# map cmd+plus change_font_size all +2.0
|
||||
# map cmd+equal change_font_size all +2.0
|
||||
# map shift+cmd+equal change_font_size all +2.0
|
||||
|
||||
#: Decrease font size
|
||||
|
||||
# map kitty_mod+minus change_font_size all -2.0
|
||||
# map kitty_mod+kp_subtract change_font_size all -2.0
|
||||
map kitty_mod+minus change_font_size all -0.5
|
||||
map kitty_mod+kp_subtract change_font_size all -0.5
|
||||
# map cmd+minus change_font_size all -2.0
|
||||
# map shift+cmd+minus change_font_size all -2.0
|
||||
|
||||
#: Reset font size
|
||||
|
||||
# map kitty_mod+backspace change_font_size all 0
|
||||
map kitty_mod+backspace change_font_size all 0
|
||||
map kitty_mod+0 change_font_size all 0
|
||||
# map cmd+0 change_font_size all 0
|
||||
|
||||
|
||||
@ -2207,28 +2268,30 @@ font_size 13.0
|
||||
|
||||
#: Open URL
|
||||
|
||||
# map kitty_mod+e open_url_with_hints
|
||||
map kitty_mod+e open_url_with_hints
|
||||
|
||||
#:: Open a currently visible URL using the keyboard. The program used
|
||||
#:: to open the URL is specified in open_url_with.
|
||||
|
||||
#: Insert selected path
|
||||
|
||||
# map kitty_mod+p>f kitten hints --type path --program -
|
||||
# map kitty_mod+p>f kitten hints --type path --alphabet abcdefghijklmnopqrstuvwxyz1234567890 --program -
|
||||
map kitty_mod+i>f kitten hints --type path --alphabet hjklfdsagtyrueiwoqpbnvmcxz1234567890 --program -
|
||||
|
||||
#:: Select a path/filename and insert it into the terminal. Useful,
|
||||
#:: for instance to run git commands on a filename output from a
|
||||
#:: previous git command.
|
||||
|
||||
#: Open selected path
|
||||
|
||||
# map kitty_mod+p>shift+f kitten hints --type path
|
||||
map kitty_mod+o>f kitten hints --type path
|
||||
|
||||
#:: Select a path/filename and open it with the default open program.
|
||||
|
||||
#: Insert selected line
|
||||
|
||||
# map kitty_mod+p>l kitten hints --type line --program -
|
||||
map kitty_mod+i>l kitten hints --type line --program -
|
||||
|
||||
#:: Select a line of text and insert it into the terminal. Useful for
|
||||
#:: the output of things like: `ls -1`.
|
||||
@ -2236,12 +2299,14 @@ font_size 13.0
|
||||
#: Insert selected word
|
||||
|
||||
# map kitty_mod+p>w kitten hints --type word --program -
|
||||
map kitty_mod+i>w kitten hints --type word --program -
|
||||
|
||||
#:: Select words and insert into terminal.
|
||||
|
||||
#: Insert selected hash
|
||||
|
||||
# map kitty_mod+p>h kitten hints --type hash --program -
|
||||
#: yank selected hash
|
||||
map kitty_mod+y>h kitten hints --type hash --program @
|
||||
#: insert selected hash
|
||||
map kitty_mod+i>h kitten hints --type hash --program -
|
||||
|
||||
#:: Select something that looks like a hash and insert it into the
|
||||
#:: terminal. Useful with git, which uses SHA1 hashes to identify
|
||||
@ -2250,6 +2315,7 @@ font_size 13.0
|
||||
#: Open the selected file at the selected line
|
||||
|
||||
# map kitty_mod+p>n kitten hints --type linenum
|
||||
map kitty_mod+o>n kitten hints --type linenum
|
||||
|
||||
#:: Select something that looks like filename:linenum and open it in
|
||||
#:: vim at the specified line number.
|
||||
@ -2257,6 +2323,8 @@ font_size 13.0
|
||||
#: Open the selected hyperlink
|
||||
|
||||
# map kitty_mod+p>y kitten hints --type hyperlink
|
||||
map kitty_mod+o>h kitten hints --type hyperlink
|
||||
map kitty_mod+o>l kitten hints --type hyperlink
|
||||
|
||||
#:: Select a hyperlink (i.e. a URL that has been marked as such by
|
||||
#:: the terminal program, for example, by `ls --hyperlink=auto`).
|
||||
@ -2289,6 +2357,7 @@ font_size 13.0
|
||||
#: Unicode input
|
||||
|
||||
# map kitty_mod+u kitten unicode_input
|
||||
map kitty_mod+shift+u kitten unicode_input
|
||||
# map ctrl+cmd+space kitten unicode_input
|
||||
|
||||
#: Edit config file
|
||||
@ -2298,30 +2367,36 @@ font_size 13.0
|
||||
|
||||
#: Open the kitty command shell
|
||||
|
||||
# map kitty_mod+escape kitty_shell window
|
||||
map kitty_mod+escape kitty_shell window
|
||||
|
||||
#:: Open the kitty shell in a new window / tab / overlay / os_window
|
||||
#:: to control kitty using commands.
|
||||
|
||||
#: Increase background opacity
|
||||
|
||||
map kitty_mod+ctrl+i set_background_opacity +0.1
|
||||
# map kitty_mod+a>m set_background_opacity +0.1
|
||||
|
||||
#: Decrease background opacity
|
||||
|
||||
map kitty_mod+ctrl+d set_background_opacity -0.1
|
||||
# map kitty_mod+a>l set_background_opacity -0.1
|
||||
|
||||
#: Make background fully opaque
|
||||
|
||||
map kitty_mod+ctrl+f set_background_opacity 1
|
||||
# map kitty_mod+a>1 set_background_opacity 1
|
||||
|
||||
#: Reset background opacity
|
||||
|
||||
map kitty_mod+ctrl+r set_background_opacity default
|
||||
# map kitty_mod+a>d set_background_opacity default
|
||||
|
||||
#: Reset the terminal
|
||||
|
||||
# map kitty_mod+delete clear_terminal reset active
|
||||
map kitty_mod+delete clear_terminal reset active
|
||||
map kitty_mod+backspace clear_terminal reset active
|
||||
# map opt+cmd+r clear_terminal reset active
|
||||
|
||||
#:: You can create shortcuts to clear/reset the terminal. For
|
||||
@ -2379,7 +2454,7 @@ font_size 13.0
|
||||
|
||||
#: Reload kitty.conf
|
||||
|
||||
# map kitty_mod+f5 load_config_file
|
||||
map kitty_mod+f5 load_config_file
|
||||
# map ctrl+cmd+, load_config_file
|
||||
|
||||
#:: Reload kitty.conf, applying any changes since the last time it
|
||||
@ -2405,6 +2480,8 @@ font_size 13.0
|
||||
#: Send arbitrary text on key presses
|
||||
|
||||
#:: E.g. map ctrl+shift+alt+h send_text all Hello World
|
||||
#send ctrl+l with kitty mod
|
||||
map kitty_mod+l send_text application \f
|
||||
|
||||
#:: You can tell kitty to send arbitrary (UTF-8) encoded text to the
|
||||
#:: client program when pressing specified shortcut keys. For
|
||||
|
33
.config/kitty/launch-actions.conf
Normal file
33
.config/kitty/launch-actions.conf
Normal file
@ -0,0 +1,33 @@
|
||||
# Open script files
|
||||
protocol file
|
||||
ext sh,command,tool
|
||||
action launch --hold --type=os-window kitty +shebang $FILE_PATH $SHELL
|
||||
|
||||
# Open shell specific script files
|
||||
protocol file
|
||||
ext fish,bash,zsh
|
||||
action launch --hold --type=os-window kitty +shebang $FILE_PATH __ext__
|
||||
|
||||
# Open directories
|
||||
protocol file
|
||||
mime inode/directory
|
||||
action launch --type=os-window --cwd $FILE_PATH
|
||||
|
||||
# Open executable file
|
||||
protocol file
|
||||
mime inode/executable,application/vnd.microsoft.portable-executable
|
||||
action launch --hold --type=os-window $FILE_PATH
|
||||
|
||||
# Open text files without fragments in the editor
|
||||
protocol file
|
||||
mime text/*
|
||||
action launch --type=os-window $EDITOR $FILE_PATH
|
||||
|
||||
# Open image files with icat
|
||||
protocol file
|
||||
mime image/*
|
||||
action launch --type=os-window kitten icat --hold $FILE_PATH
|
||||
|
||||
# Open ssh URLs with ssh command
|
||||
protocol ssh
|
||||
action launch --type=os-window ssh $URL
|
174
.config/kitty/my_shortcuts.conf
Normal file
174
.config/kitty/my_shortcuts.conf
Normal file
@ -0,0 +1,174 @@
|
||||
# vim:fileencoding=utf-8:foldmethod=marker:ft=kitty
|
||||
# these shortcuts are here for just reference.
|
||||
# TODO: update this shortcuts with actual kitty config
|
||||
# and import this file directly
|
||||
|
||||
map f1 launch_tab ${EDITOR}
|
||||
|
||||
# masked by create new window but let's see
|
||||
# map kitty_mod+c copy_to_clipboard
|
||||
map kitty_mod+v paste_from_clipboard
|
||||
|
||||
map kitty_mod+k scroll_line_up
|
||||
map kitty_mod+j scroll_line_down
|
||||
|
||||
map kitty_mod+u scroll_page_up
|
||||
map kitty_mod+page_up scroll_page_up
|
||||
|
||||
map kitty_mod+d scroll_page_down
|
||||
map kitty_mod+page_down scroll_page_down
|
||||
|
||||
map kitty_mod+home scroll_home
|
||||
map kitty_mod+end scroll_end
|
||||
|
||||
map kitty_mod+z scroll_to_prompt -1
|
||||
map kitty_mod+x scroll_to_prompt 1
|
||||
|
||||
map kitty_mod+h show_scrollback
|
||||
map kitty_mod+g show_last_command_output
|
||||
|
||||
#: New window
|
||||
map kitty_mod+c launch --cwd=current
|
||||
|
||||
|
||||
## new window beside
|
||||
map kitty_mod+b launch --location=neighbor
|
||||
map kitty_mod+f launch --location=first
|
||||
|
||||
map kitty_mod+q close_window
|
||||
map kitty_mod+w close_tab
|
||||
|
||||
|
||||
map kitty_mod+. move_window_forward
|
||||
map kitty_mod+, move_window_backward
|
||||
map kitty_mod+shift+. move_tab_forward
|
||||
map kitty_mod+shift+, move_tab_backward
|
||||
|
||||
#: Make window mAin window
|
||||
map kitty_mod+a move_window_to_top
|
||||
|
||||
map kitty_mod+escape kitty_shell window
|
||||
|
||||
map kitty_mod+shift+u kitten unicode_input
|
||||
|
||||
map kitty_mod+m toggle_layout stack
|
||||
|
||||
|
||||
map kitty_mod+e open_url_with_hints
|
||||
|
||||
#: Insert selected path
|
||||
map kitty_mod+i>f kitten hints --type path --alphabet hjklfdsagtyrueiwoqpbnvmcxz1234567890 --program -
|
||||
|
||||
#: Insert selected line
|
||||
map kitty_mod+i>l kitten hints --type line --program -
|
||||
#: Insert selected word
|
||||
map kitty_mod+i>w kitten hints --type word --program -
|
||||
|
||||
#: Open selected path
|
||||
map kitty_mod+o>f kitten hints --type path
|
||||
#:: Select something that looks like filename:linenum and open it in
|
||||
#:: vim at the specified line number.
|
||||
map kitty_mod+o>n kitten hints --type linenum
|
||||
|
||||
|
||||
#:: Select a hyperlink (i.e. a URL that has been marked as such by
|
||||
#:: the terminal program, for example, by `ls --hyperlink=auto`).
|
||||
map kitty_mod+o>h kitten hints --type hyperlink
|
||||
map kitty_mod+o>l kitten hints --type hyperlink
|
||||
|
||||
|
||||
#: yank selected hash
|
||||
map kitty_mod+y>h kitten hints --type hash --program @
|
||||
#insert selected hash
|
||||
map kitty_mod+i>h kitten hints --type hash --program -
|
||||
|
||||
|
||||
map ctrl+j kitten pass_keys.py neighboring_window bottom ctrl+j
|
||||
map ctrl+k kitten pass_keys.py neighboring_window top ctrl+k
|
||||
map ctrl+h kitten pass_keys.py neighboring_window left ctrl+h
|
||||
map ctrl+l kitten pass_keys.py neighboring_window right ctrl+l
|
||||
|
||||
# the 3 here is the resize amount, adjust as needed
|
||||
map kitty_mod+ctrl+j kitten pass_keys.py relative_resize down 3 alt+j
|
||||
map kitty_mod+ctrl+k kitten pass_keys.py relative_resize up 3 alt+k
|
||||
map kitty_mod+ctrl+h kitten pass_keys.py relative_resize left 3 alt+h
|
||||
map kitty_mod+ctrl+l kitten pass_keys.py relative_resize right 3 alt+l
|
||||
|
||||
#switch to window
|
||||
map kitty_mod+s focus_visible_window
|
||||
map kitty_mod+ctrl+s swap_with_window
|
||||
|
||||
|
||||
map kitty_mod+n next_tab
|
||||
map kitty_mod+p previous_tab
|
||||
|
||||
map kitty_mod+t new_tab !neighbor
|
||||
map kitty_mod+shift+t new_tab
|
||||
|
||||
|
||||
# rename
|
||||
map kitty_mod+r set_tab_title
|
||||
|
||||
|
||||
|
||||
|
||||
map kitty_mod+space next_layout
|
||||
map kitty_mod+shift+space last_used_layout
|
||||
map kitty_mod+ctrl+space last_used_layout
|
||||
|
||||
|
||||
|
||||
map kitty_mod+tab goto_tab -1
|
||||
map kitty_mod+1 goto_tab 1
|
||||
map kitty_mod+2 goto_tab 2
|
||||
map kitty_mod+3 goto_tab 3
|
||||
map kitty_mod+4 goto_tab 4
|
||||
map kitty_mod+5 goto_tab 5
|
||||
map kitty_mod+6 goto_tab 6
|
||||
map kitty_mod+7 goto_tab 7
|
||||
map kitty_mod+8 goto_tab 8
|
||||
map kitty_mod+9 goto_tab 9
|
||||
|
||||
# map kitty_mod+ctrl+q goto_tab 1
|
||||
# map kitty_mod+ctrl+w goto_tab 2
|
||||
# map kitty_mod+ctrl+e goto_tab 3
|
||||
# map kitty_mod+ctrl+r goto_tab 4
|
||||
# map kitty_mod+ctrl+t goto_tab 5
|
||||
# map kitty_mod+ctrl+y goto_tab 6
|
||||
# map kitty_mod+ctrl+u goto_tab 7
|
||||
# map kitty_mod+ctrl+i goto_tab 8
|
||||
# map kitty_mod+ctrl+o goto_tab 9
|
||||
|
||||
map kitty_mod+equal change_font_size all +0.5
|
||||
map kitty_mod+plus change_font_size all +0.5
|
||||
map kitty_mod+kp_add change_font_size all +0.5
|
||||
# map cmd+plus change_font_size all +2.0
|
||||
# map cmd+equal change_font_size all +2.0
|
||||
# map shift+cmd+equal change_font_size all +2.0
|
||||
|
||||
#: Decrease font size
|
||||
|
||||
map kitty_mod+minus change_font_size all -0.5
|
||||
map kitty_mod+kp_subtract change_font_size all -0.5
|
||||
# map cmd+minus change_font_size all -2.0
|
||||
# map shift+cmd+minus change_font_size all -2.0
|
||||
|
||||
#: Reset font size
|
||||
|
||||
map kitty_mod+backspace change_font_size all 0
|
||||
map kitty_mod+0 change_font_size all 0
|
||||
|
||||
|
||||
map kitty_mod+ctrl+i set_background_opacity +0.1
|
||||
map kitty_mod+ctrl+d set_background_opacity -0.1
|
||||
map kitty_mod+ctrl+f set_background_opacity 1
|
||||
map kitty_mod+ctrl+r set_background_opacity default
|
||||
|
||||
|
||||
map kitty_mod+delete clear_terminal reset active
|
||||
map kitty_mod+backspace clear_terminal reset active
|
||||
|
||||
|
||||
map kitty_mod+f5 load_config_file
|
||||
#send ctrl+l with kitty mod
|
||||
map kitty_mod+l send_text application \f
|
21
.config/kitty/open-actions.conf
Normal file
21
.config/kitty/open-actions.conf
Normal file
@ -0,0 +1,21 @@
|
||||
# Open any image in the full kitty window by clicking on it
|
||||
protocol file
|
||||
mime image/*
|
||||
action launch --type=overlay kitten icat --hold ${FILE_PATH}
|
||||
|
||||
# Open any file with a fragment in vim, fragments are generated
|
||||
# by the hyperlink_grep kitten or ripgrep v13.0+
|
||||
protocol file
|
||||
fragment_matches [0-9]+
|
||||
action launch --type=overlay --cwd=current ${EDITOR} +${FRAGMENT} ${FILE_PATH}
|
||||
|
||||
# open file in $EDITOR when clicked
|
||||
protocol file
|
||||
mime text/*
|
||||
action launch --type=overlay --cwd=current ${EDITOR} ${FILE_PATH}
|
||||
|
||||
# Tail a log file (*.log) in a new OS Window and reduce its font size
|
||||
# protocol file
|
||||
# ext log
|
||||
# action launch --title ${FILE} --type=os-window tail -f ${FILE_PATH}
|
||||
# action change_font_size current -2
|
77
.config/kitty/tokyonight.conf
Normal file
77
.config/kitty/tokyonight.conf
Normal file
@ -0,0 +1,77 @@
|
||||
# Tokyo Night color scheme for kitty terminal emulator
|
||||
# https://github.com/davidmathers/tokyo-night-kitty-theme
|
||||
#
|
||||
# Based on Tokyo Night color theme for Visual Studio Code
|
||||
# https://github.com/enkia/tokyo-night-vscode-theme
|
||||
|
||||
foreground #a9b1d6
|
||||
background #1a1b26
|
||||
|
||||
# Black
|
||||
color0 #414868
|
||||
color8 #414868
|
||||
|
||||
# Red
|
||||
color1 #f7768e
|
||||
color9 #f7768e
|
||||
|
||||
# Green
|
||||
color2 #73daca
|
||||
color10 #73daca
|
||||
|
||||
# Yellow
|
||||
color3 #e0af68
|
||||
color11 #e0af68
|
||||
|
||||
# Blue
|
||||
color4 #7aa2f7
|
||||
color12 #7aa2f7
|
||||
|
||||
# Magenta
|
||||
color5 #bb9af7
|
||||
color13 #bb9af7
|
||||
|
||||
# Cyan
|
||||
color6 #7dcfff
|
||||
color14 #7dcfff
|
||||
|
||||
# White
|
||||
color7 #c0caf5
|
||||
color15 #c0caf5
|
||||
|
||||
# Cursor
|
||||
cursor #c0caf5
|
||||
cursor_text_color #1a1b26
|
||||
|
||||
# Selection highlight
|
||||
selection_foreground none
|
||||
selection_background #28344a
|
||||
|
||||
# The color for highlighting URLs on mouse-over
|
||||
url_color #9ece6a
|
||||
|
||||
# Window borders
|
||||
active_border_color #3d59a1
|
||||
inactive_border_color #101014
|
||||
bell_border_color #e0af68
|
||||
|
||||
# Tab bar
|
||||
tab_bar_style fade
|
||||
tab_fade 1
|
||||
active_tab_foreground #3d59a1
|
||||
active_tab_background #16161e
|
||||
active_tab_font_style bold
|
||||
inactive_tab_foreground #787c99
|
||||
inactive_tab_background #16161e
|
||||
inactive_tab_font_style bold
|
||||
tab_bar_background #101014
|
||||
|
||||
# Title bar
|
||||
macos_titlebar_color #16161e
|
||||
|
||||
# Storm
|
||||
# background #24283b
|
||||
# cursor_text_color #24283b
|
||||
# active_tab_background #1f2335
|
||||
# inactive_tab_background #1f2335
|
||||
# macos_titlebar_color #1f2335
|
53
.config/swaylock/config
Normal file
53
.config/swaylock/config
Normal file
@ -0,0 +1,53 @@
|
||||
ignore-empty-password
|
||||
#font=Ubuntu Mono Nerd Font
|
||||
|
||||
#clock
|
||||
#timestr=%R
|
||||
|
||||
image=~/Pictures/Wallpapers/kill-win.png
|
||||
|
||||
# fade-in=0.2
|
||||
|
||||
#effect-blur=15x2
|
||||
#effect-greyscale
|
||||
#effect-scale=0.1
|
||||
|
||||
# show-keyboard-layout
|
||||
# indicator
|
||||
indicator-radius=170
|
||||
indicator-thickness=10
|
||||
indicator-caps-lock
|
||||
indicator-x-position=1165
|
||||
indicator-y-position=625
|
||||
|
||||
key-hl-color=880033ff
|
||||
|
||||
separator-color=00000000
|
||||
|
||||
inside-color=01010133
|
||||
inside-clear-color=ffd20433
|
||||
inside-caps-lock-color=009ddc33
|
||||
inside-ver-color=d9d8d833
|
||||
inside-wrong-color=ee2e2433
|
||||
|
||||
ring-color=231f20D9
|
||||
ring-clear-color=231f20D9
|
||||
ring-caps-lock-color=231f20D9
|
||||
ring-ver-color=231f20D9
|
||||
ring-wrong-color=231f20D9
|
||||
|
||||
line-color=00000000
|
||||
line-clear-color=ffd204FF
|
||||
line-caps-lock-color=009ddcFF
|
||||
line-ver-color=d9d8d8FF
|
||||
line-wrong-color=ee2e24FF
|
||||
|
||||
text-color=dededeff
|
||||
text-clear-color=ffd204ff
|
||||
text-ver-color=000000ff
|
||||
text-wrong-color=ee2e24ff
|
||||
|
||||
bs-hl-color=ffd204ff
|
||||
caps-lock-key-hl-color=ffd204FF
|
||||
caps-lock-bs-hl-color=dededeFF
|
||||
text-caps-lock-color=009ddcff
|
@ -1 +1 @@
|
||||
Subproject commit 20dfe30e960d98db2c259a355ecef96f43ca6021
|
||||
Subproject commit fa451e2629328a0cca6fffdc3c46d99f25d544ab
|
11
.gitconfig
11
.gitconfig
@ -4,3 +4,14 @@
|
||||
signingkey = sahin@sahinakkaya.dev
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[diff]
|
||||
tool = kitty
|
||||
guitool = kitty.gui
|
||||
[difftool]
|
||||
prompt = false
|
||||
trustExitCode = true
|
||||
[difftool "kitty"]
|
||||
cmd = kitten diff $LOCAL $REMOTE
|
||||
[difftool "kitty.gui"]
|
||||
cmd = kitten diff $LOCAL $REMOTE
|
||||
|
22
scripts/smart-exec
Executable file
22
scripts/smart-exec
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the currently focused workspace
|
||||
current_workspace=$(hyprctl monitors -j | jq '.[] | .activeWorkspace.id' )
|
||||
|
||||
# Define preferred apps based on workspace
|
||||
case $current_workspace in
|
||||
1) app="kitty --single-instance";;
|
||||
2) app="default";;
|
||||
3) app="thunderbird";;
|
||||
4) app="firefox";;
|
||||
5) app="default";;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
if [[ "$app" == "default" ]]; then
|
||||
hyprctl dispatch exec "wofi --show drun --normal-window"
|
||||
else
|
||||
notify-send -t 500 "opening $app"
|
||||
hyprctl dispatch exec "$app"
|
||||
fi
|
21
scripts/smart-switch
Executable file
21
scripts/smart-switch
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
monitors=$(hyprctl monitors -j | jq '.[] | .name')
|
||||
edp=$(echo "$monitors" | grep eDP)
|
||||
hdmi=$(echo "$monitors" | grep HDMI)
|
||||
|
||||
if [[ "$1" == "close" ]]; then # lid is closing
|
||||
if [[ -n "$hdmi" ]]; then # -n means if string is not empty
|
||||
hyprctl keyword monitor "eDP-1, disable"
|
||||
else
|
||||
hyprctl dispatch exec lock-screen
|
||||
|
||||
fi
|
||||
else
|
||||
if [[ -z "$edp" ]]; then # -z means if string is empty
|
||||
hyprctl keyword monitor eDP-1,preferred,0x1107,2.0
|
||||
killall ags
|
||||
ags
|
||||
fi
|
||||
fi
|
||||
|
16
scripts/smart-tab
Executable file
16
scripts/smart-tab
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
focusedClient=$(hyprctl clients -j | jq '[.[] | select(.focusHistoryID|contains(0))][0]')
|
||||
|
||||
if [[ -n "$focusedClient" ]]; then
|
||||
clientClass=$(echo "$focusedClient" | jq '.class' )
|
||||
|
||||
case "$clientClass" in
|
||||
kitty) hyprctl pass "" # cannot pass arbitrary keys to applications atm. abort mission
|
||||
;;
|
||||
d|D) exit 0
|
||||
;;
|
||||
*) exit 1
|
||||
esac
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user