From feaf2dce523775178334dff5b35de3fc16b47422 Mon Sep 17 00:00:00 2001 From: Xinqi Bao Date: Mon, 4 Apr 2022 22:54:11 +0800 Subject: [PATCH] add x11 config, xinit xbinkeysrc xresources --- .config/x11/xbindkeysrc | 20 +++++++++ .config/x11/xresources | 91 +++++++++++++++++++++++++++++++++++++++++ .xinitrc | 16 ++++++++ 3 files changed, 127 insertions(+) create mode 100644 .config/x11/xbindkeysrc create mode 100644 .config/x11/xresources create mode 100644 .xinitrc diff --git a/.config/x11/xbindkeysrc b/.config/x11/xbindkeysrc new file mode 100644 index 0000000..964601f --- /dev/null +++ b/.config/x11/xbindkeysrc @@ -0,0 +1,20 @@ +# Increase volume +"amixer set Master 5%+" + XF86AudioRaiseVolume + +# Decrease volume +"amixer set Master 5%-" + XF86AudioLowerVolume + +# Mute volume +"amixer set Master toggle" + XF86AudioMute + +# Increase backlight +"xbacklight -inc 10" + XF86MonBrightnessUp + +# Decrease backlight +"xbacklight -dec 10" + XF86MonBrightnessDown + diff --git a/.config/x11/xresources b/.config/x11/xresources new file mode 100644 index 0000000..4d0dec2 --- /dev/null +++ b/.config/x11/xresources @@ -0,0 +1,91 @@ +!! Transparency (0-1): +*.alpha: 0.7 + +!! Set a default font and font size as below: +*.font: monospace:size=12 + +!! nordtheme +! *.color0: #3b4252 +! *.color1: #bf616a +! *.color2: #a3be8c +! *.color3: #ebcb8b +! *.color4: #81a1c1 +! *.color5: #b48ead +! *.color6: #88c0d0 +! *.color7: #e5e9f0 +! *.color8: #4c566a +! *.color9: #bf616a +! *.color10: #a3be8c +! *.color11: #ebcb8b +! *.color12: #81a1c1 +! *.color13: #b48ead +! *.color14: #8fbcbb +! *.color15: #eceff4 +! *.background: #2e3440 +! *.foreground: #d8dee9 +! *.cursorColor: #d8dee9 +! *.recursorColor: #2e3440 + +!! gruvbox dark +! *.color0: #282828 /* hard contrast: #1d2021 / soft contrast: #32302f */ +! *.color1: #cc241d +! *.color2: #98971a +! *.color3: #d79921 +! *.color4: #458588 +! *.color5: #b16286 +! *.color6: #689d6a +! *.color7: #a89984 +! *.color8: #928374 +! *.color9: #fb4934 +! *.color10: #b8bb26 +! *.color11: #fabd2f +! *.color12: #83a598 +! *.color13: #d3869b +! *.color14: #8ec07c +! *.color15: #ebdbb2 +! *.background: #282828 +! *.foreground: #ebdbb2 +! *.cursorColor: #ebdbb2 + +!! gruvbox light +! *.color0: #fbf1c7 /* hard contrast: #f9f5d7 / soft contrast: #f2e5bc */ +! *.color1: #cc241d +! *.color2: #98971a +! *.color3: #d79921 +! *.color4: #458588 +! *.color5: #b16286 +! *.color6: #689d6a +! *.color7: #7c6f64 +! *.color8: #928374 +! *.color9: #9d0006 +! *.color10: #79740e +! *.color11: #b57614 +! *.color12: #076678 +! *.color13: #8f3f71 +! *.color14: #427b58 +! *.color15: #3c3836 +! *.background: #fbf1c7 +! *.foreground: #3c3836 +! *.cursorColor: #3c3836 + +!! dracula + *.color0: #000000 + *.color1: #ff5555 + *.color2: #50fa7b + *.color3: #f1fa8c + *.color4: #bd93f9 + *.color5: #ff79c6 + *.color6: #8be9fd + *.color7: #bbbbbb + *.color8: #44475a + *.color9: #ff5555 + *.color10: #50fa7b + *.color11: #f1fa8c + *.color12: #bd93f9 + *.color13: #ff79c6 + *.color14: #8be9fd + *.color15: #ffffff + *.background: #282a36 + *.foreground: #f8f8f2 + *.cursorColor: #f8f8f2 + diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..dcb7bb1 --- /dev/null +++ b/.xinitrc @@ -0,0 +1,16 @@ +#!/bin/sh + +xrandr --output eDP1 --mode 1920x1080 +xwallpaper --zoom ~/pic/death-stranding_3.png +setxkbmap -option caps:escape + +X_DIR=~/.config/x11 +[[ -f $X_DIR/xbindkeysrc ]] && xbindkeys -f $X_DIR/xbindkeysrc +[[ -f $X_DIR/xresources ]] && xrdb -merge $X_DIR/xresources + +autostart="xcompmgr slstatus fcitx5" +for program in $autostart; do + pidof -s "$program" || setsid -f "$program" +done > /dev/null 2>&1 + +exec dwm -- 2.20.1