adding profiles
parent
56ae0f34be
commit
ba2edc6bed
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
killall picom
|
||||
|
||||
# waits for termination
|
||||
while pgrep picom >/dev/null; do sleep 1; done
|
||||
|
||||
picom -b --config ~/.config/picom/picom.conf
|
@ -0,0 +1,10 @@
|
||||
#! /bin/bash
|
||||
|
||||
# loads polybar one every monitor
|
||||
if type "xrandr"; then
|
||||
for monitor in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||
MONITOR=$monitor polybar --reload main-bar &
|
||||
done
|
||||
else
|
||||
polybar --reload main-bar &
|
||||
fi
|
@ -1,19 +0,0 @@
|
||||
#!/bin/bash
|
||||
# changing to zsh
|
||||
|
||||
exists=$(cat /etc/shells | grep zsh)
|
||||
|
||||
if [[ -z "$exists" ]] ; then
|
||||
echo "Please install zsh!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$SHELL" != "/bin/zsh" ]] ; then
|
||||
chsh -s /bin/zsh
|
||||
fi
|
||||
|
||||
if [ ! -e "$HOME/.oh-my-zsh/oh-my-zsh.sh" ]; then
|
||||
echo "Installing oh-my-zsh"
|
||||
/bin/zsh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||
fi
|
||||
|
@ -0,0 +1,434 @@
|
||||
#################################
|
||||
# Shadows #
|
||||
#################################
|
||||
|
||||
|
||||
# Enabled client-side shadows on windows. Note desktop windows
|
||||
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
|
||||
# unless explicitly requested using the wintypes option.
|
||||
#
|
||||
shadow = false
|
||||
#shadow = true;
|
||||
|
||||
# The blur radius for shadows, in pixels. (defaults to 12)
|
||||
# shadow-radius = 12
|
||||
shadow-radius = 7;
|
||||
|
||||
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
|
||||
# shadow-opacity = .75
|
||||
|
||||
# The left offset for shadows, in pixels. (defaults to -15)
|
||||
# shadow-offset-x = -15
|
||||
shadow-offset-x = -7;
|
||||
|
||||
# The top offset for shadows, in pixels. (defaults to -15)
|
||||
# shadow-offset-y = -15
|
||||
shadow-offset-y = -7;
|
||||
|
||||
# Red color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# shadow-red = 0
|
||||
|
||||
# Green color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# shadow-green = 0
|
||||
|
||||
# Blue color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# shadow-blue = 0
|
||||
|
||||
# Hex string color value of shadow (#000000 - #FFFFFF, defaults to #000000). This option will override options set shadow-(red/green/blue)
|
||||
# shadow-color = "#000000"
|
||||
|
||||
# Specify a list of conditions of windows that should have no shadow.
|
||||
#
|
||||
# examples:
|
||||
# shadow-exclude = "n:e:Notification";
|
||||
#
|
||||
# shadow-exclude = []
|
||||
shadow-exclude = [
|
||||
"name = 'Notification'",
|
||||
"class_g = 'Conky'",
|
||||
"class_g ?= 'Notify-osd'",
|
||||
"class_g = 'Cairo-clock'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
];
|
||||
|
||||
# Specify a list of conditions of windows that should have no shadow painted over, such as a dock window.
|
||||
# clip-shadow-above = []
|
||||
|
||||
# Specify a X geometry that describes the region in which shadow should not
|
||||
# be painted in, such as a dock window region. Use
|
||||
# shadow-exclude-reg = "x10+0+0"
|
||||
# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
|
||||
#
|
||||
# shadow-exclude-reg = ""
|
||||
|
||||
# Crop shadow of a window fully on a particular Xinerama screen to the screen.
|
||||
# xinerama-shadow-crop = false
|
||||
|
||||
|
||||
#################################
|
||||
# Fading #
|
||||
#################################
|
||||
|
||||
|
||||
# Fade windows in/out when opening/closing and when opacity changes,
|
||||
# unless no-fading-openclose is used.
|
||||
# fading = false
|
||||
fading = true;
|
||||
|
||||
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
|
||||
# fade-in-step = 0.028
|
||||
fade-in-step = 0.03;
|
||||
|
||||
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
|
||||
# fade-out-step = 0.03
|
||||
fade-out-step = 0.03;
|
||||
|
||||
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
|
||||
fade-delta = 3
|
||||
|
||||
# Specify a list of conditions of windows that should not be faded.
|
||||
# fade-exclude = []
|
||||
|
||||
# Do not fade on window open/close.
|
||||
# no-fading-openclose = false
|
||||
|
||||
# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc.
|
||||
# no-fading-destroyed-argb = false
|
||||
|
||||
|
||||
#################################
|
||||
# Transparency / Opacity #
|
||||
#################################
|
||||
|
||||
|
||||
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
|
||||
#inactive-opacity = 1
|
||||
# inactive-opacity = 0.90;
|
||||
|
||||
# opacity-rule = [
|
||||
# "80:class_g = 'st' && focused",
|
||||
# "50:class_g = 'st' && !focused"
|
||||
# ];
|
||||
|
||||
|
||||
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
|
||||
# frame-opacity = 1.0
|
||||
frame-opacity = 0.9;
|
||||
|
||||
# Let inactive opacity set by -i override the '_NET_WM_WINDOW_OPACITY' values of windows.
|
||||
# inactive-opacity-override = true
|
||||
inactive-opacity-override = false;
|
||||
|
||||
# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
|
||||
# active-opacity = 1.0
|
||||
|
||||
# Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
|
||||
# inactive-dim = 0.0
|
||||
|
||||
# Specify a list of conditions of windows that should never be considered focused.
|
||||
# focus-exclude = []
|
||||
focus-exclude = [ "class_g = 'Cairo-clock'" ];
|
||||
|
||||
# Use fixed inactive dim value, instead of adjusting according to window opacity.
|
||||
# inactive-dim-fixed = 1.0
|
||||
|
||||
# Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
|
||||
# like `50:name *= "Firefox"`. picom-trans is recommended over this.
|
||||
# Note we don't make any guarantee about possible conflicts with other
|
||||
# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
|
||||
# example:
|
||||
# opacity-rule = [ "80:class_g = 'URxvt'" ];
|
||||
#
|
||||
# opacity-rule = []
|
||||
|
||||
|
||||
#################################
|
||||
# Corners #
|
||||
#################################
|
||||
|
||||
# Sets the radius of rounded window corners. When > 0, the compositor will
|
||||
# round the corners of windows. Does not interact well with
|
||||
# `transparent-clipping`.
|
||||
corner-radius = 0
|
||||
|
||||
# Exclude conditions for rounded corners.
|
||||
rounded-corners-exclude = [
|
||||
"window_type = 'dock'",
|
||||
"window_type = 'desktop'"
|
||||
];
|
||||
|
||||
|
||||
#################################
|
||||
# Background-Blurring #
|
||||
#################################
|
||||
|
||||
|
||||
# Parameters for background blurring, see the *BLUR* section for more information.
|
||||
# blur-method =
|
||||
# blur-size = 12
|
||||
#
|
||||
# blur-deviation = false
|
||||
#
|
||||
# blur-strength = 5
|
||||
|
||||
# Blur background of semi-transparent / ARGB windows.
|
||||
# Bad in performance, with driver-dependent behavior.
|
||||
# The name of the switch may change without prior notifications.
|
||||
#
|
||||
# blur-background = false
|
||||
|
||||
# Blur background of windows when the window frame is not opaque.
|
||||
# Implies:
|
||||
# blur-background
|
||||
# Bad in performance, with driver-dependent behavior. The name may change.
|
||||
#
|
||||
# blur-background-frame = false
|
||||
|
||||
|
||||
# Use fixed blur strength rather than adjusting according to window opacity.
|
||||
# blur-background-fixed = false
|
||||
|
||||
|
||||
# Specify the blur convolution kernel, with the following format:
|
||||
# example:
|
||||
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
|
||||
#
|
||||
# blur-kern = ""
|
||||
blur-kern = "3x3box";
|
||||
|
||||
|
||||
# Exclude conditions for background blur.
|
||||
# blur-background-exclude = []
|
||||
blur-background-exclude = [
|
||||
"window_type = 'dock'",
|
||||
"window_type = 'desktop'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
];
|
||||
|
||||
#################################
|
||||
# General Settings #
|
||||
#################################
|
||||
|
||||
# Enable remote control via D-Bus. See the man page for more details.
|
||||
# dbus = true
|
||||
|
||||
# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
|
||||
# daemon = false
|
||||
|
||||
# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
|
||||
# `xrender` is the default one.
|
||||
#
|
||||
# backend = "glx"
|
||||
backend = "xrender";
|
||||
|
||||
# Enable/disable VSync.
|
||||
# vsync = false
|
||||
vsync = true;
|
||||
|
||||
# Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
|
||||
# dbus = false
|
||||
|
||||
# Try to detect WM windows (a non-override-redirect window with no
|
||||
# child that has 'WM_STATE') and mark them as active.
|
||||
#
|
||||
# mark-wmwin-focused = false
|
||||
mark-wmwin-focused = true;
|
||||
|
||||
# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused.
|
||||
# mark-ovredir-focused = false
|
||||
mark-ovredir-focused = true;
|
||||
|
||||
# Try to detect windows with rounded corners and don't consider them
|
||||
# shaped windows. The accuracy is not very high, unfortunately.
|
||||
#
|
||||
# detect-rounded-corners = false
|
||||
detect-rounded-corners = true;
|
||||
|
||||
# Detect '_NET_WM_WINDOW_OPACITY' on client windows, useful for window managers
|
||||
# not passing '_NET_WM_WINDOW_OPACITY' of client windows to frame windows.
|
||||
#
|
||||
# detect-client-opacity = false
|
||||
detect-client-opacity = true;
|
||||
|
||||
# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
|
||||
# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
|
||||
# provided that the WM supports it.
|
||||
#
|
||||
# use-ewmh-active-win = false
|
||||
|
||||
# Unredirect all windows if a full-screen opaque window is detected,
|
||||
# to maximize performance for full-screen windows. Known to cause flickering
|
||||
# when redirecting/unredirecting windows.
|
||||
#
|
||||
# unredir-if-possible = false
|
||||
|
||||
# Delay before unredirecting the window, in milliseconds. Defaults to 0.
|
||||
# unredir-if-possible-delay = 0
|
||||
|
||||
# Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
|
||||
# unredir-if-possible-exclude = []
|
||||
|
||||
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
|
||||
# in the same group focused at the same time.
|
||||
#
|
||||
# detect-transient = false
|
||||
detect-transient = true;
|
||||
|
||||
# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
|
||||
# group focused at the same time. This usually means windows from the same application
|
||||
# will be considered focused or unfocused at the same time.
|
||||
# 'WM_TRANSIENT_FOR' has higher priority if detect-transient is enabled, too.
|
||||
#
|
||||
# detect-client-leader = false
|
||||
|
||||
# Resize damaged region by a specific number of pixels.
|
||||
# A positive value enlarges it while a negative one shrinks it.
|
||||
# If the value is positive, those additional pixels will not be actually painted
|
||||
# to screen, only used in blur calculation, and such. (Due to technical limitations,
|
||||
# with use-damage, those pixels will still be incorrectly painted to screen.)
|
||||
# Primarily used to fix the line corruption issues of blur,
|
||||
# in which case you should use the blur radius value here
|
||||
# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
|
||||
# with a 5x5 one you use `--resize-damage 2`, and so on).
|
||||
# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly.
|
||||
#
|
||||
# resize-damage = 1
|
||||
|
||||
# Specify a list of conditions of windows that should be painted with inverted color.
|
||||
# Resource-hogging, and is not well tested.
|
||||
#
|
||||
# invert-color-include = []
|
||||
|
||||
# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
|
||||
# Might cause incorrect opacity when rendering transparent content (but never
|
||||
# practically happened) and may not work with blur-background.
|
||||
# My tests show a 15% performance boost. Recommended.
|
||||
#
|
||||
glx-no-stencil = 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, xf86-video-intel, etc.).
|
||||
# Recommended if it works.
|
||||
#
|
||||
# glx-no-rebind-pixmap = false
|
||||
|
||||
# Disable the use of damage information.
|
||||
# This cause the whole screen to be redrawn every time, instead of the part of the screen
|
||||
# has actually changed. Potentially degrades the performance, but might fix some artifacts.
|
||||
# The opposing option is use-damage
|
||||
#
|
||||
# no-use-damage = false
|
||||
use-damage = true;
|
||||
|
||||
# Use X Sync fence to sync clients' draw calls, to make sure all draw
|
||||
# calls are finished before picom starts drawing. Needed on nvidia-drivers
|
||||
# with GLX backend for some users.
|
||||
#
|
||||
# xrender-sync-fence = false
|
||||
|
||||
# GLX backend: Use specified GLSL fragment shader for rendering window
|
||||
# contents. Read the man page for a detailed explanation of the interface.
|
||||
#
|
||||
# window-shader-fg = "default"
|
||||
|
||||
# Use rules to set per-window shaders. Syntax is SHADER_PATH:PATTERN, similar
|
||||
# to opacity-rule. SHADER_PATH can be "default". This overrides window-shader-fg.
|
||||
#
|
||||
# window-shader-fg-rule = [
|
||||
# "my_shader.frag:window_type != 'dock'"
|
||||
# ]
|
||||
|
||||
# Force all windows to be painted with blending. Useful if you
|
||||
# have a glx-fshader-win that could turn opaque pixels transparent.
|
||||
#
|
||||
# force-win-blend = false
|
||||
|
||||
# Do not use EWMH to detect fullscreen windows.
|
||||
# Reverts to checking if a window is fullscreen based only on its size and coordinates.
|
||||
#
|
||||
# no-ewmh-fullscreen = false
|
||||
|
||||
# Dimming bright windows so their brightness doesn't exceed this set value.
|
||||
# Brightness of a window is estimated by averaging all pixels in the window,
|
||||
# so this could comes with a performance hit.
|
||||
# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
|
||||
#
|
||||
# max-brightness = 1.0
|
||||
|
||||
# Make transparent windows clip other windows like non-transparent windows do,
|
||||
# instead of blending on top of them.
|
||||
#
|
||||
# transparent-clipping = false
|
||||
|
||||
# Specify a list of conditions of windows that should never have transparent
|
||||
# clipping applied. Useful for screenshot tools, where you need to be able to
|
||||
# see through transparent parts of the window.
|
||||
#
|
||||
# transparent-clipping-exclude = []
|
||||
|
||||
# Set the log level. Possible values are:
|
||||
# "trace", "debug", "info", "warn", "error"
|
||||
# in increasing level of importance. Case doesn't matter.
|
||||
# If using the "TRACE" log level, it's better to log into a file
|
||||
# using *--log-file*, since it can generate a huge stream of logs.
|
||||
#
|
||||
# log-level = "debug"
|
||||
log-level = "warn";
|
||||
|
||||
# Set the log file.
|
||||
# If *--log-file* is never specified, logs will be written to stderr.
|
||||
# Otherwise, logs will to written to the given file, though some of the early
|
||||
# logs might still be written to the stderr.
|
||||
# When setting this option from the config file, it is recommended to use an absolute path.
|
||||
#
|
||||
# log-file = "/path/to/your/log/file"
|
||||
|
||||
# Show all X errors (for debugging)
|
||||
# show-all-xerrors = false
|
||||
|
||||
# Write process ID to a file.
|
||||
# write-pid-path = "/path/to/your/log/file"
|
||||
|
||||
# Window type settings
|
||||
#
|
||||
# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
|
||||
# "unknown", "desktop", "dock", "toolbar", "menu", "utility",
|
||||
# "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
|
||||
# "tooltip", "notification", "combo", and "dnd".
|
||||
#
|
||||
# Following per window-type options are available: ::
|
||||
#
|
||||
# fade, shadow:::
|
||||
# Controls window-type-specific shadow and fade settings.
|
||||
#
|
||||
# opacity:::
|
||||
# Controls default opacity of the window type.
|
||||
#
|
||||
# focus:::
|
||||
# Controls whether the window of this type is to be always considered focused.
|
||||
# (By default, all window types except "normal" and "dialog" has this on.)
|
||||
#
|
||||
# full-shadow:::
|
||||
# Controls whether shadow is drawn under the parts of the window that you
|
||||
# normally won't be able to see. Useful when the window has parts of it
|
||||
# transparent, and you want shadows in those areas.
|
||||
#
|
||||
# clip-shadow-above:::
|
||||
# Controls whether shadows that would have been drawn above the window should
|
||||
# be clipped. Useful for dock windows that should have no shadow painted on top.
|
||||
#
|
||||
# redir-ignore:::
|
||||
# Controls whether this type of windows should cause screen to become
|
||||
# redirected again after been unredirected. If you have unredir-if-possible
|
||||
# set, and doesn't want certain window to cause unnecessary screen redirection,
|
||||
# you can set this to `true`.
|
||||
#
|
||||
wintypes:
|
||||
{
|
||||
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
|
||||
dock = { shadow = false; clip-shadow-above = true; }
|
||||
dnd = { shadow = false; }
|
||||
popup_menu = { opacity = 0.8; }
|
||||
dropdown_menu = { opacity = 0.8; }
|
||||
};
|
@ -0,0 +1,125 @@
|
||||
[colors]
|
||||
background = #1D1F21
|
||||
background-alt = #373B41
|
||||
foreground = #C5C8C6
|
||||
primary = #F0C674
|
||||
secondary = #8ABEB7
|
||||
disabled = #707880
|
||||
alert = #A54242
|
||||
|
||||
[bar/main-bar]
|
||||
width = 100%
|
||||
height = 24pt
|
||||
radius = 5
|
||||
|
||||
; seperator
|
||||
separator = |
|
||||
separator-foreground = ${colors.disabled}
|
||||
module-margin = 1
|
||||
padding = 2
|
||||
|
||||
; font
|
||||
font-0 = Hack Nerd Font;2
|
||||
|
||||
monitor = ${env:MONITOR:}
|
||||
|
||||
bottom = false
|
||||
|
||||
fixed-center = true
|
||||
|
||||
; hybrid bg color, might go lighter grey
|
||||
background = ${colors.background}
|
||||
|
||||
; hybrid fg color, might go lighter if I go lighter grey
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
modules-left = xworkspaces xwindow
|
||||
modules-center = weather
|
||||
modules-right = pulseaudio memory cpu eth date
|
||||
|
||||
[module/xworkspaces]
|
||||
type = internal/xworkspaces
|
||||
|
||||
label-active = %name%
|
||||
label-active-background = ${colors.background-alt}
|
||||
label-active-underline= ${colors.primary}
|
||||
label-active-padding = 1
|
||||
|
||||
label-occupied = %name%
|
||||
label-occupied-padding = 1
|
||||
|
||||
label-urgent = %name%
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 1
|
||||
|
||||
label-empty = %name%
|
||||
label-empty-foreground = ${colors.disabled}
|
||||
label-empty-padding = 1
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:40:...%
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
format-volume-prefix = "VOL "
|
||||
format-volume-prefix-foreground = ${colors.primary}
|
||||
format-volume = <label-volume>
|
||||
|
||||
label-volume = %percentage%%
|
||||
|
||||
label-muted = muted
|
||||
label-muted-foreground = ${colors.disabled}
|
||||
|
||||
[module/weather]
|
||||
type = custom/script
|
||||
|
||||
exec = weather -pd
|
||||
interval = 30
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = "RAM "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %total%
|
||||
format = <bar-used> <label>
|
||||
|
||||
bar-used-indicator =
|
||||
bar-used-width = 10
|
||||
bar-used-fill = ▐
|
||||
bar-used-empty = _
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = "CPU "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage:2%%
|
||||
|
||||
[network-base]
|
||||
type = internal/network
|
||||
interval = 5
|
||||
format-connected = <label-connected>
|
||||
format-disconnected = <label-disconnected>
|
||||
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
|
||||
|
||||
[module/eth]
|
||||
inherit = network-base
|
||||
interface-type = wired
|
||||
label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1
|
||||
|
||||
date = %A, %b %d %l:%m %P
|
||||
;date = %H:%M
|
||||
date-alt = %Y-%m-%d %H:%M:%S
|
||||
|
||||
label = %date%
|
||||
label-foreground = ${colors.primary}
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
@ -1,59 +0,0 @@
|
||||
# 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 = 5
|
||||
}
|
||||
|
||||
order += "ethernet _first_"
|
||||
order += "volume master"
|
||||
order += "disk /"
|
||||
order += "cpu_usage"
|
||||
order += "memory"
|
||||
order += "tztime local"
|
||||
|
||||
wireless _first_ {
|
||||
format_up = "W: (%quality at %essid) %ip"
|
||||
format_down = "W: down"
|
||||
}
|
||||
|
||||
ethernet _first_ {
|
||||
format_up = "E: %ip (%speed)"
|
||||
format_down = "E: down"
|
||||
}
|
||||
|
||||
battery all {
|
||||
format = "%status %percentage %remaining"
|
||||
}
|
||||
|
||||
disk "/" {
|
||||
format = "%avail"
|
||||
}
|
||||
|
||||
cpu_usage {
|
||||
format = "cpu: %usage"
|
||||
}
|
||||
|
||||
|
||||
memory {
|
||||
format = "%percentage_used of %available used (%used)"
|
||||
threshold_degraded = "1G"
|
||||
format_degraded = "MEMORY < %available"
|
||||
}
|
||||
|
||||
volume master {
|
||||
format = "♪: %volume"
|
||||
format_muted = "♪: muted (%volume)"
|
||||
device = "pulse"
|
||||
mixer = "Master"
|
||||
mixer_idx = 0
|
||||
}
|
||||
|
||||
tztime local {
|
||||
format = "%Y-%m-%d %H:%M:%S"
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
BASE_CONFIG="base"
|
||||
CONFIG_SUFFIX=".yaml"
|
||||
|
||||
META_DIR="meta"
|
||||
CONFIG_DIR="configs"
|
||||
PROFILES_DIR="profiles"
|
||||
|
||||
DOTBOT_DIR="dotbot"
|
||||
DOTBOT_BIN="bin/dotbot"
|
||||
|
||||
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
|
||||
cd "${BASE_DIR}"
|
||||
git -C "${BASE_DIR}" submodule sync --quiet --recursive
|
||||
git submodule update --init --recursive "${BASE_DIR}"
|
||||
|
||||
|
||||
while IFS= read -r config; do
|
||||
CONFIGS+=" ${config}"
|
||||
done < "${META_DIR}/${PROFILES_DIR}/$1"
|
||||
|
||||
shift
|
||||
|
||||
for config in ${CONFIGS} ${@}; do
|
||||
echo -e "\nConfigure $config"
|
||||
# create temporary file
|
||||
configFile="$(mktemp)"
|
||||
suffix="-sudo"
|
||||
echo -e "$(<"${BASE_DIR}/${META_DIR}/${BASE_CONFIG}${CONFIG_SUFFIX}")\n$(<"${BASE_DIR}/${META_DIR}/${CONFIG_DIR}/${config%"$suffix"}${CONFIG_SUFFIX}")" > "$configFile"
|
||||
|
||||
cmd=("${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "$configFile")
|
||||
|
||||
if [[ $config == *"sudo"* ]]; then
|
||||
cmd=(sudo "${cmd[@]}")
|
||||
fi
|
||||
|
||||
"${cmd[@]}"
|
||||
rm -f "$configFile"
|
||||
done
|
||||
|
||||
cd "${BASE_DIR}"
|
@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
BASE_CONFIG="base"
|
||||
CONFIG_SUFFIX=".yaml"
|
||||
|
||||
META_DIR="meta"
|
||||
CONFIG_DIR="configs"
|
||||
PROFILES_DIR="profiles"
|
||||
|
||||
DOTBOT_DIR="dotbot"
|
||||
DOTBOT_BIN="bin/dotbot"
|
||||
|
||||
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
|
||||
cd "${BASE_DIR}"
|
||||
git submodule update --init --recursive --remote
|
||||
|
||||
for config in ${@}; do
|
||||
# create temporary file
|
||||
configFile="$(mktemp)"
|
||||
suffix="-sudo"
|
||||
echo -e "$(<"${BASE_DIR}/${META_DIR}/${BASE_CONFIG}${CONFIG_SUFFIX}")\n$(<"${BASE_DIR}/${META_DIR}/${CONFIG_DIR}/${config%"$suffix"}${CONFIG_SUFFIX}")" > "$configFile"
|
||||
|
||||
cmd=("${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "$configFile")
|
||||
|
||||
if [[ $config == *"sudo"* ]]; then
|
||||
cmd=(sudo "${cmd[@]}")
|
||||
fi
|
||||
|
||||
"${cmd[@]}"
|
||||
rm -f "$configFile"
|
||||
done
|
||||
|
||||
cd "${BASE_DIR}"
|
@ -0,0 +1,14 @@
|
||||
- defaults:
|
||||
link:
|
||||
create: true
|
||||
relink: true
|
||||
shell:
|
||||
stdin: true
|
||||
stdout: true
|
||||
stderr: true
|
||||
|
||||
- clean: [
|
||||
'~',
|
||||
'~/.vim',
|
||||
'~/.config'
|
||||
]
|
@ -0,0 +1,7 @@
|
||||
- shell:
|
||||
- [cd src/fzf && make install, Building fzf]
|
||||
|
||||
- link:
|
||||
~/.fzf: src/fzf
|
||||
~/.local/bin/fzf: src/fzf/bin/fzf
|
||||
~/.local/bin/fzf-tmux: src/fzf/bin/fzf-tmux
|
@ -0,0 +1,6 @@
|
||||
- shell:
|
||||
- [cd src/i3lock-blur && make install, Building i3lock]
|
||||
|
||||
- link:
|
||||
~/.config/i3: gui/i3
|
||||
~/.config/i3/wallpaper.jpg: gui/wallpapers/pine_tree.jpg
|
@ -0,0 +1,7 @@
|
||||
- shell:
|
||||
- [if [ ! -e "$ZSH/oh-my-zsh.sh" ] ; then /bin/zsh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussel/oh-my-zsh/master/tools/install.sh)" ; fi;]
|
||||
|
||||
- link:
|
||||
~/.oh-my-zsh/custom:
|
||||
path: shells/oh-my-zsh/custom
|
||||
force: true
|
@ -0,0 +1,3 @@
|
||||
- link:
|
||||
~/.config/picom: gui/picom
|
||||
~/.local/bin/picom-launch.sh: bin/picom-launch.sh
|
@ -0,0 +1,3 @@
|
||||
- link:
|
||||
~/.config/polybar: gui/polybar
|
||||
~/.local/bin/polybar-launch.sh: bin/polybar-launch.sh
|
@ -0,0 +1,15 @@
|
||||
- create:
|
||||
- ~/.local/share
|
||||
- ~/.local/bin
|
||||
|
||||
- shell:
|
||||
- [cd src/tmux-mem-cpu-load && cmake . && make, Building tmux-mem-cpu-load]
|
||||
|
||||
- link:
|
||||
~/.local/bin/ssh_agent_check: bin/ssh_agent_check
|
||||
~/.local/bin/display_uptime: bin/display_uptime
|
||||
~/.local/bin/docker_check: bin/docker_check
|
||||
~/.local/bin/watertracker: src/watertracker/watertracker
|
||||
~/.local/bin/weather: src/weather/weather
|
||||
~/.local/bin/bluebikes: src/bluebikes/bluebikes
|
||||
~/.local/bin/tmux-mem-cpu-load: src/tmux-mem-cpu-load/tmux-mem-cpu-load
|
@ -0,0 +1,3 @@
|
||||
- link:
|
||||
~/.local/bin/timetracker: src/timetracker/timetracker
|
||||
~/.config/systemd/user/timesheet.service: src/timetracker/timesheet.service
|
@ -0,0 +1,3 @@
|
||||
link:
|
||||
~/.tmux.conf: terminals/tmux/tmux-full.conf
|
||||
|
@ -0,0 +1,3 @@
|
||||
link:
|
||||
~/.tmux.conf: terminals/tmux/tmux-sparse.conf
|
||||
|
@ -0,0 +1,7 @@
|
||||
- clean:
|
||||
~/.vim:
|
||||
|
||||
- link:
|
||||
~/.vim/colors: editors/vim/colors
|
||||
~/.vim/pack: editors/vim/pack
|
||||
~/.vimrc: editors/vim/vimrc
|
@ -0,0 +1,6 @@
|
||||
- shell:
|
||||
- [if [ "$SHELL" != "/bin/zsh" ] ; then chsh -s /bin/zsh; fi;]
|
||||
|
||||
- link:
|
||||
~/.zshrc: shells/zsh/zshrc
|
||||
~/.zprofile: shells/zsh/zprofile
|
@ -1 +0,0 @@
|
||||
Subproject commit e7b2bb2372c5c7060d35c0b7a710f3f01bd4593b
|
@ -0,0 +1 @@
|
||||
Subproject commit a30145b0f82d06770e924e9eac064ed223a94e6b
|
@ -1 +1 @@
|
||||
Subproject commit 0f4af384571aaf6bcf9146c345feb5c6916c6790
|
||||
Subproject commit f7447aece12f9b95133b803d5c4f71815bee8ca6
|
@ -1 +1 @@
|
||||
Subproject commit c763bfcc0a117f15e0ca08d688df2b07ee553f33
|
||||
Subproject commit b8e65a696157e1e8c407ed1f3aac768368bc4e55
|
@ -0,0 +1,51 @@
|
||||
# Improve Colors set -g default-terminal "screen-256color"
|
||||
# change keybinding to something sane
|
||||
set -g prefix M-a
|
||||
# Set scrollback buffer
|
||||
set -g history-limit 10000
|
||||
# Set display time to be longer to allow selecting
|
||||
set -g display-panes-time 5000
|
||||
# setup automatic renaming
|
||||
set -g automatic-rename on
|
||||
|
||||
#set -g default-shell $SHELL
|
||||
|
||||
# keybinds
|
||||
bind-key v select-layout even-vertical
|
||||
bind-key h select-layout even-horizontal
|
||||
|
||||
# binds path to current one
|
||||
bind-key a attach -c "#{pane_current_path}"
|
||||
|
||||
# setting up TPM
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
|
||||
# clock settings
|
||||
set -g clock-mode-colour white
|
||||
|
||||
# status config
|
||||
set -g status-interval 10
|
||||
set -g status-style "bg=black, fg=brightWhite"
|
||||
set -g status-right "#(docker_check)| #(ssh_agent_check) | #(tmux-mem-cpu-load -p -i 1 -a 1) | #(display_uptime) | %A, %b %d %l:%M %P "
|
||||
set -g status-right-length 100
|
||||
set -g status-left " #(bluebikes -pc) | #(watertracker -Scr) |"
|
||||
set -g status-left-length 100
|
||||
|
||||
# tmux auto start
|
||||
# set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
# set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
|
||||
# # ressurct config
|
||||
# set -g @continuum-save-interval 10
|
||||
# set -g @resurrect-capture-pane-contents 'on'
|
||||
# set -g @resurrect-strategy-vim 'session'
|
||||
# set -g @continuum-boot 'on'
|
||||
#set -g @continuum-systemd-start-cmd 'new-session -d -s doormat'
|
||||
|
||||
|
||||
# auto install plugins
|
||||
if "test ! -d ~/.tmux/plugins/tpm" \
|
||||
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
|
||||
# run tpm
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
@ -1 +1 @@
|
||||
Subproject commit 13fa591e82f7fe0fedbb097e9869d32f6af207fe
|
||||
Subproject commit b8607084b324ab0c98892ca20f78433904aecef5
|
Loading…
Reference in New Issue