mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2025-07-05 19:39:42 +03:00
Compare commits
15 Commits
main
...
654414db7e
Author | SHA1 | Date | |
---|---|---|---|
654414db7e | |||
549300f9b3 | |||
d0517de1d3 | |||
8d57821630 | |||
ae9174ce27 | |||
d9832eb8e7 | |||
b457a84dfd | |||
466115287b | |||
f9f728740d | |||
d5a3b02f8e | |||
b20e72a14c | |||
ae55fd8572 | |||
e067d3c93a | |||
2dd52a9fbf | |||
23708bf23f |
@ -126,9 +126,8 @@ env:
|
|||||||
# Font configuration
|
# Font configuration
|
||||||
font:
|
font:
|
||||||
normal:
|
normal:
|
||||||
family: FiraCode Nerd Font Mono
|
family: MesloLGS Nerd Font
|
||||||
#family: FantasqueSansM Nerd Font Mono
|
style: Regular
|
||||||
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 = "cpu lazy"
|
proc_sorting = "memory"
|
||||||
|
|
||||||
#* 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"
|
@ -1,5 +1,19 @@
|
|||||||
# vim:fileencoding=utf-8:foldmethod=marker
|
# vim:fileencoding=utf-8:foldmethod=marker
|
||||||
|
|
||||||
|
# map f1 show_kitty_env_vars
|
||||||
|
|
||||||
|
kitty_mod alt
|
||||||
|
#: Special modifier key alias for default shortcuts. You can change
|
||||||
|
#: the value of this option to alter all default shortcuts that use
|
||||||
|
#: kitty_mod.
|
||||||
|
|
||||||
|
clear_all_shortcuts yes
|
||||||
|
#: Remove all shortcut definitions up to this point. Useful, for
|
||||||
|
#: instance, to remove the default shortcuts.
|
||||||
|
|
||||||
|
|
||||||
|
# kitty-scrollback.nvim Kitten alias
|
||||||
|
action_alias kitty_scrollback_nvim kitten $HOME/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py
|
||||||
|
|
||||||
# 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
|
||||||
|
1
.config/nvim
Submodule
1
.config/nvim
Submodule
Submodule .config/nvim added at e0df6560b4
67
.config/task/hooks/on-modify.timewarrior
Executable file
67
.config/task/hooks/on-modify.timewarrior
Executable file
@ -0,0 +1,67 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
'''Timewarrior on-modify hook to call timew on start,stop, done commands.'''
|
||||||
|
import json
|
||||||
|
import shlex
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def retrieve_args_dict():
|
||||||
|
'''Read process arguments and store them in a dictionary.'''
|
||||||
|
process_args = sys.argv[1:]
|
||||||
|
dictionary = dict()
|
||||||
|
for process_arg in process_args:
|
||||||
|
splitted = process_arg.split(':')
|
||||||
|
if len(splitted) > 1:
|
||||||
|
key = splitted[0]
|
||||||
|
value = ''.join(splitted[1:])
|
||||||
|
dictionary[key] = value
|
||||||
|
return dictionary
|
||||||
|
|
||||||
|
def determine_timew_tags(task):
|
||||||
|
'''Determine which timew "tags" should be used for the task.'''
|
||||||
|
tags = list()
|
||||||
|
|
||||||
|
# Keys associated with one value
|
||||||
|
for key in ['uuid', 'project', 'description']:
|
||||||
|
if key in task:
|
||||||
|
tags.append('{}:{}'.format(key, task[key]))
|
||||||
|
|
||||||
|
# Keys associated with several values
|
||||||
|
if 'tags' in task:
|
||||||
|
for value in task['tags']:
|
||||||
|
tags.append('tag:{}'.format(value))
|
||||||
|
|
||||||
|
return tags
|
||||||
|
|
||||||
|
def generate_timew_command(cmd, tags):
|
||||||
|
'''Generate an input for subprocess.call.'''
|
||||||
|
tags_as_string = ' '.join([shlex.quote(tag) for tag in tags])
|
||||||
|
if cmd == 'done':
|
||||||
|
cmd = 'stop'
|
||||||
|
cmd_string = f'timew {cmd} {tags_as_string} :yes'
|
||||||
|
return shlex.split(cmd_string)
|
||||||
|
|
||||||
|
def main():
|
||||||
|
'''Main function of this module.'''
|
||||||
|
old_task = json.loads(sys.stdin.readline())
|
||||||
|
new_task = json.loads(sys.stdin.readline())
|
||||||
|
args = retrieve_args_dict()
|
||||||
|
|
||||||
|
# Do something.
|
||||||
|
feedback = None
|
||||||
|
if 'api' in args: # Only do something for known API.
|
||||||
|
if args['api'] in ['2']: # APIs that give us a 'command' key.
|
||||||
|
cmd = args['command']
|
||||||
|
if cmd in ['start', 'stop', 'done']: # Only do something on 'start', 'stop' or 'done'
|
||||||
|
timew_tags = determine_timew_tags(new_task)
|
||||||
|
timew_cmd = generate_timew_command(cmd, timew_tags)
|
||||||
|
subprocess.call(timew_cmd)
|
||||||
|
|
||||||
|
# Generate output as task expects it.
|
||||||
|
print(json.dumps(new_task))
|
||||||
|
if feedback is not None:
|
||||||
|
print(feedback)
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
48
.config/task/taskrc
Normal file
48
.config/task/taskrc
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
# [Created by task 2.6.2 12/23/2023 17:46:47]
|
||||||
|
# Taskwarrior program configuration file.
|
||||||
|
# For more documentation, see https://taskwarrior.org or try 'man task', 'man task-color',
|
||||||
|
# 'man task-sync' or 'man taskrc'
|
||||||
|
|
||||||
|
# Here is an example of entries that use the default, override and blank values
|
||||||
|
# variable=foo -- By specifying a value, this overrides the default
|
||||||
|
# variable= -- By specifying no value, this means no default
|
||||||
|
# #variable=foo -- By commenting out the line, or deleting it, this uses the default
|
||||||
|
|
||||||
|
# You can also refence environment variables:
|
||||||
|
# variable=$HOME/task
|
||||||
|
# variable=$VALUE
|
||||||
|
|
||||||
|
# Use the command 'task show' to see all defaults and overrides
|
||||||
|
|
||||||
|
# data.location=/home/sahin/.task
|
||||||
|
|
||||||
|
# To use the default location of the XDG directories,
|
||||||
|
# move this configuration file from ~/.taskrc to ~/.config/task/taskrc and uncomment below
|
||||||
|
|
||||||
|
# Files
|
||||||
|
include holidays.tr-TR.rc
|
||||||
|
data.location=~/.local/share/task
|
||||||
|
hooks.location=~/.config/task/hooks
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Color theme (uncomment one to use)
|
||||||
|
# include solarized-dark-256.theme
|
||||||
|
# include dark-16.theme
|
||||||
|
# include light-16.theme
|
||||||
|
# include light-256.theme
|
||||||
|
# include dark-256.theme
|
||||||
|
#include dark-red-256.theme
|
||||||
|
#include dark-green-256.theme
|
||||||
|
#include dark-blue-256.theme
|
||||||
|
#include dark-violets-256.theme
|
||||||
|
#include dark-yellow-green.theme
|
||||||
|
#include dark-gray-256.theme
|
||||||
|
#include dark-gray-blue-256.theme
|
||||||
|
#include solarized-light-256.theme
|
||||||
|
#include no-color.theme
|
||||||
|
|
||||||
|
news.version=2.6.0
|
||||||
|
#
|
||||||
|
color.calendar.holiday=black on yellow
|
||||||
|
include light-256.theme
|
@ -0,0 +1 @@
|
|||||||
|
import /Users/sahin/.config/timewarrior/holidays/holidays.tr-TR
|
||||||
|
@ -30,11 +30,21 @@
|
|||||||
# st.color7: #ACB0D0
|
# st.color7: #ACB0D0
|
||||||
# st.color15: #ABB2BF
|
# st.color15: #ABB2BF
|
||||||
|
|
||||||
darker_accent="#e0af68"
|
# # tokyonight
|
||||||
accent="#528ef5"
|
# darker_accent="#e0af68"
|
||||||
lighter_accent="#3b4261"
|
# accent="#518DF6"
|
||||||
|
# lighter_accent="#0B55D5"
|
||||||
|
# bg="default"
|
||||||
|
# fg_text="#111111"
|
||||||
|
|
||||||
|
|
||||||
|
# kanagawa
|
||||||
|
darker_accent="#44300D"
|
||||||
|
accent="#986e1f"
|
||||||
|
lighter_accent="#664915"
|
||||||
bg="default"
|
bg="default"
|
||||||
fg_text="#111111"
|
fg_text="#E4BC77"
|
||||||
|
|
||||||
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],}"
|
||||||
@ -56,9 +66,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=$accent] #S #[fg=$accent,bg=$bg,nobold,nounderscore,noitalics] "
|
set -g status-left "#[fg=$fg_text,bg=$lighter_accent] #S #[fg=$lighter_accent,bg=$bg,nobold,nounderscore,noitalics] "
|
||||||
|
|
||||||
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-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-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: #a1a6c5
|
# st.color8: #a1a6c5j
|
||||||
# st.color9: #f52a65
|
# st.color9: #f52a65
|
||||||
# st.color10: #587539
|
# st.color10: #587539
|
||||||
# st.color11: #8c6c3e
|
# st.color11: #8c6c3e
|
||||||
@ -28,12 +28,20 @@
|
|||||||
# 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="#a8aecb"
|
grayish="#C8C093"
|
||||||
prefix_color="#8c6c3e"
|
prefix_color="#77713f"
|
||||||
|
|
||||||
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,12 +1,20 @@
|
|||||||
# remap prefix to Control + Space
|
# remap prefix to Control + Space
|
||||||
set -g prefix C-Space
|
set -g prefix C-s
|
||||||
bind C-Space last-window
|
bind C-s send-prefix
|
||||||
|
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-option -g allow-passthrough on
|
set -sg escape-time 0 # see https://github.com/neovim/neovim/issues/2035
|
||||||
|
|
||||||
|
|
||||||
|
### 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
|
||||||
@ -33,7 +41,7 @@ bind-key -n 'C-M-c' copy-mode
|
|||||||
bind-key -T copy-mode-vi 'C-h' select-pane -L
|
bind-key -T copy-mode-vi 'C-h' select-pane -L
|
||||||
bind-key -T copy-mode-vi 'C-j' select-pane -D
|
bind-key -T copy-mode-vi 'C-j' select-pane -D
|
||||||
bind-key -T copy-mode-vi 'C-k' select-pane -U
|
bind-key -T copy-mode-vi 'C-k' select-pane -U
|
||||||
bind-key -T copy-mode-vi kC-l' select-pane -R
|
bind-key -T copy-mode-vi 'C-l' select-pane -R
|
||||||
|
|
||||||
# vim like copy mode
|
# vim like copy mode
|
||||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
@ -86,7 +94,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"
|
||||||
|
|
||||||
|
1
.config/zsh
Submodule
1
.config/zsh
Submodule
Submodule .config/zsh added at d0177d0329
6
.gitconfig
Normal file
6
.gitconfig
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[user]
|
||||||
|
email = sahin@sahinakkaya.dev
|
||||||
|
name = Şahin Akkaya
|
||||||
|
signingkey = sahin@sahinakkaya.dev
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
18
.gitmodules
vendored
18
.gitmodules
vendored
@ -1,6 +1,16 @@
|
|||||||
[submodule "/home/sahin/.config/tmux/plugins/tpm"]
|
[submodule ".config/tmux/plugins/tpm"]
|
||||||
path = /home/sahin/.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
|
||||||
[submodule "/home/sahin/.config/alacritty/themes"]
|
branch = master
|
||||||
path = /home/sahin/.config/alacritty/themes
|
[submodule ".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
|
||||||
|
[submodule ".config/nvim"]
|
||||||
|
path = .config/nvim
|
||||||
|
url = https://github.com/sahinakkaya/nvim-config.git
|
||||||
|
branch = macos
|
||||||
|
[submodule ".config/zsh"]
|
||||||
|
path = .config/zsh
|
||||||
|
url = https://github.com/sahinakkaya/zsh-config.git
|
||||||
|
branch = macos
|
||||||
|
2
.zshenv
Executable file
2
.zshenv
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
export ZDOTDIR="$HOME/.config/zsh"
|
||||||
|
export PATH="$HOME/scripts/:$HOME/.local/bin/:$PATH"
|
17
scripts/task-visualizer.sh
Executable file
17
scripts/task-visualizer.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
|
||||||
|
tmux split-window -h
|
||||||
|
tmux split-window
|
||||||
|
tmux resize-pane -U 14
|
||||||
|
tmux resize-pane -R 5
|
||||||
|
tmux send-keys -t0 "btop" Enter
|
||||||
|
tmux send-keys -t1 "while true;do task next limit:5;sleep 2;done" Enter
|
||||||
|
tmux send-keys -t2 "while true;do task burndown.daily;sleep 3;done" Enter
|
||||||
|
|
||||||
|
tmux rename-window "tasks"
|
||||||
|
tmux new-window
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user