aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-12-02 10:40:08 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-12-02 10:40:08 +0100
commit0a56adf6ead97706991a2bc0241f0e1ab0df32ec (patch)
tree4b361d07e6cc832faa6d06f531f76525ba8d7a69
parentefd23300b89998835a2fc1960178fe0fa1546737 (diff)
downloadconfigs-0a56adf6ead97706991a2bc0241f0e1ab0df32ec.tar.gz
configs-0a56adf6ead97706991a2bc0241f0e1ab0df32ec.zip
Mon 02 Dec 2019 10:40:10 AM CET
-rw-r--r--files/i3/config13
-rw-r--r--files/i3blocks/config1
-rw-r--r--files/neofetch/neofetchLogin.conf10
-rw-r--r--files/picom/picom.conf8
-rw-r--r--files/qutebrowser/config.py2
-rw-r--r--files/rcs/.Xresources21
-rw-r--r--files/rcs/.bash_aliases9
-rw-r--r--files/rcs/.bash_vars18
-rw-r--r--files/rcs/.profile8
-rw-r--r--files/rcs/.tmux.conf17
-rw-r--r--files/sxiv/config.h2
-rwxr-xr-xfiles/sxiv/key-handler1
-rw-r--r--files/zathura/zathurarc3
13 files changed, 63 insertions, 50 deletions
diff --git a/files/i3/config b/files/i3/config
index 296696d..a243c83 100644
--- a/files/i3/config
+++ b/files/i3/config
@@ -54,8 +54,8 @@ set $right l
# define workspaces names
set $ws1 1:💻
-set $ws2 2:👾
-set $ws3 3:🌍
+set $ws2 2:🌍
+set $ws3 3:👾
set $ws4 4:🎮
set $ws5 5
set $ws6 6:🎵
@@ -89,6 +89,7 @@ bindsym $mod+Shift+q kill
# start dmenu_run (a program launcher)
bindsym $mod+x exec dmenu_run -l 8 -p "~$"
+bindsym $mod+Shift+x exec rofi -show run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
@@ -126,6 +127,9 @@ bindsym $mod+Control+$right workspace next
bindsym $mod+Control+Left workspace prev
bindsym $mod+Control+Right workspace next
+# Jump to window
+bindsym $mod+Control+j exec rofi -show window
+
# split in horizontal orientation
bindsym $mod+b split h
@@ -151,7 +155,7 @@ bindsym $mod+Shift+space floating toggle
bindsym $mod+Shift+s sticky toggle
-bindsym $mod+Shift+x exec sxivslideshot
+bindsym $mod+Control+x exec sxivslideshot
# modify gaps
bindsym $mod+Shift+g gaps inner current minus 2
@@ -221,6 +225,7 @@ for_window [instance="sxivfloat"] floating enable
for_window [instance="sxivfloat"] sticky enable
for_window [instance="sxivfloat"] border pixel 1
for_window [title="SFML"] floating enable
+for_window [title="Firefox"] floating enable
assign [class="Transmission"] 5
# edge borders
@@ -288,7 +293,7 @@ bindsym $mod+Shift+c exec notify-send "$(fortune)"
bindsym $mod+y exec surfraw.sh
bindsym $mod+Control+f exec screenRecord.sh
bindsym $mod+Control+p exec passmenu
-
+bindsym $mod+z exec docs.sh
##
diff --git a/files/i3blocks/config b/files/i3blocks/config
index bedb7b0..9c587ee 100644
--- a/files/i3blocks/config
+++ b/files/i3blocks/config
@@ -27,7 +27,6 @@ signal=13
[music]
color=#a5acff
-#background=#696eff
command=~/scripts/i3blocks/i3music.sh
interval=2
signal=12
diff --git a/files/neofetch/neofetchLogin.conf b/files/neofetch/neofetchLogin.conf
index 047a2eb..7750481 100644
--- a/files/neofetch/neofetchLogin.conf
+++ b/files/neofetch/neofetchLogin.conf
@@ -18,9 +18,11 @@ print_info() {
-ascii_bold="on"
-ascii_colors=(4 4)
-ascii_distro="auto"
+ascii_bold="off"
+#ascii_colors=(4 4)
+#ascii_distro="auto"
+ascii_colors=(3)
+ascii_distro="gnu"
background_color=
bar_border="on"
bar_char_elapsed="-"
@@ -57,5 +59,5 @@ thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
underline_char="-"
underline_enabled="on"
uptime_shorthand="on"
-xoffset=0
+xoffset=10
yoffset=0
diff --git a/files/picom/picom.conf b/files/picom/picom.conf
index cb92872..378ccab 100644
--- a/files/picom/picom.conf
+++ b/files/picom/picom.conf
@@ -75,13 +75,14 @@ shadow-opacity = 0.25;
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
shadow-exclude = [
"! name~=''",
+ "name *= 'dunst'",
+ "name *= 'i3bar'",
"name = 'Notification'",
"name = 'Plank'",
"name = 'Docky'",
"name = 'Kupfer'",
"name = 'xfce4-notifyd'",
"name *= 'VLC'",
- "name *= 'dunst'",
"name *= 'picom'",
"name *= 'Chromium'",
"name *= 'Chrome'",
@@ -126,7 +127,8 @@ blur-background-exclude = [
];
opacity-rule = [
- "70:class_g = 'URxvt' && focused",
+ "70:class_g = 'URxvt' && !focused"
+ #"80:_NET_WM_NAME@:s = 'rofi'"
];
#################################
@@ -191,7 +193,7 @@ dbe = false;
unredir-if-possible = false;
# Specify a list of conditions of windows that should always be considered focused.
-focus-exclude = [ ];
+focus-exclude = [ "_NET_WM_NAME@:s = 'rofi'" ];
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
detect-transient = false;
diff --git a/files/qutebrowser/config.py b/files/qutebrowser/config.py
index fade1e6..501e964 100644
--- a/files/qutebrowser/config.py
+++ b/files/qutebrowser/config.py
@@ -756,7 +756,7 @@ c.downloads.open_dispatcher = "rifle"
## Same as `{column}`, but starting from index 0.
## Type: ShellCommand
# c.editor.command = ['gvim', '-f', '{file}', '-c', 'normal {line}G{column0}l']
-c.editor.command = ['urxvt', '-e', 'nvim', '{file}']
+c.editor.command = ['urxvt', '-title', '"floating"', '-e', 'nvim', '{file}']
## Encoding to use for the editor.
## Type: Encoding
diff --git a/files/rcs/.Xresources b/files/rcs/.Xresources
index a45fa3e..5163a2c 100644
--- a/files/rcs/.Xresources
+++ b/files/rcs/.Xresources
@@ -1,10 +1,10 @@
! To load into RESOURCE_MANAGER, run xrdb ~/.Xresources
-*background: #100010
+! *background and foreground are read by sxiv
! Gruvbox dark
! hard contrast:
!*background: #1d2021
-!*background: #282828
+*background: #282828
! soft contrast:
!*background: #32302f
*foreground: #ebdbb2
@@ -34,29 +34,32 @@
*color7: #a89984
*color15: #ebdbb2
+! Man pages
+URxvt.colorIT: #ff0000
+
URxvt.scrollBar: false
! These options are not used when configuration is through picom
-! URxvt.fading: 18
-! *.alpha: 120
+!URxvt.fading: 18
+!*.alpha: 120
! Fake transparency (copies root window, aka wallpaper)
! Overrides real transparency if not commented
-! URxvt.transparent: true
-! URxvt.shading: 12
+!URxvt.transparent: true
+!URxvt.shading: 12
! Real transparency (needs a running composite manager such as picom)
URxvt.depth: 32
-!!
-URxvt.background: [90]#100020
+URxvt.background: [90]#050505
+*.font: inconsolata:size=12
URxvt.font: xft:inconsolata:size=10,xft:symbola
! URxvt.font: xft:mononoki:size=9,xft:symbola
! URxvt.font: xft:envy code r:size=9,xft:symbola
! Leaving this blank stops perl from being initialized
!URxvt.perl-ext:
-URxvt.perl-ext-common: font-size,default,url-select
+URxvt.perl-ext-common: default,url-select,font-size
URxvt.keysym.C-equal: font-size:reset
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.url-select.launcher: qutebrowser
diff --git a/files/rcs/.bash_aliases b/files/rcs/.bash_aliases
index 356c162..4c484a4 100644
--- a/files/rcs/.bash_aliases
+++ b/files/rcs/.bash_aliases
@@ -1,9 +1,10 @@
# General abreviations
-alias r='ranger'
+alias r='tmux rename-window ranger; ranger; tmux rename-window bash'
alias v='nvim'
alias vim='nvim'
alias ping='ping fsf.org'
-alias cdf='cd $(fzfPath.sh)'
+alias cdf='cd "$(fzfPath.sh)"'
+alias cdr='ranger "$(fzfPath.sh)"'
alias mail='mail.sh'
alias ls='ls -hN --color=auto --group-directories-first'
alias grep='grep --color=auto'
@@ -29,12 +30,10 @@ alias cnb="vim ~/.newsboat/config"
alias cnbu="vim ~/.newsboat/urls"
alias ctmux="vim ~/.tmux.conf"
-# Non-path programs
-#alias CryptTool="wine '~/.wine/drive_c/Program Files (x86)/CrypTool/CrypTool.exe\'"
-
alias upgrade="sudo pacman -Syu"
alias starwars="telnet towel.blinkenlights.nl"
alias adormir="mpv -vo caca ~/videos/Adormir.mp4 && clear 2>/dev/null"
alias adormirloop="mpv --loop-file -vo caca ~/videos/Adormir.mp4 2>/dev/null && clear"
alias nintendos="mpv -vo caca https://www.youtube.com/watch?v=hYNcJj2QDhk 2>/dev/null"
+alias netris="ssh netris.rocketnine.space"
diff --git a/files/rcs/.bash_vars b/files/rcs/.bash_vars
index bc282b3..6a6e64f 100644
--- a/files/rcs/.bash_vars
+++ b/files/rcs/.bash_vars
@@ -32,25 +32,27 @@ export GREP_COLORS='ms=04;32;49:mc=04;32;49:sl=:cx=:fn=01;34;49:ln=34:bn=34:se=3
# Colors for gcc
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
-################
-# PATH changes #
-################
+#########
+# $PATH #
+#########
# java
export JAVA_HOME="/usr/lib/jvm/default/"
PATH="${PATH}:${JAVA_HOME}/bin"
-# add scripts folder to path
-PATH="$PATH:$HOME/scripts"
+# add scripts folder to path plus its direct subfolders
+for dir in $(find "$HOME/scripts" -type d | grep -v '/\.'); do
+ PATH="${PATH}:${dir}"
+done
# add ruby bins (gems) folder to path
-PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"
+PATH="${PATH}:$(ruby -e 'puts Gem.user_dir')/bin"
# add cargo bins folder to path
-PATH="$PATH:$HOME/.cargo/bin"
+PATH="${PATH}:${HOME}/.cargo/bin"
# add pip local bins to path
-PATH="$PATH:$HOME/.local/bin"
+PATH="${PATH}:${HOME}/.local/bin"
# export final PATH
export PATH
diff --git a/files/rcs/.profile b/files/rcs/.profile
index bb116d9..3857f68 100644
--- a/files/rcs/.profile
+++ b/files/rcs/.profile
@@ -19,22 +19,22 @@ fi
sudo loadkeys es
sudo -n loadkeys "$XDG_CONFIG_HOME/ttymaps.kmap"
[[ $(tty) = "/dev/tty6" ]] && setfont alt-8x8
-if [ "$(tty)" = "/dev/tty1" ] && [ ! "$(pgrep -x i3)" ]; then
+if [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x i3; then
echo ""
cat "$HOME/.xinitrci3" > "$HOME/.xinitrc"
neofetch --config "$XDG_CONFIG_HOME/neofetch/neofetchLogin.conf"
#figlet "Starting i3-gaps..." | lolcat -a -d 1 -s 10 -p 1 -F 0.05
exec startx >"$CONFIG_FOLDER_LOGS/startx.log" 2>"$CONFIG_FOLDER_LOGS/startxerr.log"
-elif [ "$(tty)" = "/dev/tty3" ] && [ ! "$(pgrep -x xfce4-session)" ]; then
+elif [ "$(tty)" = "/dev/tty3" ] && ! pgrep -x xfce4-session; then
echo ""
cat "$HOME/.xinitrcxfce4" > "$HOME/.xinitrc"
neofetch --config "$XDG_CONFIG_HOME/neofetch/neofetchLogin.conf"
exec startx >"$CONFIG_FOLDER_LOGS/startx.log" 2>"$CONFIG_FOLDER_LOGS/startxerr.log"
-elif [ "$(tty)" = "/dev/tty4" ] && [ ! "$(pgrep -x gnome-session)" ]; then
+elif [ "$(tty)" = "/dev/tty4" ] && ! pgrep -x gnome-session; then
echo ""
cat "$HOME/.xinitrcgnome" > "$HOME/.xinitrc"
neofetch --config "$XDG_CONFIG_HOME/neofetch/neofetchLogin.conf"
exec startx >"$CONFIG_FOLDER_LOGS/startx.log" 2>"$CONFIG_FOLDER_LOGS/startxerr.log"
-elif [ "$(tty | egrep -e "/dev/tty.*")" ]; then
+elif tty | grep -q '/dev/tty.*' ; then
tmux new -s "$(tty | cut -d'/' -f3)"
fi
diff --git a/files/rcs/.tmux.conf b/files/rcs/.tmux.conf
index 5db927a..aa46451 100644
--- a/files/rcs/.tmux.conf
+++ b/files/rcs/.tmux.conf
@@ -11,20 +11,20 @@ set -g status-keys vi
# Theme
#set-option -g status-style attr=default
# status bar
-set-option -g status-style "fg=colour4 bg=colour8"
+set-option -g status-style "fg=colour4 bg=default"
# status bar windows
-set-window-option -g window-status-style "fg=colour4 bg=colour8"
+set-window-option -g window-status-style "fg=colour4 bg=default"
# status bar selected window
-set -g window-status-current-style "fg=colour13 bg=colour8"
-#set-window-option -g window-status-current-attr bold colour8
+set -g window-status-current-style "fg=colour13 bg=default"
+#set-window-option -g window-status-current-attr bold default
# pane borders
-set-option -g pane-border-style "fg=colour0 bg=colour8"
-set-option -g pane-active-border-style "fg=colour6 bg=colour8"
+set-option -g pane-border-style "fg=colour8 bg=default"
+set-option -g pane-active-border-style "fg=colour6 bg=default"
# pane number display
set-option -g display-panes-colour colour4
set-option -g display-panes-active-colour colour5
# messages
-set-option -g message-style "fg=colour2 bg=colour8"
+set-option -g message-style "fg=colour2 bg=default"
# clock
set-window-option -g clock-mode-colour colour4
# sizes
@@ -32,14 +32,13 @@ set -g status-interval 60
set -g status-left-length 20
#set -g status-left '#[fg=green](#S) #(whoami) '
set -g status-left '(#S) '
-#set -g status-right '(#S) '
#zoom
#{?window_zoomed_flag, ,🔍}
set -g base-index 0
set -s escape-time 0
bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
-bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
+bind-key C command-prompt -p "Name of new window:" "new-window -n '%%'"
# moving between panes with vim movement keys
bind h select-pane -L
diff --git a/files/sxiv/config.h b/files/sxiv/config.h
index 35b2bb0..99e1e2e 100644
--- a/files/sxiv/config.h
+++ b/files/sxiv/config.h
@@ -9,7 +9,7 @@ enum {
/* bar font:
* (see fonts-conf(5) subsection "FONT NAMES" for valid values)
*/
-static const char * const BAR_FONT = "monospace:size=8";
+static const char * const BAR_FONT = "monospace:size=12";
/* colors:
* overwritten by 'background' and 'foreground' X resource properties.
diff --git a/files/sxiv/key-handler b/files/sxiv/key-handler
index dc677ea..433ae2c 100755
--- a/files/sxiv/key-handler
+++ b/files/sxiv/key-handler
@@ -69,6 +69,7 @@ while read -r file
do
case "$1" in
"w") setBG.sh "$file" ;;
+ "W") wal.sh "$file" ;;
"r")
convert -rotate 90 "$file" "$file" &&
dunstify "$file rotated clockwise" ;;
diff --git a/files/zathura/zathurarc b/files/zathura/zathurarc
index df7b6a6..afa11ba 100644
--- a/files/zathura/zathurarc
+++ b/files/zathura/zathurarc
@@ -9,6 +9,7 @@ map b toggle_statusbar
map r reload
map R rotate
map p print
-#map y feedkeys "<Mod4>d"
map Y exec 'dunstify %'
+map I exec '/home/taamas/scripts/pdfSxiv.sh %'
+#map y feedkeys "<Mod4>d"
#map P change_mode presentation