1
0
mirror of https://github.com/balkian/dotfiles.git synced 2025-08-23 08:02:19 +00:00

Several changes

* Added ranger
* Update vim airline
* Added udiskie and
* Updated i3 status
* Updated zsh paths to load even when not in a login session
This commit is contained in:
J. Fernando Sánchez
2017-12-07 17:11:32 +01:00
parent 0cd98dd54b
commit 6f07d96ea0
18 changed files with 2783 additions and 62 deletions

View File

@@ -23,18 +23,22 @@ floating_modifier $mod
#bindsym $mod+Return exec --no-startup-id i3-one-tmux
bindsym $mod+Return [title="^scratch"] scratchpad show
bindsym Control+Mod1+t exec --no-startup-id i3-sensible-terminal
bindsym Control+Mod1+Shift+t exec --no-startup-id i3-sensible-terminal --title=scratch -e 'tmux attach'
# File manager
bindsym Control+Mod1+f exec --no-startup-id i3-sensible-terminal --title=filemanager -e 'zsh -c ranger'
# start lock
bindsym Control+Mod1+l exec --no-startup-id i3-exit.sh lock
bindsym Control+Mod1+w exec --no-startup-id chromium || chromium-browser
bindsym Control+Mod1+Shift+w exec --no-startup-id firefox
bindsym Control+Mod1+Shift+w exec --no-startup-id chromium || chromium-browser
bindsym Control+Mod1+w exec --no-startup-id firefox
bindsym Control+Mod1+v exec --no-startup-id pavucontrol
bindsym Control+Mod1+g exec --no-startup-id gvim
bindsym Control+Mod1+e exec --no-startup-id myemacs -c
bindsym $mod+Tab exec --no-startup-id winmenu.sh
bindsym Mod1+Tab exec --no-startup-id winmenu.sh
bindsym $mod+p [class="Nemo|Thunar|Ranger"] scratchpad show
bindsym $mod+p [title="filemanager"] scratchpad show; [class="Nemo|Thunar"] scratchpad show
bindsym $mod+period [instance="emacs" title="^(?!myagenda$)"] scratchpad show
bindsym $mod+shift+comma exec --no-startup-id myemacs -nc --eval '(progn (find-file "~/Dropbox/Todo/org/rules.org") (org-agenda-list) (set-frame-name "myagenda"))'
bindsym $mod+c exec myemacs -n -e '(make-capture-frame)'
@@ -222,7 +226,7 @@ bindsym $mod+n exec i3-input -F 'rename workspace to %s' -P 'New name: '
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
#bar {
#status_command i3status
#status_command i3status
#}
bar {
@@ -230,10 +234,11 @@ bar {
position top
font pango:DejaVu Sans 10
workspace_buttons yes
status_command ~/.config/i3/status.sh
# status_command ~/.config/i3/status.sh
status_command i3status -c ~/.config/i3status/conf
colors {
background #101010
statusline #101010
statusline #ffffff
focused_workspace #101010 #586e75 #fdf6e3
active_workspace #101010 #101010 #cb4b16
inactive_workspace #101010 #101010 #93a1a1
@@ -264,6 +269,7 @@ for_window [class="^lxterminal"] border 1px
for_window [class="^xfce4-terminal"] border 1px
for_window [title="^scratch"] move to scratchpad
for_window [class="^Nemo|Thunar|Ranger"] move to scratchpad;
for_window [title="filemanager"] move to scratchpad;
#KDE
for_window [class="Plasma-desktop"] border none
for_window [class="krunner"] border none
@@ -309,7 +315,7 @@ bindsym $mod+Escape exec xfce4-session-logout
#exec xautolock -time 10 -corners "----" -locker 'i3lock -t -c 000000 -i ~/Pictures/Wallpapers/Game\ Over\ Hacker.png' &
exec --no-startup-id compton -b --config ~/.compton.conf
exec --no-startup-id dropbox start
exec --no-startup-id nemo --no-desktop
exec --no-startup-id i3-sensible-terminal --title=filemanager -e 'ranger'
exec --no-startup-id nitrogen --restore
exec --no-startup-id nm-applet
exec --no-startup-id pasystray

View File

@@ -26,7 +26,7 @@
# Each block command defaults to the script name to avoid boilerplate.
command=$SCRIPT_DIR/$BLOCK_NAME
separator_block_width=15
markup=none
markup=pango
color=#FFFFFF
# Volume indicator
@@ -140,8 +140,8 @@ interval=5
# OpenVPN support
#
# Support multiple VPN, with colors.
#[openvpn]
#interval=20
# [openvpn]
# interval=20
# Key indicators
#

77
i3/.config/i3/status.conf Normal file
View File

@@ -0,0 +1,77 @@
general {
output_format = "dzen2"
colors = true
interval = 5
}
order += "ipv6"
order += "disk /"
order += "run_watch DHCP"
order += "run_watch VPNC"
order += "path_exists VPN"
order += "wireless wlan0"
order += "ethernet eth0"
order += "battery 0"
# order += "cpu_temperature 0"
order += "load"
order += "tztime local"
order += "tztime berlin"
wireless wlan0 {
format_up = "W: (%quality at %essid, %bitrate) %ip"
format_down = "W: down"
}
ethernet eth0 {
# if you use %speed, i3status requires the cap_net_admin capability
format_up = "E: %ip (%speed) "
format_down = "E: down"
}
battery 0 {
format = "%status %percentage %remaining %emptytime"
format_down = "No battery"
status_chr = "⚡ CHR"
status_bat = "🔋 BAT"
status_unk = "? UNK"
status_full = "☻ FULL"
path = "/sys/class/power_supply/BAT0/uevent"
low_threshold = 10
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPNC {
# file containing the PID of a vpnc process
pidfile = "/var/run/vpnc/pid"
}
path_exists VPN {
# path exists when a VPN tunnel launched by nmcli/nm-applet is active
path = "/proc/sys/net/ipv4/conf/tun0"
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
}
tztime berlin {
format = "%Y-%m-%d %H:%M:%S %Z"
timezone = "Europe/Berlin"
}
load {
format = "%5min"
}
# cpu_temperature 0 {
# format = "T: %degrees °C"
# path = "/sys/devices/platform/coretemp.0/temp1_input"
# }
disk "/" {
format = "%free"
}

62
i3/.config/i3status/conf Normal file
View File

@@ -0,0 +1,62 @@
general {
colors = true
interval = 5
}
order += "disk /"
order += "disk /home"
order += "path_exists VPN"
order += "wireless wlp2s0"
order += "ethernet eth0"
order += "battery 0"
order += "cpu_temperature 0"
order += "load"
order += "tztime local"
wireless wlp2s0 {
format_up = "%essid %ip %quality %bitrate"
format_down = "Wireless down"
}
ethernet eth0 {
# if you use %speed, i3status requires the cap_net_admin capability
format_up = "E: %ip (%speed) "
format_down = "E: down"
}
battery 0 {
format = "%status %percentage %remaining %emptytime"
format_down = "No battery"
status_chr = "⚡ CHR"
status_bat = "🔋 BAT"
status_unk = "? UNK"
status_chr = "⚡ FULL"
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = 10
}
path_exists VPN {
# path exists when a VPN tunnel launched by nmcli/nm-applet is active
path = "/proc/sys/net/ipv4/conf/ppp0"
}
tztime local {
format = "%H:%M %d/%m/%Y"
}
load {
format = "%5min"
}
# cpu_temperature 0 {
# format = "T: %degrees °C"
# path = "/sys/devices/platform/coretemp.0/temp1_input"
# }
disk "/" {
format = "%free / "
}
disk "/home" {
format = "%free /home "
}