commit 18b6742e523e575ee9444ca7b79ee361244f1cdc
parent ec70ed36f8af3221088cd923c5ba653cda19532c
Author: Pablo Cárdenas <pablo-cardenas@outlook.com>
Date: Mon, 13 Sep 2021 03:27:22 -0500
Update
Diffstat:
17 files changed, 218 insertions(+), 201 deletions(-)
diff --git a/home/.bash/aliases.bash b/home/.bash/aliases.bash
@@ -1,7 +1,8 @@
# system
-alias ll='ls -alFh'
+alias egrep='egrep --color=auto'
+alias fgrep='fgrep --color=auto'
+alias grep='grep --color=auto'
alias la='ls -A'
+alias ll='ls -alFh'
alias ls='ls --color=auto'
-alias grep='grep --color=auto'
-alias fgrep='fgrep --color=auto'
-alias egrep='egrep --color=auto'
+alias tree='tree -C'
diff --git a/home/.bashrc b/home/.bashrc
@@ -1,11 +1,12 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
-shopt -s checkwinsize histappend
+shopt -s checkwinsize histappend histreedit
-export HISTCONTROL=ignoreboth:erasedups
+export HISTCONTROL=ignoreboth
export HISTSIZE=100000
-export HISTFILESIZE=20000
+export HISTFILESIZE=200000
+HISTTIMEFORMAT="%d/%m/%y %T "
# Bash completions
if ! shopt -oq posix; then
@@ -35,3 +36,9 @@ export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
export PYTHONSTARTUP=${HOME}/.pythonrc.py
+
+
+source /usr/share/git/completion/git-prompt.sh
+export GIT_PS1_SHOWCOLORHINTS=1
+export GIT_PS1_SHOWDIRTYSTATE=1
+export PS1='[\u@\h \W]$(__git_ps1) \$ '
diff --git a/home/.editorconfig b/home/.editorconfig
@@ -6,7 +6,12 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
-[*.{c,cpp,h,hpp,cc,java}]
+[*.{cc,cpp,hpp,cxx}]
+indent_style = space
+indent_size = 4
+max_line_length = 79
+
+[*.{c,h,java}]
indent_style = tab
tab_width = 4
max_line_length = 79
@@ -14,7 +19,6 @@ max_line_length = 79
[*.{py,R}]
indent_style = space
indent_size = 4
-max_line_length = 79
[Makefile]
indent_style = tab
@@ -23,7 +27,12 @@ indent_style = tab
indent_style = tab
tabwidth = 4
-[*.{html,css,js,jsx,ts,tsx,xml,inpx}]
+[*.md]
+indent_style = space
+indent_size = 4
+max_line_length = 79
+
+[*.{html,css,scss,js,jsx,ts,tsx,xml,inpx}]
indent_style = space
indent_size = 2
diff --git a/home/.gitconfig b/home/.gitconfig
@@ -4,3 +4,9 @@
[alias]
lod = log --oneline --decorate
unstage = reset HEAD --
+
+[diff]
+ tool = vimdiff
+
+[merge]
+ tool = vimdiff
diff --git a/home/.latexmkrc b/home/.latexmkrc
@@ -1,4 +1,2 @@
$pdf_previewer = 'start zathura';
-#@generated_exts = (@generated_exts, 'synctex.gz');
-#$pdflatex = 'pdflatex -synctex=1 -interaction=nonstopmode';
-$pdflatex = 'pdflatex -synctex=0';
+$pdflatex = 'pdflatex -interaction=nonstopmode';
diff --git a/home/.octaverc b/home/.octaverc
@@ -1,6 +1,3 @@
edit mode sync
edit home .
-EDITOR('nvim > /dev/tty 2>&1 < /dev/tty %s')
-
-% Para clases
-% PS1 ("octave> ")
+EDITOR('vim > /dev/tty 2>&1 < /dev/tty %s')
diff --git a/linux/.Xresources.d/colors b/linux/.Xresources.d/colors
@@ -1,46 +1,3 @@
-*.background: #ffffff
-!*.foreground: #080808
-*.foreground: #000000
-URxvt.background: #ffffff
-!URxvt.foreground: #080808
-URxvt.foreground: #000000
-i3wm.bg0: #ffffff
-i3wm.bg1: #bbbbbb
-i3wm.fg0: #111111
-i3wm.fg1: #666666
-
-! light
-*.color0: #080808
-*.color1: #cd0000
-*.color2: #00cd00
-*.color3: #999900
-*.color4: #4444ff
-*.color5: #cd00cd
-*.color6: #00cdcd
-*.color7: #b0b0b0
-*.color8: #777777
-*.color9: #ff8888
-*.color10: #00ff00
-*.color11: #cdcd00
-*.color12: #6666ff
-*.color13: #ffAAff
-*.color14: #00ffff
-*.color15: #ffffff
-
-! dark
-!*.color0: #080808
-!*.color1: #cd0000
-!*.color2: #00cd00
-!*.color3: #999900
-!*.color4: #4444ff
-!*.color5: #cd00cd
-!*.color6: #00cdcd
-!*.color7: #e5e5e5
-!*.color8: #4d4d4d
-!*.color9: #ff2222
-!*.color10: #00ff00
-!*.color11: #ffff00
-!*.color12: #6666ff
-!*.color13: #ffAAff
-!*.color14: #00ffff
-!*.color15: #ffffff
+#include "themes/my-nord.xresources"
+i3wm.bg1: #3d3d3d
+i3wm.fg1: #aaaaaa
diff --git a/linux/.Xresources.d/rxvt-unicode b/linux/.Xresources.d/rxvt-unicode
@@ -1,7 +1,7 @@
URxvt*geometry: 80x25
URxvt.font: xft:Fira Mono:book:pixelsize=11,\
- xft:Font Awesome 5 Brands:pixelsize=11,\
- xft:Font Awesome 5 Free
+ xft:FontAwesome5Free:style=Solid,\
+ xft:FontAwesome5Brands:style=Solid
URxvt.boldFont: xft:Fira Mono:bold:pixelsize=11,\
xft:Font Awesome 5 Brands:pixelsize=11,\
@@ -12,7 +12,6 @@ URxvt.scrollBar: false
URxvt.internalBorder: 10
URxvt.cursorBlink: true
-
URxvt.perl-ext-common: resize-font
!URxvt.depth: 32
diff --git a/linux/.Xresources.d/themes/my-nord.xresources b/linux/.Xresources.d/themes/my-nord.xresources
@@ -0,0 +1,39 @@
+#define nord0 #2E3440
+#define nord1 #3B4252
+#define nord2 #434C5E
+#define nord3 #4C566A
+#define nord4 #D8DEE9
+#define nord5 #E5E9F0
+#define nord6 #ECEFF4
+#define nord7 #8FBCBB
+#define nord8 #88C0D0
+#define nord9 #667f99
+#define nord10 #5E81AC
+#define nord11 #994e55
+#define nord12 #D08770
+#define nord13 #EBCB8B
+#define nord14 #A3BE8C
+#define nord15 #B48EAD
+
+*.foreground: nord4
+*.background: nord0
+*.cursorColor: nord4
+*fading: 35
+*fadeColor: nord3
+
+*.color0: nord1
+*.color1: nord11
+*.color2: nord14
+*.color3: nord13
+*.color4: nord9
+*.color5: nord15
+*.color6: nord8
+*.color7: nord5
+*.color8: nord3
+*.color9: nord11
+*.color10: nord14
+*.color11: nord13
+*.color12: nord9
+*.color13: nord15
+*.color14: nord7
+*.color15: nord6
diff --git a/linux/.config/i3/config b/linux/.config/i3/config
@@ -1,5 +1,5 @@
set_from_resource $black color0 #000000
-SET_FROM_resource $red3 color1 #cd0000
+set_from_resource $red3 color1 #cd0000
set_from_resource $green3 color2 #00cd00
set_from_resource $yellow3 color3 #cdcd00
set_from_resource $blue3 color4 #0000cd
@@ -14,9 +14,9 @@ set_from_resource $blue color12 #0000ff
set_from_resource $magenta color13 #ff00ff
set_from_resource $cyan color14 #00ffff
set_from_resource $white color15 #ffffff
-set_from_resource $fg0 i3wm.fg0 #000000
+set_from_resource $fg0 foreground #000000
set_from_resource $fg1 i3wm.fg1 #4d4d4d
-set_from_resource $bg0 i3wm.bg0 #ffffff
+set_from_resource $bg0 background #ffffff
set_from_resource $bg1 i3wm.bg1 #e5e5e5
set $mod Mod4
@@ -145,10 +145,10 @@ bindsym $mod+r mode "resize"
# class border backgr. text indicator child_border
client.focused $fg0 $bg0 $fg0 $green $fg0
-client.focused_inactive $bg1 $bg0 $fg1 $green $bg1
-client.unfocused $bg1 $bg0 $bg1 $green $bg1
+client.focused_inactive $bg1 $bg0 $fg0 $green $bg1
+client.unfocused $bg1 $bg0 $fg1 $green $bg1
client.urgent $red $bg0 $red $green $red
-client.placeholder $000000 $blue $blue $000000 $blue
+client.placeholder $magenta $magenta $magenta $magenta $magenta
client.background $magenta
# Pulse Audio controls
@@ -166,27 +166,49 @@ bindsym XF86AudioStop exec playerctl stop
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
-#new_window pixel 2
-#new_float pixel 2
-#gaps vertical 162
-#gaps horizontal 320
+default_border pixel 2
+default_floating_border pixel 4
# You can also use any non-zero value if you'd like to have a border
-#default_border pixel 0
-for_window [class=".*"] border pixel 0
-for_window [class=".*"] child_border pixel 0
+#for_window [class=".*"] border pixel 0
+#for_window [class=".*"] child_border pixel 0
-gaps vertical 8
-gaps horizontal 20
-gaps inner 8
-#smart_gaps on
-#smart_gaps inverse_outer
-#smart_borders no_gaps
-#hide_edge_borders smart_no_gaps
+# 4.13. Arbitrary commands for specific windows (for_window)
+for_window [class="Blender" instance="Blender" title="Blender Preferences"] floating enable
+for_window [class="Blender" instance="Blender" title="Blender Preferences"] move position center
+for_window [class="zoom" instance="zoom" title="zoom"] floating enable
+for_window [class="zoom" instance="zoom" title="zoom"] move position center
+for_window [class="zoom" instance="zoom" title="Chat"] floating enable
+for_window [class="zoom" instance="zoom" title="Chat"] move position center
+for_window [class="zoom" instance="zoom" title="Participants*"] floating enable
+for_window [class="zoom" instance="zoom" title="Participants*"] move position center
+for_window [class="zoom" instance="zoom" title="Settings"] floating enable
+for_window [class="zoom" instance="zoom" title="Settings"] move position center
+for_window [class="URxvt" instance="urxvt"] client.focused $white $bg0 $bg1 $green $bg1
+
+
+# 4.19. Automatically putting workspaces on specific screens
+workspace 1 output VGA1
+workspace 2 output HDMI-0
+workspace 3 output VGA1
+workspace 4 output HDMI-0
+workspace 5 output VGA1
+workspace 6 output HDMI-0
+workspace 7 output VGA1
+workspace 8 output HDMI-0
+
+# 6.20. Scratchpad
+# Make the currently focused window a scratchpad
+bindsym $mod+Shift+minus move scratchpad
-#gaps vertical 0
-#gaps horizontal 0
-#gaps inner 0
+# Show the first scratchpad window
+bindsym $mod+minus scratchpad show
+
+
+# i3-gaps
+gaps vertical 0
+gaps horizontal 8
+gaps inner 8
diff --git a/linux/.config/mimeapps.list b/linux/.config/mimeapps.list
@@ -1,20 +1,25 @@
[Default Applications]
application/pdf=org.pwmt.zathura.desktop
-application/postscript=org.pwmt.zathura.desktop;
+application/postscript=org.pwmt.zathura.desktop
application/vnd.rar=xarchiver.desktop
+application/x-directory=ranger.desktop
+application/x-hdf=vitables.desktop
+application/x-sqlite3=sqlitebrowser.desktop
application/x-xpinstall=org.qutebrowser.qutebrowser.desktop
application/xhtml+xml=org.qutebrowser.qutebrowser.desktop
application/zip=xarchiver.desktop
-application/zip=xarchiver.desktop;
image/jpeg=sxiv.desktop
image/png=sxiv.desktop
+image/vnd.djvu=org.pwmt.zathura.desktop
+inode/directory=ranger.desktop
text/html=org.qutebrowser.qutebrowser.desktop
-text/x-bibtex=gvim.desktop;
-video/mp4=ffplay.desktop
-video/webm=ffplay.desktop
-video/x-flv=ffplay.desktop
-x-directory/normal=tk
+text/plain=vim.desktop
+text/x-bibtex=vim.desktop
+video/mp4=mpv.desktop
+video/webm=mpv.desktop
+video/x-flv=mpv.desktop
x-scheme-handler/about=org.qutebrowser.qutebrowser.desktop
x-scheme-handler/http=org.qutebrowser.qutebrowser.desktop
x-scheme-handler/https=org.qutebrowser.qutebrowser.desktop
+x-scheme-handler/tg=userapp-Telegram Desktop-2WSC30.desktop
x-scheme-handler/unknown=org.qutebrowser.qutebrowser.desktop
diff --git a/linux/.config/picom/picom.conf b/linux/.config/picom/picom.conf
@@ -1,6 +1,8 @@
-#backend = "glx"
-#glx-copy-from-front = false;
-#vsync = true
+backend = "glx";
+glx-copy-from-front = false;
+xrender-sync-fence = true;
+vsync = true;
+
shadow = true;
shadow-offset-x = -25;
@@ -15,10 +17,9 @@ shadow-exclude = [
"! name~=''",
"class_g = 'Osdlyrics'",
"class_g = 'i3-frame'",
- "class_g = 'zoom'",
- "name = 'cpt_frame_window'",
- "!focused",
+ "class_g = 'zoom' && name = 'as_toolbar'",
"bounding_shaped && !rounded_corners",
+ "name = 'cpt_frame_window'",
];
@@ -28,25 +29,28 @@ fade-out-step = 0.03;
fade-delta = 0.01;
-
-#active-opacity = 1.0;
-inactive-opacity = 0.95;
frame-opacity = 0.8;
inactive-opacity-override = false;
opacity-rule = [
"95:class_g = 'URxvt' && focused",
- "70:class_g = 'URxvt' && !focused",
- "90:class_g = 'Zathura' && !focused",
- "60:class_g *?= 'Rofi'",
+ "85:class_g = 'URxvt' && !focused",
+ "95:class_g = 'Zathura' && !focused",
+ "80:class_g *?= 'Rofi'",
];
inactive-dim = 0.05;
-# I need a better graphic card to do this
-#blur: {
-# method = "gaussian";
-# size = 10;
-# deviation = 5.0;
-#}
+
+blur: {
+ method = "gaussian";
+ size = 15;
+ deviation = 5.0;
+}
+
+blur-background-exclude = [
+ "class_g ~= 'gromit-mpx'",
+ "class_g ~= 'zoom'",
+];
+
wintypes:
{
diff --git a/linux/.config/polybar/config b/linux/.config/polybar/config
@@ -1,9 +1,4 @@
[colors]
-fg0 = ${xrdb:i3wm.fg0:#000000}
-fg1 = ${xrdb:i3wm.fg1:#4d4d4d}
-bg0 = ${xrdb:i3wm.bg0:#ffffff}
-bg1 = ${Xrdb:i3wm.bg1:#e5e5e5}
-
black = ${xrdb:color0:#000000}
red3 = ${xrdb:color1:#cd0000}
green3 = ${xrdb:color2:#00cd00}
@@ -21,14 +16,25 @@ magenta = ${xrdb:color13:#ff00ff}
cyan = ${xrdb:color14:#00ffff}
white = ${xrdb:color15:#ffffff}
+background = ${xrdb:background}
+background-accent-1 = ${xrdb:color8}
+background-accent-2 = ${xrdb:color6}
+foreground = ${xrdb:foreground}
+foreground-accent-1 = ${xrdb:foreground}
+foreground-accent-2 = ${xrdb:color0}
+fg0 = ${colors:white}
+fg1 = ${xrdb:i3wm.foreground:#000000}
+bg0 = ${xrdb:i3wm.background:#ffffff}
+bg1 = ${colors:gray30}
+
primary = ${xrdb:color1:#cd0000}
secondary = ${xrdb:color2:#00cd00}
alert = ${xrdb:color3:#cdcd00}
[bar/base]
monitor = ${env:MONITOR:HDMI1}
-background = ${colors.bg0}
-foreground = ${colors.fg1}
+background = ${colors.background}
+foreground = ${colors.foreground}
width = 100%
height = 18
offset-x = 0%
@@ -52,16 +58,14 @@ scroll-down = i3wm-wsprev
inherit = bar/base
padding-left = 0
modules-left = i3 xwindow
-#modules-right = gmail xkeyboard battery backlight volume date
-modules-right = timer taskwarrior updates-arch-combined info-hackspeed xkeyboard backlight volume date
+modules-right = timer taskwarrior updates-arch-combined xkeyboard backlight volume date
[bar/bottom]
inherit = bar/base
bottom = true
tray-position = right
tray-margin-right = 5
-modules-left = cpu memory filesystem system-gpu-intel
-#modules-left = cpu memory filesystem system-gpu-intel
+modules-left = cpu system-nvidia-smi memory filesystem
modules-right = battery system-uptime-pretty wired-network wireless-network
[module/xwindow]
@@ -75,41 +79,38 @@ format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
+padding = 1
+
; Mode
-label-mode-padding = 1
-label-mode-foreground = ${colors.fg0}
-label-mode-background = ${colors.red3}
+label-mode-background = ${colors.primary}
+label-mode-padding = ${self.padding}
; focused = Active workspace on focused monitor
label-focused = %{T4}%index%
label-focused-font = 3
-label-focused-foreground = ${colors.fg1}
-label-focused-background = ${colors.bg1}
-label-focused-underline = ${colors.yellow3}
-label-focused-padding = 1
+label-focused-background = ${colors.background-accent-2}
+label-focused-foreground = ${colors.foreground-accent-2}
+label-focused-padding = ${self.padding}
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
-label-unfocused-padding = 1
-label-unfocused-foreground = ${colors.fg1}
-label-unfocused-background = ${colors.bg0}
+label-unfocused-background = ${colors.background-accent-1}
+label-unfocused-foreground = ${colors.foreground-accent-1}
+label-unfocused-padding = ${self.padding}
; visible = Active workspace on unfocused monitor
label-visible = %index%
-label-visible-foreground = ${colors.fg1}
-label-visible-background = ${colors.bg1}
-label-visible-padding = 1
+label-visible-background = ${self.label-focused-background}
+label-visible-padding = ${self.padding}
; urgent = Workspace with urgency hint set
label-urgent = %index%
-label-urgent-foreground = ${colors.fg0}
-label-urgent-background = ${colors.yellow3}
-label-urgent-underline = ${colors.green3}
-label-urgent-padding = 1
+label-urgent-background = ${colors.alert}
+label-urgent-padding = ${self.padding}
[module/date]
type = internal/date
-interval = 5
+interval = 60
date = %a
date-alt = %Y-%m-%d
time = %H:%M
@@ -127,9 +128,9 @@ format-volume = "<label-volume> <bar-volume>"
label-volume = %percentage:2%%
format-muted-prefix = " "
-format-muted-prefix-foreground = ${colors.fg1}
+format-muted-prefix-foreground = ${colors.foreground}
label-muted = "AUDIO MUTE"
-label-muted-foreground = ${colors.bg1}
+label-muted-foreground = ${colors.background}
bar-volume-width = 11
bar-volume-foreground-0 = ${colors.green3}
@@ -209,7 +210,7 @@ ramp-coreload-7-foreground = ${colors.red3}
[module/memory]
type = internal/memory
format = <label> <ramp-used>
-interval = 3
+interval = 2
label = RAM %gb_used%/%gb_free%
ramp-used-0 = ▁
@@ -238,25 +239,9 @@ mount-1 = /home
interval = 10
fixed-values = true
spacing = 2
-format-mounted = <label-mounted> <ramp-capacity>
+format-mounted = <label-mounted>
label-mounted = %mountpoint% %used%/%free%
-ramp-capacity-0 = ▁
-ramp-capacity-0-foreground = ${colors.red3}
-ramp-capacity-1 = ▂
-ramp-capacity-1-foreground = ${colors.red3}
-ramp-capacity-2 = ▃
-ramp-capacity-2-foreground = ${colors.yellow3}
-ramp-capacity-3 = ▄
-ramp-capacity-3-foreground = ${colors.yellow3}
-ramp-capacity-4 = ▅
-ramp-capacity-4-foreground = ${colors.yellow3}
-ramp-capacity-5 = ▆
-ramp-capacity-5-foreground = ${colors.green3}
-ramp-capacity-6 = ▇
-ramp-capacity-6-foreground = ${colors.green3}
-ramp-capacity-7 = █
-ramp-capacity-7-foreground = ${colors.green3}
[module/backlight]
type = internal/xbacklight
@@ -306,52 +291,39 @@ type = internal/xkeyboard
[module/system-uptime-pretty]
type = custom/script
-exec = /usr/share/polybar/scripts/system-uptime-pretty.sh
+exec = ~/.config/polybar/scripts/system-uptime-pretty.sh
interval = 60
-#[module/system-gpu-intel]
-#type = custom/script
-#exec = /usr/share/polybar/scripts/system-gpu-intel.sh
-#interval = 20
-
-[module/info-hackspeed]
-type = custom/script
-exec = /usr/share/polybar/scripts/info-hackspeed.sh
-tail = true
-
[module/updates-arch-combined]
type = custom/script
-exec = /usr/share/polybar/scripts/updates-pacman-aurhelper.sh
+exec = ~/.config/polybar/scripts/updates-pacman-aurhelper.sh
interval = 600
[module/timer]
type = custom/script
exec = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh tail 'TIMER' 5
tail = true
-click-left = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh new 25 'Pomo session' 'notify-send "Session finished"' ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid%
+click-left = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh new 25 'Pomo session' 'notify-send "Session finished"; canberra-gtk-play -i complete' ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid%
click-middle = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh cancel ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid%
-click-right = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh new 5 'Pomo break' 'notify-send "Break finished"' ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid%
-scroll-up = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh increase 60 || ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh new 1 'TIMER:' 'notify-send -u critical "Timer expired."' ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid%
+click-right = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh new 5 'Pomo break' 'notify-send "Break finished"; canberra-gtk-play -i complete' ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid%
+scroll-up = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh increase 60 || ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh new 1 'TIMER:' 'notify-send -u critical "Timer expired."; canberra-gtk-play -i complete' ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid%
scroll-down = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh increase -60 ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid%
[module/taskwarrior]
type = custom/script
-interval = 10
+interval = 5
exec = ~/.config/polybar/scripts/taskwarrior.sh
tail = true
format = <label>
-format-foreground = #fff
-format-background = #000
label-padding = 1
label= "%output%"
click-right = kill -USR2 %pid%
click-left = kill -USR1 %pid%
-;[module/gmail]
-;type = custom/script
-;exec = ~/.config/polybar/gmail/launch.py
-;tail = true
-;click-left = xdg-open https://mail.google.com
+[module/system-nvidia-smi]
+type = custom/script
+exec = ~/.config/polybar/scripts/system-nvidia-smi/system-nvidia-smi.sh
+interval = 2
[settings]
screenchange-reload = true
diff --git a/linux/.config/polybar/launch.sh b/linux/.config/polybar/launch.sh
@@ -7,8 +7,8 @@ killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch top and bottom
-MONITOR=HDMI1 polybar top &
-MONITOR=HDMI1 polybar bottom &
+MONITOR=HDMI-0 polybar top &
+MONITOR=HDMI-0 polybar bottom &
MONITOR=VGA1 polybar top &
MONITOR=VGA1 polybar bottom &
diff --git a/linux/.config/polybar/scripts/taskwarrior.sh b/linux/.config/polybar/scripts/taskwarrior.sh
@@ -1,5 +1,5 @@
-active_id=$(task +ACTIVE rc.verbose: limit:1 id | cut -d ' ' -f1)
-next_id=$(task next rc.verbose: limit:1 id | cut -d ' ' -f1)
+active_id=$(task +ACTIVE rc.verbose: limit:1 id | cut -d ' ' -f2)
+next_id=$(task next rc.verbose: limit:1 id | cut -d ' ' -f2)
if [ -z $active_id ]
then
diff --git a/linux/.config/redshift.conf b/linux/.config/redshift.conf
@@ -2,7 +2,7 @@
[redshift]
; Set the day and night screen temperatures
temp-day=6000
-temp-night=2400
+temp-night=4000
; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
diff --git a/linux/.xinitrc b/linux/.xinitrc
@@ -18,22 +18,23 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
unset f
fi
-setxkbmap -model pc104 -layout us,es -option grp:ctrls_toggle
+setxkbmap -layout us -variant altgr_intl
+xset r rate 250 40
[[ -d /usr/share/fonts/terminus ]] && xset +fp /usr/share/fonts/terminus
-#command -v picom >/dev/null 2>&1 && picom --experimental-backends --backend glx &
-#command -v picom >/dev/null 2>&1 && picom -bc
udiskie &
dunst &
redshift &
xset -b &
-xsetwacom set 16 MapToOutput HDMI1
-xsetwacom set 17 MapToOutput HDMI1
-#hsetroot -solid gray50
+xset s 600 60
+xss-lock -- i3lock -n -i /usr/share/backgrounds/archlinux/geolanes.png &
+
+
xrandr \
- --output HDMI1 --mode 1920x1080 \
- --output VGA1 --mode 1440x900 \
- --right-of HDMI1
-command -v feh >/dev/null 2>&1 && feh --bg-scale $HOME/.wallpaper
+ --output VGA1 --auto \
+ --output HDMI-0 --auto \
+ --right-of VGA1
+command -v picom >/dev/null 2>&1 && picom --experimental-backends -b
+command -v feh >/dev/null 2>&1 && feh --bg-scale /usr/share/backgrounds/archlinux/reflected.jpg
session=${1:-i3}