Compare commits
1 Commits
rcm_develo
...
home_deskt
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1fed155d4a |
32
README.md
@@ -1,6 +1,30 @@
|
|||||||
# LinuxDotFiles
|
# LinuxDotFiles
|
||||||
This repository is part of the ansible-archlinux setup. It contains all my personal linux dotfiles.
|
Personal Linux configuration files for
|
||||||
All content is managed by [rcm](https://robots.thoughtbot.com/rcm-for-rc-files-in-dotfiles-repos).
|
|
||||||
|
|
||||||
The ansible setup will install this repo to ~/.dotfiles and rcm will take care
|
- i3wm
|
||||||
of all symlinks. To add a new dotfile simply execute `mkrc .$DOTFILE`
|
- vim
|
||||||
|
- tmux
|
||||||
|
- urxvt
|
||||||
|
- zsh
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
|
||||||
|
You'll need the following software for a fully functional setup.
|
||||||
|
|
||||||
|
- i3-wm
|
||||||
|
- i3status
|
||||||
|
- i3lock
|
||||||
|
- dmenu
|
||||||
|
- zsh
|
||||||
|
- vim
|
||||||
|
- rxvt-unicode
|
||||||
|
- tmux
|
||||||
|
- feh
|
||||||
|
- volnoti (AUR, GitHub)
|
||||||
|
- jauth-git (AUR, GitHub)
|
||||||
|
|
||||||
|
# Screenshots
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|||||||
88
Xdefaults
@@ -1,88 +0,0 @@
|
|||||||
################################
|
|
||||||
# _ #
|
|
||||||
# | | #
|
|
||||||
# _ _ _ ____ ____ _| |_ #
|
|
||||||
# | | | | '__\ \/ /\ \ / / __| #
|
|
||||||
# | |_| | | > < \ V /| |_ #
|
|
||||||
# \__,_|_| /_/\_\ \_/ \__| #
|
|
||||||
# #
|
|
||||||
################################
|
|
||||||
|
|
||||||
# Real transparency -> needs composite manager
|
|
||||||
URxvt*depth: 32
|
|
||||||
URxvt*background: rgba:0000/0000/0000/CFFF
|
|
||||||
ARxvt.transparent: true
|
|
||||||
URxvt.tintColor: white
|
|
||||||
URxvt.shading: 20
|
|
||||||
|
|
||||||
URxvt*tintColor: Black
|
|
||||||
URxvt*saveLines: 9000000
|
|
||||||
|
|
||||||
# Font For Powerlinefonts: https://github.com/powerline/fonts (Arch linux -> AUR)
|
|
||||||
URxvt*font: xft:Roboto Mono for Powerline:pixelsize=15:antialias=true:hinting=false
|
|
||||||
URxvt*boldFont: xft:Roboto Mono for Powerline :bold:pixelsize=14:antialias=true:hinting=true
|
|
||||||
URxvt*tabbed.font: xft:Roboto Mono for Powerline :pixelsize=14:antialias=true:hinting=true
|
|
||||||
|
|
||||||
# Misc configurations
|
|
||||||
URxvt*colorUL: #4682B4
|
|
||||||
URxvt*tabbed.scrollBar: false
|
|
||||||
URxvt*tabbed.tabbar-fg: 3
|
|
||||||
URxvt*tabbed.tabbar-bg: 0
|
|
||||||
URxvt*tabbed.tab-fg: 0
|
|
||||||
URxvt*tabbed.tab-bg: 1
|
|
||||||
URxvt*tabbed.secondaryScroll: true
|
|
||||||
URxvt*inheritPixmap: true
|
|
||||||
|
|
||||||
#Graphic
|
|
||||||
Xft*dpi: 96
|
|
||||||
Xft*antialias: true
|
|
||||||
Xft*hinting: full
|
|
||||||
|
|
||||||
# Scroll behavior, don't scroll with output
|
|
||||||
URxvt*scrollBar: false
|
|
||||||
URxvt*secondaryScroll: true
|
|
||||||
URxvt*scrollTtyOutput: false
|
|
||||||
URxvt*scrollWithBuffer: true
|
|
||||||
URxvt*scrollTtyKeypress: true
|
|
||||||
|
|
||||||
# Clickable urls
|
|
||||||
URxvt*perl-ext-common: default,matcher
|
|
||||||
URxvt*url-launcher: /usr/bin/xdg-open
|
|
||||||
URxvt*matcher.button: 1
|
|
||||||
|
|
||||||
! special
|
|
||||||
*.foreground: #c5c8c6
|
|
||||||
*.background: #1d1f21
|
|
||||||
*.cursorColor: #c5c8c6
|
|
||||||
|
|
||||||
! black
|
|
||||||
*.color0: #282a2e
|
|
||||||
*.color8: #373b41
|
|
||||||
|
|
||||||
! red
|
|
||||||
*.color1: #a54242
|
|
||||||
*.color9: #cc6666
|
|
||||||
|
|
||||||
! green
|
|
||||||
*.color2: #8c9440
|
|
||||||
*.color10: #b5bd68
|
|
||||||
|
|
||||||
! yellow
|
|
||||||
*.color3: #de935f
|
|
||||||
*.color11: #f0c674
|
|
||||||
|
|
||||||
! blue
|
|
||||||
*.color4: #5f819d
|
|
||||||
*.color12: #81a2be
|
|
||||||
|
|
||||||
! magenta
|
|
||||||
*.color5: #85678f
|
|
||||||
*.color13: #b294bb
|
|
||||||
|
|
||||||
! cyan
|
|
||||||
*.color6: #5e8d87
|
|
||||||
*.color14: #8abeb7
|
|
||||||
|
|
||||||
! white
|
|
||||||
*.color7: #707880
|
|
||||||
*.color15: #c5c8c6
|
|
||||||
300
dunstrc
@@ -1,300 +0,0 @@
|
|||||||
[global]
|
|
||||||
font = Cantarell 10
|
|
||||||
|
|
||||||
# Allow a small subset of html markup:
|
|
||||||
# <b>bold</b>
|
|
||||||
# <i>italic</i>
|
|
||||||
# <s>strikethrough</s>
|
|
||||||
# <u>underline</u>
|
|
||||||
#
|
|
||||||
# For a complete reference see
|
|
||||||
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
|
|
||||||
# If markup is not allowed, those tags will be stripped out of the
|
|
||||||
# message.
|
|
||||||
allow_markup = yes
|
|
||||||
|
|
||||||
# The format of the message. Possible variables are:
|
|
||||||
# %a appname
|
|
||||||
# %s summary
|
|
||||||
# %b body
|
|
||||||
# %i iconname (including its path)
|
|
||||||
# %I iconname (without its path)
|
|
||||||
# %p progress value if set ([ 0%] to [100%]) or nothing
|
|
||||||
# Markup is allowed
|
|
||||||
format = "%s %p\n%b"
|
|
||||||
|
|
||||||
# Sort messages by urgency.
|
|
||||||
sort = yes
|
|
||||||
|
|
||||||
# Show how many messages are currently hidden (because of geometry).
|
|
||||||
indicate_hidden = yes
|
|
||||||
|
|
||||||
# Alignment of message text.
|
|
||||||
# Possible values are "left", "center" and "right".
|
|
||||||
alignment = left
|
|
||||||
|
|
||||||
# The frequency with wich text that is longer than the notification
|
|
||||||
# window allows bounces back and forth.
|
|
||||||
# This option conflicts with "word_wrap".
|
|
||||||
# Set to 0 to disable.
|
|
||||||
bounce_freq = 5
|
|
||||||
|
|
||||||
|
|
||||||
# Show age of message if message is older than show_age_threshold
|
|
||||||
# seconds.
|
|
||||||
# Set to -1 to disable.
|
|
||||||
show_age_threshold = 60
|
|
||||||
|
|
||||||
# Split notifications into multiple lines if they don't fit into
|
|
||||||
# geometry.
|
|
||||||
word_wrap = no
|
|
||||||
|
|
||||||
# Ignore newlines '\n' in notifications.
|
|
||||||
ignore_newline = no
|
|
||||||
|
|
||||||
|
|
||||||
# The geometry of the window:
|
|
||||||
# [{width}]x{height}[+/-{x}+/-{y}]
|
|
||||||
# The geometry of the message window.
|
|
||||||
# The height is measured in number of notifications everything else
|
|
||||||
# in pixels. If the width is omitted but the height is given
|
|
||||||
# ("-geometry x2"), the message window expands over the whole screen
|
|
||||||
# (dmenu-like). If width is 0, the window expands to the longest
|
|
||||||
# message displayed. A positive x is measured from the left, a
|
|
||||||
# negative from the right side of the screen. Y is measured from
|
|
||||||
# the top and down respectevly.
|
|
||||||
# The width can be negative. In this case the actual width is the
|
|
||||||
# screen width minus the width defined in within the geometry option.
|
|
||||||
geometry = "0x4-25+25"
|
|
||||||
|
|
||||||
# Shrink window if it's smaller than the width. Will be ignored if
|
|
||||||
# width is 0.
|
|
||||||
shrink = yes
|
|
||||||
|
|
||||||
# The transparency of the window. Range: [0; 100].
|
|
||||||
# This option will only work if a compositing windowmanager is
|
|
||||||
# present (e.g. xcompmgr, compiz, etc.).
|
|
||||||
transparency = 15
|
|
||||||
|
|
||||||
# Don't remove messages, if the user is idle (no mouse or keyboard input)
|
|
||||||
# for longer than idle_threshold seconds.
|
|
||||||
# Set to 0 to disable.
|
|
||||||
# default 120
|
|
||||||
idle_threshold = 120
|
|
||||||
|
|
||||||
# Which monitor should the notifications be displayed on.
|
|
||||||
monitor = 0
|
|
||||||
|
|
||||||
# Display notification on focused monitor. Possible modes are:
|
|
||||||
# mouse: follow mouse pointer
|
|
||||||
# keyboard: follow window with keyboard focus
|
|
||||||
# none: don't follow anything
|
|
||||||
#
|
|
||||||
# "keyboard" needs a windowmanager that exports the
|
|
||||||
# _NET_ACTIVE_WINDOW property.
|
|
||||||
# This should be the case for almost all modern windowmanagers.
|
|
||||||
#
|
|
||||||
# If this option is set to mouse or keyboard, the monitor option
|
|
||||||
# will be ignored.
|
|
||||||
follow = mouse
|
|
||||||
|
|
||||||
# Should a notification popped up from history be sticky or timeout
|
|
||||||
# as if it would normally do.
|
|
||||||
sticky_history = yes
|
|
||||||
|
|
||||||
# Maximum amount of notifications kept in history
|
|
||||||
history_length = 20
|
|
||||||
|
|
||||||
# Display indicators for URLs (U) and actions (A).
|
|
||||||
show_indicators = yes
|
|
||||||
|
|
||||||
# The height of a single line. If the height is smaller than the
|
|
||||||
# font height, it will get raised to the font height.
|
|
||||||
# This adds empty space above and under the text.
|
|
||||||
line_height = 0
|
|
||||||
|
|
||||||
# Draw a line of "separator_height" pixel height between two
|
|
||||||
# notifications.
|
|
||||||
# Set to 0 to disable.
|
|
||||||
separator_height = 1
|
|
||||||
|
|
||||||
# Padding between text and separator.
|
|
||||||
# padding = 8
|
|
||||||
padding = 8
|
|
||||||
|
|
||||||
# Horizontal padding.
|
|
||||||
horizontal_padding = 10
|
|
||||||
|
|
||||||
# Define a color for the separator.
|
|
||||||
# possible values are:
|
|
||||||
# * auto: dunst tries to find a color fitting to the background;
|
|
||||||
# * foreground: use the same color as the foreground;
|
|
||||||
# * frame: use the same color as the frame;
|
|
||||||
# * anything else will be interpreted as a X color.
|
|
||||||
separator_color = #454947
|
|
||||||
|
|
||||||
# Print a notification on startup.
|
|
||||||
# This is mainly for error detection, since dbus (re-)starts dunst
|
|
||||||
# automatically after a crash.
|
|
||||||
startup_notification = false
|
|
||||||
|
|
||||||
# dmenu path.
|
|
||||||
dmenu = /usr/bin/dmenu -p dunst:
|
|
||||||
|
|
||||||
# Browser for opening urls in context menu.
|
|
||||||
browser = palemoon
|
|
||||||
|
|
||||||
# Align icons left/right/off
|
|
||||||
icon_position = left
|
|
||||||
|
|
||||||
# Paths to default icons.
|
|
||||||
icon_folders = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/
|
|
||||||
|
|
||||||
[frame]
|
|
||||||
width = 2
|
|
||||||
color = "#618789"
|
|
||||||
|
|
||||||
[shortcuts]
|
|
||||||
|
|
||||||
# Shortcuts are specified as [modifier+][modifier+]...key
|
|
||||||
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
|
|
||||||
# "mod3" and "mod4" (windows-key).
|
|
||||||
# Xev might be helpful to find names for keys.
|
|
||||||
|
|
||||||
# Close notification.
|
|
||||||
close = mod1+space
|
|
||||||
|
|
||||||
# Close all notifications.
|
|
||||||
# close_all = ctrl+shift+space
|
|
||||||
close_all = ctrl+mod1+space
|
|
||||||
|
|
||||||
# Redisplay last message(s).
|
|
||||||
# On the US keyboard layout "grave" is normally above TAB and left
|
|
||||||
# of "1".
|
|
||||||
history = ctrl+mod4+h
|
|
||||||
|
|
||||||
# Context menu.
|
|
||||||
context = ctrl+mod1+c
|
|
||||||
|
|
||||||
[urgency_low]
|
|
||||||
# IMPORTANT: colors have to be defined in quotation marks.
|
|
||||||
# Otherwise the "#" and following would be interpreted as a comment.
|
|
||||||
background = "#1d2a30"
|
|
||||||
foreground = "#c9c1c7"
|
|
||||||
timeout = 10
|
|
||||||
|
|
||||||
[urgency_normal]
|
|
||||||
background = "#1d2a30"
|
|
||||||
foreground = "#c9c1c7"
|
|
||||||
timeout = 10
|
|
||||||
|
|
||||||
[urgency_critical]
|
|
||||||
background = "#1d2a30"
|
|
||||||
foreground = "#c9c1c7"
|
|
||||||
timeout = 0
|
|
||||||
|
|
||||||
|
|
||||||
# Every section that isn't one of the above is interpreted as a rules to
|
|
||||||
# override settings for certain messages.
|
|
||||||
# Messages can be matched by "appname", "summary", "body", "icon", "category",
|
|
||||||
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
|
|
||||||
# "background", "new_icon" and "format".
|
|
||||||
# Shell-like globbing will get expanded.
|
|
||||||
#
|
|
||||||
# SCRIPTING
|
|
||||||
# You can specify a script that gets run when the rule matches by
|
|
||||||
# setting the "script" option.
|
|
||||||
# The script will be called as follows:
|
|
||||||
# script appname summary body icon urgency
|
|
||||||
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
|
|
||||||
#
|
|
||||||
# NOTE: if you don't want a notification to be displayed, set the format
|
|
||||||
# to "".
|
|
||||||
# NOTE: It might be helpful to run dunst -print in a terminal in order
|
|
||||||
# to find fitting options for rules.
|
|
||||||
|
|
||||||
#[espeak]
|
|
||||||
# summary = "*"
|
|
||||||
# script = dunst_espeak.sh
|
|
||||||
|
|
||||||
#[script-test]
|
|
||||||
# summary = "*script*"
|
|
||||||
# script = dunst_test.sh
|
|
||||||
|
|
||||||
#[ignore]
|
|
||||||
# # This notification will not be displayed
|
|
||||||
# summary = "foobar"
|
|
||||||
# format = ""
|
|
||||||
|
|
||||||
#[signed_on]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = "*signed on*"
|
|
||||||
# urgency = low
|
|
||||||
#
|
|
||||||
#[signed_off]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = *signed off*
|
|
||||||
# urgency = low
|
|
||||||
#
|
|
||||||
#[says]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = *says*
|
|
||||||
# urgency = critical
|
|
||||||
#
|
|
||||||
#[twitter]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = *twitter.com*
|
|
||||||
# urgency = normal
|
|
||||||
#
|
|
||||||
#[Claws Mail]
|
|
||||||
# appname = claws-mail
|
|
||||||
# category = email.arrived
|
|
||||||
# urgency = normal
|
|
||||||
# background = "#2F899E"
|
|
||||||
# foreground = "#FFA247"
|
|
||||||
#
|
|
||||||
#[mute.sh]
|
|
||||||
# appname = mute
|
|
||||||
# category = mute.sound
|
|
||||||
# script = mute.sh
|
|
||||||
#
|
|
||||||
#[JDownloader]
|
|
||||||
# appname = JDownloader
|
|
||||||
# category = JD
|
|
||||||
# background = "#FFA247"
|
|
||||||
# foreground = "#FFFFFF"
|
|
||||||
#
|
|
||||||
#[newsbeuter]
|
|
||||||
# summary = *Feeds*
|
|
||||||
# background = "#A8EB41"
|
|
||||||
# foreground = "#FFFFFF"
|
|
||||||
#
|
|
||||||
[irc]
|
|
||||||
appname = weechat
|
|
||||||
timeout = 0
|
|
||||||
background = "#1d2a30"
|
|
||||||
foreground = "#c9c1c7"
|
|
||||||
#
|
|
||||||
[weechat hl]
|
|
||||||
appname = weechat
|
|
||||||
category = weechat.HL
|
|
||||||
background = "#1d2a30"
|
|
||||||
foreground = "#c9c1c7"
|
|
||||||
#
|
|
||||||
[weechat pn]
|
|
||||||
appname = weechat
|
|
||||||
category = weechat.PM
|
|
||||||
background = "#1d2a30"
|
|
||||||
foreground = "#c9c1c7"
|
|
||||||
#
|
|
||||||
#[CMUS]
|
|
||||||
# appname = CMUS
|
|
||||||
# category = cmus
|
|
||||||
# background = "#6C4AB7"
|
|
||||||
# foreground = "#FFE756"
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# background = "#30AB70"
|
|
||||||
# foreground = "#F67245"
|
|
||||||
#
|
|
||||||
# vim: ft=cfg
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
[user]
|
|
||||||
email = aaron@duckpond.ch
|
|
||||||
name = id101010
|
|
||||||
signingkey = 348F38C5
|
|
||||||
[commit]
|
|
||||||
gpgsign = true
|
|
||||||
[alias]
|
|
||||||
logs = log --show-signature
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
general {
|
|
||||||
colors = true
|
|
||||||
interval = 1
|
|
||||||
output_format = i3bar
|
|
||||||
color_good = "#4ff243"
|
|
||||||
color_degraded = "#8c7f22"
|
|
||||||
color_bad = "#9b0e0e"
|
|
||||||
}
|
|
||||||
|
|
||||||
order += "disk /"
|
|
||||||
order += "disk /media/Data1"
|
|
||||||
order += "disk /media/Data2"
|
|
||||||
order += "wireless wlp40s0"
|
|
||||||
order += "ethernet enp35s0"
|
|
||||||
order += "load"
|
|
||||||
order += "volume master"
|
|
||||||
order += "tztime local"
|
|
||||||
|
|
||||||
wireless wlp40s0 {
|
|
||||||
format_up = " WiFi: %ip %quality %essid %bitrate "
|
|
||||||
format_down = " WiFi: (/) "
|
|
||||||
}
|
|
||||||
|
|
||||||
ethernet enp35s0 {
|
|
||||||
format_up = " LAN: %ip %speed "
|
|
||||||
format_down = " LAN: (/) "
|
|
||||||
}
|
|
||||||
|
|
||||||
battery 0 {
|
|
||||||
format = " Power: %status %percentage %remaining left "
|
|
||||||
path = "/sys/class/power_supply/BAT0/uevent"
|
|
||||||
low_threshold = 20
|
|
||||||
}
|
|
||||||
|
|
||||||
tztime local {
|
|
||||||
format = " Date: %y.%m.%d Time: %H:%M:%S "
|
|
||||||
}
|
|
||||||
|
|
||||||
cpu_usage {
|
|
||||||
format = " CPU: %usage "
|
|
||||||
}
|
|
||||||
|
|
||||||
load {
|
|
||||||
format = " Load: [%1min, %5min, %15min] "
|
|
||||||
}
|
|
||||||
|
|
||||||
disk "/" {
|
|
||||||
format = " root: %free "
|
|
||||||
}
|
|
||||||
|
|
||||||
disk "/media/Data1" {
|
|
||||||
format = " /data1: %free "
|
|
||||||
}
|
|
||||||
|
|
||||||
disk "/media/Data2" {
|
|
||||||
format = " /data2: %free "
|
|
||||||
}
|
|
||||||
|
|
||||||
volume master {
|
|
||||||
format = " Vol: %volume "
|
|
||||||
device = "default"
|
|
||||||
mixer = "Master"
|
|
||||||
mixer_idx = 0
|
|
||||||
}
|
|
||||||
@@ -1,19 +1,9 @@
|
|||||||
#######################################
|
|
||||||
# _____ ____ #
|
|
||||||
# |_ _||___ \ #
|
|
||||||
# | | __) |__ __ _ __ ___ #
|
|
||||||
# | | |__ < \ \ /\ / /| '_ ` _ \ #
|
|
||||||
# _| |_ ___) | \ V V / | | | | | | #
|
|
||||||
# |_____||____/ \_/\_/ |_| |_| |_| #
|
|
||||||
# #
|
|
||||||
#######################################
|
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# General configurations #
|
# General configurations #
|
||||||
#############################################
|
#############################################
|
||||||
|
|
||||||
# font
|
# font
|
||||||
set $font "pango:Roboto Mono for Powerline 10"
|
set $font "pango:RobotoMono 12"
|
||||||
font $font
|
font $font
|
||||||
|
|
||||||
# floating modifier
|
# floating modifier
|
||||||
@@ -22,15 +12,16 @@ font $font
|
|||||||
set $mod mod4
|
set $mod mod4
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
# remove window decorations
|
#gaps
|
||||||
new_window pixel
|
gaps inner 13
|
||||||
|
gaps outer 5
|
||||||
|
|
||||||
|
###border
|
||||||
|
new_window pixel 3
|
||||||
|
|
||||||
# focus follows mouse
|
# focus follows mouse
|
||||||
focus_follows_mouse yes
|
focus_follows_mouse yes
|
||||||
|
|
||||||
##border
|
|
||||||
new_window pixel 3
|
|
||||||
|
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# Script Section #
|
# Script Section #
|
||||||
@@ -40,38 +31,35 @@ new_window pixel 3
|
|||||||
# "xev" and "showkeys" can be usefull to determine the keycodes.
|
# "xev" and "showkeys" can be usefull to determine the keycodes.
|
||||||
#
|
#
|
||||||
|
|
||||||
# sound softkeys management
|
# Sound softkeys management
|
||||||
bindsym XF86AudioRaiseVolume exec ~/.i3/util/volnotid.sh down
|
bindsym Print exec ~/.i3/util/volnotid.sh down
|
||||||
bindsym XF86AudioLowerVolume exec ~/.i3/util/volnotid.sh up
|
bindsym Scroll_Lock exec ~/.i3/util/volnotid.sh up
|
||||||
bindsym XF86AudioMute exec ~/.i3/util/volnotid.sh mute
|
bindsym Pause exec ~/.i3/util/volnotid.sh mute
|
||||||
|
|
||||||
# display brightness management
|
# Display brightness management
|
||||||
bindsym XF86MonBrightnessUp exec "xbacklight +10"
|
bindsym XF86MonBrightnessUp exec "xbacklight +10"
|
||||||
bindsym XF86MonBrightnessDown exec "xbacklight -10"
|
bindsym XF86MonBrightnessDown exec "xbacklight -10"
|
||||||
|
|
||||||
# webcam
|
# Lenovo Key wifi-menu
|
||||||
bindym XF86WebCam exec /bin/cheese
|
|
||||||
|
|
||||||
# lenovo Key wifi-menu
|
|
||||||
bindsym XF86Launch1 exec urxvt -e sh -c "sudo wifi-menu wlp3s0"
|
bindsym XF86Launch1 exec urxvt -e sh -c "sudo wifi-menu wlp3s0"
|
||||||
|
|
||||||
# jauth two factor authenticator
|
# jauth two factor authenticator
|
||||||
bindsym $mod+F4 exec --no-startup-id "gnome-screenshot -w"
|
bindsym $mod+F1 exec ~/.i3/util/authenticator.sh google
|
||||||
|
bindsym $mod+F2 exec ~/.i3/util/authenticator.sh facebook
|
||||||
|
bindsym $mod+F3 exec ~/.i3/util/authenticator.sh dropbox
|
||||||
|
|
||||||
# start dmenu-launcher
|
# start dmenu-launcher
|
||||||
#bindsym $mod+d exec ~/.i3/util/i3dmenu-wrapper.sh
|
bindsym $mod+d exec ~/.i3/util/i3dmenu-wrapper.sh
|
||||||
bindsym $mod+d exec rofi -show drun -theme solarized_alternate -font "mono 10"
|
|
||||||
|
|
||||||
# lock i3 with i3lock
|
# lock i3 with i3lock
|
||||||
bindsym $mod+Shift+x exec i3lock-fancy-dualmonitor
|
bindsym $mod+Shift+x exec ~/.i3/util/i3blur.py && systemctl suspend
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# Keymaps #
|
# Keymaps #
|
||||||
#############################################
|
#############################################
|
||||||
|
|
||||||
# start terminal
|
# start terminal
|
||||||
#bindsym $mod+Return exec --no-startup-id urxvt
|
bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
|
||||||
bindsym $mod+Return exec --no-startup-id urxvtc
|
|
||||||
|
|
||||||
# kill focused window
|
# kill focused window
|
||||||
bindsym $mod+Shift+q kill
|
bindsym $mod+Shift+q kill
|
||||||
@@ -79,14 +67,14 @@ bindsym $mod+Shift+q kill
|
|||||||
# change focus vim Style
|
# change focus vim Style
|
||||||
bindsym $mod+h focus left
|
bindsym $mod+h focus left
|
||||||
bindsym $mod+l focus right
|
bindsym $mod+l focus right
|
||||||
bindsym $mod+k focus up
|
bindsym $mod+j focus up
|
||||||
bindsym $mod+j focus down
|
bindsym $mod+k focus down
|
||||||
|
|
||||||
# move focused window vim Style
|
# move focused window vim Style
|
||||||
bindsym $mod+Shift+h move left
|
bindsym $mod+Shift+h move left
|
||||||
bindsym $mod+Shift+l move right
|
bindsym $mod+Shift+l move right
|
||||||
bindsym $mod+Shift+k move up
|
bindsym $mod+Shift+j move up
|
||||||
bindsym $mod+Shift+j move down
|
bindsym $mod+Shift+k move down
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
# alternatively, you can use the cursor keys:
|
||||||
bindsym $mod+Shift+Left move left
|
bindsym $mod+Shift+Left move left
|
||||||
@@ -184,8 +172,8 @@ mode "resize" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# Colors #
|
## Colors #
|
||||||
#############################################
|
##############################################
|
||||||
|
|
||||||
# Darkbrown colorscheme
|
# Darkbrown colorscheme
|
||||||
set $DARKBROWN #402e2e
|
set $DARKBROWN #402e2e
|
||||||
@@ -194,11 +182,9 @@ set $DARKGREY #1f1f1f
|
|||||||
set $DARKRED #9b0e0e
|
set $DARKRED #9b0e0e
|
||||||
|
|
||||||
# Solarized colorscheme
|
# Solarized colorscheme
|
||||||
set $IMPORTANT #43d5f2
|
set $BACKGROUND #20444d
|
||||||
set $BACKGROUND #1c5b98
|
|
||||||
set $FOREGROUND #93a1a1
|
set $FOREGROUND #93a1a1
|
||||||
set $LIGHTGREY #dc322f
|
set $LIGHTGREY #dc322f
|
||||||
set $LIGHTBLUE #75aaff
|
|
||||||
set $GREEN #b0cc54
|
set $GREEN #b0cc54
|
||||||
set $BROWN #b58900
|
set $BROWN #b58900
|
||||||
set $BLUE #268bd2
|
set $BLUE #268bd2
|
||||||
@@ -217,11 +203,13 @@ client.background #ffffff
|
|||||||
|
|
||||||
# Solarized colorscheme
|
# Solarized colorscheme
|
||||||
# name #border #background #text #indicator #child_border
|
# name #border #background #text #indicator #child_border
|
||||||
client.focused $FOREGROUND $MAGENTA $GREEN $GREEN $MAGENTA
|
client.focused $MAGENTA $BACKGROUND $GREEN $GREEN $MAGENTA
|
||||||
client.unfocused $BACKGROUND $BACKGROUND $GREEN $GREEN $BACKGROUND
|
client.unfocused $BACKGROUND $BACKGROUND $GREEN $GREEN $BACKGROUND
|
||||||
client.focused_inactive $BACKGROUND $BACKGROUND $GREEN $GREEN $BACKGROUND
|
client.focused_inactive $BACKGROUND $BACKGROUND $GREEN $GREEN $BACKGROUND
|
||||||
client.urgent $BACKGROUND $BACKGROUND $BACKGROUND $GREEN $BACKGROUND
|
client.urgent $BACKGROUND $BACKGROUND $BACKGROUND $GREEN $BACKGROUND
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# i3-bar #
|
# i3-bar #
|
||||||
#############################################
|
#############################################
|
||||||
@@ -233,30 +221,17 @@ bar {
|
|||||||
status_command i3status -c ~/.i3/i3status.conf
|
status_command i3status -c ~/.i3/i3status.conf
|
||||||
separator_symbol " "
|
separator_symbol " "
|
||||||
|
|
||||||
# Darkbrown colorscheme
|
|
||||||
# colors {
|
|
||||||
# statusline $LIGHTBROWN
|
|
||||||
# background $DARKGREY
|
|
||||||
# separator $DARKRED
|
|
||||||
#
|
|
||||||
# # name #border #bg #text
|
|
||||||
# focused_workspace $LIGHTBROWN $DARKBROWN $LIGHTBROWN
|
|
||||||
# active_workspace $DARKBROWN $DARKBROWN $LIGHTBROWN
|
|
||||||
# inactive_workspace $DARKBROWN $DARKBROWN $LIGHTBROWN
|
|
||||||
# urgent_workspace $DARKBROWN $DARKBROWN $LIGHTBROWN
|
|
||||||
# }
|
|
||||||
|
|
||||||
# Solarized colorscheme
|
# Solarized colorscheme
|
||||||
colors {
|
colors {
|
||||||
statusline $LIGHTBLUE
|
statusline $GREEN
|
||||||
background $BACKGROUND
|
background $BACKGROUND
|
||||||
separator $MAGENTA
|
separator $MAGENTA
|
||||||
|
|
||||||
# name #border #bg #text
|
# name #border #bg #text
|
||||||
focused_workspace $LIGHTBLUE $BACKGROUND $LIGHTBLUE
|
focused_workspace $MAGENTA $BACKGROUND $GREEN
|
||||||
active_workspace $BACKGROUND $BACKGROUND $LIGHTBLUE
|
active_workspace $BACKGROUND $BACKGROUND $GREEN
|
||||||
inactive_workspace $BACKGROUND $BACKGROUND $LIGHTBLUE
|
inactive_workspace $BACKGROUND $BACKGROUND $GREEN
|
||||||
urgent_workspace $BACKGROUND $BACKGROUND $LIGHTBLUE
|
urgent_workspace $BACKGROUND $BACKGROUND $GREEN
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -269,39 +244,51 @@ for_window [class="Thunar"] floating enable
|
|||||||
for_window [class="Nautilus"] floating enable
|
for_window [class="Nautilus"] floating enable
|
||||||
for_window [class="GParted"] floating enable
|
for_window [class="GParted"] floating enable
|
||||||
for_window [class="Gedit"] floating enable
|
for_window [class="Gedit"] floating enable
|
||||||
|
for_window [class="Evince"] floating enable
|
||||||
|
for_window [class="Telegram"] floating enable
|
||||||
for_window [class="teamspeak3"] floating enable
|
for_window [class="teamspeak3"] floating enable
|
||||||
|
for_window [class="rhythmbox"] floating enable
|
||||||
|
for_window [class="LibreOffice"] floating enable
|
||||||
|
for_window [class="JAuth"] floating enable
|
||||||
|
|
||||||
# 0px Border
|
# 0px Border
|
||||||
#for_window [class="chrome"] border none
|
for_window [class="chrome"] border none
|
||||||
for_window [class="Firefox"] border none
|
for_window [class="Firefox"] border none
|
||||||
|
|
||||||
# 1px Border
|
# 1px Border
|
||||||
#for_window [class="URxvt" ] border 1pixel
|
for_window [class="URxvt" ] border 1pixel
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# auto start with i3 #
|
# auto start with i3 #
|
||||||
#############################################
|
#############################################
|
||||||
|
|
||||||
# composite manager
|
|
||||||
exec --no-startup-id compton -cCGfb -m1 -D3 --xrender-sync --xrender-sync-fence
|
|
||||||
|
|
||||||
# terminal daemon
|
|
||||||
exec --no-startup-id urxvtd -q -f -o
|
|
||||||
|
|
||||||
# less eye pain
|
# less eye pain
|
||||||
#exec --no-startup-id redshift
|
exec --no-startup-id redshift-gtk
|
||||||
|
exec --no-startup-id compton --config ~/.compton.conf
|
||||||
|
|
||||||
# no beep!
|
# fucking no beep!
|
||||||
exec --no-startup-id xset b off
|
exec --no-startup-id xset b off
|
||||||
|
|
||||||
# Nextcloud Sync
|
# set dpi for my monitor
|
||||||
exec --no-startup-id nextcloud
|
exec --no-startup-id xrandr --dpi 81
|
||||||
|
|
||||||
# nm-applet
|
# set mouse accel
|
||||||
exec --no-startup-id nm-applet
|
exec --no-startup-id xset m 1/4 1
|
||||||
|
|
||||||
# dunst for notifications and volnoti daemon
|
# volnoti volume changer
|
||||||
exec --no-startup-id dunst -conf ~/.dunstrc
|
exec --no-startup-id volnoti
|
||||||
|
|
||||||
|
# numlock on by default
|
||||||
|
exec --no-startup-id numlockx on
|
||||||
|
|
||||||
# wallpapers
|
# wallpapers
|
||||||
exec --no-startup-id feh --bg-fill ~/.wallpapers/puzzle2.png
|
exec --no-startup-id nitrogen --restore
|
||||||
|
|
||||||
|
# archlinux update notifier
|
||||||
|
exec --no-startup-id aarchup
|
||||||
|
|
||||||
|
# dropbox daemon
|
||||||
|
exec dropbox start
|
||||||
|
|
||||||
|
# telegram
|
||||||
|
exec /bin/telegram-desktop
|
||||||
69
i3wm/i3status.conf
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
# i3status configuration file.
|
||||||
|
# see "man i3status" for documentation.
|
||||||
|
|
||||||
|
# It is important that this file is edited as UTF-8.
|
||||||
|
# The following line should contain a sharp s:
|
||||||
|
# ß
|
||||||
|
# If the above line is not correctly displayed, fix your editor first!
|
||||||
|
|
||||||
|
general {
|
||||||
|
colors = true
|
||||||
|
interval = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
#order += "ipv6"
|
||||||
|
order += "disk /home"
|
||||||
|
order += "disk /"
|
||||||
|
order += "disk /media/Data1"
|
||||||
|
order += "disk /media/Data2"
|
||||||
|
order += "run_watch VPN"
|
||||||
|
order += "ethernet eth0"
|
||||||
|
order += "cpu_temperature 0"
|
||||||
|
order += "volume master"
|
||||||
|
order += "tztime local"
|
||||||
|
|
||||||
|
ethernet eth0 {
|
||||||
|
format_up = "🔌 %ip (%speed)"
|
||||||
|
format_down = "🔌 down"
|
||||||
|
}
|
||||||
|
|
||||||
|
run_watch DHCP {
|
||||||
|
pidfile = "/var/run/dhclient*.pid"
|
||||||
|
}
|
||||||
|
|
||||||
|
run_watch VPN {
|
||||||
|
pidfile = "/var/run/vpn/pid"
|
||||||
|
}
|
||||||
|
|
||||||
|
tztime local {
|
||||||
|
format = " 📅 %d-%m-%Y 🕑 %H:%M:%S"
|
||||||
|
}
|
||||||
|
|
||||||
|
cpu_temperature 0 {
|
||||||
|
format = "🌡 %degrees °C"
|
||||||
|
max_threshold = 65
|
||||||
|
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input"
|
||||||
|
}
|
||||||
|
|
||||||
|
disk "/" {
|
||||||
|
format = "root: %free"
|
||||||
|
}
|
||||||
|
|
||||||
|
disk "/home" {
|
||||||
|
format = "home: %free"
|
||||||
|
}
|
||||||
|
|
||||||
|
disk "/media/Data1" {
|
||||||
|
format = "data1: %free"
|
||||||
|
}
|
||||||
|
|
||||||
|
disk "/media/Data2" {
|
||||||
|
format = "data2: %free"
|
||||||
|
}
|
||||||
|
|
||||||
|
volume master {
|
||||||
|
format = "♪ %volume"
|
||||||
|
device = "default"
|
||||||
|
mixer = "Master"
|
||||||
|
mixer_idx = 0
|
||||||
|
}
|
||||||
37
i3wm/util/authenticator.sh
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
###############################
|
||||||
|
# _ _ _ #
|
||||||
|
# (_) | | | | #
|
||||||
|
# _ __ _ _ _| |_| |__ #
|
||||||
|
# | |/ _` | | | | __| '_ \ #
|
||||||
|
# | | (_| | |_| | |_| | | | #
|
||||||
|
# | |\__,_|\__,_|\__|_| |_| #
|
||||||
|
# _/ | #
|
||||||
|
# |__/ #
|
||||||
|
# #
|
||||||
|
###############################
|
||||||
|
|
||||||
|
# This script needs jauth-git to work
|
||||||
|
# jauth can be installed from the arch aur
|
||||||
|
#
|
||||||
|
# yaourt -S jauth-git
|
||||||
|
#
|
||||||
|
|
||||||
|
SECRET_GOOGLE="There"
|
||||||
|
SECRET_FACEBOOK="IsJust"
|
||||||
|
SECRET_DROPBOX="NoWayImUploadingThisToGit"
|
||||||
|
|
||||||
|
ARG="${1}"
|
||||||
|
|
||||||
|
case ${ARG} in
|
||||||
|
"google")
|
||||||
|
jauth -secret=${SECRET_GOOGLE}
|
||||||
|
;;
|
||||||
|
"facebook")
|
||||||
|
jauth -secret=${SECRET_FACEBOOK}
|
||||||
|
;;
|
||||||
|
"dropbox")
|
||||||
|
jauth -secret=${SECRET_DROPBOX}
|
||||||
|
;;
|
||||||
|
esac
|
||||||
64
i3wm/util/i3blur.py
Executable file
@@ -0,0 +1,64 @@
|
|||||||
|
#!/usr/bin/python2
|
||||||
|
|
||||||
|
###############################
|
||||||
|
# _ ____ _ _ #
|
||||||
|
# (_)___ \| | | | #
|
||||||
|
# _ __) | |__ | |_ _ _ __ #
|
||||||
|
# | ||__ <| '_ \| | | | | '__|#
|
||||||
|
# | |___) | |_) | | |_| | | #
|
||||||
|
# |_|____/|_.__/|_|\__,_|_| #
|
||||||
|
# #
|
||||||
|
###############################
|
||||||
|
|
||||||
|
"""
|
||||||
|
A simple python script that takes a
|
||||||
|
screenshot, blurs it and invokes i3lock.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import gtk.gdk
|
||||||
|
import os, sys
|
||||||
|
from PIL import ImageFilter
|
||||||
|
from PIL import Image
|
||||||
|
|
||||||
|
# Get screen and its size
|
||||||
|
w = gtk.gdk.get_default_root_window()
|
||||||
|
sz = w.get_size()
|
||||||
|
|
||||||
|
print "[DEBUG]: The size of the window is %d x %d" % sz
|
||||||
|
|
||||||
|
# Get a drawable with the size of the desktop
|
||||||
|
scr = gtk.gdk.Pixbuf( gtk.gdk.COLORSPACE_RGB,
|
||||||
|
False,
|
||||||
|
8,
|
||||||
|
sz[0],
|
||||||
|
sz[1])
|
||||||
|
|
||||||
|
# Fill it with the screenshot
|
||||||
|
scr = scr.get_from_drawable(w,
|
||||||
|
w.get_colormap(),
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
sz[0],
|
||||||
|
sz[1])
|
||||||
|
|
||||||
|
# Save the screenshot as png
|
||||||
|
if(scr != None):
|
||||||
|
scr.save("/tmp/i3screen.png","png")
|
||||||
|
print "[DEBUG]: Screenshot saved to /tmp/i3screen.png."
|
||||||
|
else:
|
||||||
|
print "[DEBUG]: Unable to get the screenshot."
|
||||||
|
|
||||||
|
# Load the screenshot as image and blur it
|
||||||
|
iml = Image.open("/tmp/i3screen.png")
|
||||||
|
iml = iml.filter(ImageFilter.BLUR)
|
||||||
|
|
||||||
|
# Save the blured screenshot and call i3lock
|
||||||
|
if(iml != None):
|
||||||
|
iml.save("/tmp/i3screenblr.png", "png")
|
||||||
|
os.system("i3lock -i /tmp/i3screenblr.png")
|
||||||
|
print "[DEBUG]: Screenshot blured and saved to /tmp/i3screenblr.png."
|
||||||
|
else:
|
||||||
|
print "[DEBUG]: Unable to blur the screenshot."
|
||||||
|
|
||||||
8
i3wm/util/i3dmenu-wrapper.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BG="#002b36"
|
||||||
|
FG="#93a1a1"
|
||||||
|
SBG="#6c71c4"
|
||||||
|
SFG="#93a1a1"
|
||||||
|
|
||||||
|
i3-dmenu-desktop --dmenu="dmenu -i -nb $BG -nf $FG -sb $SBG -sf $SFG -l 16"
|
||||||
@@ -17,30 +17,31 @@
|
|||||||
# yaourt -S volnoti
|
# yaourt -S volnoti
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
VOLUME=$(amixer get Master | grep Mono: | sed 's|[^[]*\[\([0-9]*\).*|\1|')
|
VOLUME=$(amixer get Master | grep Mono: | sed 's|[^[]*\[\([0-9]*\).*|\1|')
|
||||||
VALUE=1%
|
VALUE=3dB
|
||||||
MUTE=0
|
MUTE=0
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"up")
|
"up")
|
||||||
# Increase Volume
|
# Increase Volume
|
||||||
[[ "$VOLUME" -eq 100 ]] && VALUE=0
|
[[ "$VOLUME" -eq 100 ]] && VALUE=0
|
||||||
amixer -q sset Master $VALUE+ unmute && killall -SIGUSR1 i3status
|
amixer -q set Master $VALUE+ unmute && killall -SIGUSR1 i3status
|
||||||
MUTE=0
|
MUTE=0
|
||||||
;;
|
;;
|
||||||
"down")
|
"down")
|
||||||
# Decrease Volume
|
# Decrease Volume
|
||||||
amixer -q sset Master $VALUE- unmute && killall -SIGUSR1 i3status
|
amixer -q set Master $VALUE- unmute && killall -SIGUSR1 i3status
|
||||||
MUTE=0
|
MUTE=0
|
||||||
# If the Volume is already 0, then mute
|
# If the Volume is already 0, then mute
|
||||||
if [ "$VOLUME" == "0" ]; then
|
if [ "$VOLUME" == "0" ]; then
|
||||||
MUTE=1
|
MUTE=1
|
||||||
amixer -q sset Master toggle && killall -SIGUSR1 i3status
|
amixer -q set Master toggle && killall -SIGUSR1 i3status
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"mute")
|
"mute")
|
||||||
# Mute
|
# Mute
|
||||||
amixer -q sset Master toggle && killall -SIGUSR1 i3status
|
amixer -q set Master toggle && killall -SIGUSR1 i3status
|
||||||
MUTE=1
|
MUTE=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
BIN
images/coding_screenshot.png
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
images/desktop_screenshot.png
Normal file
|
After Width: | Height: | Size: 2.3 MiB |
82
setup.sh
Executable file
@@ -0,0 +1,82 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#############################################################
|
||||||
|
# _____ _ _ _ #
|
||||||
|
# / ____| | | (_) | | #
|
||||||
|
# | (___ ___| |_ _ _ _ __ ___ ___ _ __ _ _ __ | |_ #
|
||||||
|
# \___ \ / _ \ __| | | | '_ \ / __|/ __| '__| | '_ \| __| #
|
||||||
|
# ____) | __/ |_| |_| | |_) | \__ \ (__| | | | |_) | |_ #
|
||||||
|
# |_____/ \___|\__|\__,_| .__/ |___/\___|_| |_| .__/ \__| #
|
||||||
|
# | | | | #
|
||||||
|
# |_| |_| #
|
||||||
|
#############################################################
|
||||||
|
|
||||||
|
#
|
||||||
|
# ./setup.sh - download repository to $HOME/.dotfiles and symlink everythin ing place
|
||||||
|
# ./setup.sh clean - backup all files in $BAKFILES to .dotfilebackup
|
||||||
|
#
|
||||||
|
# The dependencies for this script are (arch linux repo names):
|
||||||
|
# - i3-wm
|
||||||
|
# - i3status
|
||||||
|
# - i3lock
|
||||||
|
# - dmenu
|
||||||
|
# - zsh
|
||||||
|
# - vim
|
||||||
|
# - rxvt-unicode
|
||||||
|
# - tmux
|
||||||
|
# - feh
|
||||||
|
# - volnoti (AUR, GitHub)
|
||||||
|
# - jauth-git (AUR, GitHub)
|
||||||
|
# - powerline-fonts-git (AUR, GitHub)
|
||||||
|
|
||||||
|
# Files and folders
|
||||||
|
DOTFILES="$HOME/.dotfiles"
|
||||||
|
|
||||||
|
BAKFILES=".i3
|
||||||
|
.zshrc
|
||||||
|
.tmux.conf
|
||||||
|
.vimrc
|
||||||
|
.Xdefaults"
|
||||||
|
|
||||||
|
BAKFOLD="$HOME/.dotfilebackup"
|
||||||
|
|
||||||
|
# Clean environment
|
||||||
|
if [ "$1" == "clean" ]; then
|
||||||
|
echo "[*] Backing up dotfiles to $BAKFOLD"
|
||||||
|
|
||||||
|
# Create backup folder if it doesn't exist
|
||||||
|
if [ ! -d $BAKFOLD ]; then
|
||||||
|
mkdir $BAKFOLD
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Backup each config file specified by $BAKFILES
|
||||||
|
for file in $BAKFILES
|
||||||
|
do
|
||||||
|
mv -v $HOME/$file $BAKFOLD/$file
|
||||||
|
done
|
||||||
|
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone the repository if it doesn't exist
|
||||||
|
if [ ! -e "$HOME/.dotfiles/" ]; then
|
||||||
|
git clone https://github.com/id101010/LinuxDotFiles.git $DOTFILES
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ------------------------------------------------ Setup I3wm
|
||||||
|
ln -sfv $DOTFILES/i3wm/ $HOME/.i3
|
||||||
|
|
||||||
|
# ------------------------------------------------ Setup tmux
|
||||||
|
ln -sfv $DOTFILES/tmux/tmux.conf $HOME/.tmux.conf
|
||||||
|
|
||||||
|
# ------------------------------------------------ Setup vim
|
||||||
|
ln -sfv $DOTFILES/vim/vimrc $HOME/.vimrc
|
||||||
|
|
||||||
|
# ------------------------------------------------ Setup zsh
|
||||||
|
ln -sfv $DOTFILES/zsh/zshrc $HOME/.zshrc
|
||||||
|
|
||||||
|
# ------------------------------------------------ Setup urxvt
|
||||||
|
ln -sfv $DOTFILES/urxvt/Xdefaults $HOME/.Xdefaults
|
||||||
|
|
||||||
|
# ------------------------------------------------ Setup wallpapers
|
||||||
|
ln -sfv $DOTFILES/wallpapers/ $HOME/.wallpapers
|
||||||
55
urxvt/Xdefaults
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
################################
|
||||||
|
# _ #
|
||||||
|
# | | #
|
||||||
|
# _ _ _ ____ ____ _| |_ #
|
||||||
|
# | | | | '__\ \/ /\ \ / / __| #
|
||||||
|
# | |_| | | > < \ V /| |_ #
|
||||||
|
# \__,_|_| /_/\_\ \_/ \__| #
|
||||||
|
# #
|
||||||
|
################################
|
||||||
|
|
||||||
|
Xcursor.theme: adwaita
|
||||||
|
Xcursor.size: 16
|
||||||
|
|
||||||
|
# Real transparency -> needs composite manager
|
||||||
|
URxvt.depth: 32
|
||||||
|
URxvt.background: rgba:0000/0000/0200/afff
|
||||||
|
|
||||||
|
# Fake transparency
|
||||||
|
#URxvt.transparent: true
|
||||||
|
#URxvt.shading: 30
|
||||||
|
|
||||||
|
URxvt.tintColor: White
|
||||||
|
URxvt.saveLines: 9000000
|
||||||
|
URxvt.foreground: Grey
|
||||||
|
|
||||||
|
# Fonts For Powerlinefonts: https://github.com/powerline/fonts (Arch linux -> AUR)
|
||||||
|
#URxvt.font: xft:Droid Sans Mono:pixelsize=18:antialias=true:hinting=true
|
||||||
|
#URxvt.boldFont: xft:Droid Sans Mono:bold:pixelsize=18:antialias=true:hinting=true
|
||||||
|
#URxvt.tabbed.font: xft:Droid Sans Mono:pixelsize=18:antialias=true:hinting=true
|
||||||
|
URxvt.font: xft:Roboto Mono for Powerline:pixelsize=15:antialias=true:hinting=false
|
||||||
|
URxvt.boldFont: xft:RobotoMono for Powerline :bold:pixelsize=14:antialias=true:hinting=true
|
||||||
|
URxvt.tabbed.font: xft:RobotoMono for Powerline :pixelsize=14:antialias=true:hinting=true
|
||||||
|
|
||||||
|
# Misc configurations
|
||||||
|
URxvt.colorUL: #4682B4
|
||||||
|
URxvt.tabbed.saveLines: 1000
|
||||||
|
URxvt.tabbed.scrollBar: false
|
||||||
|
URxvt.tabbed.tabbar-fg: 3
|
||||||
|
URxvt.tabbed.tabbar-bg: 0
|
||||||
|
URxvt.tabbed.tab-fg: 0
|
||||||
|
URxvt.tabbed.tab-bg: 1
|
||||||
|
URxvt.tabbed.secondaryScroll: true
|
||||||
|
URxvt.inheritPixmap: true
|
||||||
|
|
||||||
|
# Scroll behavior, don't scroll with output
|
||||||
|
URxvt.scrollBar: false
|
||||||
|
URxvt.secondaryScroll: true
|
||||||
|
URxvt.scrollTtyOutput: false
|
||||||
|
URxvt.scrollWithBuffer: true
|
||||||
|
URxvt.scrollTtyKeypress: true
|
||||||
|
|
||||||
|
# Clickable urls
|
||||||
|
URxvt.perl-ext-common: default,matcher
|
||||||
|
URxvt.url-launcher: /usr/bin/xdg-open
|
||||||
|
URxvt.matcher.button: 1
|
||||||
@@ -34,31 +34,23 @@ endif
|
|||||||
" Start Vundle stuff "
|
" Start Vundle stuff "
|
||||||
call vundle#begin()
|
call vundle#begin()
|
||||||
Plugin 'VundleVim/Vundle.vim'
|
Plugin 'VundleVim/Vundle.vim'
|
||||||
|
|
||||||
" A pretty statusline, bufferline integration "
|
" A pretty statusline, bufferline integration "
|
||||||
Plugin 'itchyny/lightline.vim'
|
Plugin 'itchyny/lightline.vim'
|
||||||
Plugin 'bling/vim-bufferline'
|
Plugin 'bling/vim-bufferline'
|
||||||
|
|
||||||
" <Tab> everything! "
|
" <Tab> everything! "
|
||||||
"Plugin 'ervandew/supertab'
|
Plugin 'ervandew/supertab'
|
||||||
|
|
||||||
" Glorious colorscheme "
|
" Glorious colorscheme "
|
||||||
Plugin 'nanotech/jellybeans.vim'
|
Plugin 'nanotech/jellybeans.vim'
|
||||||
|
|
||||||
" Super easy commenting, toggle comments etc "
|
" Super easy commenting, toggle comments etc "
|
||||||
"Plugin 'scrooloose/nerdcommenter'
|
Plugin 'scrooloose/nerdcommenter'
|
||||||
|
" Autoclose (, " etc "
|
||||||
" Autoclose
|
Plugin 'Townk/vim-autoclose'
|
||||||
"Plugin 'Townk/vim-autoclose'
|
|
||||||
|
|
||||||
" Git wrapper inside Vim "
|
" Git wrapper inside Vim "
|
||||||
"Plugin 'tpope/vim-fugitive'
|
Plugin 'tpope/vim-fugitive'
|
||||||
|
|
||||||
" Handle surround chars like "
|
" Handle surround chars like "
|
||||||
"Plugin 'tpope/vim-surround'
|
Plugin 'tpope/vim-surround'
|
||||||
|
|
||||||
" Vim signs (:h signs) for modified lines based off VCS (e.g. Git) "
|
" Vim signs (:h signs) for modified lines based off VCS (e.g. Git) "
|
||||||
"Plugin 'mhinz/vim-signify'
|
Plugin 'mhinz/vim-signify'
|
||||||
" Finish Vundle stuff "
|
" Finish Vundle stuff "
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
|
|
||||||
@@ -73,15 +65,16 @@ filetype plugin indent on
|
|||||||
"""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""
|
||||||
" Lightline (statusline) configuration "
|
" Lightline (statusline) configuration "
|
||||||
"""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""
|
||||||
"let g:lightline = {
|
|
||||||
" \ 'colorscheme': 'default',
|
let g:lightline = {
|
||||||
" \ 'component': {
|
\ 'colorscheme': 'default',
|
||||||
" \ 'readonly': '%{&readonly?"":""}',
|
\ 'component': {
|
||||||
" \ },
|
\ 'readonly': '%{&readonly?"":""}',
|
||||||
" \ 'separator': { 'left': '', 'right': '' },
|
\ },
|
||||||
" \ 'subseparator': { 'left': '', 'right': '' }
|
\ 'separator': { 'left': '', 'right': '' },
|
||||||
" \ }
|
\ 'subseparator': { 'left': '', 'right': '' }
|
||||||
"
|
\ }
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""
|
||||||
" Misc configurations "
|
" Misc configurations "
|
||||||
"""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""
|
||||||
@@ -126,4 +119,3 @@ set noshowmode " Hide the default mode text (e.g. -- INSERT -- below th
|
|||||||
|
|
||||||
"Automaticly reread a file, if file has changed"
|
"Automaticly reread a file, if file has changed"
|
||||||
set autoread
|
set autoread
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 91 KiB |
BIN
wallpapers/solarized5.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
wallpapers/solarized6.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
wallpapers/solarized7.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
38
xinitrc
@@ -1,38 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
userresources=$HOME/.Xresources
|
|
||||||
usermodmap=$HOME/.Xmodmap
|
|
||||||
sysresources=/etc/X11/xinit/.Xresources
|
|
||||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
|
||||||
|
|
||||||
# merge in defaults and keymaps
|
|
||||||
if [ -f $sysresources ]; then
|
|
||||||
xrdb -merge $sysresources
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f $sysmodmap ]; then
|
|
||||||
xmodmap $sysmodmap
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "$userresources" ]; then
|
|
||||||
xrdb -merge "$userresources"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "$usermodmap" ]; then
|
|
||||||
xmodmap "$usermodmap"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# start some nice programs
|
|
||||||
|
|
||||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
|
||||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
|
||||||
[ -x "$f" ] && . "$f"
|
|
||||||
done
|
|
||||||
unset f
|
|
||||||
fi
|
|
||||||
|
|
||||||
eval $(ssh-agent)
|
|
||||||
setxkbmap ch
|
|
||||||
cd ~
|
|
||||||
#exec i3
|
|
||||||
exec i3 # -V >> ~/i3log-$(date +'%F-%k-%M-%S') 2>&1
|
|
||||||
123
zsh/zshrc
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
################################
|
||||||
|
# _ #
|
||||||
|
# | | #
|
||||||
|
# _______| |__ _ __ ___ #
|
||||||
|
# |_ / __| '_ \| '__/ __| #
|
||||||
|
# / /\__ \ | | | | | (__ #
|
||||||
|
# /___|___/_| |_|_| \___| #
|
||||||
|
# #
|
||||||
|
################################
|
||||||
|
|
||||||
|
# Autoload stuff
|
||||||
|
autoload -U compinit promptinit
|
||||||
|
compinit
|
||||||
|
promptinit
|
||||||
|
|
||||||
|
# History
|
||||||
|
export HISTSIZE=100000
|
||||||
|
export HISTFILE="$HOME/.history"
|
||||||
|
export SAVEHIST=$HISTSIZE
|
||||||
|
setopt hist_ignore_all_dups
|
||||||
|
setopt hist_ignore_space
|
||||||
|
|
||||||
|
# Promptstyle
|
||||||
|
prompt walters
|
||||||
|
|
||||||
|
# Autocomplete stuff
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
setopt completealiases
|
||||||
|
typeset -A key
|
||||||
|
|
||||||
|
# Key settings
|
||||||
|
key[Home]=${terminfo[khome]}
|
||||||
|
key[End]=${terminfo[kend]}
|
||||||
|
key[Insert]=${terminfo[kich1]}
|
||||||
|
key[Delete]=${terminfo[kdch1]}
|
||||||
|
key[Up]=${terminfo[kcuu1]}
|
||||||
|
key[Down]=${terminfo[kcud1]}
|
||||||
|
key[Left]=${terminfo[kcub1]}
|
||||||
|
key[Right]=${terminfo[kcuf1]}
|
||||||
|
key[PageUp]=${terminfo[kpp]}
|
||||||
|
key[PageDown]=${terminfo[knp]}
|
||||||
|
|
||||||
|
# Key bindings
|
||||||
|
[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line
|
||||||
|
[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line
|
||||||
|
[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode
|
||||||
|
[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char
|
||||||
|
[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history
|
||||||
|
[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history
|
||||||
|
[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
|
||||||
|
[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
|
||||||
|
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history
|
||||||
|
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history
|
||||||
|
[[ -n ${key[Backspace]} ]] && bindkey "${key[Backspace]}" backward-delete-char
|
||||||
|
[[ -n ${key[Insert]} ]] && bindkey "${key[Insert]}" overwrite-mode
|
||||||
|
[[ -n ${key[Home]} ]] && bindkey "${key[Home]}" beginning-of-line
|
||||||
|
[[ -n ${key[PageUp]} ]] && bindkey "${key[PageUp]}" up-line-or-history
|
||||||
|
[[ -n ${key[Delete]} ]] && bindkey "${key[Delete]}" delete-char
|
||||||
|
[[ -n ${key[End]} ]] && bindkey "${key[End]}" end-of-line
|
||||||
|
[[ -n ${key[PageDown]} ]] && bindkey "${key[PageDown]}" down-line-or-history
|
||||||
|
[[ -n ${key[Up]} ]] && bindkey "${key[Up]}" up-line-or-search
|
||||||
|
[[ -n ${key[Left]} ]] && bindkey "${key[Left]}" backward-char
|
||||||
|
[[ -n ${key[Down]} ]] && bindkey "${key[Down]}" down-line-or-search
|
||||||
|
[[ -n ${key[Right]} ]] && bindkey "${key[Right]}" forward-char
|
||||||
|
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" history-beginning-search-backward
|
||||||
|
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" history-beginning-search-forward
|
||||||
|
|
||||||
|
bindkey "[C" forward-word
|
||||||
|
bindkey "[D" backward-word
|
||||||
|
|
||||||
|
if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
|
||||||
|
function zle-line-init () {
|
||||||
|
printf '%s' "${terminfo[smkx]}"
|
||||||
|
}
|
||||||
|
function zle-line-finish () {
|
||||||
|
printf '%s' "${terminfo[rmkx]}"
|
||||||
|
}
|
||||||
|
zle -N zle-line-init
|
||||||
|
zle -N zle-line-finish
|
||||||
|
fi
|
||||||
|
|
||||||
|
DIRSTACKFILE="$HOME/.cache/zsh/dirs"
|
||||||
|
if [[ -f $DIRSTACKFILE ]] && [[ $#dirstack -eq 0 ]]; then
|
||||||
|
dirstack=( ${(f)"$(< $DIRSTACKFILE)"} )
|
||||||
|
[[ -d $dirstack[1] ]] && cd $dirstack[1]
|
||||||
|
fi
|
||||||
|
|
||||||
|
chpwd() {
|
||||||
|
print -l $PWD ${(u)dirstack} >$DIRSTACKFILE
|
||||||
|
}
|
||||||
|
|
||||||
|
DIRSTACKSIZE=20
|
||||||
|
|
||||||
|
# Colored manpages
|
||||||
|
man() {
|
||||||
|
env \
|
||||||
|
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
|
||||||
|
LESS_TERMCAP_md=$(printf "\e[1;31m") \
|
||||||
|
LESS_TERMCAP_me=$(printf "\e[0m") \
|
||||||
|
LESS_TERMCAP_se=$(printf "\e[0m") \
|
||||||
|
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
|
||||||
|
LESS_TERMCAP_ue=$(printf "\e[0m") \
|
||||||
|
LESS_TERMCAP_us=$(printf "\e[1;32m") \
|
||||||
|
man "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
alias ll="ls -l"
|
||||||
|
alias llm='ls -al | more'
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
alias diff='colordiff'
|
||||||
|
alias ports='netstat -tulanp'
|
||||||
|
alias cal='cal -m'
|
||||||
|
|
||||||
|
setopt autopushd pushdsilent pushdtohome
|
||||||
|
setopt pushdignoredups
|
||||||
|
setopt pushdminus
|
||||||
|
setopt nohashdirs
|
||||||
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
rehash
|
||||||
|
source ~/Coding/0_C/Microcontroller/zephyr-project/zephyr-env.sh
|
||||||
111
zshrc
@@ -1,111 +0,0 @@
|
|||||||
# If you come from bash you might have to change your $PATH.
|
|
||||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
|
||||||
# Path to your oh-my-zsh installation. ZSH=/usr/share/oh-my-zsh/
|
|
||||||
|
|
||||||
# Set name of the theme to load. Optionally, if you set this to "random"
|
|
||||||
# it'll load a random theme each time that oh-my-zsh is loaded.
|
|
||||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
|
||||||
ZSH_THEME="agnoster"
|
|
||||||
|
|
||||||
# Set list of themes to load
|
|
||||||
# Setting this variable when ZSH_THEME=random
|
|
||||||
# cause zsh load theme from this variable instead of
|
|
||||||
# looking in ~/.oh-my-zsh/themes/
|
|
||||||
# An empty array have no effect
|
|
||||||
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
|
||||||
|
|
||||||
# Uncomment the following line to use case-sensitive completion.
|
|
||||||
# CASE_SENSITIVE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to use hyphen-insensitive completion. Case
|
|
||||||
# sensitive completion must be off. _ and - will be interchangeable.
|
|
||||||
# HYPHEN_INSENSITIVE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
|
||||||
DISABLE_AUTO_UPDATE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to change how often to auto-update (in days).
|
|
||||||
# export UPDATE_ZSH_DAYS=13
|
|
||||||
|
|
||||||
# Uncomment the following line to disable colors in ls.
|
|
||||||
# DISABLE_LS_COLORS="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to disable auto-setting terminal title.
|
|
||||||
# DISABLE_AUTO_TITLE="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to enable command auto-correction.
|
|
||||||
# ENABLE_CORRECTION="true"
|
|
||||||
|
|
||||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
|
||||||
# COMPLETION_WAITING_DOTS="true"
|
|
||||||
|
|
||||||
# Uncomment the following line if you want to disable marking untracked files
|
|
||||||
# under VCS as dirty. This makes repository status check for large repositories
|
|
||||||
# much, much faster.
|
|
||||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
||||||
|
|
||||||
# Uncomment the following line if you want to change the command execution time
|
|
||||||
# stamp shown in the history command output.
|
|
||||||
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
|
||||||
HIST_STAMPS="mm/dd/yyyy"
|
|
||||||
|
|
||||||
# Would you like to use another custom folder than $ZSH/custom?
|
|
||||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
|
||||||
|
|
||||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
|
||||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
|
||||||
plugins=(
|
|
||||||
git
|
|
||||||
last-working-dir
|
|
||||||
fbterm
|
|
||||||
)
|
|
||||||
|
|
||||||
# User configuration
|
|
||||||
|
|
||||||
# ALT C and D
|
|
||||||
bindkey "[C" forward-word
|
|
||||||
bindkey "[D" backward-word
|
|
||||||
|
|
||||||
# Start SSH-Agent alon with new terminal
|
|
||||||
#if ! pgrep -u "$USER" ssh-agent > /dev/null; then
|
|
||||||
# ssh-agent > ~/.ssh-agent-thing
|
|
||||||
#fi
|
|
||||||
#if [[ "$SSH_AGENT_PID" == "" ]]; then
|
|
||||||
# eval "$(<~/.ssh-agent-thing)"
|
|
||||||
#fi
|
|
||||||
|
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
|
||||||
|
|
||||||
# You may need to manually set your language environment
|
|
||||||
# export LANG=en_US.UTF-8
|
|
||||||
|
|
||||||
# Preferred editor for local and remote sessions
|
|
||||||
# if [[ -n $SSH_CONNECTION ]]; then
|
|
||||||
# export EDITOR='vim'
|
|
||||||
# else
|
|
||||||
# export EDITOR='mvim'
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# Compilation flags
|
|
||||||
# export ARCHFLAGS="-arch x86_64"
|
|
||||||
|
|
||||||
# ssh
|
|
||||||
# export SSH_KEY_PATH="~/.ssh/rsa_id"
|
|
||||||
|
|
||||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
|
||||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
|
||||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
|
||||||
# For a full list of active aliases, run `alias`.
|
|
||||||
#
|
|
||||||
# Example aliases
|
|
||||||
# alias zshconfig="mate ~/.zshrc"
|
|
||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
|
||||||
|
|
||||||
ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
|
|
||||||
if [[ ! -d $ZSH_CACHE_DIR ]]; then
|
|
||||||
mkdir $ZSH_CACHE_DIR
|
|
||||||
fi
|
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||