From a42df546ce34429759a20bc2c4c240de045dbd0a Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Mon, 2 Dec 2019 17:51:04 +0530 Subject: using stow --- x/.Xresources | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ x/.xinitrc | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 x/.Xresources create mode 100644 x/.xinitrc (limited to 'x') diff --git a/x/.Xresources b/x/.Xresources new file mode 100644 index 0000000..a47ed7a --- /dev/null +++ b/x/.Xresources @@ -0,0 +1,70 @@ +URxvt.urgentOnBell: off +URxvt.visualBell: false +URxvt.iso14755: false +URxvt.iso14755_52: off +URxvt.meta8: false +URxvt.depth: 32 +URxvt.metaSendsEscape: true + +URxvt.scrollBar: off +URxvt.cursorBlink: true +URxvt.cursorUnderline: true +URxvt.saveLines: 10000 +URxvt.scrollTtyOutput: false +URxvt.scrollWithBuffer: true +URxvt.scrollTtyKeypress: true + +URxvt.font: xft:Hermit:style=medium:pixelsize=12, xft:DejaVu Sans Mono:pixelsize:12 +URxvt.letterSpace: 1 +urxvt*termName: rxvt +urxvt*scrollBar: false +urxvt*matcher.button: 1 +urxvt.transparent: false +!urxvt.boldFont: +Xft*dpi: 96 +Xft*antialias: true +Xft*hinting: true +Xft*hintstyle: hintfull +URxvt*cursorUnderline: true +Xft*rgba: rgb +URxvt*geometry: 85x20 +*internalBorder: 10 +URxvt*fading: 0 +URxvt*tintColor: #ffffff +URxvt*shading: 0 +URxvt*inheritPixmap: False + +URxvt.foreground: #839496 +URxvt.background: #09090d +URxvt.cursor: #839496 +URxvt.color0: #353540 +URxvt.color8: #545466 +URxvt.color1: #8c5760 +URxvt.color9: #b26f7a +URxvt.color2: #7b8c58 +URxvt.color10: #9db270 +URxvt.color3: #8c6e43 +URxvt.color11: #b28c55 +URxvt.color4: #58698c +URxvt.color12: #7086b2 +URxvt.color5: #7b5e7d +URxvt.color13: #9c77b2 +URxvt.color6: #66808c +URxvt.color14: #82a2b2 +URxvt.color7: #8c8b8b +URxvt.color15: #b8b8c8 +!#include "/home/ssaini/.cache/wal/colors.Xresources" + +! Perls +URxvt.perl-ext-common : default,matcher,keyboard-select,url-select + +URxvt.keysym.M-Escape : perl:keyboard-select:activate +URxvt.keysym.M-u : perl:url-select:select_next +URxvt.keysym.M-s : perl:keyboard-select:search +!URxvt.perl-ext-common : tabbed,default,matcher +!Urxvt.perl-lib : /usr/lib/urxvt/perl/ +URxvt.url-select.launcher : firefox +URxvt.url-select.autocopy : true +URxvt.url-select.underline : true +URxvt.url-select.button: 1 + diff --git a/x/.xinitrc b/x/.xinitrc new file mode 100644 index 0000000..93bb186 --- /dev/null +++ b/x/.xinitrc @@ -0,0 +1,66 @@ +#!/bin/sh + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ]; then + + xrdb -merge $sysresources + +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f "$userresources" ]; then + + xrdb -merge "$userresources" + +fi + +if [ -f "$usermodmap" ]; then + xmodmap "$usermodmap" +fi + +# start some nice programs + +if [ -d /etc/X11/xinit/xinitrc.d ] ; then + for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do + [ -x "$f" ] && . "$f" + done + unset f +fi + +if [ -n "$DISPLAY" ]; then + xset b off +fi + +# load additional configs +if [ "$2" = "nvidia" ]; then + XINIT_D="/etc/X11/nvidia/xinit/xinitrc.d" +else + XINIT_D="/etc/X11/xinit/xinitrc.d" +fi + +if [ -d "$XINIT_D" ]; then + for f in "$XINIT_D/?*.sh" ; do + [ -x "$f" ] && . "$f" + done + unset f +fi +unset XINIT_D + +# additional nvidia specific settings +if [ "$2" = "nvidia" ]; then + xrandr --setprovideroutputsource modesetting NVIDIA-0 + xrandr --auto +fi + + +xsetroot -cursor_name left_ptr & +exec ck-launch-session dbus-launch --sh-syntax --exit-with-x11 bspwm -- cgit v1.2.3