Skip to content

Instantly share code, notes, and snippets.

@0xMatt
Last active October 11, 2018 05:41
Show Gist options
  • Save 0xMatt/703e7de22fd4853470a0aae804953be6 to your computer and use it in GitHub Desktop.
Save 0xMatt/703e7de22fd4853470a0aae804953be6 to your computer and use it in GitHub Desktop.
Dots
# Basic compton config with fade transition and shadows
# Full list of options at: https://github.com/chjj/compton/blob/master/man/compton.1.asciidoc
# Performance tweak options, more info at https://github.com/chjj/compton/wiki
paint-on-overlay = true; # Paint on X Composite overlay window instead of on root window
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
# Drop shadows
# If you use this config with i3-gaps, compton will draw shadows on title bars. This is because
# i3 creates title bars as windows. I've only been able to circumvent this by removing title bars
# completely - see my i3 config files.
shadow = true; # Enabled client-side shadows on windows
no-dock-shadow = false; # Avoid drawing shadows on dock/panel windows
no-dnd-shadow = true; # Don't draw shadows on drag-and-drop windows
clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental)
shadow-radius = 7; # The blur radius for shadows (default 12)
shadow-offset-x = -7; # The left offset for shadows (default -15)
shadow-offset-y = -7; # The top offset for shadows (default -15)
# Fading transitions
fading = true; # Fade windows during opacity changes
fade-delta = 3; # The time between steps in a fade in milliseconds (default 10)
fade-in-step = 0.03; # Opacity change between steps while fading in (default 0.028)
fade-out-step = 0.03; # Opacity change between steps while fading out (default 0.03)
#no-fading-openclose = true; # Fade windows in/out when opening/closing
inactive-dim = 0.2;
# Prevents opacity being ignored for some apps
#detect-client-opacity = true;
# Window type settings
wintypes:
{
tooltip = { fade = true; shadow = false; };
dock = { opacity = 0.9; shadow = true };
};
export TERM="xterm-256color"
source ~/.antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle git-extras
antigen bundle command-not-found
antigen bundle arialdomartini/oh-my-git
antigen bundle history
antigen bundle laravel
#!/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 polybar
polybar main &
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
antigen bundle mafredri/zsh-async
antigen bundle HeroCC/LS_COLORS
# Load the theme.
antigen theme bhilburn/powerlevel9k powerlevel9k
# Powerlevel9k
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator context php_version time)
#POWERLEVEL9K_MODE='awesome-fontconfig'
# Tell Antigen that you're done.
antigen apply
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/matthew/Apps/google-cloud-sdk/path.zsh.inc' ]; then source '/home/matthew/Apps/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/home/matthew/Apps/google-cloud-sdk/completion.zsh.inc' ]; then source '/home/matthew/Apps/google-cloud-sdk/completion.zsh.inc'; fi
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
## Onedark Color scheme#!/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 polybar
polybar main &
background = #282c34
background-alt = #f1f1f1
foreground = #abb2bf
primary = #61afef
secondary = #e60053
alert = #bd2c40
blue = #61afef
lightred = #e06c75
darkred = #be5046
green = #98c379
lightyellow = #e5c07b
darkyellow = #d19a66wlp4s0
magenta = #c678dd
cyan = #56b6c2
guttergrey = #4b5263
commentgrey = #5c6370
bar-bg = #282c34;
bar-fg = #abb2bf;
border-color = ${this.guttergrey}
[bar/main]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 25
;dpi = 192
offset-x = 0
offset-y = 0
radius = 0.0
fixed-center = true
;bottom = true
;bar-offset-x = 14
;bar-top-gap = 50
bar-bottom-gap = 5
border-top-size = 5wlp4s0
border-bottom-size = 5
;border-left-size = 0
;border-right-size = 0
border-color = #00000000
border-size = 0
border-top-color = ${colors.background}
border-bottom-color = ${colors.background}
background = ${colors.background}
foreground = ${colors.background-alt}
line-size = 3
line-color = #f00
padding-left = 1
padding-right = 1
module-margin-left = 1
module-margin-right = 0
font-0 = SourceCodePro-Regular:pixelsize=8;0
font-1 = FontAwesome:size=9;0
#modules-left = i3 mpd
modules-left = i3
modules-center = xwindow
#modules-right = github volume wlan eth memory cpu date
modules-right = volume wlan memory cpu date
tray-position = right
tray-padding = 1
;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
cursor-click = pointer
cursor-scroll = ns-resize
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
enable-scroll = true
enable-click = false
; Only show workspaces on the same output as the bar
;pin-workspaces = true
;
;ws-icon-0 = 1;
;ws-icon-default = 
label-mode-padding = 1
;label-mode-foreground = #000000cc
label-mode-foreground = ${colors.background}
label-mode-background = ${colors.blue}
; focused = Active workspace on focused monitor
label-focused = %index%
;label-focused-background = #000000cc
label-focused-background = ${colors.primary}
label-focused-foreground = ${colors.background-alt}
label-focused-underline = ${colors.primary}
label-focused-padding = 1
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
;label-unfocused-background = #000000cc
label-unfocused-background = ${colors.background-alt}
label-unfocused-foreground= ${colors.background}
label-unfocused-padding = 1
; visible = Active workspace on unfocused monitor
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %index%
label-urgent-background = ${colors.lightred}
label-urgent-foreground = ${colors.background-alt}
label-urgent-padding = 1
[module/xwindow]
type = internal/xwindow
label = %title:0:60:...%
;format-underline = ${colors.lightyellow}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
;mount-1 = /home
format-mounted =  <label-mounted>
format-mounted-background = ${colors.darkred}
format-mounted-foreground = ${colors.background-alt}
format-mounted-padding = 1
label-mounted-padding = 1
label-mounted = %mountpoint%: %percentage_free%% Free
label-mounted-foreground = ${colors.background-alt}
label-mounted-background = ${colors.commentgrey}
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground}
[module/mpd]
type = internal/mpd
format-online = <icon-prev><icon-stop><label-song><toggle><icon-next>
format-online-background = ${colors.blue}
format-online-padding = 1
icon-prev = 
icon-prev-background = ${colors.guttergrey}
icon-prev-foreground = ${colors.background-alt}
icon-prev-padding = 1
icon-stop = 
icon-stop-background = ${colors.guttergrey}
icon-stop-foreground = ${colors.lightred}
icon-stop-padding = 1
icon-play = 
icon-play-background = ${colors.guttergrey}
icon-play-foreground = ${colors.green}
icon-play-padding = 1
icon-pause = 
icon-pause-background = ${colors.guttergrey}
icon-pause-foreground = ${colors.lightyellow}
icon-pause-padding = 1
icon-next = 
icon-next-background = ${colors.guttergrey}
icon-next-foreground = ${colors.background-alt}
icon-next-padding = 1
label-song = %title% - %artist%
label-song-background = ${colors.guttergrey}
label-song-foreground = ${colors.background-alt}
label-song-padding = 1
label-song-maxlen = 55
label-song-ellipsis = true
[module/cpu]
type = internal/cpu
interval = 2
# Format
format = <label>
format-prefix = ""
format-prefix-background = ${colors.lightred}
format-prefix-foreground = ${colors.background-alt}
format-prefix-padding = 1
# Label
label = %percentage:2%%
label-background = ${colors.background-alt}
label-foreground = ${colors.background}
label-padding = 1
# Ramp Load
ramp-coreload-background = ${colors.guttergrey}
ramp-coreload-foreground = ${colors.background-alt}
ramp-coreload-padding = 1
ramp-coreload-spacing = 0
ramp-coreload-0 = ▁
ramp-coreload-1 = ▂
ramp-coreload-2 = ▃
ramp-coreload-3 = ▄
ramp-coreload-4 = ▅
ramp-coreload-5 = ▆
ramp-coreload-6 = ▇
ramp-coreload-7 = █
[module/memory]
type = internal/memory
interval = 2
format = <label>
format-prefix = 
format-prefix-padding = 1
format-prefix-background = ${colors.green}
format-prefix-foreground = ${colors.background-alt}
;format-prefix-foreground = ${colors.commentgrey}
;format-underline = ${colors.green}
label-background = ${colors.background-alt}
label-foreground = ${colors.background}
label-padding = 1
label = %percentage_used%%
; Only applies if <bar-used> is used
[module/wlan]
type = internal/network
interface = wlp4s0
interval = 3.0
format-connected =  <label-connected>
format-connected-background = ${colors.darkyellow}
format-connected-foreground = ${colors.background}
format-connected-padding = 1
label-connected = %essid%
label-connected-padding = 1
label-connected-background = ${colors.background-alt}
label-connected-foreground = ${colors.guttergrey}
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground}
[module/eth]
type = internal/network
interface = enp3s0
interval = 3.0
format-connected-prefix-background = ${colors.cyan}
format-connected-prefix-foreground = ${colors.background-alt}
format-connected-prefix-padding = 1
format-connected-prefix = ""
label-connected-padding = 1
label-connected = %local_ip%
label-connected-background = ${colors.guttergrey}
label-connected-foreground = ${colors.background-alt}
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground}
[module/date]
type = internal/date
interval = 1.0
date = %a, %b %d
date-alt = %a, %b %d
time = "@ %H:%M:%S"
time-alt = "@ %H:%M:%S"
label = %date% %time%
format = <label>
format-padding = 0
format-prefix = 
format-prefix-background = ${colors.primary}
format-prefix-foreground = ${colors.background-alt}
format-prefix-padding = 1
label-background = ${colors.background-alt}
label-foreground = ${colors.background}
label-padding = 1
[module/volume]
type = internal/pulseaudio
format-volume = <label-volume>
; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
; If not, uses default sink
sink = alsa_output.pci-0000_00_1b.0.analog-stereo
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
; Default: true
use-ui-max = true
; Interval for volume increase/decrease (in percent points) (unreleased)
; Default: 5
interval = 5
format-volume-prefix = 
format-volume-prefix-background = ${colors.magenta}
format-volume-prefix-foreground = ${colors.background-alt}
format-volume-prefix-padding = 1
label-volume = %percentage%%
label-volume-background = ${colors.background-alt}
label-volume-foreground = ${colors.background}
label-volume-padding = 1
format-muted = <label-muted>
format-muted-prefix = 
format-muted-prefix-padding = 1
format-muted-prefix-background = ${colors.darkyellow}
format-muted-prefix-foreground = ${colors.background-alt}
label-muted = 0%
label-muted-foreground = ${colors.commentgrey}
label-muted-background = ${colors.background-alt}
label-muted-padding = 1
format-volume-padding = 0
format-muted-padding = 0
ramp-headphones-0 = 
[module/github]
type = internal/github
token = ${file:/home/matthew/Documents/access.token}
empty-notifications = false
interval = 10
format = <label>
; Available tokens:
; %notifications% (default)
; Default: Notifications: %notifications%
label = %notifications%
[module/info-kernel]
type = custom/script
exec = uname -r
interval = 1024
[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
#!/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 polybar
polybar main &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment