summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2025-03-24 21:10:53 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2025-03-24 21:10:53 -0700
commit95fe224ccf72dcb9b74b93a507b3ad277841c648 (patch)
treeb0474741ef09e8b3a22aa4a18ed642d85e0ec4ba
parent893e9748cf241a496726c4fe0bb52c0996be3909 (diff)
downloaddotfiles-95fe224ccf72dcb9b74b93a507b3ad277841c648.tar.gz
dotfiles-95fe224ccf72dcb9b74b93a507b3ad277841c648.tar.xz
add alacritty config
-rw-r--r--Xdefaults2
-rw-r--r--config/alacritty/alacritty.toml42
-rwxr-xr-xconfig/herbstluftwm/autostart7
3 files changed, 49 insertions, 2 deletions
diff --git a/Xdefaults b/Xdefaults
index 0d7dd4e..86b7ce9 100644
--- a/Xdefaults
+++ b/Xdefaults
@@ -1,6 +1,6 @@
Xft.dpi: 96
-URxvt*font: xft:Monospace:size=10
+URxvt*font: xft:monospace:size=10
URxvt*foreground: #ffffff
URxvt*background: #000000
URxvt*internalBorder: 1
diff --git a/config/alacritty/alacritty.toml b/config/alacritty/alacritty.toml
new file mode 100644
index 0000000..d897475
--- /dev/null
+++ b/config/alacritty/alacritty.toml
@@ -0,0 +1,42 @@
+[window]
+padding = { x = 1, y = 1 }
+
+[font]
+size = 10
+offset = { x = 1, y = 0 }
+
+[colors]
+draw_bold_text_with_bright_colors = true
+[colors.primary]
+background = '#000000'
+foreground = '#ffffff'
+[colors.normal]
+black = '#000000'
+red = '#cd0000'
+green = '#00cd00'
+yellow = '#cdcd00'
+blue = '#0000cd'
+magenta = '#cd00cd'
+cyan = '#00cdcd'
+white = '#e5e5e5'
+[colors.bright]
+black = '#4d4d4d'
+red = '#ff0000'
+green = '#00ff00'
+yellow = '#ffff00'
+blue = '#0000ff'
+magenta = '#ff00ff'
+cyan = '#00ffff'
+white = '#ffffff'
+
+[selection]
+semantic_escape_chars = ",│`|\"' ()[]{}<>\t"
+
+[[hints.enabled]]
+command = 'xdg-open'
+hyperlinks = true
+post_processing = true
+persist = false
+mouse = { enabled = true, mods = 'Control' }
+binding = { key = 'O', mods = 'Control|Shift' }
+regex = "(https://|http://)[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`\\\\]+"
diff --git a/config/herbstluftwm/autostart b/config/herbstluftwm/autostart
index 09fe470..da0aa44 100755
--- a/config/herbstluftwm/autostart
+++ b/config/herbstluftwm/autostart
@@ -111,11 +111,15 @@ hc keybind $Mod-Shift-q cycle_all -1
hc keybind $Mod-Shift-c close
-hc keybind $Mod-Return spawn urxvt
+hc keybind $Mod-Return spawn alacritty
hc keybind $Mod-backslash spawn dmenu_run -i -b -nb '#454545' -nf '#9fbc00' -sb '#9fbc00' -sf '#454545' -p 'exec:'
hc keybind $Mod-semicolon spawn /usr/share/doc/herbstluftwm/examples/herbstcommander.sh
hc keybind $Mod-Print spawn scrot
hc keybind $Mod-Shift-apostrophe spawn loginctl lock-session
+hc keybind $Mod-Shift-t spawn xkbdlock Shift Escape
+
+hc keybind XF86AudioLowerVolume spawn wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-
+hc keybind XF86AudioRaiseVolume spawn wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+
hc mousebind $Mod-Button1 move
hc mousebind $Mod-Button2 zoom
@@ -123,6 +127,7 @@ hc mousebind $Mod-Button3 resize
hc rule focus=off
+hc rule class='Alacritty' focus=on
hc rule class='URxvt' focus=on
hc rule class='firefox' focus=on
hc rule class='mpv' focus=on