aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergii Tykhomyrov <sergii@tykhomyrov.net>2024-11-28 07:09:52 +0100
committerSergii Tykhomyrov <sergii@tykhomyrov.net>2024-11-28 07:09:52 +0100
commit13bd2073ef50c927b487451171ff5cd97e697705 (patch)
treec1edf9fd71d23a64c45b728b24768a3a03a66eed
parent31c56297f6c284298c867329b941b0630da6c95c (diff)
downloaddotfiles-13bd2073ef50c927b487451171ff5cd97e697705.tar.gz
dotfiles-13bd2073ef50c927b487451171ff5cd97e697705.zip
Add more configs and Makefile
-rw-r--r--Makefile32
-rw-r--r--alacritty/dot-config/alacritty/alacritty.toml22
-rw-r--r--alacritty/dot-config/alacritty/catppuccin-frappe.toml65
-rw-r--r--alacritty/dot-config/alacritty/catppuccin-latte.toml65
-rw-r--r--alacritty/dot-config/alacritty/catppuccin-macchiato.toml65
-rw-r--r--alacritty/dot-config/alacritty/catppuccin-mocha.toml65
-rw-r--r--i3/dot-config/i3/config113
-rw-r--r--i3/dot-config/i3status/config45
-rw-r--r--xbindkeys/dot-xbindkeysrc26
-rw-r--r--zsh/dot-zshrc29
10 files changed, 527 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0f829b0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+SHELL := /bin/zsh
+STOW := stow
+STOW_FLAGS := --dotfiles --target=$(HOME)
+
+PACKAGES := $(dir $(wildcard */))
+
+.PHONY: all install uninstall list clean help
+
+all: install
+
+install:
+ @for package in $(PACKAGES); do \
+ echo "Installing $$package..."; \
+ $(STOW) $(STOW_FLAGS) $$package; \
+ done
+
+uninstall:
+ @for package in $(PACKAGES); do \
+ echo "Uninstalling $$package..."; \
+ $(STOW) -D $(STOW_FLAGS) $$package; \
+ done
+
+list:
+ @echo "Available packages:"
+ @for package in $(PACKAGES); do \
+ echo " - $$package"; \
+ done
+
+clean:
+ @for package in $(PACKAGES); do \
+ $(STOW) -D $(STOW_FLAGS) $$package 2>/dev/null || true; \
+ done
diff --git a/alacritty/dot-config/alacritty/alacritty.toml b/alacritty/dot-config/alacritty/alacritty.toml
new file mode 100644
index 0000000..6fd874a
--- /dev/null
+++ b/alacritty/dot-config/alacritty/alacritty.toml
@@ -0,0 +1,22 @@
+general.import = [
+ #"~/.config/alacritty/catppuccin-latte.toml"
+ #"~/.config/alacritty/catppuccin-frappe.toml"
+ #"~/.config/alacritty/catppuccin-macchiato.toml"
+ "~/.config/alacritty/catppuccin-mocha.toml"
+]
+
+[window]
+padding = { x = 4, y = 4 }
+title = "terminal"
+dynamic_padding = true
+dynamic_title = true
+
+[env]
+TERM = "xterm-256color"
+
+[font]
+size = 11
+normal = { family = "FiraCode Nerd Font Mono", style = "Regular" }
+bold = { family = "FiraCode Nerd Font Mono", style = "Bold" }
+italic = { family = "FiraCode Nerd Font Mono", style = "Italic" }
+
diff --git a/alacritty/dot-config/alacritty/catppuccin-frappe.toml b/alacritty/dot-config/alacritty/catppuccin-frappe.toml
new file mode 100644
index 0000000..3e6fac1
--- /dev/null
+++ b/alacritty/dot-config/alacritty/catppuccin-frappe.toml
@@ -0,0 +1,65 @@
+[colors.primary]
+background = "#303446"
+foreground = "#c6d0f5"
+dim_foreground = "#838ba7"
+bright_foreground = "#c6d0f5"
+
+[colors.cursor]
+text = "#303446"
+cursor = "#f2d5cf"
+
+[colors.vi_mode_cursor]
+text = "#303446"
+cursor = "#babbf1"
+
+[colors.search.matches]
+foreground = "#303446"
+background = "#a5adce"
+
+[colors.search.focused_match]
+foreground = "#303446"
+background = "#a6d189"
+
+[colors.footer_bar]
+foreground = "#303446"
+background = "#a5adce"
+
+[colors.hints.start]
+foreground = "#303446"
+background = "#e5c890"
+
+[colors.hints.end]
+foreground = "#303446"
+background = "#a5adce"
+
+[colors.selection]
+text = "#303446"
+background = "#f2d5cf"
+
+[colors.normal]
+black = "#51576d"
+red = "#e78284"
+green = "#a6d189"
+yellow = "#e5c890"
+blue = "#8caaee"
+magenta = "#f4b8e4"
+cyan = "#81c8be"
+white = "#b5bfe2"
+
+[colors.bright]
+black = "#626880"
+red = "#e78284"
+green = "#a6d189"
+yellow = "#e5c890"
+blue = "#8caaee"
+magenta = "#f4b8e4"
+cyan = "#81c8be"
+white = "#a5adce"
+
+[[colors.indexed_colors]]
+index = 16
+color = "#ef9f76"
+
+[[colors.indexed_colors]]
+index = 17
+color = "#f2d5cf"
diff --git a/alacritty/dot-config/alacritty/catppuccin-latte.toml b/alacritty/dot-config/alacritty/catppuccin-latte.toml
new file mode 100644
index 0000000..e9414ad
--- /dev/null
+++ b/alacritty/dot-config/alacritty/catppuccin-latte.toml
@@ -0,0 +1,65 @@
+[colors.primary]
+background = "#eff1f5"
+foreground = "#4c4f69"
+dim_foreground = "#8c8fa1"
+bright_foreground = "#4c4f69"
+
+[colors.cursor]
+text = "#eff1f5"
+cursor = "#dc8a78"
+
+[colors.vi_mode_cursor]
+text = "#eff1f5"
+cursor = "#7287fd"
+
+[colors.search.matches]
+foreground = "#eff1f5"
+background = "#6c6f85"
+
+[colors.search.focused_match]
+foreground = "#eff1f5"
+background = "#40a02b"
+
+[colors.footer_bar]
+foreground = "#eff1f5"
+background = "#6c6f85"
+
+[colors.hints.start]
+foreground = "#eff1f5"
+background = "#df8e1d"
+
+[colors.hints.end]
+foreground = "#eff1f5"
+background = "#6c6f85"
+
+[colors.selection]
+text = "#eff1f5"
+background = "#dc8a78"
+
+[colors.normal]
+black = "#bcc0cc"
+red = "#d20f39"
+green = "#40a02b"
+yellow = "#df8e1d"
+blue = "#1e66f5"
+magenta = "#ea76cb"
+cyan = "#179299"
+white = "#5c5f77"
+
+[colors.bright]
+black = "#acb0be"
+red = "#d20f39"
+green = "#40a02b"
+yellow = "#df8e1d"
+blue = "#1e66f5"
+magenta = "#ea76cb"
+cyan = "#179299"
+white = "#6c6f85"
+
+[[colors.indexed_colors]]
+index = 16
+color = "#fe640b"
+
+[[colors.indexed_colors]]
+index = 17
+color = "#dc8a78"
diff --git a/alacritty/dot-config/alacritty/catppuccin-macchiato.toml b/alacritty/dot-config/alacritty/catppuccin-macchiato.toml
new file mode 100644
index 0000000..88c07a5
--- /dev/null
+++ b/alacritty/dot-config/alacritty/catppuccin-macchiato.toml
@@ -0,0 +1,65 @@
+[colors.primary]
+background = "#24273a"
+foreground = "#cad3f5"
+dim_foreground = "#8087a2"
+bright_foreground = "#cad3f5"
+
+[colors.cursor]
+text = "#24273a"
+cursor = "#f4dbd6"
+
+[colors.vi_mode_cursor]
+text = "#24273a"
+cursor = "#b7bdf8"
+
+[colors.search.matches]
+foreground = "#24273a"
+background = "#a5adcb"
+
+[colors.search.focused_match]
+foreground = "#24273a"
+background = "#a6da95"
+
+[colors.footer_bar]
+foreground = "#24273a"
+background = "#a5adcb"
+
+[colors.hints.start]
+foreground = "#24273a"
+background = "#eed49f"
+
+[colors.hints.end]
+foreground = "#24273a"
+background = "#a5adcb"
+
+[colors.selection]
+text = "#24273a"
+background = "#f4dbd6"
+
+[colors.normal]
+black = "#494d64"
+red = "#ed8796"
+green = "#a6da95"
+yellow = "#eed49f"
+blue = "#8aadf4"
+magenta = "#f5bde6"
+cyan = "#8bd5ca"
+white = "#b8c0e0"
+
+[colors.bright]
+black = "#5b6078"
+red = "#ed8796"
+green = "#a6da95"
+yellow = "#eed49f"
+blue = "#8aadf4"
+magenta = "#f5bde6"
+cyan = "#8bd5ca"
+white = "#a5adcb"
+
+[[colors.indexed_colors]]
+index = 16
+color = "#f5a97f"
+
+[[colors.indexed_colors]]
+index = 17
+color = "#f4dbd6"
diff --git a/alacritty/dot-config/alacritty/catppuccin-mocha.toml b/alacritty/dot-config/alacritty/catppuccin-mocha.toml
new file mode 100644
index 0000000..7762dcd
--- /dev/null
+++ b/alacritty/dot-config/alacritty/catppuccin-mocha.toml
@@ -0,0 +1,65 @@
+[colors.primary]
+background = "#1e1e2e"
+foreground = "#cdd6f4"
+dim_foreground = "#7f849c"
+bright_foreground = "#cdd6f4"
+
+[colors.cursor]
+text = "#1e1e2e"
+cursor = "#f5e0dc"
+
+[colors.vi_mode_cursor]
+text = "#1e1e2e"
+cursor = "#b4befe"
+
+[colors.search.matches]
+foreground = "#1e1e2e"
+background = "#a6adc8"
+
+[colors.search.focused_match]
+foreground = "#1e1e2e"
+background = "#a6e3a1"
+
+[colors.footer_bar]
+foreground = "#1e1e2e"
+background = "#a6adc8"
+
+[colors.hints.start]
+foreground = "#1e1e2e"
+background = "#f9e2af"
+
+[colors.hints.end]
+foreground = "#1e1e2e"
+background = "#a6adc8"
+
+[colors.selection]
+text = "#1e1e2e"
+background = "#f5e0dc"
+
+[colors.normal]
+black = "#45475a"
+red = "#f38ba8"
+green = "#a6e3a1"
+yellow = "#f9e2af"
+blue = "#89b4fa"
+magenta = "#f5c2e7"
+cyan = "#94e2d5"
+white = "#bac2de"
+
+[colors.bright]
+black = "#585b70"
+red = "#f38ba8"
+green = "#a6e3a1"
+yellow = "#f9e2af"
+blue = "#89b4fa"
+magenta = "#f5c2e7"
+cyan = "#94e2d5"
+white = "#a6adc8"
+
+[[colors.indexed_colors]]
+index = 16
+color = "#fab387"
+
+[[colors.indexed_colors]]
+index = 17
+color = "#f5e0dc"
diff --git a/i3/dot-config/i3/config b/i3/dot-config/i3/config
new file mode 100644
index 0000000..bbd1ddd
--- /dev/null
+++ b/i3/dot-config/i3/config
@@ -0,0 +1,113 @@
+set $mod Mod4
+
+font pango:DejaVu Sans Mono 8
+
+exec --no-startup-id dex --autostart --environment i3
+
+floating_modifier $mod
+focus_follows_mouse no
+workspace_auto_back_and_forth yes
+tiling_drag modifier titlebar
+
+bindsym $mod+Shift+q kill
+
+set $up k
+set $down j
+set $left h
+set $right l
+
+bindsym $mod+$left focus left
+bindsym $mod+$down focus down
+bindsym $mod+$up focus up
+bindsym $mod+$right focus right
+bindsym $mod+Left focus left
+bindsym $mod+Down focus down
+bindsym $mod+Up focus up
+bindsym $mod+Right focus right
+
+bindsym $mod+Shift+$left move left
+bindsym $mod+Shift+$down move down
+bindsym $mod+Shift+$up move up
+bindsym $mod+Shift+$right move right
+bindsym $mod+Shift+Left move left
+bindsym $mod+Shift+Down move down
+bindsym $mod+Shift+Up move up
+bindsym $mod+Shift+Right move right
+
+bindsym $mod+bar split h
+bindsym $mod+minus split v
+
+bindsym $mod+f fullscreen toggle
+
+bindsym $mod+s layout stacking
+bindsym $mod+w layout tabbed
+bindsym $mod+e layout toggle split
+
+bindsym $mod+Shift+space floating toggle
+
+bindsym $mod+space focus mode_toggle
+bindsym $mod+a focus parent
+bindsym $mod+z focus child
+
+set $ws1 "1"
+set $ws2 "2"
+set $ws3 "3"
+set $ws4 "4"
+set $ws5 "5"
+set $ws6 "6"
+set $ws7 "7"
+set $ws8 "8"
+set $ws9 "9"
+set $ws10 "10"
+
+bindsym $mod+1 workspace number $ws1
+bindsym $mod+2 workspace number $ws2
+bindsym $mod+3 workspace number $ws3
+bindsym $mod+4 workspace number $ws4
+bindsym $mod+5 workspace number $ws5
+bindsym $mod+6 workspace number $ws6
+bindsym $mod+7 workspace number $ws7
+bindsym $mod+8 workspace number $ws8
+bindsym $mod+9 workspace number $ws9
+bindsym $mod+0 workspace number $ws10
+
+bindsym $mod+Shift+1 move container to workspace number $ws1
+bindsym $mod+Shift+2 move container to workspace number $ws2
+bindsym $mod+Shift+3 move container to workspace number $ws3
+bindsym $mod+Shift+4 move container to workspace number $ws4
+bindsym $mod+Shift+5 move container to workspace number $ws5
+bindsym $mod+Shift+6 move container to workspace number $ws6
+bindsym $mod+Shift+7 move container to workspace number $ws7
+bindsym $mod+Shift+8 move container to workspace number $ws8
+bindsym $mod+Shift+9 move container to workspace number $ws9
+bindsym $mod+Shift+0 move container to workspace number $ws10
+
+bindsym $mod+Shift+c reload
+bindsym $mod+Shift+r restart
+bindsym $mod+Shift+Escape exec "i3-msg exit"
+
+bindsym $mod+r mode "resize"
+mode "resize" {
+ bindsym Left resize shrink width 10 px or 10 ppt
+ bindsym Down resize grow height 10 px or 10 ppt
+ bindsym Up resize shrink height 10 px or 10 ppt
+ bindsym Right resize grow width 10 px or 10 ppt
+ bindsym $left resize shrink width 10 px or 10 ppt
+ bindsym $down resize grow height 10 px or 10 ppt
+ bindsym $up resize shrink height 10 px or 10 ppt
+ bindsym $right resize grow width 10 px or 10 ppt
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+ bindsym $mod+r mode "default"
+}
+
+gaps inner 4 px
+gaps outer 2 px
+
+new_window pixel 2
+new_float pixel 2
+
+bar {
+ status_command i3status
+ position top
+}
diff --git a/i3/dot-config/i3status/config b/i3/dot-config/i3status/config
new file mode 100644
index 0000000..6130b51
--- /dev/null
+++ b/i3/dot-config/i3status/config
@@ -0,0 +1,45 @@
+general {
+ colors = true
+ interval = 5
+}
+
+#order += "ipv6"
+#order += "wireless _first_"
+#order += "ethernet _first_"
+order += "battery all"
+#order += "disk /"
+#order += "load"
+#order += "memory"
+order += "tztime local"
+
+wireless _first_ {
+ format_up = "W: (%quality at %essid) %ip"
+ format_down = "W: down"
+}
+
+ethernet _first_ {
+ format_up = "E: %ip (%speed)"
+ format_down = "E: down"
+}
+
+battery all {
+ format = "%status %percentage %remaining"
+}
+
+disk "/" {
+ format = "%avail"
+}
+
+load {
+ format = "%1min"
+}
+
+memory {
+ format = "%used | %available"
+ threshold_degraded = "1G"
+ format_degraded = "MEMORY < %available"
+}
+
+tztime local {
+ format = "%Y-%m-%d %H:%M:%S"
+}
diff --git a/xbindkeys/dot-xbindkeysrc b/xbindkeys/dot-xbindkeysrc
new file mode 100644
index 0000000..3c16a5b
--- /dev/null
+++ b/xbindkeys/dot-xbindkeysrc
@@ -0,0 +1,26 @@
+"alacritty"
+ Mod4 + Return
+
+"xscreensaver-command -l"
+ Mod4 + Escape
+
+"rofi -modi drun,run,window -show drun -show-icons -dpi 1"
+ Mod4 + d
+
+"pactl set-sink-mute @DEFAULT_SINK@ toggle"
+ XF86AudioMute
+
+"pactl set-sink-volume @DEFAULT_SINK@ -10%"
+ XF86AudioLowerVolume
+
+"pactl set-sink-volume @DEFAULT_SINK@ +10%"
+ XF86AudioRaiseVolume
+
+"pactl set-source-mute @DEFAULT_SOURCE@ toggle"
+ XF86AudioMicMute
+
+"flameshot screen -p ~/pics/screenshots"
+ Print
+
+"flameshot gui"
+ Shift + Print
diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc
new file mode 100644
index 0000000..b830828
--- /dev/null
+++ b/zsh/dot-zshrc
@@ -0,0 +1,29 @@
+PS1="%% "
+RPS1="[%F{blue}%B%~%b%f]"
+
+HISTFILE="$HOME/.zsh_history"
+HISTSIZE=10000
+SAVEHIST=10000
+
+setopt hist_ignore_all_dups
+setopt hist_find_no_dups
+setopt transientrprompt
+setopt nomatch
+
+bindkey -e
+
+case $TERM in
+ xterm*)
+ precmd () {print -Pn "\e]0;%n@%m: %~\a"}
+ ;;
+esac
+
+alias ls="ls --color"
+
+export EDITOR="nvim"
+export PAGER="less"
+
+export GPG_TTY=$(tty)
+export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
+gpgconf --launch gpg-agent
+echo UPDATESTARTUPTTY | gpg-connect-agent > /dev/null