summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xdefaults2
-rw-r--r--config/alacritty/alacritty.toml42
-rw-r--r--config/fontconfig/fonts.conf11
-rwxr-xr-xconfig/herbstluftwm/autostart9
-rwxr-xr-xconfig/xss-lock/tranfer-sleep-lock-slock-dvs.sh15
-rw-r--r--xinitrc2
6 files changed, 78 insertions, 3 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/fontconfig/fonts.conf b/config/fontconfig/fonts.conf
new file mode 100644
index 0000000..0707627
--- /dev/null
+++ b/config/fontconfig/fonts.conf
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>DejaVu Sans Mono</family>
+ <family>Noto Color Emoji</family>
+ </prefer>
+ </alias>
+</fontconfig>
diff --git a/config/herbstluftwm/autostart b/config/herbstluftwm/autostart
index 8473d35..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 slock
+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
diff --git a/config/xss-lock/tranfer-sleep-lock-slock-dvs.sh b/config/xss-lock/tranfer-sleep-lock-slock-dvs.sh
new file mode 100755
index 0000000..1cb3fed
--- /dev/null
+++ b/config/xss-lock/tranfer-sleep-lock-slock-dvs.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+if [[ -e "/dev/fd/${XSS_SLEEP_LOCK_FD:--1}" ]]; then
+ pid="$(slock -kfp {XSS_SLEEP_LOCK_FD}<&-)"
+ trap "kill ${pid}" TERM INT
+ exec {XSS_SLEEP_LOCK_FD}<&-
+
+ waitpid "${pid}" &
+ wait
+else
+ trap 'kill %%' TERM INT
+ slock -k &
+
+ wait
+fi
diff --git a/xinitrc b/xinitrc
new file mode 100644
index 0000000..9405aaa
--- /dev/null
+++ b/xinitrc
@@ -0,0 +1,2 @@
+xss-lock -l -- ~/.config/xss-lock/tranfer-sleep-lock-slock-dvs.sh &
+exec herbstluftwm