Initialize all dem dotfiles

This commit is contained in:
Salt 2017-07-30 00:04:04 -05:00
commit e640735254
27 changed files with 1832 additions and 0 deletions

2
.Xdefaults Normal file
View File

@ -0,0 +1,2 @@
Xcursor.theme: Adwaita

60
.Xresources Normal file
View File

@ -0,0 +1,60 @@
!-----------------------------
! urxvt configuration
!-----------------------------
urxvt*scrollBar: false
!urxvt*font: xft:Terminus:pixelsize=9,xft:Inconsolata\ for\ Powerline:pixelsize=9
urxvt*font: xft:Hack:size=9
urxvt*letterSpace: -1
!urxvt*font: xft:Hack Regular:size=9
!urxvt*depth: 32
!urxvt*background: rgba:2828/2828/2828/c800
!-----------------------------
! ROFI Color theme
!
!-----------------------------
rofi.color-enabled: true
rofi.font: Overpass 12
rofi.color-window: #1d2021, #1d2021, #1d2021
rofi.color-normal: #1d2021, #ebdbb2, #282828, #98971a, #1d2021
rofi.color-active: #1d2021, #458588, #282828, #458588, #1d2021
rofi.color-urgent: #1d2021, #d79921, #282828, #d79921, #1d2021
!-----------------------------
! Colors merged from Gruvbox-Dark
! Author: morhetz <morhetz@gmail.com>
! Source: https://github.com/morhetz/gruvbox-generalized
!-----------------------------
! hard contrast:
*background: #1d2021
! medium contrast: *background: #282828
! soft contrast: *background: #32302f
*foreground: #ebdbb2
! Black + DarkGrey
*color0: #282828
*color8: #928374
! DarkRed + Red
*color1: #cc241d
*color9: #fb4934
! DarkGreen + Green
*color2: #98971a
*color10: #b8bb26
! DarkYellow + Yellow
*color3: #d79921
*color11: #fabd2f
! DarkBlue + Blue
*color4: #458588
*color12: #83a598
! DarkMagenta + Magenta
*color5: #b16286
*color13: #d3869b
! DarkCyan + Cyan
*color6: #689d6a
*color14: #8ec07c
! LightGrey + White
*color7: #a89984
*color15: #ebdbb2
! Additional background colors

5
.bash_profile Normal file
View File

@ -0,0 +1,5 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc

1
.bashrc Symbolic link
View File

@ -0,0 +1 @@
/home/salt/.bin/.bashrc-global

20
.bin/.bashrc-global Normal file
View File

@ -0,0 +1,20 @@
#!/bin/bash
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Source /etc/profile
source /etc/profile
# Source .profile
if [ -f ~/.profile ]; then
source ~/.profile
fi
# Source the bash-specific rc
if [ -f ~/.bin/bashrc.sh ]; then
source ~/.bin/bashrc.sh
fi

2
.bin/.directory Normal file
View File

@ -0,0 +1,2 @@
[Desktop Entry]
Icon=folder-script

0
.bin/.stfolder Normal file
View File

84
.bin/bashrc.sh Executable file
View File

@ -0,0 +1,84 @@
#!/bin/sh
PROMPT_COMMAND="__prompt_command; $PROMPT_COMMAND"
__prompt_command() {
PS1="$(powerline-shell.py --cwd-mode fancy --cwd-max-depth 3 --cwd-max-dir-size 16 --mode patched $? 2> /dev/null)"
}
# Command to be called every time PS1 is composed
# PROMPT_COMMAND makes this process very easy, it turns out
__prompt_command_old() {
local EXIT="$?"
PS1="\[\e[m\]"
# Determine which separator we should use
# Namely, don't use the Powerline separator if we know we're in a tty
local SEPARATOR=""
if [[ "$(tty)" == *"tty"* ]]; then
SEPARATOR=" "
else
SEPARATOR=""
fi
# Generate the name color based on remote connection and root statuses
if [ "$(id -u)" == "0" ]; then
# We're root, gimme the flashy red prompt
PS1+="\[\e[37;41m\]"
else
# Generate a background based on remote status
if [ -z "${SSH_TTY+x}" ]; then
#Light Grey on Light Blue (BG)
PS1+="\[\e[104m\]"
else
#Light Grey on Magenta (BG)
PS1+="\[\e[45m\]"
fi
# Generate a foreground based on whether or not we're in sudoers or wheel or whatever
# Unfortunately, there's no way for us to *really* check if we can sudo or not
local admgroups=( "wheel" "root" "sudo" )
PS1+="\[\e[30m\]"
for usergroup in $(groups); do
for admgroup in $admgroups; do
if [ "$usergroup" == "$admgroup" ]; then
PS1+="\[\e[39m\]"
fi
done
done
#if [[ $USERGROUPS == *"wheel"* ]] || [[ $USERGROUPS == *"root"* ]] || [[ $USERGROUPS == *"sudo"* ]]; #then
# PS1+="\[\e[37m\]"
#else
# PS1+="\[\e[30m\]"
#fi
fi
# Generate a name based on the remote connection and username
PS1+=" "
if [ -z "${SSH_TTY+x}" ]; then
PS1+="$USER"
else
if [ "$USER" != "salt" ]; then
PS1+="$USER@"
fi
PS1+="$HOSTNAME"
fi
# Transition to PWD
PS1+=" \[\e[7;90m\]$SEPARATOR\[\e[m\e[100m\]"
# Generate the PWD
PS1+="${PWD/#$HOME/'~'}"
# Append a neat little arrow suffix
if [ $EXIT == 0 ]; then
#32: Green
PS1+="\[\e[7;32m\]$SEPARATOR\[\e[m\e[32m\]$SEPARATOR"
else
#31: Red
PS1+="\[\e[7;31m\]$SEPARATOR\[\e[0;39;41m\]$EXIT\[\e[m\e[31m\]$SEPARATOR"
fi
# Cleanup
PS1+="\[\e[m\] "
}

138
.bin/bashrc.sh.bak Executable file
View File

@ -0,0 +1,138 @@
#!/bin/bash
# Setting up defaults just to be on the safe side
PROMPT_COMMAND="__prompt_command; $PROMPT_COMMAND"
__prompt_command() {
PS1="$(powerline-shell.py --cwd-mode fancy --cwd-max-depth 3 --cwd-max-dir-size 16 --mode patched $? 2> /dev/null)"
}
# Command to be called every time PS1 is composed
# PROMPT_COMMAND makes this process very easy, it turns out
__prompt_command_old() {
local EXIT="$?"
PS1="\[\e[m\]"
# Determine which separator we should use
# Namely, don't use the Powerline separator if we know we're in a tty
local SEPARATOR=""
if [[ "$(tty)" == *"tty"* ]]; then
SEPARATOR=" "
else
SEPARATOR=""
fi
# Generate the name color based on remote connection and root statuses
if [ "$(id -u)" == "0" ]; then
# We're root, gimme the flashy red prompt
PS1+="\[\e[37;41m\]"
else
# Generate a background based on remote status
if [ -z ${SSH_TTY+x} ]; then
#Light Grey on Light Blue (BG)
PS1+="\[\e[104m\]"
else
#Light Grey on Magenta (BG)
PS1+="\[\e[45m\]"
fi
# Generate a foreground based on whether or not we're in sudoers or wheel or whatever
# Unfortunately, there's no way for us to *really* check if we can sudo or not
local usergroups=($(groups))
local admgroups=( "wheel" "root" "sudo" )
PS1+="\[\e[30m\]"
for usergroup in $usergroups; do
for admgroup in $admgroups; do
if [ $usergroup == $admgroup ]; then
PS1+="\[\e[39m\]"
fi
done
done
#if [[ $USERGROUPS == *"wheel"* ]] || [[ $USERGROUPS == *"root"* ]] || [[ $USERGROUPS == *"sudo"* ]]; #then
# PS1+="\[\e[37m\]"
#else
# PS1+="\[\e[30m\]"
#fi
fi
# Generate a name based on the remote connection and username
PS1+=" "
if [ -z ${SSH_TTY+x} ]; then
PS1+="$USER"
else
if [ "$USER" != "salt" ]; then
PS1+="$USER@"
fi
PS1+="$HOSTNAME"
fi
# Transition to PWD
PS1+=" \[\e[7;90m\]$SEPARATOR\[\e[m\e[100m\]"
# Generate the PWD
PS1+="${PWD/#$HOME/'~'}"
# Append a neat little arrow suffix
if [ $EXIT == 0 ]; then
#32: Green
PS1+="\[\e[7;32m\]$SEPARATOR\[\e[m\e[32m\]$SEPARATOR"
else
#31: Red
PS1+="\[\e[7;31m\]$SEPARATOR\[\e[0;39;41m\]$EXIT\[\e[m\e[31m\]$SEPARATOR"
fi
# Cleanup
PS1+="\[\e[m\] "
}
# Common miscellaneous aliases are all defined here for convenience
__define_aliases() {
# Common Aliases
alias cp='cp -i'
alias dd=dcfldd
alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -a --color=auto'
alias l='ls -CF'
alias waitwhat='echo $?'
# Simple history thing
alias fug='sudo $(history -p !!)'
}
# Functions to be exported to the shell
# Mostly just helper wrappers and such
__define_functions() {
# Arch-only helper functions
if [[ "$(ls /etc/*release)" == *"arch"* ]]; then
pac_helper="pacaur"
local helpers=( "pacaur" "yaourt" "pacman" )
for helper in $helpers; do
if [ $(pacman -Qq $helper > /dev/null) ]; then
pac_helper="$helper"
break
fi
done
alias pac="$pac_helper"
alias pacq="$pac_helper -Qs"
alias pacqi="$pac_helper -Qi"
alias pacs="$pac_helper -S"
alias pacss="$pac_helper -Ss"
alias pacsu="$pac_helper -Syu"
alias pacsyu="$pac_helper -Syyu"
alias pacsr="$pac_helper -Rsnu"
fi
}
# Call functions that need to be called
__define_aliases
__define_functions
EDITOR=$(which vim)
PATH=$PATH:~/.bin
export EDITOR
export PATH

16
.bin/i3-salt-lock Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
SHOT=/tmp/lockimg.png
LOCKIMAGE=~/.i3lockicon
import -window root $SHOT
## Radial blur
#convert $SHOT -resize 50% $IMAGE
#convert $SHOT -blur 2x8 $IMAGE
#convert $SHOT -resize 200% $IMAGE
## Neat info-only censor
convert $SHOT -scale 10% $SHOT
convert $SHOT -scale 1000% $SHOT
[[ -f $LOCKIMAGE ]] && convert $SHOT $LOCKIMG -gravity center -composite -matte $SHOT
i3lock -i $SHOT
rm $SHOT

4
.bin/i3-salt-logout-dunst Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
if [ "`dunstify -a i3 -u 2 -t 15000 -A 1,Cancel -A 0,Logout "Logout?" "This will close all running applications and end your X session!"`" = "0" ]; then
i3-msg exit
fi

1
.bin/powerline-shell Submodule

@ -0,0 +1 @@
Subproject commit 3227578e2a1efcb5384b21bfdbb299fa0ebd37e9

1
.bin/powerline-shell.py Symbolic link
View File

@ -0,0 +1 @@
powerline-shell/powerline-shell.py

5
.bin/test-notifications Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
notify-send -u low "Low Urgency Notification" "This is a simple test notification with low urgency. It's okay to ignore me, I guess."
notify-send -u normal "Normal Urgency Notification" "This is another simple test notification with normal urgency. My information will help you work."
notify-send -u critical "High Urgency Notification" "This notification really should grab your attention! It's important!"
notify-send -u normal "Long Notification" "This is a very long notification with a very long, unabridged description. Its sole purpose is to test whether or not your notification handler can properly wrap descriptions and truncate where necessary. This is important as notifications should simply alert the user that something is going on, and should not otherwise impede work."

2
.bin/xrdbupdate Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
xrdb ~/.Xresources

234
.config/compton.conf Normal file
View File

@ -0,0 +1,234 @@
# Thank you code_nomad: http://9m.no/ꪯ鵞
#################################
#
# Backend
#
#################################
# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend = "glx";
#################################
#
# GLX backend
#
#################################
glx-no-stencil = true;
# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
# but a 20% increase when only 1/4 is.
# My tests on nouveau show terrible slowdown.
# Useful with --glx-swap-method, as well.
glx-copy-from-front = false;
# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
# May break VSync and is not available on some drivers.
# Overrides --glx-copy-from-front.
# glx-use-copysubbuffermesa = true;
# GLX backend: Avoid rebinding pixmap on window damage.
# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
# Recommended if it works.
# glx-no-rebind-pixmap = true;
# GLX backend: GLX buffer swap method we assume.
# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
# undefined is the slowest and the safest, and the default value.
# copy is fastest, but may fail on some drivers,
# 2-6 are gradually slower but safer (6 is still faster than 0).
# Usually, double buffer means 2, triple buffer means 3.
# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
# Useless with --glx-use-copysubbuffermesa.
# Partially breaks --resize-damage.
# Defaults to undefined.
glx-swap-method = "undefined";
#################################
#
# Shadows
#
#################################
# Enabled client-side shadows on windows.
shadow = true;
# Don't draw shadows on DND windows.
no-dnd-shadow = true;
# Avoid drawing shadows on dock/panel windows.
no-dock-shadow = false;
# Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows.
clear-shadow = true;
# The blur radius for shadows. (default 12)
shadow-radius = 5;
# The left offset for shadows. (default -15)
shadow-offset-x = -5;
# The top offset for shadows. (default -15)
shadow-offset-y = -5;
# The translucency for shadows. (default .75)
shadow-opacity = 0.5;
# Set if you want different colour shadows
# shadow-red = 0.0;
# shadow-green = 0.0;
# shadow-blue = 0.0;
# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
# 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 = 'Notification'",
"name = 'Plank'",
"name = 'Docky'",
"name = 'Kupfer'",
"name = 'xfce4-notifyd'",
"name *= 'VLC'",
"name *= 'compton'",
"name *= 'Chromium'",
"name *= 'Chrome'",
"class_g = 'Conky'",
"class_g = 'Kupfer'",
"class_g = 'Synapse'",
"class_g ?= 'Notify-osd'",
"class_g ?= 'Cairo-dock'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'",
"_GTK_FRAME_EXTENTS@:c"
];
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
shadow-ignore-shaped = false;
#################################
#
# Opacity
#
#################################
menu-opacity = 1;
inactive-opacity = 1;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
alpha-step = 0.06;
# Dim inactive windows. (0.0 - 1.0)
# inactive-dim = 0.2;
# Do not let dimness adjust based on window opacity.
# inactive-dim-fixed = true;
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
blur-background = false;
blur-kern = "7x7box";
# Blur background of opaque windows with transparent frames as well.
blur-background-frame = false;
# Do not let blur radius adjust based on window opacity.
blur-background-fixed = false;
blur-background-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'"
];
#################################
#
# Fading
#
#################################
# Fade windows during opacity changes.
fading = true;
# The time between steps in a fade in milliseconds. (default 10).
fade-delta = 3;
# Opacity change between steps while fading in. (default 0.028).
fade-in-step = 0.03;
# Opacity change between steps while fading out. (default 0.03).
fade-out-step = 0.03;
# Fade windows in/out when opening/closing
# no-fading-openclose = true;
# Specify a list of conditions of windows that should not be faded.
fade-exclude = [ ];
#################################
#
# Other
#
#################################
# Try to detect WM windows and mark them as active.
mark-wmwin-focused = true;
# Mark all non-WM but override-redirect windows active (e.g. menus).
mark-ovredir-focused = true;
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
# Usually more reliable but depends on a EWMH-compliant WM.
use-ewmh-active-win = true;
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
detect-rounded-corners = true;
# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
# This prevents opacity being ignored for some apps.
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
detect-client-opacity = true;
# Specify refresh rate of the screen.
# If not specified or 0, compton will try detecting this with X RandR extension.
refresh-rate = 60;
# Set VSync method. VSync methods currently available:
# none: No VSync
# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers.
# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers.
# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers.
# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesnt have the effect of --sw-opti unlike other methods. Experimental.
# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
# (Note some VSync methods may not be enabled at compile time.)
vsync = "opengl-swc";
# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
# Reported to have no effect, though.
dbe = false;
# Painting on X Composite overlay window. Recommended.
paint-on-overlay = true;
# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
# unless you wish to specify a lower refresh rate than the actual value.
sw-opti = true;
# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
# Known to cause flickering when redirecting/unredirecting windows.
# paint-on-overlay may make the flickering less obvious.
unredir-if-possible = true;
# Specify a list of conditions of windows that should always be considered focused.
focus-exclude = [ ];
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
detect-transient = true;
# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
detect-client-leader = true;
#################################
#
# Window type settings
#
#################################
wintypes:
{
tooltip =
{
# fade: Fade the particular type of windows.
fade = true;
# shadow: Give those windows shadow
shadow = true;
# opacity: Default opacity for the type of windows.
opacity = 0.85;
# focus: Whether to always consider windows of this type focused.
focus = true;
};
};

322
.config/dunst/dunstrc Normal file
View File

@ -0,0 +1,322 @@
[global]
### Display ###
# 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 window manager that exports the
# _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern window managers.
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = mouse
# 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 respectively.
# 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 = "300x5-8+32"
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes
# Shrink window if it's smaller than the width. Will be ignored if
# width is 0.
shrink = no
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing window manager is
# present (e.g. xcompmgr, compiz, etc.).
transparency = 0
# The height of the entire notification. If the height is smaller
# than the font height and padding combined, it will be raised
# to the font height and padding.
notification_height = 0
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 2
# Padding between text and separator.
padding = 8
# Horizontal padding.
horizontal_padding = 8
# Defines width in pixels of frame around the notification window.
# Set to 0 to disable.
frame_width = 3
# Defines color of the frame around the notification window.
#frame_color = "#aaaaaa"
frame_color = "#1d2021"
# 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 = frame
# Sort messages by urgency.
sort = yes
# 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.
idle_threshold = 120
### Text ###
#font = Monospace 8
font = Overpass 10
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.
line_height = 0
# Possible values are:
# full: Allow a small subset of html markup in notifications:
# <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>.
#
# strip: This setting is provided for compatibility with some broken
# clients that send markup even though it's not enabled on the
# server. Dunst will try to strip the markup but the parsing is
# simplistic so using this option outside of matching rules for
# specific applications *IS GREATLY DISCOURAGED*.
#
# no: Disable markup parsing, incoming notifications will be treated as
# plain text. Dunst will not advertise that it has the body-markup
# capability if this is set as a global setting.
#
# It's important to note that markup inside the format option will be parsed
# regardless of what this is set to.
markup = full
# 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
# %n progress value if set without any extra characters
# Markup is allowed
format = "<b>%s</b>: %a\n\n%b\n<i>Alt + Shift + Space to dismiss</i>\n<i>Alt + Shift + O for options</i>"
# Alignment of message text.
# Possible values are "left", "center" and "right".
alignment = left
# 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 = yes
# Ignore newlines '\n' in notifications.
ignore_newline = no
# Merge multiple notifications with the same content
stack_duplicates = true
# Hide the count of merged notifications with the same content
hide_duplicate_count = false
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
### Icons ###
# Align icons left/right/off
icon_position = right
# Scale larger icons down to this size, set to 0 to disable
max_icon_size = 32
# Paths to default icons.
icon_folders = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
### History ###
# 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
### Misc/Advanced ###
# dmenu path.
dmenu = /usr/bin/rofi -dmenu -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/waterfox -new-tab
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true
# Define the title of the windows spawned by dunst
title = Dunst
# Define the class of the windows spawned by dunst
class = Dunst
# Print a notification on startup.
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
startup_notification = false
### Legacy
# Use the Xinerama extension instead of RandR for multi-monitor support.
# This setting is provided for compatibility with older nVidia drivers that
# do not support RandR and using it on systems that support RandR is highly
# discouraged.
#
# By enabling this setting dunst will not be able to detect when a monitor
# is connected or disconnected which might break follow mode if the screen
# layout changes.
force_xinerama = false
# Experimental features that may or may not work correctly. Do not expect them
# to have a consistent behaviour across releases.
[experimental]
# Calculate the dpi to use on a per-monitor basis.
# If this setting is enabled the Xft.dpi value will be ignored and instead
# dunst will attempt to calculate an appropriate dpi value for each monitor
# using the resolution and physical size. This might be useful in setups
# where there are multiple screens with very different dpi values.
per_monitor_dpi = false
[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+shift+space
# Close all notifications.
close_all = mod1+shift+enter
# Redisplay last message(s).
# On the US keyboard layout "grave" is normally above TAB and left
# of "1". Make sure this key actually exists on your keyboard layout,
# e.g. check output of 'xmodmap -pke'
history = ctrl+grave
# Context menu.
context = mod1+shift+o
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#1d2021"
foreground = "#a89984"
timeout = 10
# Icon for notifications with low urgency, uncomment to enable
#icon = /path/to/icon
[urgency_normal]
background = "#1d2021"
foreground = "#ebdbb2"
timeout = 10
# Icon for notifications with normal urgency, uncomment to enable
#icon = /path/to/icon
[urgency_critical]
background = "#1d2021"
foreground = "#fb4934"
frame_color = "#cc241d"
timeout = 0
# Icon for notifications with critical urgency, uncomment to enable
#icon = /path/to/icon
# 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 = ""
#[history-ignore]
# # This notification will not be saved in history
# summary = "foobar"
# history_ignore = yes
#[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
#
# vim: ft=cfg

0
.config/fish/.stfolder Normal file
View File

8
.config/fish/config.fish Normal file
View File

@ -0,0 +1,8 @@
set fish_greeting ""
function fish_prompt
~/.bin/powerline-shell.py $status --shell bare ^/dev/null
end
export TERM="xterm-256color"
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'

View File

@ -0,0 +1,31 @@
# This file is automatically generated by the fish.
# Do NOT edit it directly, your changes will be overwritten.
SET __fish_init_2_39_8:\x1d
SET __fish_init_2_3_0:\x1d
SET fish_color_autosuggestion:555\x1ebrblack
SET fish_color_cancel:\x2dr
SET fish_color_command:\x2d\x2dbold
SET fish_color_comment:red
SET fish_color_cwd:green
SET fish_color_cwd_root:red
SET fish_color_end:brmagenta
SET fish_color_error:brred
SET fish_color_escape:bryellow\x1e\x2d\x2dbold
SET fish_color_history_current:\x2d\x2dbold
SET fish_color_host:normal
SET fish_color_match:\x2d\x2dbackground\x3dbrblue
SET fish_color_normal:normal
SET fish_color_operator:bryellow
SET fish_color_param:cyan
SET fish_color_quote:yellow
SET fish_color_redirection:brblue
SET fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
SET fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SET fish_color_user:brgreen
SET fish_color_valid_path:\x2d\x2dunderline
SET fish_greeting:
SET fish_key_bindings:fish_default_key_bindings
SET fish_pager_color_completion:\x1d
SET fish_pager_color_description:B3A06D\x1eyellow
SET fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SET fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan

220
.config/i3/config Normal file
View File

@ -0,0 +1,220 @@
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
###################
## Cosmetcs
###################
# i3-gaps configs
gaps inner 5
gaps outer 0
# Set up our colors
# Note: fallbacks are copied from gruvbox-dark
# Source: https://github.com/morhetz/gruvbox-generalized
set_from_resource $bg background #1d2021
set_from_resource $black color0 #282828
set_from_resource $green color2 #98971a
set_from_resource $yellow color3 #d79921
set_from_resource $purple color5 #b16286
set_from_resource $gray color7 #a89984
set_from_resource $gray2 color8 #928374
set_from_resource $green2 color10 #b8bb26
set_from_resource $yellow2 color11 #fabd2f
set_from_resource $purple2 color13 #d3869b
set_from_resource $fg color15 #ebdbb2
# Apply colors to i3
# <colorclass> <border> <backgrd> <text> <indicator> <child_border>
client.focused $bg $bg $fg $green2 $bg
client.focused_inactive $bg $bg $gray2 $green $bg
client.unfocused $bg $bg $gray2 $green $bg
client.urgent $bg $bg $yellow2 $yellow $bg
client.placeholder $bg $bg $purple2 $purple $bg
client.background $bg
# Set up titlebar and i3bar fonts
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font pango:Overpass 10
###################
## Statusbars and Daemons
###################
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
exec --no-startup-id redshift -l 38.627003:-90.199402
exec_always --no-startup-id compton -bc --config ~/.config/compton.conf
exec_always --no-startup-id dunst
exec_always --no-startup-id feh --bg-scale ~/Pictures/Wallpapers/gruvbox.jpeg
exec --no-startup-id mate-settings-daemon
###################
## Settings
###################
exec --no-startup-id xset -b
###################
## Workspaces
###################
# Initialize workspaces
set $w1 1
set $w2 2
set $w3 3
set $w4 4
set $w5 5
bindsym $mod+n exec i3-msg rename workspace to "$(rofi -dmenu -p 'Rename workspace: ' -l 1)"
# Assign types of windows to their respective workspaces
#assign [class="Firefox"] $w2
#assign [class="Thunderbird"] $w3
###################
## Keybindings
###################
# Set modifier
# Mod1 is LALT, Mod4 is LSUP
set $mod Mod1
set $sup Mod4
# Use Mouse+$mod to drag floating windows to their wanted position
#floating_modifier $mod
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+q kill
#bindsym $mod+space exec dmenu_run
bindsym $mod+space exec rofi -show drun
bindsym $mod+Tab exec rofi -show
# 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.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# Pulse controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
# Brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $sup+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
#bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
#bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# switch to next and previous workspaces
bindsym $mod+I workspace next
bindsym $mod+U workspace prev
bindsym Ctrl+$mod+Right workspace next
bindsym Ctrl+$mod+Left workspace prev
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
#bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Really exit i3wm? This will close all running applications and end your X session.' -b 'Exit' 'i3-msg exit'"
bindsym $mod+Shift+e exec "bash i3-salt-logout-dunst"
# lock the screen
bindsym $sup+l exec "bash i3-salt-lock"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"

191
.config/i3/config.save Normal file
View File

@ -0,0 +1,191 @@
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
###################
## Cosmetcs
###################
# i3-gaps configs
gaps inner 5
gaps outer 0
# Start Compton, our compositor
exec --no-startup-id "compton -bc --config ~/.config/compton.conf"
# Set our background using feh
exec --no-startup-id "feh --bg-scale ~/Pictures/Wallpapers/gruvbox.jpeg"
# Set up our colors
# Note: fallbacks are copied from gruvbox-dark
# Source: https://github.com/morhetz/gruvbox-generalized
set_from_resource $bg background #1d2021
set_from_resource $black color0 #282828
set_from_resource $green color2 #98971a
set_from_resource $yellow color3 #d79921
set_from_resource $purple color5 #b16286
set_from_resource $gray color7 #a89984
set_from_resource $gray2 color8 #928374
set_from_resource $green2 color10 #b8bb26
set_from_resource $yellow2 color11 #fabd2f
set_from_resource $purple2 color13 #d3869b
set_from_resource $fg color15 #ebdbb2
# Apply colors to i3
# <colorclass> <border> <backgrd> <text> <indicator> <child_border>
client.focused $bg $bg $fg $purple2 $bg
client.focused_inactive $bg $bg $gray2 $purple $bg
client.unfocused $bg $bg $gray2 $purple $bg
client.urgent $bg $bg $yellow2 $yellow $bg
client.placeholder $bg $bg $purple2 $purple $bg
client.background $bg
# Set up titlebar and i3bar fonts
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font pango:Overpass 10
###################
## Statusbars
###################
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
###################
## Workspaces
###################
# TODO: Actually write those up
###################
## Keybindings
###################
# Set modifier
# Mod1 is LALT, Mod4 is LCTRL
set $mod Mod1
# Use Mouse+$mod to drag floating windows to their wanted position
#floating_modifier $mod
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Shift+q kill
bindsym $mod+c kill
bindsym $mod+d exec dmenu_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.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
#bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
#bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
# Disabled in favor of polybar
#bar {
# status_command i3status
#}

382
.config/polybar/config Normal file
View File

@ -0,0 +1,382 @@
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
background = ${xrdb:background:#1d2021}
background-alt = ${xrdb:color8:#a89984}
foreground = ${xrdb:color15:#ebdbb2}
foreground-alt = ${xrdb:color8:#928374}
primary = ${xrdb:color10:#b8bb26}
secondary = ${xrdb:color2:#98971a}
alert = ${xrdb:color9:#fb4934}
[bar/bar1]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 24
;offset-x = 10%
;offset-y = 1%
radius = 0.0
fixed-center = false
bottom = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
line-color = #f00
;border-size = 5
border-color = #00000000
padding-left = 2
padding-right = 2
module-margin-left = 0
module-margin-right = 3
font-0 = fixed:pixelsize=10;1
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-1 = "Overpass:size=10;1"
;font-2 = siji:pixelsize=10;1
font-2 = "Overpass:size=6;1"
modules-left = i3
modules-center =
modules-right = cpu memory separator battery volume separator wlan eth temperature separator date redshift
;tray-position = right
;tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
;wm-restack = bspwm
;wm-restack = i3
;override-redirect = true
;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
[module/separator]
type = custom/text
content = "|"
content-foreground = ${colors.foreground}
content-padding = 1
[module/redshift]
type = custom/script
format = <label>
label = %output%
label-foreground = ${xrdb:color9:#fb4934}
interval = 5
exec = ~/.config/polybar/redshift.sh
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}
label-layout = %layout%
label-layout-underline = ${colors.secondary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
[module/bspwm]
type = internal/bspwm
label-focused = %name%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 2
label-occupied = %name%
label-occupied-padding = 2
label-urgent = %name%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
label-empty = %name%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
; Only show workspaces on the same output as the bar
pin-workspaces = true
; Strip the numbers from workspaces, when applicable
;strip-wsnumbers = true
label-mode-padding = 2
label-mode-foreground = ${colors.background}
label-mode-background = ${colors.primary}
; focused = Active workspace on focused monitor
label-focused = %name%
label-focused-foreground = ${colors.background}
label-focused-background = ${colors.primary}
label-focused-padding = 2
; unfocused = Inactive workspace on any monitor
label-unfocused = %name%
label-unfocused-padding = ${self.label-focused-padding}
; visible = Active workspace on unfocused monitor
label-visible = %name%
label-visible-background = ${self.label-focused-background}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %name%
label-urgent-foreground = ${colors.background}
label-urgent-background = ${colors.alert}
label-urgent-padding = ${self.label-focused-padding}
[module/mpd]
type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 
label-song-maxlen = 25
label-song-ellipsis = true
[module/bartemplate]
format = <label> <bar>
label = "<TEMPLATE>"
bar-width = 30
bar-fill = /
bar-fill-font = 1
bar-indicator =
bar-indicator-foreground = ${colors.foreground}
bar-indicator-font = ${self.bar-fill-font}
bar-fill-foreground = ${colors.foreground}
bar-empty = ${self.bar-fill}
bar-empty-font = ${self.bar-fill-font}
bar-empty-foreground = ${colors.background-alt}
[module/xbacklight]
type = internal/xbacklight
inherit = module/bartemplate
label = BL
bar-fill-foreground = ${xrdb:color11:#fabd2f}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
format = <label> <bar-load>
label = "CPU"
bar-load-width = ${module/bartemplate.bar-width}
bar-load-fill = ${module/bartemplate.bar-fill}
bar-load-fill-font = ${module/bartemplate.bar-fill-font}
bar-load-fill-foreground = ${xrdb:color9:#fb4934}
bar-load-indicator =
bar-load-empty = ${self.bar-load-fill}
bar-load-empty-font = ${self.bar-load-fill-font}
bar-load-empty-foreground = ${colors.background-alt}
interval = 1
[module/memory]
type = internal/memory
format = <label> <bar-used>
label = "MEM"
bar-used-width = ${module/bartemplate.bar-width}
bar-used-fill = ${module/bartemplate.bar-fill}
bar-used-fill-font = ${module/bartemplate.bar-fill-font}
bar-used-fill-foreground = ${xrdb:color9:#fb4934}
bar-used-indicator =
bar-used-empty = ${self.bar-used-fill}
bar-used-empty-font = ${self.bar-used-fill-font}
bar-used-empty-foreground = ${colors.background-alt}
interval = 1
[module/wlan]
type = internal/network
interface = wlp1s0
interval = 3.0
format-connected = <label-connected>
format-connected-foreground = ${colors.primary}
label-connected = "✓ %essid%"
format-disconnected = <label-disconnected>
label-disconnected = "✗ %ifname%"
label-disconnected-foreground = ${xrdb:color9:#fb4934}
ramp-signal-0 = ▁
ramp-signal-1 = ▂
ramp-signal-2 = ▃
ramp-signal-3 = ▄
ramp-signal-4 = ▅
ramp-signal-5 = ▆
ramp-signal-6 = ▇
ramp-signal-7 = █
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
interface = enp0s31f6
interval = 3.0
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
interval = 5
date = " %Y-%m-%d"
time = %H:%M
label = %date% %time%
[module/volume]
type = internal/volume
format-volume = <label-volume> <bar-volume>
label-volume = 🔊VOL
format-muted = <label-muted> <bar-volume>
label-muted = VOL
label-muted-foreground = ${colors.foreground-alt}
bar-volume-width = ${module/bartemplate.bar-width}
bar-volume-foreground = ${colors.primary}
;${xrdb:color14:#8ec07c}
bar-volume-indicator =
bar-volume-fill = ${module/bartemplate.bar-fill}
bar-volume-fill-font = ${module/bartemplate.bar-fill-font}
bar-volume-fill-foreground = ${colors.primary}
;${xrdb:color14:#8ec07c}
bar-volume-empty = ${module/bartemplate.bar-empty}
bar-volume-empty-font = ${module/bartemplate.bar-empty-font}
bar-volume-empty-foreground = ${module/bartemplate.bar-empty-foreground}
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 95
format-charging = <label-charging> <bar-capacity>
label-charging = CHR
label-charging-foreground = ${self.bar-capacity-fill-foreground}
format-discharging = <label-discharging> <bar-capacity>
label-discharging = BAT
format-full = <label-full> <bar-capacity>
label-full = BAT
label-full-foreground = ${self.bar-capacity-fill-foreground}
bar-capacity-width = ${module/bartemplate.bar-width}
bar-capacity-foreground = ${colors.primary}
bar-capacity-indicator =
bar-capacity-fill = ${module/bartemplate.bar-fill}
bar-capacity-fill-font = ${module/bartemplate.bar-fill-font}
bar-capacity-fill-foreground = ${colors.primary}
bar-capacity-empty = ${module/bartemplate.bar-empty}
bar-capacity-empty-font = ${module/bartemplate.bar-empty-font}
bar-capacity-empty-foreground = ${module/bartemplate.bar-empty-foreground}
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <label>
format-warn = <label-warn>
label = %temperature%
label-warn = %temperature%
label-warn-foreground = ${xrdb:color9:#fb4934}
[module/powermenu]
type = custom/menu
format-spacing = 1
label-open = PWR
label-open-foreground = ${colors.secondary}
label-close = PWR
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini

11
.config/polybar/launch.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
# Launch bar1 and bar2
polybar bar1 &
echo "Polybars launched..."

18
.config/polybar/redshift.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
pgrep -x redshift &> /dev/null
if [[ $? -eq 0 ]]; then
temp=$(redshift -p 2>/dev/null | grep temp | cut -d' ' -f3)
temp=${temp//K/}
fi
# OPTIONAL: Append ' ${temp}K' after $icon
if [[ -z $temp ]]; then
echo "" # Not running
elif [[ $temp -ge 5000 ]]; then
echo "*" # Blue
elif [[ $temp -ge 4000 ]]; then
echo "**" # Yellow
else
echo "***" # Orange
fi

73
.profile Executable file
View File

@ -0,0 +1,73 @@
#!/bin/sh
# POSIX NOTICE
# This script is not fully POSIX-compliant. It uses features that,
# while popular, are undefined by POSIX. Namely:
#
# * The use of the `local` keyword
#
# Users of this script on minimalist shells will have to adapt
# this script accordingly.
contains() {
string="$1"
substring="$2"
if test "${string#*$substring}" != "$string"; then
return 0
else
return 1
fi
}
# Common miscellaneous aliases are all defined here for convenience
__define_aliases() {
# Common Aliases
alias cp='cp -i'
alias dd=dcfldd
alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -a --color=auto'
alias l='ls -CF'
alias waitwhat='echo $?'
alias fug='sudo `history -p !!`'
}
# Functions to be exported to the shell
# Mostly just helper wrappers and such
__define_functions() {
# Arch-only helper functions
local testcase=`contains "$(ls /etc/*release)" "arch"`
if [ "$testcase" ]; then
export PAC_HELPER="pacaur"
local helpers="pacaur yaourt pacman"
for helper in $helpers; do
if [ "$(pacman -Qq "$helper" > /dev/null)" ]; then
export PAC_HELPER="$helper"
break
fi
done
alias pac="\$PAC_HELPER"
alias pacq="\$PAC_HELPER -Qs"
alias pacqi="\$PAC_HELPER -Qi"
alias pacs="\$PAC_HELPER -S"
alias pacss="\$PAC_HELPER -Ss"
alias pacsu="\$PAC_HELPER -Syu"
alias pacsyu="\$PAC_HELPER -Syyu"
alias pacsr="\$PAC_HELPER -Rsnu"
fi
}
# Call functions that need to be called
__define_aliases
__define_functions
export TERM="linux"
EDITOR=$(which vim)
PATH=$PATH:~/.bin
export EDITOR
export PATH

1
.xprofile Normal file
View File

@ -0,0 +1 @@
export XDG_CURRENT_DESKTOP=KDE