diff --git a/Xresources b/Xresources index ebdba57..6a06d00 100644 --- a/Xresources +++ b/Xresources @@ -1,3 +1,4 @@ #include ".Xresources.d/xft" #include ".Xresources.d/theme" #include ".Xresources.d/xterm" +#include ".Xresources.d/urxvt" diff --git a/Xresources.d/urxvt b/Xresources.d/urxvt new file mode 100644 index 0000000..53f39b1 --- /dev/null +++ b/Xresources.d/urxvt @@ -0,0 +1,56 @@ +! Scrollback position +! TODO Do not work + +! do not scroll with output +URxvt*scrollTtyOutput: false + +! scroll in relation to buffer (with mouse scroll or Shift+Page Up) +URxvt*scrollWithBuffer: true + +! scroll back to the bottom on keypress +URxvt*scrollTtyKeypress: true + + +! Scrollback buffer in secondary screen +! TODO Do not work +URxvt.secondaryScreen: 1 +URxvt.secondaryScroll: 0 + + +! Font declaration +URxvt.font: xft:DejaVu Sans Mono for Powerline:size=12:antialias=true + +! Font spacing +URxvt.letterSpace: 0 + +! No scroll bar +URxvt*scrollBar: false + +! Disable Ctrl+Shift default bindings +URxvt.iso14755: false +URxvt.iso14755_52: false + +! Copy/Paste CLIPBOARD selection with Ctrl+Shift+C/V +URxvt.keysym.C-S-C: eval:selection_to_clipboard +URxvt.keysym.C-S-V: eval:paste_clipboard + + +! Extensions +URxvt.perl-ext-common: default,matcher,resize-font + +! Clickable URL (extension: matcher) +URxvt.url-launcher: /usr/bin/xdg-open +URxvt.matcher.button: 1 + +! Changing font size on the fly (extension: resize-font, package: urxvt-resize-font-git) +URxvt.keysym.C-KP_Subtract: resize-font:smaller +URxvt.keysym.C-KP_Add: resize-font:bigger + +! Fake transparency (without compositing manager) +urxvt*transparent: true +urxvt*shading: 30 + +! True transparency (with compositing manager) +!urxvt*depth: 32 +!urxvt*background: rgba:2700/2800/2200/c800 + diff --git a/bashrc b/bashrc index 371fe0f..37a045a 100644 --- a/bashrc +++ b/bashrc @@ -119,6 +119,7 @@ export PS1="\[\e]2;\u@\h \w\a\]\[\e[0;37m\][\[\e[0;${col}m\]\u\[\e[0;37m\]@\[\e[ export PS2="> " export PS3="+ " export PS4="- " +export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}:${PWD}\007"' # CUSTOM SCRIPTS diff --git a/config/compton.conf b/config/compton.conf deleted file mode 100644 index 34eb7df..0000000 --- a/config/compton.conf +++ /dev/null @@ -1,53 +0,0 @@ -shadow = false; -no-dnd-shadow = true; -no-dock-shadow = true; -clear-shadow = true; - -menu-opacity = 0.9; -inactive-opacity = 0.93; -active-opacity = 1; -alpha-step = 0.01; -inactive-dim = 0.0; -blur-background = false; -blur-kern = "3x3box"; - -fading = false; -fade-delta = 1; -fade-in-step = 0.03; -fade-out-step = 0.03; -fade-exclude = [ ]; - -backend = "xrender"; -mark-wmwin-focused = true; -mark-ovredir-focused = true; -detect-rounded-corners = true; -detect-client-opacity = true; -unredir-if-possible = true; -refresh-rate = 0; -vsync = "none"; -dbe = false; -paint-on-overlay = true; -focus-exclude = [ "class_g = 'Cairo-clock'" ]; -detect-transient = true; -detect-client-leader = true; -invert-color-include = [ ]; -glx-copy-from-front = false; -glx-swap-method = "undefined"; - -wintypes : -{ - tooltip : - { - fade = true; - shadow = false; - opacity = 0.75; - focus = true; - }; - fullscreen : - { - fade = true; - shadow = false; - opacity = 1; - focus = true; - }; -}; diff --git a/config/i3/config b/config/i3/config index 77b5749..19298d7 100644 --- a/config/i3/config +++ b/config/i3/config @@ -46,7 +46,7 @@ bindsym $mod+dollar exec --no-startup-id ~/.config/i3/sshmenu root bindsym $mod+d exec --no-startup-id ~/.config/i3/dmenu_run # Start Applications -bindsym $mod+Return exec xterm +bindsym $mod+Return exec urxvtc bindsym $mod+p exec thunar bindsym $mod+m exec qutebrowser --override-restore --backend=webengine @@ -59,8 +59,8 @@ bindsym $mod+F7 exec pactl suspend-sink @DEFAULT_SINK@ 1; exec pactl suspend-sin bindsym $mod+F8 exec mpc prev bindsym $mod+F9 exec mpc toggle bindsym $mod+F10 exec mpc next -bindsym $mod+F11 exec xterm -e 'pacmixer' -bindsym $mod+F12 exec xterm -e 'pacmixer' +bindsym $mod+F11 exec urxvtc -e 'pacmixer' +bindsym $mod+F12 exec urxvtc -e 'pacmixer' #Brightness control bindsym XF86MonBrightnessDown exec xbacklight -dec 20 @@ -362,6 +362,7 @@ bindsym $mod+F5 exec --no-startup-id xautolock -enable # Autostart applications #exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # Password remembering #exec --no-startup-id gnome-keyring-daemon # Password remembering +exec --no-startup-id urxvtd -q -f # urxvt daemon exec --no-startup-id numlockx on # Activate Num lock exec --no-startup-id unclutter # Hide mouse cursor after some time #exec --no-startup-id dunst # Notifications (handled by systemd) diff --git a/scripts/install-prefs b/scripts/install-prefs index e718c0a..314a063 100755 --- a/scripts/install-prefs +++ b/scripts/install-prefs @@ -252,7 +252,7 @@ fi if [ $GUI == 1 ]; then # Desktop manager - inst i3 i3lock dunst unclutter xautolock feh numlockx scrot xterm xclip + inst i3 i3lock dunst unclutter xautolock feh numlockx scrot rxvt-unicode xclip curl "https://raw.githubusercontent.com/FortAwesome/Font-Awesome/a8386aae19e200ddb0f6845b5feeee5eb7013687/fonts/fontawesome-webfont.ttf" > ~/.local/share/fonts/fontawesome-webfont.ttf if [ $ARCH == 1 ]; then inst xorg-xinit diff --git a/scripts/pdfpages b/scripts/pdfpages new file mode 100755 index 0000000..e805435 --- /dev/null +++ b/scripts/pdfpages @@ -0,0 +1,4 @@ +#!/usr/bin/bash + +# From https://stackoverflow.com/a/14736593 +pdftk "$1" dump_data | grep NumberOfPages | awk '{print $2}' diff --git a/terminfo/rxvt-unicode b/terminfo/rxvt-unicode new file mode 100644 index 0000000..7650d3c Binary files /dev/null and b/terminfo/rxvt-unicode differ diff --git a/terminfo/rxvt-unicode-256color b/terminfo/rxvt-unicode-256color new file mode 100644 index 0000000..3f43d0d Binary files /dev/null and b/terminfo/rxvt-unicode-256color differ