mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2025-07-04 11:19:06 +03:00
Compare commits
26 Commits
macos
...
582418bbee
Author | SHA1 | Date | |
---|---|---|---|
582418bbee | |||
6ed1448668 | |||
3c91c43fdf | |||
e030b16b8f | |||
328b1eb452 | |||
c0861925f2 | |||
072fa544e7 | |||
3eb28e0bdc | |||
c084dbb908 | |||
bc668fe422 | |||
c69fb12c58 | |||
3cc758d93a | |||
523d3f72ac | |||
897ffc6d1a | |||
fc991838ec | |||
9aaa3b9cb7 | |||
5f9ed3af89 | |||
29d0d36bde | |||
814452d840 | |||
ab71642867 | |||
620ca7b136 | |||
496529371b | |||
69cdb8c04e | |||
7874d509ef | |||
6d38905b4d | |||
2990b556e2 |
@ -126,8 +126,9 @@ env:
|
|||||||
# Font configuration
|
# Font configuration
|
||||||
font:
|
font:
|
||||||
normal:
|
normal:
|
||||||
family: MesloLGS Nerd Font
|
family: FiraCode Nerd Font Mono
|
||||||
style: Regular
|
#family: FantasqueSansM Nerd Font Mono
|
||||||
|
style: regular
|
||||||
|
|
||||||
#font:
|
#font:
|
||||||
# Normal (roman) font face
|
# Normal (roman) font face
|
||||||
|
@ -56,7 +56,7 @@ update_ms = 2000
|
|||||||
|
|
||||||
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
|
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
|
||||||
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
|
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
|
||||||
proc_sorting = "memory"
|
proc_sorting = "cpu lazy"
|
||||||
|
|
||||||
#* Reverse sorting order, True or False.
|
#* Reverse sorting order, True or False.
|
||||||
proc_reversed = False
|
proc_reversed = False
|
||||||
@ -211,4 +211,4 @@ selected_battery = "Auto"
|
|||||||
|
|
||||||
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
|
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
|
||||||
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
|
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
|
||||||
log_level = "WARNING"
|
log_level = "WARNING"
|
||||||
|
19
.config/crontab
Normal file
19
.config/crontab
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# DISPLAY=:0
|
||||||
|
XDG_RUNTIME_DIR=/run/user/1000
|
||||||
|
|
||||||
|
|
||||||
|
# Example of job definition:
|
||||||
|
# .---------------- minute (0 - 59)
|
||||||
|
# | .------------- hour (0 - 23)
|
||||||
|
# | | .---------- day of month (1 - 31)
|
||||||
|
# | | | .------- month (1 - 12) OR Jan-Dec
|
||||||
|
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR SUN-SAT
|
||||||
|
# | | | | |
|
||||||
|
# * * * * * user-name command to be executed
|
||||||
|
|
||||||
|
# * any value
|
||||||
|
# , value list separator
|
||||||
|
# - range of values
|
||||||
|
# / step values
|
||||||
|
|
||||||
|
* * * * * /home/sahin/scripts/check-battery.sh 10
|
3
.config/darkman/config.yaml
Normal file
3
.config/darkman/config.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
lat: 40.0
|
||||||
|
lng: 29.0
|
||||||
|
dbusserver: true
|
7
.config/darkman/scripts/desktop-notification.sh
Executable file
7
.config/darkman/scripts/desktop-notification.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# trigger a small, passive popup dialog to inform the user about darkman's activity
|
||||||
|
# reference https://wiki.archlinux.org/title/Desktop_notifications#Usage_in_programming
|
||||||
|
|
||||||
|
theme=$(darkman get)
|
||||||
|
notify-send --app-name="darkman" --urgency=low --icon=weather-clear-night "switching to $theme mode"
|
12
.config/darkman/scripts/examples/kde-global-theme.sh
Executable file
12
.config/darkman/scripts/examples/kde-global-theme.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Change the global Plasma Theme. On Manjaro you can use "org.manjaro.breath-dark.desktop"
|
||||||
|
# or you can create your own global Plasma Theme with the "Plasma Look And Feel Explorer".
|
||||||
|
# Reference: https://userbase.kde.org/Plasma/Create_a_Global_Theme_Package
|
||||||
|
#
|
||||||
|
# Since Plasma 5.26 the lookandfeeltool does not work anymore without "faking" the screen.
|
||||||
|
# Reference: https://bugs.kde.org/show_bug.cgi?id=460643
|
||||||
|
|
||||||
|
lookandfeeltool -platform offscreen --apply "org.kde.breeze.desktop"
|
||||||
|
# lookandfeeltool -platform offscreen --apply "org.kde.breezetwilight.desktop"
|
||||||
|
# lookandfeeltool -platform offscreen --apply "org.kde.breezedark.desktop"
|
16
.config/darkman/scripts/examples/kde-gtk-theme.sh
Executable file
16
.config/darkman/scripts/examples/kde-gtk-theme.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# GTK apps are not affected by the Plasma Global Theme, which only applies to Qt based programs.
|
||||||
|
# GTK themes can be installed here: Global Theme > Application Style > Configure GNOME/GTK Application Style.
|
||||||
|
# Reference: https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications
|
||||||
|
|
||||||
|
source "$HOME/scripts/common-vars.sh"
|
||||||
|
if [ $theme == "dark" ]; then
|
||||||
|
theme_string="Breeze-dark-gtk"
|
||||||
|
else
|
||||||
|
theme_string="Default"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "string:$theme_string"
|
||||||
|
|
||||||
|
dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:$theme_string"
|
3
.config/darkman/scripts/examples/mako.sh
Executable file
3
.config/darkman/scripts/examples/mako.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
makoctl set-mode dark
|
4
.config/darkman/scripts/gtk.sh
Executable file
4
.config/darkman/scripts/gtk.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
theme=$(darkman get)
|
||||||
|
gsettings set org.gnome.desktop.interface color-scheme "prefer-$theme"
|
31
.config/darkman/scripts/terminal-stuff.sh
Executable file
31
.config/darkman/scripts/terminal-stuff.sh
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# trigger a small, passive popup dialog to inform the user about darkman's activity
|
||||||
|
# reference https://wiki.archlinux.org/title/Desktop_notifications#Usage_in_programming
|
||||||
|
|
||||||
|
|
||||||
|
theme=$(darkman get)
|
||||||
|
PATH="$HOME/.local/bin/:$PATH"
|
||||||
|
|
||||||
|
if [ $theme == "dark" ]; then
|
||||||
|
sed -i 's/tokyonight_day/tokyonight_storm/g' "$HOME/.config/kitty/kitty.conf"
|
||||||
|
sed -i 's/Light/Origin/g' "$HOME/.config/bat/config"
|
||||||
|
sed -i 's/flat-remix-light/tokyo-storm/g' "$HOME/.config/btop/btop.conf"
|
||||||
|
else
|
||||||
|
sed -i 's/tokyonight_storm/tokyonight_day/g' "$HOME/.config/kitty/kitty.conf"
|
||||||
|
sed -i 's/Origin/Light/g' "$HOME/.config/bat/config"
|
||||||
|
sed -i 's/tokyo-storm/flat-remix-light/g' "$HOME/.config/btop/btop.conf"
|
||||||
|
fi
|
||||||
|
|
||||||
|
kill -SIGUSR1 $(pgrep kitty)
|
||||||
|
tmux source-file "$HOME/.config/tmux/$theme.conf"
|
||||||
|
|
||||||
|
|
||||||
|
# This uses the neovim-remote python package to control other neovim instances.
|
||||||
|
# see: https://github.com/mhinz/neovim-remote
|
||||||
|
# Further, it is assumed that toggling the background in neovim is enough.
|
||||||
|
# Anything else should be handled by the set color scheme.
|
||||||
|
|
||||||
|
for server in $(nvr --serverlist); do
|
||||||
|
nvr --servername "$server" -cc "set background=$theme"
|
||||||
|
done
|
245
.config/hypr/hyprland.conf
Normal file
245
.config/hypr/hyprland.conf
Normal file
@ -0,0 +1,245 @@
|
|||||||
|
|
||||||
|
########################################################################################
|
||||||
|
AUTOGENERATED HYPR CONFIG.
|
||||||
|
PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
|
||||||
|
OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
|
||||||
|
########################################################################################
|
||||||
|
|
||||||
|
#
|
||||||
|
# Please note not all available settings / options are set here.
|
||||||
|
# For a full list, see the wiki
|
||||||
|
#
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
|
#monitor=name,resolution,position,scale
|
||||||
|
monitor=,preferred,auto,auto
|
||||||
|
|
||||||
|
|
||||||
|
# centered
|
||||||
|
# monitor=eDP-1,preferred,500x1107,2.0
|
||||||
|
monitor=eDP-1,preferred,0x1107,2.0
|
||||||
|
monitor=HDMI-A-1,preferred,0x0,1.3
|
||||||
|
|
||||||
|
|
||||||
|
# monitor=eDP-1, disable
|
||||||
|
# monitor=,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 = /usr/libexec/kf5/polkit-kde-authentication-agent-1
|
||||||
|
|
||||||
|
# Dim screen after 60 seconds of inactivity
|
||||||
|
exec-once = swayidle -w timeout 60 'dim-screen &' resume 'undim-screen'
|
||||||
|
# Lock screen after idle for 300s
|
||||||
|
exec-once = swayidle -w timeout 300 'lock-screen'
|
||||||
|
# Dim screen 5 seconds after screen is locked. no -w option here.
|
||||||
|
exec-once = swayidle timeout 5 'if pgrep -x swaylock; then dim-screen; fi' resume 'undim-screen'
|
||||||
|
# Turn monitors off 20 seconds after screen is locked
|
||||||
|
exec-once = swayidle -w timeout 20 'if pgrep -x swaylock; then hyprctl dispatch dpms off; fi' resume 'hyprctl dispatch dpms on'
|
||||||
|
|
||||||
|
# exec-once = /usr/libexec/polkit-gnome-authentication-agent-1
|
||||||
|
|
||||||
|
# Source a file (multi-file configs)
|
||||||
|
# source = ~/.config/hypr/myColors.conf
|
||||||
|
|
||||||
|
# Some default env vars.
|
||||||
|
env = XCURSOR_SIZE,24
|
||||||
|
#
|
||||||
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||||
|
input {
|
||||||
|
kb_layout = tr
|
||||||
|
kb_variant = legacy-fix-ansi
|
||||||
|
kb_model =
|
||||||
|
kb_options =
|
||||||
|
kb_rules =
|
||||||
|
|
||||||
|
follow_mouse = 1
|
||||||
|
|
||||||
|
touchpad {
|
||||||
|
natural_scroll = yes
|
||||||
|
drag_lock = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||||
|
}
|
||||||
|
|
||||||
|
device:apple-mtp-keyboard {
|
||||||
|
kb_layout = tr
|
||||||
|
kb_variant = legacy-fix-iso
|
||||||
|
kb_model =
|
||||||
|
kb_options = ctrl:swapcaps
|
||||||
|
kb_rules =
|
||||||
|
}
|
||||||
|
|
||||||
|
general {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
|
||||||
|
gaps_in = 5
|
||||||
|
gaps_out = 20
|
||||||
|
border_size = 2
|
||||||
|
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||||
|
col.inactive_border = rgba(595959aa)
|
||||||
|
|
||||||
|
layout = dwindle
|
||||||
|
|
||||||
|
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||||
|
allow_tearing = false
|
||||||
|
}
|
||||||
|
|
||||||
|
decoration {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
|
||||||
|
rounding = 10
|
||||||
|
|
||||||
|
blur {
|
||||||
|
enabled = true
|
||||||
|
size = 3
|
||||||
|
passes = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
drop_shadow = yes
|
||||||
|
shadow_range = 4
|
||||||
|
shadow_render_power = 3
|
||||||
|
col.shadow = rgba(1a1a1aee)
|
||||||
|
}
|
||||||
|
|
||||||
|
animations {
|
||||||
|
enabled = yes
|
||||||
|
|
||||||
|
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||||
|
|
||||||
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
preserve_split = yes # you probably want this
|
||||||
|
}
|
||||||
|
|
||||||
|
master {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||||
|
new_is_master = true
|
||||||
|
}
|
||||||
|
|
||||||
|
gestures {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
workspace_swipe = on
|
||||||
|
workspace_swipe_cancel_ratio = 0.20
|
||||||
|
}
|
||||||
|
|
||||||
|
misc {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
|
force_default_wallpaper = -1 # Set to 0 to disable the anime mascot wallpapers
|
||||||
|
}
|
||||||
|
|
||||||
|
# Example per-device config
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
||||||
|
device:epic-mouse-v1 {
|
||||||
|
sensitivity = -0.5
|
||||||
|
}
|
||||||
|
|
||||||
|
# Example windowrule v1
|
||||||
|
# windowrule = float, ^(kitty)$
|
||||||
|
# Example windowrule v2
|
||||||
|
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
|
|
||||||
|
windowrulev2 = float,class:^(nm-connection-editor)$,
|
||||||
|
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
|
$mainMod = SUPER
|
||||||
|
|
||||||
|
bind = $mainMod, 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
|
||||||
|
|
||||||
|
# Example special workspace (scratchpad)
|
||||||
|
bind = $mainMod, i, togglespecialworkspace, magic
|
||||||
|
bind = $mainMod SHIFT, i, movetoworkspace, special:magic
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
bind = $mainMod, mouse_down, workspace, e+1
|
||||||
|
bind = $mainMod, mouse_up, workspace, e-1
|
||||||
|
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
||||||
|
|
||||||
|
# screen
|
||||||
|
bindle=,XF86MonBrightnessUp, exec, light -A 3; light -O
|
||||||
|
bindle=,XF86MonBrightnessDown, exec, light -U 3; light -O
|
||||||
|
# bindle=,XF86KbdBrightnessUp, exec, ags -r 'brightness.kbd++; indicator.kbd()'
|
||||||
|
# bindle=,XF86KbdBrightnessDown, exec, ags -r 'brightness.kbd--; indicator.kbd()'
|
||||||
|
#
|
||||||
|
#
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
|
windowrulev2 = stayfocused,class:(wofi)
|
||||||
|
windowrulev2 = noborder,class:(wofi)
|
@ -1 +0,0 @@
|
|||||||
{"title":"MyCustom","rules":[{"description":"Change right alt + turkish char to right opt + turkish char","manipulators":[{"type":"basic","from":{"modifiers":{"mandatory":["right_gui"]},"key_code":"i"},"to":[{"repeat":true,"lazy":false,"key_code":"i","modifiers":["right_alt"]}]},{"type":"basic","from":{"modifiers":{"mandatory":["right_gui"]},"key_code":"o"},"to":[{"repeat":true,"key_code":"o","modifiers":["right_alt"]}]}]},{"description":"","manipulators":[{"type":"basic","from":{}}]}]}
|
|
@ -1,206 +0,0 @@
|
|||||||
{
|
|
||||||
"profiles": [
|
|
||||||
{
|
|
||||||
"complex_modifications": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"description": "Change right_command+hjkl to arrow keys",
|
|
||||||
"manipulators": [
|
|
||||||
{
|
|
||||||
"from": {
|
|
||||||
"key_code": "h",
|
|
||||||
"modifiers": {
|
|
||||||
"mandatory": ["right_alt"],
|
|
||||||
"optional": ["any"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"to": [{ "key_code": "left_arrow" }],
|
|
||||||
"type": "basic"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": {
|
|
||||||
"key_code": "j",
|
|
||||||
"modifiers": {
|
|
||||||
"mandatory": ["right_alt"],
|
|
||||||
"optional": ["any"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"to": [{ "key_code": "down_arrow" }],
|
|
||||||
"type": "basic"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": {
|
|
||||||
"key_code": "k",
|
|
||||||
"modifiers": {
|
|
||||||
"mandatory": ["right_alt"],
|
|
||||||
"optional": ["any"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"to": [{ "key_code": "up_arrow" }],
|
|
||||||
"type": "basic"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": {
|
|
||||||
"key_code": "l",
|
|
||||||
"modifiers": {
|
|
||||||
"mandatory": ["right_alt"],
|
|
||||||
"optional": ["any"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"to": [{ "key_code": "right_arrow" }],
|
|
||||||
"type": "basic"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"devices": [
|
|
||||||
{
|
|
||||||
"identifiers": { "is_keyboard": true },
|
|
||||||
"simple_modifications": [
|
|
||||||
{
|
|
||||||
"from": { "key_code": "caps_lock" },
|
|
||||||
"to": [{ "key_code": "left_control" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "grave_accent_and_tilde" },
|
|
||||||
"to": [{ "key_code": "z" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "non_us_backslash" },
|
|
||||||
"to": [{ "key_code": "grave_accent_and_tilde" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "x" },
|
|
||||||
"to": [{ "key_code": "c" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "z" },
|
|
||||||
"to": [{ "key_code": "x" }]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fn_function_keys": [
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f1" },
|
|
||||||
"to": [{ "key_code": "f1" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f2" },
|
|
||||||
"to": [{ "key_code": "f2" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f3" },
|
|
||||||
"to": [{ "key_code": "f3" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f4" },
|
|
||||||
"to": [{ "key_code": "f4" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f5" },
|
|
||||||
"to": [{ "key_code": "f5" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f6" },
|
|
||||||
"to": [{ "key_code": "f6" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f7" },
|
|
||||||
"to": [{ "key_code": "f7" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f8" },
|
|
||||||
"to": [{ "key_code": "f8" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f9" },
|
|
||||||
"to": [{ "key_code": "f9" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f10" },
|
|
||||||
"to": [{ "key_code": "f10" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f11" },
|
|
||||||
"to": [{ "key_code": "f11" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f12" },
|
|
||||||
"to": [{ "key_code": "f12" }]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"identifiers": {
|
|
||||||
"is_keyboard": true,
|
|
||||||
"product_id": 1,
|
|
||||||
"vendor_id": 16962
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fn_function_keys": [
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f1" },
|
|
||||||
"to": [{ "key_code": "f1" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f2" },
|
|
||||||
"to": [{ "key_code": "f2" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f3" },
|
|
||||||
"to": [{ "key_code": "f3" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f4" },
|
|
||||||
"to": [{ "key_code": "f4" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f5" },
|
|
||||||
"to": [{ "key_code": "f5" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f6" },
|
|
||||||
"to": [{ "key_code": "f6" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f7" },
|
|
||||||
"to": [{ "key_code": "f7" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f8" },
|
|
||||||
"to": [{ "key_code": "f8" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f9" },
|
|
||||||
"to": [{ "key_code": "f9" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f10" },
|
|
||||||
"to": [{ "key_code": "f10" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f11" },
|
|
||||||
"to": [{ "key_code": "f11" }]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": { "key_code": "f12" },
|
|
||||||
"to": [{ "key_code": "f12" }]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"identifiers": {
|
|
||||||
"is_pointing_device": true,
|
|
||||||
"product_id": 1,
|
|
||||||
"vendor_id": 16962
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"name": "Default profile",
|
|
||||||
"selected": true,
|
|
||||||
"virtual_hid_keyboard": {
|
|
||||||
"country_code": 0,
|
|
||||||
"keyboard_type_v2": "ansi"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,129 +0,0 @@
|
|||||||
# 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,24 +1,8 @@
|
|||||||
# vim:fileencoding=utf-8:foldmethod=marker:ft=kitty
|
# vim:fileencoding=utf-8:foldmethod=marker
|
||||||
|
|
||||||
# map f1 show_kitty_env_vars
|
|
||||||
|
|
||||||
|
|
||||||
kitty_mod cmd
|
|
||||||
#: 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.
|
|
||||||
map ctrl+shift+f5 load_config_file
|
|
||||||
|
|
||||||
# kitty-scrollback.nvim Kitten alias
|
|
||||||
action_alias kitty_scrollback_nvim kitten $HOME/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py
|
|
||||||
|
|
||||||
# include ./themes/themes/OneDark.conf
|
# 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/kitty/kanagawa.conf
|
|
||||||
#include ./tokyonight.conf
|
#include ./tokyonight.conf
|
||||||
#Fonts {{{
|
#Fonts {{{
|
||||||
|
|
||||||
@ -27,12 +11,6 @@ include ~/.local/share/nvim/lazy/kanagawa.nvim/extras/kitty/kanagawa.conf
|
|||||||
#: characters.
|
#: characters.
|
||||||
|
|
||||||
font_family FantasqueSansM Nerd Font Mono
|
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 MesloLGS NF
|
||||||
# font_family monospace
|
# font_family monospace
|
||||||
# bold_font auto
|
# bold_font auto
|
||||||
@ -52,7 +30,7 @@ font_family FantasqueSansM Nerd Font Mono
|
|||||||
#: italic_font Operator Mono Book Italic
|
#: italic_font Operator Mono Book Italic
|
||||||
#: bold_italic_font Operator Mono Medium Italic
|
#: bold_italic_font Operator Mono Medium Italic
|
||||||
|
|
||||||
font_size 18.0
|
font_size 13.0
|
||||||
|
|
||||||
#: Font size (in pts)
|
#: Font size (in pts)
|
||||||
|
|
||||||
@ -78,8 +56,6 @@ font_size 18.0
|
|||||||
|
|
||||||
#: E.g. symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols
|
#: 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
|
#: Map the specified Unicode codepoints to a particular font. Useful
|
||||||
#: if you need special rendering for some symbols, such as for
|
#: if you need special rendering for some symbols, such as for
|
||||||
#: Powerline. Avoids the need for patched fonts. Each Unicode code
|
#: Powerline. Avoids the need for patched fonts. Each Unicode code
|
||||||
@ -104,10 +80,16 @@ symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0
|
|||||||
|
|
||||||
#: narrow_symbols codepoints [optionally the number of cells]
|
#: narrow_symbols codepoints [optionally the number of cells]
|
||||||
|
|
||||||
# always, cursor, never
|
# disable_ligatures never
|
||||||
disable_ligatures cursor
|
|
||||||
|
#: 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::
|
||||||
|
|
||||||
#: or you can set shortcuts
|
|
||||||
#: map alt+1 disable_ligatures_in active always
|
#: map alt+1 disable_ligatures_in active always
|
||||||
#: map alt+2 disable_ligatures_in all never
|
#: map alt+2 disable_ligatures_in all never
|
||||||
#: map alt+3 disable_ligatures_in tab cursor
|
#: map alt+3 disable_ligatures_in tab cursor
|
||||||
@ -182,9 +164,9 @@ disable_ligatures cursor
|
|||||||
#: suffix px for pixels or % for percentage of original value. No
|
#: suffix px for pixels or % for percentage of original value. No
|
||||||
#: suffix means use pts. For example::
|
#: suffix means use pts. For example::
|
||||||
|
|
||||||
modify_font underline_position 1
|
#: modify_font underline_position -2
|
||||||
# modify_font underline_thickness 150%
|
#: modify_font underline_thickness 150%
|
||||||
# modify_font strikethrough_position 2px
|
#: modify_font strikethrough_position 2px
|
||||||
|
|
||||||
#: Additionally, you can modify the size of the cell in which each
|
#: Additionally, you can modify the size of the cell in which each
|
||||||
#: font glyph is rendered and the baseline at which the glyph is
|
#: font glyph is rendered and the baseline at which the glyph is
|
||||||
@ -274,7 +256,7 @@ modify_font underline_position 1
|
|||||||
|
|
||||||
#: Cursor customization {{{
|
#: Cursor customization {{{
|
||||||
|
|
||||||
cursor none
|
# cursor #cccccc
|
||||||
|
|
||||||
#: Default cursor color. If set to the special value none the cursor
|
#: 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
|
#: will be rendered with a "reverse video" effect. It's color will be
|
||||||
@ -284,7 +266,7 @@ cursor none
|
|||||||
#: precedence. Also, the cursor colors are modified if the cell
|
#: precedence. Also, the cursor colors are modified if the cell
|
||||||
#: background and foreground colors have very low contrast.
|
#: background and foreground colors have very low contrast.
|
||||||
|
|
||||||
# cursor_text_color background
|
# cursor_text_color #111111
|
||||||
|
|
||||||
#: The color of text under the cursor. If you want it rendered with
|
#: The color of text under the cursor. If you want it rendered with
|
||||||
#: the background color of the cell underneath instead, use the
|
#: the background color of the cell underneath instead, use the
|
||||||
@ -302,7 +284,7 @@ cursor none
|
|||||||
#: the cursor shape to beam at shell prompts. You can avoid this by
|
#: the cursor shape to beam at shell prompts. You can avoid this by
|
||||||
#: setting shell_integration to no-cursor.
|
#: setting shell_integration to no-cursor.
|
||||||
|
|
||||||
cursor_beam_thickness 1.0
|
# cursor_beam_thickness 1.5
|
||||||
|
|
||||||
#: The thickness of the beam cursor (in pts).
|
#: The thickness of the beam cursor (in pts).
|
||||||
|
|
||||||
@ -337,7 +319,6 @@ cursor_beam_thickness 1.0
|
|||||||
#: ones.
|
#: ones.
|
||||||
|
|
||||||
# scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
|
# 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
|
#: Program with which to view scrollback in a new window. The
|
||||||
#: scrollback buffer is passed as STDIN to this program. If you change
|
#: scrollback buffer is passed as STDIN to this program. If you change
|
||||||
@ -349,7 +330,7 @@ scrollback_pager nvim +"source $HOME/.config/kitty/vi-mode.lua"
|
|||||||
#: set to 0 if there is no cursor, for example, when showing the last
|
#: set to 0 if there is no cursor, for example, when showing the last
|
||||||
#: command output.
|
#: command output.
|
||||||
|
|
||||||
scrollback_pager_history_size 10
|
# scrollback_pager_history_size 0
|
||||||
|
|
||||||
#: Separate scrollback history size (in MB), used only for browsing
|
#: Separate scrollback history size (in MB), used only for browsing
|
||||||
#: the scrollback buffer with pager. This separate buffer is not
|
#: the scrollback buffer with pager. This separate buffer is not
|
||||||
@ -395,7 +376,7 @@ scrollback_pager_history_size 10
|
|||||||
|
|
||||||
#: Mouse {{{
|
#: Mouse {{{
|
||||||
|
|
||||||
mouse_hide_wait -1
|
# mouse_hide_wait 3.0
|
||||||
|
|
||||||
#: Hide mouse cursor after the specified number of seconds of the
|
#: Hide mouse cursor after the specified number of seconds of the
|
||||||
#: mouse not being used. Set to zero to disable mouse cursor hiding.
|
#: mouse not being used. Set to zero to disable mouse cursor hiding.
|
||||||
@ -405,12 +386,12 @@ mouse_hide_wait -1
|
|||||||
#: much effort.
|
#: much effort.
|
||||||
|
|
||||||
# url_color #0087bd
|
# url_color #0087bd
|
||||||
url_style straight
|
# url_style curly
|
||||||
|
|
||||||
#: The color and style for highlighting URLs on mouse-over. url_style
|
#: The color and style for highlighting URLs on mouse-over. url_style
|
||||||
#: can be one of: none, straight, double, curly, dotted, dashed.
|
#: 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
|
#: The program to open clicked URLs. The special value default with
|
||||||
#: first look for any URL handlers defined via the open_actions
|
#: first look for any URL handlers defined via the open_actions
|
||||||
@ -442,7 +423,7 @@ open_url_with default
|
|||||||
#: specified using backslash escapes, to specify a backslash use a
|
#: specified using backslash escapes, to specify a backslash use a
|
||||||
#: double backslash.
|
#: double backslash.
|
||||||
|
|
||||||
show_hyperlink_targets no
|
# show_hyperlink_targets no
|
||||||
|
|
||||||
#: When the mouse hovers over a terminal hyperlink, show the actual
|
#: When the mouse hovers over a terminal hyperlink, show the actual
|
||||||
#: URL that will be activated when the hyperlink is clicked.
|
#: URL that will be activated when the hyperlink is clicked.
|
||||||
@ -457,7 +438,7 @@ show_hyperlink_targets no
|
|||||||
#: value to/from always will only affect text subsequently received by
|
#: value to/from always will only affect text subsequently received by
|
||||||
#: kitty.
|
#: kitty.
|
||||||
|
|
||||||
copy_on_select clipboard
|
# copy_on_select no
|
||||||
|
|
||||||
#: Copy to clipboard or a private buffer on select. With this set to
|
#: 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
|
#: clipboard, selecting text with the mouse will cause the text to be
|
||||||
@ -474,7 +455,7 @@ copy_on_select clipboard
|
|||||||
#: programs, including websites open in your browser can read the
|
#: programs, including websites open in your browser can read the
|
||||||
#: contents of the system clipboard.
|
#: contents of the system clipboard.
|
||||||
|
|
||||||
paste_actions quote-urls-at-prompt,confirm,confirm-if-large
|
# paste_actions quote-urls-at-prompt,confirm
|
||||||
|
|
||||||
#: A comma separated list of actions to take when pasting text into
|
#: A comma separated list of actions to take when pasting text into
|
||||||
#: the terminal. The supported paste actions are:
|
#: the terminal. The supported paste actions are:
|
||||||
@ -526,7 +507,7 @@ paste_actions quote-urls-at-prompt,confirm,confirm-if-large
|
|||||||
#: clicks (in seconds). Negative numbers will use the system default
|
#: clicks (in seconds). Negative numbers will use the system default
|
||||||
#: instead, if available, or fallback to 0.5.
|
#: 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
|
#: 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
|
#: mouse around. On macOS, this will also cause the OS Window under
|
||||||
@ -592,7 +573,7 @@ focus_follows_mouse no
|
|||||||
|
|
||||||
#: Click the link under the mouse or move the cursor
|
#: 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
|
#:: 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
|
#:: check for a link under the mouse cursor and if one exists, click
|
||||||
@ -601,9 +582,6 @@ mouse_map left click ungrabbed mouse_handle_click selection link prompt
|
|||||||
#:: that this requires shell integration
|
#:: that this requires shell integration
|
||||||
#:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
|
#:: <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
|
#: 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
|
# mouse_map shift+left click grabbed,ungrabbed mouse_handle_click selection link prompt
|
||||||
@ -701,8 +679,6 @@ mouse_map right press ungrabbed mouse_select_command_output
|
|||||||
|
|
||||||
# mouse_map ctrl+shift+right press ungrabbed mouse_show_command_output
|
# 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
|
#:: Requires shell integration
|
||||||
#:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
|
#:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
|
||||||
|
|
||||||
@ -743,12 +719,13 @@ mouse_map kitty_mod+right press ungrabbed combine : mouse_select_command_output
|
|||||||
|
|
||||||
#: Terminal bell {{{
|
#: Terminal bell {{{
|
||||||
|
|
||||||
enable_audio_bell no
|
# enable_audio_bell yes
|
||||||
|
|
||||||
#: The audio bell. Useful to disable it in environments that require
|
#: The audio bell. Useful to disable it in environments that require
|
||||||
#: silence.
|
#: silence.
|
||||||
|
|
||||||
visual_bell_duration 0.05
|
# visual_bell_duration 0.0
|
||||||
|
|
||||||
#: The visual bell duration (in seconds). Flash the screen when a bell
|
#: The visual bell duration (in seconds). Flash the screen when a bell
|
||||||
#: occurs for the specified number of seconds. Set to zero to disable.
|
#: occurs for the specified number of seconds. Set to zero to disable.
|
||||||
|
|
||||||
@ -810,8 +787,8 @@ visual_bell_duration 0.05
|
|||||||
#: suffix of "c" on the width/height values to have them interpreted
|
#: suffix of "c" on the width/height values to have them interpreted
|
||||||
#: as number of cells instead of pixels.
|
#: as number of cells instead of pixels.
|
||||||
|
|
||||||
# enabled_layouts tall, fat:bias=75, splits:split_axis=vertical, grid, vertical, horizontal, stack
|
# enabled_layouts *
|
||||||
enabled_layouts fat:bias=75, tall, splits:split_axis=vertical, grid, stack
|
|
||||||
#: The enabled window layouts. A comma separated list of layout names.
|
#: The enabled window layouts. A comma separated list of layout names.
|
||||||
#: The special value all means all layouts. The first listed layout
|
#: The special value all means all layouts. The first listed layout
|
||||||
#: will be used as the startup layout. Default configuration is all
|
#: will be used as the startup layout. Default configuration is all
|
||||||
@ -841,14 +818,14 @@ enabled_layouts fat:bias=75, tall, splits:split_axis=vertical, grid, stack
|
|||||||
#: that setting a non-zero window_margin_width overrides this and
|
#: that setting a non-zero window_margin_width overrides this and
|
||||||
#: causes all borders to be drawn.
|
#: causes all borders to be drawn.
|
||||||
|
|
||||||
# window_margin_width 0 12
|
# window_margin_width 0
|
||||||
|
|
||||||
#: The window margin (in pts) (blank area outside the border). A
|
#: The window margin (in pts) (blank area outside the border). A
|
||||||
#: single value sets all four sides. Two values set the vertical and
|
#: single value sets all four sides. Two values set the vertical and
|
||||||
#: horizontal sides. Three values set top, horizontal and bottom. Four
|
#: horizontal sides. Three values set top, horizontal and bottom. Four
|
||||||
#: values set top, right, bottom and left.
|
#: values set top, right, bottom and left.
|
||||||
|
|
||||||
single_window_margin_width 0 2
|
# single_window_margin_width -1
|
||||||
|
|
||||||
#: The window margin to use when only a single window is visible (in
|
#: The window margin to use when only a single window is visible (in
|
||||||
#: pts). Negative values will cause the value of window_margin_width
|
#: pts). Negative values will cause the value of window_margin_width
|
||||||
@ -894,12 +871,12 @@ single_window_margin_width 0 2
|
|||||||
#: The color for the border of inactive windows in which a bell has
|
#: The color for the border of inactive windows in which a bell has
|
||||||
#: occurred.
|
#: occurred.
|
||||||
|
|
||||||
inactive_text_alpha 0.7
|
# inactive_text_alpha 1.0
|
||||||
|
|
||||||
#: Fade the text in inactive windows by the specified amount (a number
|
#: Fade the text in inactive windows by the specified amount (a number
|
||||||
#: between zero and one, with zero being fully faded).
|
#: between zero and one, with zero being fully faded).
|
||||||
|
|
||||||
hide_window_decorations no
|
# hide_window_decorations no
|
||||||
|
|
||||||
#: Hide the window decorations (title-bar and window borders) with
|
#: Hide the window decorations (title-bar and window borders) with
|
||||||
#: yes. On macOS, titlebar-only and titlebar-and-corners can be used
|
#: yes. On macOS, titlebar-only and titlebar-and-corners can be used
|
||||||
@ -953,7 +930,7 @@ hide_window_decorations no
|
|||||||
#: used to keep the margins as small as possible when resizing the OS
|
#: used to keep the margins as small as possible when resizing the OS
|
||||||
#: window. Note that this does not currently work on Wayland.
|
#: window. Note that this does not currently work on Wayland.
|
||||||
|
|
||||||
visual_window_select_characters hjklfdsagtyrueiwoqpbnvmcxz
|
# visual_window_select_characters 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||||
|
|
||||||
#: The list of characters for visual window selection. For example,
|
#: The list of characters for visual window selection. For example,
|
||||||
#: for selecting a window to focus on with focus_visible_window. The
|
#: for selecting a window to focus on with focus_visible_window. The
|
||||||
@ -995,7 +972,7 @@ visual_window_select_characters hjklfdsagtyrueiwoqpbnvmcxz
|
|||||||
#: The second number is the margin between the tab bar and the
|
#: The second number is the margin between the tab bar and the
|
||||||
#: contents of the current tab.
|
#: contents of the current tab.
|
||||||
|
|
||||||
tab_bar_style custom
|
# tab_bar_style fade
|
||||||
|
|
||||||
#: The tab bar style, can be one of:
|
#: The tab bar style, can be one of:
|
||||||
|
|
||||||
@ -1021,12 +998,12 @@ tab_bar_style custom
|
|||||||
#: a mapping for the select_tab action which presents you with a list of
|
#: a mapping for the select_tab action which presents you with a list of
|
||||||
#: tabs and allows for easy switching to a tab.
|
#: 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,
|
#: The horizontal alignment of the tab bar, can be one of: left,
|
||||||
#: center, right.
|
#: center, right.
|
||||||
|
|
||||||
tab_bar_min_tabs 1
|
# tab_bar_min_tabs 2
|
||||||
|
|
||||||
#: The minimum number of tabs that must exist before the tab bar is
|
#: The minimum number of tabs that must exist before the tab bar is
|
||||||
#: shown.
|
#: shown.
|
||||||
@ -1053,7 +1030,7 @@ tab_bar_min_tabs 1
|
|||||||
#: The separator between tabs in the tab bar when using separator as
|
#: The separator between tabs in the tab bar when using separator as
|
||||||
#: the tab_bar_style.
|
#: the tab_bar_style.
|
||||||
|
|
||||||
tab_powerline_style slanted
|
# tab_powerline_style angled
|
||||||
|
|
||||||
#: The powerline separator style between tabs in the tab bar when
|
#: The powerline separator style between tabs in the tab bar when
|
||||||
#: using powerline as the tab_bar_style, can be one of: angled,
|
#: using powerline as the tab_bar_style, can be one of: angled,
|
||||||
@ -1066,13 +1043,12 @@ tab_powerline_style slanted
|
|||||||
#: leading or trailing spaces, surround the text with quotes. See
|
#: leading or trailing spaces, surround the text with quotes. See
|
||||||
#: tab_title_template for how this is rendered.
|
#: tab_title_template for how this is rendered.
|
||||||
|
|
||||||
tab_title_max_length 20
|
# tab_title_max_length 0
|
||||||
|
|
||||||
#: The maximum number of cells that can be used to render the text in
|
#: 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.
|
#: 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}{index}:{title}"
|
# tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{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
|
#: A template to render the tab title. The default just renders the
|
||||||
#: title with optional symbols for bell and activity. If you wish to
|
#: title with optional symbols for bell and activity. If you wish to
|
||||||
@ -1113,8 +1089,8 @@ tab_title_template "{title}{fmt.bold}{' ' if num_windows > 1 and layout_name
|
|||||||
#: Note that for backward compatibility, if {bell_symbol} or
|
#: Note that for backward compatibility, if {bell_symbol} or
|
||||||
#: {activity_symbol} are not present in the template, they are
|
#: {activity_symbol} are not present in the template, they are
|
||||||
#: prepended to it.
|
#: prepended to it.
|
||||||
# active_tab_title_template "{" " if layout_name == "grid" else " " if layout_name == "stack" else " " if layout_name == "fat" else " " if layout_name == "tall" else " "}{fmt.fg.tab}{sub.index}:{title}"
|
|
||||||
active_tab_title_template "{fmt.fg.tab}{index}:{title}"
|
# active_tab_title_template none
|
||||||
|
|
||||||
#: Template to use for active tabs. If not specified falls back to
|
#: Template to use for active tabs. If not specified falls back to
|
||||||
#: tab_title_template.
|
#: tab_title_template.
|
||||||
@ -1149,7 +1125,7 @@ active_tab_title_template "{fmt.fg.tab}{index}:{title}"
|
|||||||
|
|
||||||
#: The foreground and background colors.
|
#: The foreground and background colors.
|
||||||
|
|
||||||
background_opacity 1
|
# background_opacity 1.0
|
||||||
|
|
||||||
#: The opacity of the background. A number between zero and one, where
|
#: 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
|
#: one is opaque and zero is fully transparent. This will only work if
|
||||||
@ -1185,6 +1161,8 @@ background_opacity 1
|
|||||||
#: platform implements it, so use with care. Currently supported on
|
#: platform implements it, so use with care. Currently supported on
|
||||||
#: macOS and KDE under X11.
|
#: macOS and KDE under X11.
|
||||||
|
|
||||||
|
# background_image none
|
||||||
|
|
||||||
#: Path to a background image. Must be in PNG format.
|
#: Path to a background image. Must be in PNG format.
|
||||||
|
|
||||||
# background_image_layout tiled
|
# background_image_layout tiled
|
||||||
@ -1199,14 +1177,14 @@ background_opacity 1
|
|||||||
#: When background image is scaled, whether linear interpolation
|
#: When background image is scaled, whether linear interpolation
|
||||||
#: should be used.
|
#: should be used.
|
||||||
|
|
||||||
dynamic_background_opacity yes
|
# dynamic_background_opacity no
|
||||||
|
|
||||||
#: Allow changing of the background_opacity dynamically, using either
|
#: Allow changing of the background_opacity dynamically, using either
|
||||||
#: keyboard shortcuts (increase_background_opacity and
|
#: keyboard shortcuts (increase_background_opacity and
|
||||||
#: decrease_background_opacity) or the remote control facility.
|
#: decrease_background_opacity) or the remote control facility.
|
||||||
#: Changing this option by reloading the config is not supported.
|
#: Changing this option by reloading the config is not supported.
|
||||||
|
|
||||||
# background_tint 1
|
# background_tint 0.0
|
||||||
|
|
||||||
#: How much to tint the background image by the background color. This
|
#: 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
|
#: option makes it easier to read the text. Tinting is done using the
|
||||||
@ -1380,8 +1358,7 @@ dynamic_background_opacity yes
|
|||||||
#: See rc_custom_auth <https://sw.kovidgoyal.net/kitty/remote-
|
#: See rc_custom_auth <https://sw.kovidgoyal.net/kitty/remote-
|
||||||
#: control/#rc-custom-auth> for details.
|
#: control/#rc-custom-auth> for details.
|
||||||
|
|
||||||
allow_remote_control socket-only
|
# allow_remote_control no
|
||||||
listen_on unix:/tmp/mykitty
|
|
||||||
|
|
||||||
#: Allow other programs to control kitty. If you turn this on, other
|
#: Allow other programs to control kitty. If you turn this on, other
|
||||||
#: programs can control all aspects of kitty, including sending text
|
#: programs can control all aspects of kitty, including sending text
|
||||||
@ -1468,7 +1445,7 @@ listen_on unix:/tmp/mykitty
|
|||||||
#: exe_search_path +/some/appended/path
|
#: exe_search_path +/some/appended/path
|
||||||
#: exe_search_path -/some/excluded/path
|
#: exe_search_path -/some/excluded/path
|
||||||
|
|
||||||
update_check_interval 0
|
# update_check_interval 24
|
||||||
|
|
||||||
#: The interval to periodically check if an update to kitty is
|
#: The interval to periodically check if an update to kitty is
|
||||||
#: available (in hours). If an update is found, a system notification
|
#: available (in hours). If an update is found, a system notification
|
||||||
@ -1478,7 +1455,7 @@ update_check_interval 0
|
|||||||
#: builds do not do update checking. Changing this option by reloading
|
#: builds do not do update checking. Changing this option by reloading
|
||||||
#: the config is not supported.
|
#: the config is not supported.
|
||||||
|
|
||||||
startup_session sessions/example.session
|
# startup_session none
|
||||||
|
|
||||||
#: Path to a session file to use for all kitty instances. Can be
|
#: Path to a session file to use for all kitty instances. Can be
|
||||||
#: overridden by using the kitty --session =none command line option
|
#: overridden by using the kitty --session =none command line option
|
||||||
@ -1630,7 +1607,7 @@ startup_session sessions/example.session
|
|||||||
#: background_opacity. If you want to use both, you are probably
|
#: background_opacity. If you want to use both, you are probably
|
||||||
#: better off just hiding the titlebar with hide_window_decorations.
|
#: better off just hiding the titlebar with hide_window_decorations.
|
||||||
|
|
||||||
macos_option_as_alt left
|
# macos_option_as_alt no
|
||||||
|
|
||||||
#: Use the Option key as an Alt key on macOS. With this set to no,
|
#: Use the Option key as an Alt key on macOS. With this set to no,
|
||||||
#: kitty will use the macOS native Option+Key to enter Unicode
|
#: kitty will use the macOS native Option+Key to enter Unicode
|
||||||
@ -1676,7 +1653,7 @@ macos_option_as_alt left
|
|||||||
#: Use the macOS traditional full-screen transition, that is faster,
|
#: Use the macOS traditional full-screen transition, that is faster,
|
||||||
#: but less pretty.
|
#: but less pretty.
|
||||||
|
|
||||||
macos_show_window_title_in none
|
# macos_show_window_title_in all
|
||||||
|
|
||||||
#: Control where the window title is displayed on macOS. A value of
|
#: Control where the window title is displayed on macOS. A value of
|
||||||
#: window will show the title of the currently active window at the
|
#: window will show the title of the currently active window at the
|
||||||
@ -1790,13 +1767,22 @@ macos_show_window_title_in none
|
|||||||
#: The full list of actions that can be mapped to key presses is
|
#: The full list of actions that can be mapped to key presses is
|
||||||
#: available here <https://sw.kovidgoyal.net/kitty/actions/>.
|
#: 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
|
# action_alias
|
||||||
|
|
||||||
#: E.g. action_alias launch_tab launch --type=tab --cwd=current
|
#: 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
|
#: Define action aliases to avoid repeating the same options in
|
||||||
#: multiple mappings. Aliases can be defined for any action and will
|
#: multiple mappings. Aliases can be defined for any action and will
|
||||||
@ -1804,7 +1790,7 @@ action_alias launch_tab launch --type=tab --cwd=current
|
|||||||
#: create mappings to launch a new tab in the current working
|
#: create mappings to launch a new tab in the current working
|
||||||
#: directory without duplication::
|
#: directory without duplication::
|
||||||
|
|
||||||
map f1 launch_tab ${EDITOR}
|
#: map f1 launch_tab vim
|
||||||
#: map f2 launch_tab emacs
|
#: map f2 launch_tab emacs
|
||||||
|
|
||||||
#: Similarly, to alias kitten invocation::
|
#: Similarly, to alias kitten invocation::
|
||||||
@ -1826,8 +1812,8 @@ map f1 launch_tab ${EDITOR}
|
|||||||
|
|
||||||
#: Copy to clipboard
|
#: Copy to clipboard
|
||||||
|
|
||||||
map ctrl+c copy_and_clear_or_interrupt
|
# map kitty_mod+c copy_to_clipboard
|
||||||
map cmd+c copy_to_clipboard
|
# map cmd+c copy_to_clipboard
|
||||||
|
|
||||||
#:: There is also a copy_or_interrupt action that can be optionally
|
#:: There is also a copy_or_interrupt action that can be optionally
|
||||||
#:: mapped to Ctrl+C. It will copy only if there is a selection and
|
#:: mapped to Ctrl+C. It will copy only if there is a selection and
|
||||||
@ -1837,8 +1823,8 @@ map cmd+c copy_to_clipboard
|
|||||||
|
|
||||||
#: Paste from clipboard
|
#: Paste from clipboard
|
||||||
|
|
||||||
map kitty_mod+v paste_from_clipboard
|
# map kitty_mod+v paste_from_clipboard
|
||||||
map cmd+v paste_from_clipboard
|
# map cmd+v paste_from_clipboard
|
||||||
|
|
||||||
#: Paste from selection
|
#: Paste from selection
|
||||||
|
|
||||||
@ -1869,42 +1855,40 @@ map cmd+v paste_from_clipboard
|
|||||||
#: Scroll line up
|
#: Scroll line up
|
||||||
|
|
||||||
# map kitty_mod+up 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 opt+cmd+page_up scroll_line_up
|
||||||
# map cmd+up scroll_line_up
|
# map cmd+up scroll_line_up
|
||||||
|
|
||||||
#: Scroll line down
|
#: Scroll line down
|
||||||
|
|
||||||
# map kitty_mod+down 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 opt+cmd+page_down scroll_line_down
|
||||||
# map cmd+down scroll_line_down
|
# map cmd+down scroll_line_down
|
||||||
|
|
||||||
#: Scroll page up
|
#: Scroll page up
|
||||||
|
|
||||||
map kitty_mod+u scroll_page_up
|
# map kitty_mod+page_up scroll_page_up
|
||||||
map kitty_mod+page_up scroll_page_up
|
|
||||||
# map cmd+page_up scroll_page_up
|
# map cmd+page_up scroll_page_up
|
||||||
|
|
||||||
#: Scroll page down
|
#: Scroll page down
|
||||||
|
|
||||||
map kitty_mod+d scroll_page_down
|
# map kitty_mod+page_down scroll_page_down
|
||||||
map kitty_mod+page_down scroll_page_down
|
|
||||||
# map cmd+page_down scroll_page_down
|
# map cmd+page_down scroll_page_down
|
||||||
|
|
||||||
#: Scroll to top
|
#: Scroll to top
|
||||||
|
|
||||||
map kitty_mod+home scroll_home
|
# map kitty_mod+home scroll_home
|
||||||
# map cmd+home scroll_home
|
# map cmd+home scroll_home
|
||||||
|
|
||||||
#: Scroll to bottom
|
#: Scroll to bottom
|
||||||
|
|
||||||
map kitty_mod+end scroll_end
|
# map kitty_mod+end scroll_end
|
||||||
# map cmd+end scroll_end
|
# map cmd+end scroll_end
|
||||||
|
|
||||||
#: Scroll to previous shell prompt
|
#: 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
|
#:: Use a parameter of 0 for scroll_to_prompt to scroll to the last
|
||||||
#:: jumped to or the last clicked position. Requires shell
|
#:: jumped to or the last clicked position. Requires shell
|
||||||
@ -1913,16 +1897,12 @@ map kitty_mod+z scroll_to_prompt -1
|
|||||||
|
|
||||||
#: Scroll to next shell prompt
|
#: 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
|
#: Browse scrollback buffer in pager
|
||||||
|
|
||||||
# map kitty_mod+h show_scrollback
|
# 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
|
#:: You can pipe the contents of the current screen and history
|
||||||
#:: buffer as STDIN to an arbitrary program using launch --stdin-
|
#:: buffer as STDIN to an arbitrary program using launch --stdin-
|
||||||
#:: source. For example, the following opens the scrollback buffer in
|
#:: source. For example, the following opens the scrollback buffer in
|
||||||
@ -1936,9 +1916,6 @@ map kitty_mod+h kitty_scrollback_nvim
|
|||||||
#: Browse output of the last shell command in pager
|
#: Browse output of the last shell command in pager
|
||||||
|
|
||||||
# map kitty_mod+g show_last_command_output
|
# 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
|
#:: You can also define additional shortcuts to get the command
|
||||||
#:: output. For example, to get the first command output on screen::
|
#:: output. For example, to get the first command output on screen::
|
||||||
@ -1954,7 +1931,7 @@ map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
|||||||
#:: using the launch action. For example, the following opens the
|
#:: using the launch action. For example, the following opens the
|
||||||
#:: output in less in an overlay window::
|
#:: 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
|
#:: 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
|
#:: @first_cmd_output_on_screen. To get the output of the last jumped
|
||||||
@ -1969,8 +1946,7 @@ map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
|||||||
|
|
||||||
#: New window
|
#: New window
|
||||||
|
|
||||||
map kitty_mod+c launch --cwd=current --location=vsplit
|
# map kitty_mod+enter new_window
|
||||||
map kitty_mod+shift+c launch --cwd=current --location=hsplit
|
|
||||||
# map cmd+enter new_window
|
# map cmd+enter new_window
|
||||||
|
|
||||||
#:: You can open a new kitty window running an arbitrary program, for
|
#:: You can open a new kitty window running an arbitrary program, for
|
||||||
@ -1993,8 +1969,8 @@ map kitty_mod+shift+c launch --cwd=current --location=hsplit
|
|||||||
#:: You can open a new window next to the currently active window or
|
#:: You can open a new window next to the currently active window or
|
||||||
#:: as the first window, with::
|
#:: as the first window, with::
|
||||||
|
|
||||||
## new window beside
|
#:: map ctrl+n launch --location=neighbor
|
||||||
map kitty_mod+f launch --location=first
|
#:: map ctrl+f launch --location=first
|
||||||
|
|
||||||
#:: For more details, see launch
|
#:: For more details, see launch
|
||||||
#:: <https://sw.kovidgoyal.net/kitty/launch/>.
|
#:: <https://sw.kovidgoyal.net/kitty/launch/>.
|
||||||
@ -2010,7 +1986,7 @@ map kitty_mod+f launch --location=first
|
|||||||
|
|
||||||
#: Close window
|
#: Close window
|
||||||
|
|
||||||
map kitty_mod+q close_window
|
# map kitty_mod+w close_window
|
||||||
# map shift+cmd+d close_window
|
# map shift+cmd+d close_window
|
||||||
|
|
||||||
#: Next window
|
#: Next window
|
||||||
@ -2023,28 +1999,18 @@ map kitty_mod+q close_window
|
|||||||
|
|
||||||
#: Move window forward
|
#: Move window forward
|
||||||
|
|
||||||
map kitty_mod+. move_window_forward
|
# map kitty_mod+f move_window_forward
|
||||||
|
|
||||||
#: Move window backward
|
#: Move window backward
|
||||||
|
|
||||||
map kitty_mod+, move_window_backward
|
# map kitty_mod+b move_window_backward
|
||||||
|
|
||||||
#: Make window mAin window
|
#: Move window to top
|
||||||
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
|
#: Start resizing window
|
||||||
|
|
||||||
# map kitty_mod+r start_resizing_window
|
# map kitty_mod+r start_resizing_window
|
||||||
# map cmd+r start_resizing_window
|
# map cmd+r start_resizing_window
|
||||||
|
|
||||||
@ -2099,7 +2065,7 @@ map kitty_mod+ctrl+l kitten pass_keys.py relative_resize right 3 alt+l
|
|||||||
|
|
||||||
#: Visually select and focus window
|
#: Visually select and focus window
|
||||||
|
|
||||||
map kitty_mod+s focus_visible_window
|
# map kitty_mod+f7 focus_visible_window
|
||||||
|
|
||||||
#:: Display overlay numbers and alphabets on the window, and switch
|
#:: Display overlay numbers and alphabets on the window, and switch
|
||||||
#:: the focus to the window when you press the key. When there are
|
#:: the focus to the window when you press the key. When there are
|
||||||
@ -2109,7 +2075,7 @@ map kitty_mod+s focus_visible_window
|
|||||||
|
|
||||||
#: Visually swap window with another
|
#: Visually swap window with another
|
||||||
|
|
||||||
map kitty_mod+ctrl+s swap_with_window
|
# map kitty_mod+f8 swap_with_window
|
||||||
|
|
||||||
#:: Works like focus_visible_window above, but swaps the window.
|
#:: Works like focus_visible_window above, but swaps the window.
|
||||||
|
|
||||||
@ -2119,28 +2085,24 @@ map kitty_mod+ctrl+s swap_with_window
|
|||||||
|
|
||||||
#: Next tab
|
#: Next tab
|
||||||
|
|
||||||
map kitty_mod+n next_tab
|
|
||||||
# map kitty_mod+right next_tab
|
# map kitty_mod+right next_tab
|
||||||
# map shift+cmd+] next_tab
|
# map shift+cmd+] next_tab
|
||||||
# map ctrl+tab next_tab
|
# map ctrl+tab next_tab
|
||||||
|
|
||||||
#: Previous tab
|
#: Previous tab
|
||||||
|
|
||||||
map kitty_mod+p previous_tab
|
|
||||||
# map kitty_mod+left previous_tab
|
# map kitty_mod+left previous_tab
|
||||||
# map shift+cmd+[ previous_tab
|
# map shift+cmd+[ previous_tab
|
||||||
# map ctrl+shift+tab previous_tab
|
# map ctrl+shift+tab previous_tab
|
||||||
map kitty_mod+shift+t new_tab
|
|
||||||
map kitty_mod+shift+t new_tab
|
|
||||||
|
|
||||||
#: New tab
|
#: New tab
|
||||||
|
|
||||||
map kitty_mod+t new_tab !neighbor
|
# map kitty_mod+t new_tab
|
||||||
# map cmd+t new_tab
|
# map cmd+t new_tab
|
||||||
|
|
||||||
#: Close tab
|
#: Close tab
|
||||||
|
|
||||||
map kitty_mod+w close_tab
|
# map kitty_mod+q close_tab
|
||||||
# map cmd+w close_tab
|
# map cmd+w close_tab
|
||||||
|
|
||||||
#: Close OS window
|
#: Close OS window
|
||||||
@ -2149,15 +2111,15 @@ map kitty_mod+w close_tab
|
|||||||
|
|
||||||
#: Move tab forward
|
#: Move tab forward
|
||||||
|
|
||||||
map kitty_mod+shift+. move_tab_forward
|
# map kitty_mod+. move_tab_forward
|
||||||
|
|
||||||
#: Move tab backward
|
#: Move tab backward
|
||||||
|
|
||||||
map kitty_mod+shift+, move_tab_backward
|
# map kitty_mod+, move_tab_backward
|
||||||
|
|
||||||
#: Set tab title
|
#: Set tab title
|
||||||
|
|
||||||
map kitty_mod+r set_tab_title
|
# map kitty_mod+alt+t set_tab_title
|
||||||
# map shift+cmd+i set_tab_title
|
# map shift+cmd+i set_tab_title
|
||||||
|
|
||||||
|
|
||||||
@ -2165,27 +2127,8 @@ map kitty_mod+r set_tab_title
|
|||||||
#: the first tab, 2 the second tab and -1 being the previously active
|
#: 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::
|
#: tab, and any number larger than the last tab being the last tab::
|
||||||
|
|
||||||
map ctrl+s>' goto_tab -1
|
#: map ctrl+alt+1 goto_tab 1
|
||||||
map kitty_mod+tab goto_tab -1
|
#: map ctrl+alt+2 goto_tab 2
|
||||||
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
|
#: 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.
|
#: arbitrary commands to run when using new_tab and new_tab_with_cwd.
|
||||||
@ -2193,7 +2136,6 @@ map kitty_mod+9 goto_tab 9
|
|||||||
#: rather than at the end of the tabs list, use::
|
#: rather than at the end of the tabs list, use::
|
||||||
|
|
||||||
#: map ctrl+t new_tab !neighbor [optional cmd to run]
|
#: map ctrl+t new_tab !neighbor [optional cmd to run]
|
||||||
map kitty_mod+shift+t new_tab
|
|
||||||
#: }}}
|
#: }}}
|
||||||
|
|
||||||
#: Layout management {{{
|
#: Layout management {{{
|
||||||
@ -2201,7 +2143,6 @@ map kitty_mod+shift+t new_tab
|
|||||||
#: Next layout
|
#: Next layout
|
||||||
|
|
||||||
# map kitty_mod+l next_layout
|
# map kitty_mod+l next_layout
|
||||||
map kitty_mod+space next_layout
|
|
||||||
|
|
||||||
|
|
||||||
#: You can also create shortcuts to switch to specific layouts::
|
#: You can also create shortcuts to switch to specific layouts::
|
||||||
@ -2212,8 +2153,6 @@ map kitty_mod+space next_layout
|
|||||||
#: Similarly, to switch back to the previous layout::
|
#: Similarly, to switch back to the previous layout::
|
||||||
|
|
||||||
#: map ctrl+alt+p last_used_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
|
#: There is also a toggle_layout action that switches to the named
|
||||||
#: layout or back to the previous layout if in the named layout.
|
#: layout or back to the previous layout if in the named layout.
|
||||||
@ -2221,7 +2160,6 @@ map kitty_mod+ctrl+space last_used_layout
|
|||||||
#: stack layout::
|
#: stack layout::
|
||||||
|
|
||||||
#: map ctrl+alt+z toggle_layout stack
|
#: map ctrl+alt+z toggle_layout stack
|
||||||
map kitty_mod+m toggle_layout stack
|
|
||||||
#: }}}
|
#: }}}
|
||||||
|
|
||||||
#: Font sizes {{{
|
#: Font sizes {{{
|
||||||
@ -2231,24 +2169,23 @@ map kitty_mod+m toggle_layout stack
|
|||||||
|
|
||||||
#: Increase font size
|
#: Increase font size
|
||||||
|
|
||||||
map kitty_mod+equal change_font_size all +0.5
|
# map kitty_mod+equal change_font_size all +2.0
|
||||||
map kitty_mod+plus change_font_size all +0.5
|
# map kitty_mod+plus change_font_size all +2.0
|
||||||
map kitty_mod+kp_add change_font_size all +0.5
|
# map kitty_mod+kp_add change_font_size all +2.0
|
||||||
# map cmd+plus change_font_size all +2.0
|
# map cmd+plus change_font_size all +2.0
|
||||||
# map cmd+equal 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
|
# map shift+cmd+equal change_font_size all +2.0
|
||||||
|
|
||||||
#: Decrease font size
|
#: Decrease font size
|
||||||
|
|
||||||
map kitty_mod+minus change_font_size all -0.5
|
# map kitty_mod+minus change_font_size all -2.0
|
||||||
map kitty_mod+kp_subtract change_font_size all -0.5
|
# map kitty_mod+kp_subtract change_font_size all -2.0
|
||||||
# map cmd+minus change_font_size all -2.0
|
# map cmd+minus change_font_size all -2.0
|
||||||
# map shift+cmd+minus change_font_size all -2.0
|
# map shift+cmd+minus change_font_size all -2.0
|
||||||
|
|
||||||
#: Reset font size
|
#: 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
|
# map cmd+0 change_font_size all 0
|
||||||
|
|
||||||
|
|
||||||
@ -2270,30 +2207,28 @@ map kitty_mod+0 change_font_size all 0
|
|||||||
|
|
||||||
#: Open URL
|
#: 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
|
#:: Open a currently visible URL using the keyboard. The program used
|
||||||
#:: to open the URL is specified in open_url_with.
|
#:: to open the URL is specified in open_url_with.
|
||||||
|
|
||||||
#: Insert selected path
|
#: Insert selected path
|
||||||
|
|
||||||
# map kitty_mod+p>f kitten hints --type path --alphabet abcdefghijklmnopqrstuvwxyz1234567890 --program -
|
# map kitty_mod+p>f kitten hints --type path --program -
|
||||||
map kitty_mod+i>f kitten hints --type path --alphabet hjklfdsagtyrueiwoqpbnvmcxz1234567890 --program -
|
|
||||||
|
|
||||||
#:: Select a path/filename and insert it into the terminal. Useful,
|
#:: Select a path/filename and insert it into the terminal. Useful,
|
||||||
#:: for instance to run git commands on a filename output from a
|
#:: for instance to run git commands on a filename output from a
|
||||||
#:: previous git command.
|
#:: previous git command.
|
||||||
|
|
||||||
#: Open selected path
|
#: Open selected path
|
||||||
|
|
||||||
# map kitty_mod+p>shift+f kitten hints --type 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.
|
#:: Select a path/filename and open it with the default open program.
|
||||||
|
|
||||||
#: Insert selected line
|
#: Insert selected line
|
||||||
|
|
||||||
# map kitty_mod+p>l kitten hints --type line --program -
|
# 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
|
#:: Select a line of text and insert it into the terminal. Useful for
|
||||||
#:: the output of things like: `ls -1`.
|
#:: the output of things like: `ls -1`.
|
||||||
@ -2301,14 +2236,12 @@ map kitty_mod+i>l kitten hints --type line --program -
|
|||||||
#: Insert selected word
|
#: Insert selected word
|
||||||
|
|
||||||
# map kitty_mod+p>w kitten hints --type word --program -
|
# 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.
|
#:: Select words and insert into terminal.
|
||||||
|
|
||||||
#: yank selected hash
|
#: Insert selected hash
|
||||||
map kitty_mod+y>h kitten hints --type hash --program @
|
|
||||||
#: insert selected hash
|
# map kitty_mod+p>h kitten hints --type hash --program -
|
||||||
map kitty_mod+i>h kitten hints --type hash --program -
|
|
||||||
|
|
||||||
#:: Select something that looks like a hash and insert it into the
|
#:: Select something that looks like a hash and insert it into the
|
||||||
#:: terminal. Useful with git, which uses SHA1 hashes to identify
|
#:: terminal. Useful with git, which uses SHA1 hashes to identify
|
||||||
@ -2317,7 +2250,6 @@ map kitty_mod+i>h kitten hints --type hash --program -
|
|||||||
#: Open the selected file at the selected line
|
#: Open the selected file at the selected line
|
||||||
|
|
||||||
# map kitty_mod+p>n kitten hints --type linenum
|
# 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
|
#:: Select something that looks like filename:linenum and open it in
|
||||||
#:: vim at the specified line number.
|
#:: vim at the specified line number.
|
||||||
@ -2325,8 +2257,6 @@ map kitty_mod+o>n kitten hints --type linenum
|
|||||||
#: Open the selected hyperlink
|
#: Open the selected hyperlink
|
||||||
|
|
||||||
# map kitty_mod+p>y kitten hints --type 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
|
#:: Select a hyperlink (i.e. a URL that has been marked as such by
|
||||||
#:: the terminal program, for example, by `ls --hyperlink=auto`).
|
#:: the terminal program, for example, by `ls --hyperlink=auto`).
|
||||||
@ -2359,7 +2289,6 @@ map kitty_mod+o>l kitten hints --type hyperlink
|
|||||||
#: Unicode input
|
#: Unicode input
|
||||||
|
|
||||||
# map kitty_mod+u kitten unicode_input
|
# map kitty_mod+u kitten unicode_input
|
||||||
map kitty_mod+shift+u kitten unicode_input
|
|
||||||
# map ctrl+cmd+space kitten unicode_input
|
# map ctrl+cmd+space kitten unicode_input
|
||||||
|
|
||||||
#: Edit config file
|
#: Edit config file
|
||||||
@ -2369,36 +2298,30 @@ map kitty_mod+shift+u kitten unicode_input
|
|||||||
|
|
||||||
#: Open the kitty command shell
|
#: 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
|
#:: Open the kitty shell in a new window / tab / overlay / os_window
|
||||||
#:: to control kitty using commands.
|
#:: to control kitty using commands.
|
||||||
|
|
||||||
#: Increase background opacity
|
#: Increase background opacity
|
||||||
|
|
||||||
map kitty_mod+ctrl+i set_background_opacity +0.1
|
|
||||||
# map kitty_mod+a>m set_background_opacity +0.1
|
# map kitty_mod+a>m set_background_opacity +0.1
|
||||||
|
|
||||||
#: Decrease background opacity
|
#: Decrease background opacity
|
||||||
|
|
||||||
map kitty_mod+ctrl+d set_background_opacity -0.1
|
|
||||||
# map kitty_mod+a>l set_background_opacity -0.1
|
# map kitty_mod+a>l set_background_opacity -0.1
|
||||||
|
|
||||||
#: Make background fully opaque
|
#: Make background fully opaque
|
||||||
|
|
||||||
map kitty_mod+ctrl+f set_background_opacity 1
|
|
||||||
# map kitty_mod+a>1 set_background_opacity 1
|
# map kitty_mod+a>1 set_background_opacity 1
|
||||||
|
|
||||||
#: Reset background opacity
|
#: Reset background opacity
|
||||||
|
|
||||||
map kitty_mod+ctrl+r set_background_opacity default
|
|
||||||
# map kitty_mod+a>d set_background_opacity default
|
# map kitty_mod+a>d set_background_opacity default
|
||||||
|
|
||||||
#: Reset the terminal
|
#: Reset the terminal
|
||||||
|
|
||||||
# map kitty_mod+delete clear_terminal reset active
|
# 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
|
# map opt+cmd+r clear_terminal reset active
|
||||||
|
|
||||||
#:: You can create shortcuts to clear/reset the terminal. For
|
#:: You can create shortcuts to clear/reset the terminal. For
|
||||||
@ -2456,7 +2379,7 @@ map kitty_mod+backspace clear_terminal reset active
|
|||||||
|
|
||||||
#: Reload kitty.conf
|
#: Reload kitty.conf
|
||||||
|
|
||||||
map kitty_mod+f5 load_config_file
|
# map kitty_mod+f5 load_config_file
|
||||||
# map ctrl+cmd+, load_config_file
|
# map ctrl+cmd+, load_config_file
|
||||||
|
|
||||||
#:: Reload kitty.conf, applying any changes since the last time it
|
#:: Reload kitty.conf, applying any changes since the last time it
|
||||||
@ -2482,8 +2405,6 @@ map kitty_mod+f5 load_config_file
|
|||||||
#: Send arbitrary text on key presses
|
#: Send arbitrary text on key presses
|
||||||
|
|
||||||
#:: E.g. map ctrl+shift+alt+h send_text all Hello World
|
#:: 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
|
#:: You can tell kitty to send arbitrary (UTF-8) encoded text to the
|
||||||
#:: client program when pressing specified shortcut keys. For
|
#:: client program when pressing specified shortcut keys. For
|
||||||
@ -2539,4 +2460,3 @@ map kitty_mod+l send_text application \f
|
|||||||
|
|
||||||
#: }}}
|
#: }}}
|
||||||
|
|
||||||
map kitty_mod+b launch --allow-remote-control kitty +kitten broadcast --match-tab state:focused
|
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
# 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
|
|
@ -1,174 +0,0 @@
|
|||||||
# 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
|
|
@ -1,21 +0,0 @@
|
|||||||
# 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
|
|
@ -1,89 +0,0 @@
|
|||||||
import math
|
|
||||||
from kitty.fast_data_types import Screen, get_options
|
|
||||||
from kitty.tab_bar import (
|
|
||||||
DrawData,
|
|
||||||
ExtraData,
|
|
||||||
TabBarData,
|
|
||||||
as_rgb,
|
|
||||||
draw_tab_with_powerline,
|
|
||||||
)
|
|
||||||
|
|
||||||
opts = get_options()
|
|
||||||
|
|
||||||
surface1 = as_rgb(int("45475A", 16))
|
|
||||||
window_icon = ""
|
|
||||||
layout_icon = ""
|
|
||||||
|
|
||||||
active_tab_layout_name = ""
|
|
||||||
active_tab_num_windows = 1
|
|
||||||
|
|
||||||
layout_symbols = {
|
|
||||||
"grid": " ",
|
|
||||||
"stack": " ",
|
|
||||||
"fat": " ",
|
|
||||||
"tall": " ",
|
|
||||||
"splits": " "
|
|
||||||
}
|
|
||||||
|
|
||||||
def draw_tab(
|
|
||||||
draw_data: DrawData,
|
|
||||||
screen: Screen,
|
|
||||||
tab: TabBarData,
|
|
||||||
before: int,
|
|
||||||
max_title_length: int,
|
|
||||||
index: int,
|
|
||||||
is_last: bool,
|
|
||||||
extra_data: ExtraData,
|
|
||||||
) -> int:
|
|
||||||
global active_tab_layout_name
|
|
||||||
global active_tab_num_windows
|
|
||||||
if tab.is_active:
|
|
||||||
active_tab_layout_name = tab.layout_name
|
|
||||||
active_tab_num_windows = tab.num_windows
|
|
||||||
end = draw_tab_with_powerline(
|
|
||||||
draw_data, screen, tab, before, max_title_length, index, is_last, extra_data
|
|
||||||
)
|
|
||||||
_draw_right_status(
|
|
||||||
screen,
|
|
||||||
is_last,
|
|
||||||
)
|
|
||||||
return end
|
|
||||||
|
|
||||||
|
|
||||||
def _draw_right_status(screen: Screen, is_last: bool) -> int:
|
|
||||||
if not is_last:
|
|
||||||
return screen.cursor.x
|
|
||||||
|
|
||||||
cells = [
|
|
||||||
# layout name
|
|
||||||
(surface1, screen.cursor.bg, " " + layout_symbols[active_tab_layout_name] + " "),
|
|
||||||
(surface1, screen.cursor.bg, active_tab_layout_name + ('' if active_tab_num_windows == 1 else f" ({active_tab_num_windows} windows)")),
|
|
||||||
]
|
|
||||||
|
|
||||||
# calculate leading spaces to separate tabs from right status
|
|
||||||
right_status_length = 0
|
|
||||||
for _, _, cell in cells:
|
|
||||||
right_status_length += len(cell)
|
|
||||||
leading_spaces = 0
|
|
||||||
if opts.tab_bar_align == "center":
|
|
||||||
leading_spaces = (
|
|
||||||
math.ceil((screen.columns - screen.cursor.x) / 2) - right_status_length
|
|
||||||
)
|
|
||||||
elif opts.tab_bar_align == "left":
|
|
||||||
leading_spaces = screen.columns - screen.cursor.x - right_status_length
|
|
||||||
|
|
||||||
# draw leading spaces
|
|
||||||
if leading_spaces > 0:
|
|
||||||
screen.draw(" " * leading_spaces)
|
|
||||||
|
|
||||||
# draw right status
|
|
||||||
for fg, bg, cell in cells:
|
|
||||||
screen.cursor.fg = fg
|
|
||||||
screen.cursor.bg = bg
|
|
||||||
screen.draw(cell)
|
|
||||||
screen.cursor.fg = 0
|
|
||||||
screen.cursor.bg = 0
|
|
||||||
|
|
||||||
# update cursor position
|
|
||||||
screen.cursor.x = max(screen.cursor.x, screen.columns - right_status_length)
|
|
||||||
return screen.cursor.x
|
|
@ -1,77 +0,0 @@
|
|||||||
# 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
|
|
Submodule .config/nvim updated: 8f895c096d...1e06adb676
@ -1,6 +0,0 @@
|
|||||||
Welcome ______ _____
|
|
||||||
______back,__ ___ /____(_)______
|
|
||||||
__ ___/ __ `/_ __ \_ /__ __ \
|
|
||||||
_(__ )/ /_/ /_ / / / / _ / / /
|
|
||||||
/____/ \__,_/ /_/ /_//_/ /_/ /_/
|
|
||||||
|
|
@ -27,11 +27,11 @@ hooks.location=~/.config/task/hooks
|
|||||||
|
|
||||||
|
|
||||||
# Color theme (uncomment one to use)
|
# Color theme (uncomment one to use)
|
||||||
# include solarized-dark-256.theme
|
include solarized-dark-256.theme
|
||||||
# include dark-16.theme
|
#include dark-16.theme
|
||||||
# include light-16.theme
|
#include light-16.theme
|
||||||
# include light-256.theme
|
#include light-256.theme
|
||||||
# include dark-256.theme
|
#include dark-256.theme
|
||||||
#include dark-red-256.theme
|
#include dark-red-256.theme
|
||||||
#include dark-green-256.theme
|
#include dark-green-256.theme
|
||||||
#include dark-blue-256.theme
|
#include dark-blue-256.theme
|
||||||
@ -45,4 +45,3 @@ hooks.location=~/.config/task/hooks
|
|||||||
news.version=2.6.0
|
news.version=2.6.0
|
||||||
#
|
#
|
||||||
color.calendar.holiday=black on yellow
|
color.calendar.holiday=black on yellow
|
||||||
include light-256.theme
|
|
||||||
|
@ -1 +1 @@
|
|||||||
import /Users/sahin/.config/timewarrior/holidays/holidays.tr-TR
|
import /home/sahin/.config/timewarrior/holidays/holidays.tr-TR
|
||||||
|
@ -30,21 +30,11 @@
|
|||||||
# st.color7: #ACB0D0
|
# st.color7: #ACB0D0
|
||||||
# st.color15: #ABB2BF
|
# st.color15: #ABB2BF
|
||||||
|
|
||||||
# # tokyonight
|
darker_accent="#e0af68"
|
||||||
# darker_accent="#e0af68"
|
accent="#528ef5"
|
||||||
# accent="#518DF6"
|
lighter_accent="#3b4261"
|
||||||
# lighter_accent="#0B55D5"
|
|
||||||
# bg="default"
|
|
||||||
# fg_text="#111111"
|
|
||||||
|
|
||||||
|
|
||||||
# kanagawa
|
|
||||||
darker_accent="#44300D"
|
|
||||||
accent="#986e1f"
|
|
||||||
lighter_accent="#664915"
|
|
||||||
bg="default"
|
bg="default"
|
||||||
fg_text="#E4BC77"
|
fg_text="#111111"
|
||||||
|
|
||||||
prefix="#{?client_prefix,#[reverse]^Space#[noreverse],}"
|
prefix="#{?client_prefix,#[reverse]^Space#[noreverse],}"
|
||||||
sync="#{?pane_synchronized,#[reverse] SYNC #[noreverse],}"
|
sync="#{?pane_synchronized,#[reverse] SYNC #[noreverse],}"
|
||||||
mode="#{?pane_in_mode,#[reverse] #{pane_mode} #[noreverse],}"
|
mode="#{?pane_in_mode,#[reverse] #{pane_mode} #[noreverse],}"
|
||||||
@ -66,9 +56,9 @@ setw -g window-status-activity-style "none"
|
|||||||
setw -g window-status-separator ""
|
setw -g window-status-separator ""
|
||||||
setw -g window-status-style "none,fg=$fg_text,bg=$bg"
|
setw -g window-status-style "none,fg=$fg_text,bg=$bg"
|
||||||
|
|
||||||
set -g status-left "#[fg=$fg_text,bg=$lighter_accent] #S #[fg=$lighter_accent,bg=$bg,nobold,nounderscore,noitalics] "
|
set -g status-left "#[fg=$fg_text,bg=$accent] #S #[fg=$accent,bg=$bg,nobold,nounderscore,noitalics] "
|
||||||
|
|
||||||
setw -g window-status-format "#[fg=$lighter_accent,bg=$bg]#[fg=$fg_text,bg=$lighter_accent] #I#[fg=$fg_text,bg=$lighter_accent]#W#[bg=$bg,fg=$lighter_accent]"
|
setw -g window-status-format "#[fg=$lighter_accent,bg=$bg]#[fg=$accent,bg=$lighter_accent] #I#[fg=$accent,bg=$lighter_accent]#W#[bg=$bg,fg=$lighter_accent]"
|
||||||
setw -g window-status-current-format "#[fg=$accent,bg=$bg,nobold,nounderscore,noitalics]#[fg=$fg_text,bg=$accent,bold]#I#[fg=$fg_text,bg=$accent]#W#F#[fg=$accent,bg=$bg,nobold,nounderscore,noitalics]"
|
setw -g window-status-current-format "#[fg=$accent,bg=$bg,nobold,nounderscore,noitalics]#[fg=$fg_text,bg=$accent,bold]#I#[fg=$fg_text,bg=$accent]#W#F#[fg=$accent,bg=$bg,nobold,nounderscore,noitalics]"
|
||||||
|
|
||||||
# set -g status-right "#[fg=$accent,bg=$bg,nobold,nounderscore,noitalics]#[fg=$fg_text,bg=$accent] $uptime %H:%M %d/%m/%Y#[bg=$accent,fg=$darker_accent,nobold,nounderscore,noitalics]#[bg=$fg_text,fg=$darker_accent,bold]$prefix$sync$mode"
|
# set -g status-right "#[fg=$accent,bg=$bg,nobold,nounderscore,noitalics]#[fg=$fg_text,bg=$accent] $uptime %H:%M %d/%m/%Y#[bg=$accent,fg=$darker_accent,nobold,nounderscore,noitalics]#[bg=$fg_text,fg=$darker_accent,bold]$prefix$sync$mode"
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# st.color5: #9854f1
|
# st.color5: #9854f1
|
||||||
# st.color6: #007197
|
# st.color6: #007197
|
||||||
# st.color7: #6172b0
|
# st.color7: #6172b0
|
||||||
# st.color8: #a1a6c5j
|
# st.color8: #a1a6c5
|
||||||
# st.color9: #f52a65
|
# st.color9: #f52a65
|
||||||
# st.color10: #587539
|
# st.color10: #587539
|
||||||
# st.color11: #8c6c3e
|
# st.color11: #8c6c3e
|
||||||
@ -28,20 +28,12 @@
|
|||||||
# prefix_color="colour11"
|
# prefix_color="colour11"
|
||||||
|
|
||||||
# TokyoNight colors for Tmux
|
# TokyoNight colors for Tmux
|
||||||
# darker_accent="#6172b0"
|
darker_accent="#6172b0"
|
||||||
# accent="#2e7de9"
|
accent="#2e7de9"
|
||||||
# bg1="#d1d4e3"
|
bg1="#d1d4e3"
|
||||||
# bg2="default"
|
|
||||||
# grayish="#a8aecb"
|
|
||||||
# prefix_color="#8c6c3e"
|
|
||||||
|
|
||||||
# kanagawa colors
|
|
||||||
darker_accent="#727169"
|
|
||||||
accent="#727169"
|
|
||||||
bg1="#DCD7BA"
|
|
||||||
bg2="default"
|
bg2="default"
|
||||||
grayish="#C8C093"
|
grayish="#a8aecb"
|
||||||
prefix_color="#77713f"
|
prefix_color="#8c6c3e"
|
||||||
|
|
||||||
prefix="#{?client_prefix,#[reverse]^Space#[noreverse],}"
|
prefix="#{?client_prefix,#[reverse]^Space#[noreverse],}"
|
||||||
sync="#{?pane_synchronized,#[reverse] SYNC #[noreverse],}"
|
sync="#{?pane_synchronized,#[reverse] SYNC #[noreverse],}"
|
||||||
|
@ -1,20 +1,12 @@
|
|||||||
# remap prefix to Control + Space
|
# remap prefix to Control + Space
|
||||||
set -g prefix C-s
|
set -g prefix C-Space
|
||||||
bind C-s send-prefix
|
bind C-Space last-window
|
||||||
bind-key C-] send-keys "C-]"
|
|
||||||
# set -g prefix Escape
|
# set -g prefix Escape
|
||||||
# bind Escape send-keys Escape
|
# bind Escape send-keys Escape
|
||||||
bind "'" last-window
|
# bind "'" last-window
|
||||||
unbind C-b
|
unbind C-b
|
||||||
|
|
||||||
set -sg escape-time 0 # see https://github.com/neovim/neovim/issues/2035
|
set-option -g allow-passthrough on
|
||||||
|
|
||||||
|
|
||||||
### required for showing images in terminal
|
|
||||||
set-option -gq allow-passthrough on
|
|
||||||
# for hiding images when window is switched
|
|
||||||
set -g visual-activity off
|
|
||||||
###
|
|
||||||
|
|
||||||
# Smart pane switching with awareness of Vim splits.
|
# Smart pane switching with awareness of Vim splits.
|
||||||
# See: https://github.com/christoomey/vim-tmux-navigator
|
# See: https://github.com/christoomey/vim-tmux-navigator
|
||||||
@ -94,7 +86,7 @@ bind-key -n C-Down swap-pane -s '{down-of}'
|
|||||||
bind-key -n C-Left swap-pane -s '{left-of}'
|
bind-key -n C-Left swap-pane -s '{left-of}'
|
||||||
bind-key -n C-Right swap-pane -s '{right-of}'
|
bind-key -n C-Right swap-pane -s '{right-of}'
|
||||||
|
|
||||||
set -g default-terminal "xterm-256color"
|
# set -g default-terminal "xterm-256color"
|
||||||
# tell Tmux that outside terminal supports true color
|
# tell Tmux that outside terminal supports true color
|
||||||
# set -ga terminal-overrides ",xterm-256color*:Tc"
|
# set -ga terminal-overrides ",xterm-256color*:Tc"
|
||||||
|
|
||||||
@ -130,7 +122,10 @@ bind-key C-j join-pane
|
|||||||
# status bar theme
|
# status bar theme
|
||||||
# set -g status 'on'
|
# set -g status 'on'
|
||||||
set-option -g status-position bottom
|
set-option -g status-position bottom
|
||||||
source-file ~/.config/tmux/dark.conf
|
|
||||||
|
if-shell '[ `darkman get` == "light" ]' \
|
||||||
|
'source-file ~/.config/tmux/light.conf' \
|
||||||
|
'source-file ~/.config/tmux/dark.conf'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
" General Settings
|
|
||||||
set update.lastchecktime 1746702576363
|
|
||||||
set configversion 2.0
|
|
||||||
set smoothscroll true
|
|
||||||
set hintchars jklasdfghuioqwertynmzxcv
|
|
||||||
|
|
||||||
" Binds
|
|
||||||
bind j scrollline 5
|
|
||||||
bind h back
|
|
||||||
bind l forward
|
|
||||||
bind J tabnext
|
|
||||||
bind K tabprev
|
|
||||||
bind H scrollpx -50
|
|
||||||
bind L scrollpx 50
|
|
||||||
bind q back
|
|
||||||
bind Q forward
|
|
||||||
bindurl github.com gp open github.com/sahinakkaya
|
|
||||||
bindurl github.com gc composite git_clone | clipboard yank
|
|
||||||
bindurl github.com gC composite git_clone_ssh | clipboard yank
|
|
||||||
bindurl github.com yr composite js "\"" + document.location.href.split('#')[0].split('/').slice(3, 5).join('/') + "\"" | clipboard yank
|
|
||||||
bindurl gitlab.com gp open gitlab.com/sahinakkayadev
|
|
||||||
bindurl gitlab.com gc composite git_clone | clipboard yank
|
|
||||||
bindurl gitlab.com gC composite git_clone_ssh | clipboard yank
|
|
||||||
bindurl gitlab.com yr composite js "\"" + document.location.href.split('#')[0].split('/').slice(3, 5).join('/') + "\"" | clipboard yank
|
|
||||||
bindurl stackoverflow.com gp open stackoverflow.com/users/9608759/sahinakkaya
|
|
||||||
bindurl youtube.com p composite get_current_url | mpvsafe
|
|
||||||
bindurl youtube.com P hint -W mpvsafe
|
|
||||||
|
|
||||||
" Subconfig Settings
|
|
||||||
seturl monkeytype.com allowautofocus true
|
|
||||||
|
|
||||||
" Aliases
|
|
||||||
alias git_clone js "git clone " + document.location.href.split('#')[0].split('/').slice(0, 5).join('/') + " ;cd " + document.location.href.split('#')[0].split('/').at(4)
|
|
||||||
alias git_clone_ssh js "git clone " + document.location.href.split('#')[0].split('/').slice(0, 5).join('/').replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git") + " ;cd " + document.location.href.split('#')[0].split('/').at(4)
|
|
||||||
alias get_current_url js document.location.href
|
|
||||||
alias mpvsafe js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('mpv --no-terminal ' + url))
|
|
||||||
|
|
||||||
" Autocmds
|
|
||||||
autocmd DocStart monkeytype.com mode ignore
|
|
||||||
autocmd DocStart agar.io mode ignore
|
|
||||||
|
|
||||||
" For syntax highlighting see https://github.com/tridactyl/vim-tridactyl
|
|
||||||
" vim: set filetype=tridactyl
|
|
Binary file not shown.
Binary file not shown.
@ -1,26 +0,0 @@
|
|||||||
// Zed settings
|
|
||||||
//
|
|
||||||
// For information on how to configure Zed, see the Zed
|
|
||||||
// documentation: https://zed.dev/docs/configuring-zed
|
|
||||||
//
|
|
||||||
// To see all of Zed's default settings without changing your
|
|
||||||
// custom settings, run `zed: open default settings` from the
|
|
||||||
// command palette (cmd-shift-p / ctrl-shift-p)
|
|
||||||
{
|
|
||||||
"agent": {
|
|
||||||
"model_parameters": [],
|
|
||||||
"default_model": {
|
|
||||||
"provider": "zed.dev",
|
|
||||||
"model": "claude-3-7-sonnet-latest"
|
|
||||||
},
|
|
||||||
"version": "2"
|
|
||||||
},
|
|
||||||
"vim_mode": true,
|
|
||||||
"ui_font_size": 16,
|
|
||||||
"buffer_font_size": 16,
|
|
||||||
"theme": {
|
|
||||||
"mode": "system",
|
|
||||||
"light": "One Light",
|
|
||||||
"dark": "One Dark"
|
|
||||||
}
|
|
||||||
}
|
|
Submodule .config/zsh updated: 39b2d8c383...20dfe30e96
10
.gitconfig
10
.gitconfig
@ -2,15 +2,5 @@
|
|||||||
email = sahin@sahinakkaya.dev
|
email = sahin@sahinakkaya.dev
|
||||||
name = Şahin Akkaya
|
name = Şahin Akkaya
|
||||||
signingkey = sahin@sahinakkaya.dev
|
signingkey = sahin@sahinakkaya.dev
|
||||||
|
|
||||||
[include]
|
|
||||||
path = ~/.gitconfig-work ;this file is ignored in dot files intentionally. create it if you are using work computer
|
|
||||||
[includeIf "gitdir:~/.dots/"]
|
|
||||||
path = ~/.gitconfig-personal
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
[url "ssh://git@bitbucket.org/"]
|
|
||||||
insteadOf = https://bitbucket.org/
|
|
||||||
[url "ssh://git@github.com/"]
|
|
||||||
insteadOf = https://github.com/
|
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
[user]
|
|
||||||
email = sahin@sahinakkaya.dev
|
|
||||||
signingkey = sahinakkaya@scorpapp.com
|
|
36
.gitignore
vendored
36
.gitignore
vendored
@ -1,36 +0,0 @@
|
|||||||
Library
|
|
||||||
Desktop
|
|
||||||
Pictures
|
|
||||||
OrbStack
|
|
||||||
Music
|
|
||||||
Movies
|
|
||||||
Projects
|
|
||||||
Public
|
|
||||||
Documents
|
|
||||||
Downloads
|
|
||||||
.zsh_sessions
|
|
||||||
.zsh_history
|
|
||||||
.zlua*
|
|
||||||
.vscode
|
|
||||||
.theme
|
|
||||||
.ssh
|
|
||||||
.npm
|
|
||||||
.orbstack
|
|
||||||
.lesshst
|
|
||||||
**.DS_Store
|
|
||||||
.CFUserTextEncoding
|
|
||||||
.aws
|
|
||||||
.cache
|
|
||||||
.dots
|
|
||||||
.local
|
|
||||||
.docker
|
|
||||||
.gitconfig-work
|
|
||||||
**automatic_backups/
|
|
||||||
.config/github-copilot/
|
|
||||||
navigate_kitty.py
|
|
||||||
pass_keys.py
|
|
||||||
uv-receipt.json
|
|
||||||
.claude
|
|
||||||
.claude.json
|
|
||||||
.pyenv
|
|
||||||
.yarnrc
|
|
8
.gitmodules
vendored
8
.gitmodules
vendored
@ -1,16 +1,16 @@
|
|||||||
[submodule ".config/tmux/plugins/tpm"]
|
[submodule ".config/tmux/plugins/tpm"]
|
||||||
path = .config/tmux/plugins/tpm
|
path = .config/tmux/plugins/tpm
|
||||||
url = https://github.com/tmux-plugins/tpm.git
|
url = https://github.com/tmux-plugins/tpm.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule ".config/alacritty/themes"]
|
[submodule ".config/alacritty/themes"]
|
||||||
path = .config/alacritty/themes
|
path = .config/alacritty/themes
|
||||||
url = https://github.com/alacritty/alacritty-theme.git
|
url = https://github.com/alacritty/alacritty-theme.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule ".config/nvim"]
|
[submodule ".config/nvim"]
|
||||||
path = .config/nvim
|
path = .config/nvim
|
||||||
url = https://github.com/sahinakkaya/nvim-config.git
|
url = https://github.com/sahinakkaya/nvim-config.git
|
||||||
branch = macos
|
branch = linux
|
||||||
[submodule ".config/zsh"]
|
[submodule ".config/zsh"]
|
||||||
path = .config/zsh
|
path = .config/zsh
|
||||||
url = https://github.com/sahinakkaya/zsh-config.git
|
url = https://github.com/sahinakkaya/zsh-config.git
|
||||||
branch = macos
|
branch = linux
|
||||||
|
35
.local/bin/passmenu
Executable file
35
.local/bin/passmenu
Executable file
@ -0,0 +1,35 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
shopt -s nullglob globstar
|
||||||
|
|
||||||
|
typeit=0
|
||||||
|
if [[ $1 == "--type" ]]; then
|
||||||
|
typeit=1
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n $WAYLAND_DISPLAY ]]; then
|
||||||
|
dmenu=wofi
|
||||||
|
xdotool="ydotool type --file -"
|
||||||
|
elif [[ -n $DISPLAY ]]; then
|
||||||
|
dmenu=dmenu
|
||||||
|
xdotool="xdotool type --clearmodifiers --file -"
|
||||||
|
else
|
||||||
|
echo "Error: No Wayland or X11 display detected" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
prefix=${PASSWORD_STORE_DIR-~/.password-store}
|
||||||
|
password_files=( "$prefix"/**/*.gpg )
|
||||||
|
password_files=( "${password_files[@]#"$prefix"/}" )
|
||||||
|
password_files=( "${password_files[@]%.gpg}" )
|
||||||
|
|
||||||
|
password=$(printf '%s\n' "${password_files[@]}" | "$dmenu" --show dmenu --normal-window "$@")
|
||||||
|
|
||||||
|
[[ -n $password ]] || exit
|
||||||
|
|
||||||
|
if [[ $typeit -eq 0 ]]; then
|
||||||
|
pass show -c "$password" 2>/dev/null
|
||||||
|
else
|
||||||
|
pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool
|
||||||
|
fi
|
3
.zshenv
3
.zshenv
@ -1,2 +1,3 @@
|
|||||||
export ZDOTDIR="$HOME/.config/zsh"
|
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:=$HOME/.config}"
|
||||||
|
export ZDOTDIR="${ZDOTDIR:=$XDG_CONFIG_HOME/zsh}"
|
||||||
export PATH="$HOME/scripts/:$HOME/.local/bin/:$PATH"
|
export PATH="$HOME/scripts/:$HOME/.local/bin/:$PATH"
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
|
|
||||||
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>Label</key>
|
|
||||||
<string>dev.sahinakkaya.dark-mode-notify</string>
|
|
||||||
<key>KeepAlive</key>
|
|
||||||
<true/>
|
|
||||||
<key>StandardErrorPath</key>
|
|
||||||
<string>/Users/sahin/.dark-mode-notify-stderr.log</string>
|
|
||||||
<key>StandardOutPath</key>
|
|
||||||
<string>/Users/sahin/.dark-mode-notify-stdout.log</string>
|
|
||||||
<key>ProgramArguments</key>
|
|
||||||
<array>
|
|
||||||
<string>/Users/sahin/.local/bin/dark-mode-notify</string>
|
|
||||||
<string>/Users/sahin/scripts/change-background</string>
|
|
||||||
</array>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
@ -1,40 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
|
||||||
theme=$(defaults read -g AppleInterfaceStyle | tr '[:upper:]' '[:lower:]')
|
|
||||||
else
|
|
||||||
theme="$1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
PATH="/opt/homebrew/bin/:$PATH"
|
|
||||||
|
|
||||||
if [ "$theme" == "dark" ]; then
|
|
||||||
gsed -i 's/kanagawa_light.conf/kanagawa.conf/g' "$HOME/.config/kitty/kitty.conf"
|
|
||||||
gsed -i 's/tokyonight_day/tokyonight_storm/g' "$HOME/.config/kitty/kitty.conf"
|
|
||||||
gsed -i 's/Light/Origin/g' "$HOME/.config/bat/config"
|
|
||||||
gsed -i 's/flat-remix-light/tokyo-storm/g' "$HOME/.config/btop/btop.conf"
|
|
||||||
gsed -i "\$s/.*/include dark-256.theme/" "$HOME/.config/task/taskrc"
|
|
||||||
echo "dark" > "$HOME/.theme"
|
|
||||||
else
|
|
||||||
theme="light"
|
|
||||||
gsed -i 's/kanagawa.conf/kanagawa_light.conf/g' "$HOME/.config/kitty/kitty.conf"
|
|
||||||
gsed -i 's/tokyonight_storm/tokyonight_day/g' "$HOME/.config/kitty/kitty.conf"
|
|
||||||
gsed -i 's/Origin/Light/g' "$HOME/.config/bat/config"
|
|
||||||
gsed -i 's/tokyo-storm/flat-remix-light/g' "$HOME/.config/btop/btop.conf"
|
|
||||||
gsed -i "\$s/.*/include light-256.theme/" "$HOME/.config/task/taskrc"
|
|
||||||
echo "light" > "$HOME/.theme"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# pgrep -f kitty | xargs kill -SIGUSR1
|
|
||||||
kill -SIGUSR1 $(pgrep -f kitty)
|
|
||||||
# tmux source-file "$HOME/.config/tmux/$theme.conf"
|
|
||||||
|
|
||||||
|
|
||||||
# This uses the neovim-remote python package to control other neovim instances.
|
|
||||||
# see: https://github.com/mhinz/neovim-remote
|
|
||||||
# Further, it is assumed that toggling the background in neovim is enough.
|
|
||||||
# Anything else should be handled by the set color scheme.
|
|
||||||
|
|
||||||
for server in $(nvr --serverlist); do
|
|
||||||
nvr --servername "$server" -cc "set background=$theme"
|
|
||||||
done
|
|
20
scripts/check-battery.sh
Executable file
20
scripts/check-battery.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Set limit to shell argument
|
||||||
|
batteryLimit=$1
|
||||||
|
fullAt=92
|
||||||
|
|
||||||
|
# Get the current battery level with acpi
|
||||||
|
batteryLevel=$(acpi | cut -d ' ' -f 4 | tr -d '%|,| ')
|
||||||
|
charging=$(acpi | cut -d ' ' -f 3 | tr -d ',| ')
|
||||||
|
|
||||||
|
echo $batteryLevel
|
||||||
|
|
||||||
|
if [[ "$batteryLevel" -le "$batteryLimit" ]] && [[ "$charging" == "Discharging" ]]; then
|
||||||
|
/usr/bin/notify-send -a "Battery Warning" --urgency critical "Battery level at ${batteryLevel}%" -i abrt -t 10000
|
||||||
|
/usr/bin/mpv /usr/share/sounds/Oxygen-Sys-Warning.ogg
|
||||||
|
# /usr/bin/aplay /usr/share/sounds/freedesktop/stereo/dialog-warning.oga
|
||||||
|
#elif [[ "$batteryLevel" -gt "$fullAt" ]] && [[ ! "$charging" == "Discharging" ]]; then
|
||||||
|
# /usr/bin/notify-send -a "Battery Warning" "Battery is full: ${batteryLevel}" -i abrt -t 10000
|
||||||
|
# /usr/bin/paplay /usr/share/sounds/freedesktop/stereo/dialog-warning.oga
|
||||||
|
fi
|
30
scripts/dim-screen
Executable file
30
scripts/dim-screen
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
# Gradually decrease brightness level. Thanks ChatGPT
|
||||||
|
import subprocess
|
||||||
|
import time
|
||||||
|
|
||||||
|
def set_brightness(brightness):
|
||||||
|
subprocess.call(['light', '-S', str(brightness)])
|
||||||
|
|
||||||
|
def smooth_dimming(initial_brightness, final_brightness, duration, steps):
|
||||||
|
brightness_step = (initial_brightness - final_brightness) / steps
|
||||||
|
sleep_time = duration / steps
|
||||||
|
|
||||||
|
for i in range(steps + 1):
|
||||||
|
current_brightness = round(initial_brightness - i * brightness_step,2)
|
||||||
|
set_brightness(current_brightness)
|
||||||
|
print(current_brightness)
|
||||||
|
time.sleep(sleep_time)
|
||||||
|
|
||||||
|
set_brightness(final_brightness)
|
||||||
|
|
||||||
|
# Save brighness value for later
|
||||||
|
subprocess.call(['light', '-O'])
|
||||||
|
|
||||||
|
initial_brightness = float(subprocess.getoutput('light'))
|
||||||
|
final_brightness = 0 if initial_brightness < 20 else 5
|
||||||
|
dimming_duration = 0.3 if initial_brightness < 20 else .5
|
||||||
|
num_steps = 20 if initial_brightness < 20 else 50
|
||||||
|
|
||||||
|
smooth_dimming(initial_brightness, final_brightness, dimming_duration, num_steps)
|
3
scripts/lock-screen
Executable file
3
scripts/lock-screen
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
swaylock -f
|
9
scripts/toggle-monitor
Executable file
9
scripts/toggle-monitor
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
monitor=$(hyprctl -j monitors | jq '.[] | select(.name == "eDP-1") | .id')
|
||||||
|
|
||||||
|
if [[ $monitor == "" ]]; then
|
||||||
|
hyprctl keyword monitor eDP-1,preferred,0x1107,2.0
|
||||||
|
else
|
||||||
|
hyprctl keyword monitor eDP-1,disable
|
||||||
|
fi
|
7
scripts/undim-screen
Executable file
7
scripts/undim-screen
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if pid=$(pgrep -x "dim-screen"); then
|
||||||
|
kill $pid
|
||||||
|
fi
|
||||||
|
|
||||||
|
light -I
|
59
scripts/volume
Executable file
59
scripts/volume
Executable file
@ -0,0 +1,59 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
VOLUME_STEP=2
|
||||||
|
|
||||||
|
# Function to check if the audio is currently muted
|
||||||
|
is_muted() {
|
||||||
|
amixer sget Master | grep -q "\[off\]"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to toggle mute status
|
||||||
|
toggle_mute() {
|
||||||
|
amixer sset Master toggle
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to increase volume
|
||||||
|
increase_volume() {
|
||||||
|
amixer sset Master "${VOLUME_STEP}%+"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to decrease volume
|
||||||
|
decrease_volume() {
|
||||||
|
amixer sset Master "${VOLUME_STEP}%-"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Main function
|
||||||
|
main() {
|
||||||
|
case "$1" in
|
||||||
|
"up")
|
||||||
|
if is_muted; then
|
||||||
|
toggle_mute
|
||||||
|
fi
|
||||||
|
increase_volume
|
||||||
|
;;
|
||||||
|
"down")
|
||||||
|
if is_muted; then
|
||||||
|
toggle_mute
|
||||||
|
fi
|
||||||
|
decrease_volume
|
||||||
|
;;
|
||||||
|
"toggle-mute")
|
||||||
|
toggle_mute
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {up|down|toggle-mute}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Display the current volume
|
||||||
|
amixer get Master | grep -oE "[0-9]+%"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check if an argument is provided
|
||||||
|
if [ $# -eq 1 ]; then
|
||||||
|
main "$1"
|
||||||
|
else
|
||||||
|
echo "Usage: $0 {up|down|toggle-mute}"
|
||||||
|
exit 1
|
||||||
|
fi
|
Reference in New Issue
Block a user