From d794ea6f9d49c310eaab5bed6746bb47d1e4b70c Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Wed, 17 Nov 2021 17:06:49 +1100 Subject: Add xresources and repeat rate stuff into i3 --- .Xresources | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ .config/i3/config | 6 +++++- .xinitrc | 2 -- 3 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 .Xresources diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..c556cca --- /dev/null +++ b/.Xresources @@ -0,0 +1,59 @@ +XTerm*faceName: xft:mono +XTerm*faceSize: 12 +XTerm*renderFont: true +XTerm*termName: xterm-256color +XTerm*locale: true +XTerm*utf8: 1 +XTerm*eightBitInput: false +XTerm*eightBitControl: false +XTerm*eightBitOutput: true +XTerm*scrollBar: false +XTerm*translations: #override \ +Super minus: smaller-vt-font() \n\ +Super plus: larger-vt-font() \n\ + +URxvt.depth: 32 +URxvt.background: #050505 +URxvt.scrollBar: false +URxvt.letterSpace: -1 +URxvt.iso14755: false +URxvt.iso14755_52: false +URxvt.font: xft:mono:size=12 + + +! special +*.foreground: #ffffff +*.background: #000000 +*.cursorColor: #ffffff + +! black +*.color0: #2e3436 +*.color8: #555753 + +! red +*.color1: #a31604 +*.color9: #c60001 + +! green +*.color2: #447241 +*.color10: #27a343 + +! yellow +*.color3: #c1951a +*.color11: #d5a30e + +! blue +*.color4: #425387 +*.color12: #4a5a8d + +! magenta +*.color5: #965d98 +*.color13: #893c8c + +! cyan +*.color6: #06989a +*.color14: #12bccb + +! white +*.color7: #d3d7cf +*.color15: #eeeeec diff --git a/.config/i3/config b/.config/i3/config index c343c3d..60f3586 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -15,10 +15,14 @@ for_window [instance="gnome-calculator"] floating enable for_window [class="^.*"] border pixel 2 new_window 1pixel +exec_always --no-startup-id xrdb -merge $HOME/.Xresources +exec_always --no-startup-id xset r rate 200 50 +exec_always --no-startup-id setxkbmap -option caps:escape + set $refresh_i3status killall -SIGUSR1 i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3statusn bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status # Bindings diff --git a/.xinitrc b/.xinitrc index e91d8ea..cf78dc0 100755 --- a/.xinitrc +++ b/.xinitrc @@ -1,5 +1,3 @@ #!/bin/sh -xset r rate 200 50 -setxkbmap -option caps:escape exec i3 -- cgit