Browse Source

chezmoi hostname update, compton -> picom

aws
Kevin Mok 4 years ago
parent
commit
00c4a42bf0
Signed by: Kevin-Mok GPG Key ID: 10B001347552F396
  1. 2
      .chezmoiignore
  2. 14
      aliases/key_aliases.tmpl
  3. 7
      aliases/key_dirs.tmpl
  4. 1
      aliases/key_files.tmpl
  5. 4
      dot_Xresources.tmpl
  6. 2
      dot_bashrc
  7. 11
      dot_config/fish/config.fish.tmpl
  8. 18
      dot_config/i3/config.tmpl
  9. 6
      dot_config/i3blocks/i3blocks-secondary.conf.tmpl
  10. 20
      dot_config/i3blocks/i3blocks.conf.tmpl
  11. 421
      dot_config/picom/picom.conf
  12. 2
      dot_config/spotify/Users/polarbier-user/prefs.tmpl
  13. 2
      dot_config/st/config.def.h.tmpl
  14. 2
      dot_xinitrc.tmpl
  15. 2
      dot_zshrc
  16. 6
      scripts/executable_ticker
  17. 2
      scripts/executable_xmodmap-custom.tmpl

2
.chezmoiignore

@ -13,6 +13,6 @@ txt/
.xinitrc
.Xresources
{{ end }}
{{ if not (eq .chezmoi.fullHostname "x1-carbon") }}
{{ if not (eq .chezmoi.hostname "x1-carbon") }}
.Xmodmap-laptop
{{ end }}

14
aliases/key_aliases.tmpl

@ -31,12 +31,12 @@ whi "whereis"
# nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'"
xr "xrandr"
{{ if eq .chezmoi.fullHostname "nzxt" }}
{{ if eq .chezmoi.hostname "nzxt" }}
xrn "xrandr --output HDMI-0 --rotate normal && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null"
xrr "xrandr --output HDMI-0 --rotate right && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null"
{{ end }}
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
xro "xrandr --output HDMI2 --off"
xrr "xrandr --output HDMI2 --auto --right-of eDP1 --scale 1.33x1.33"
xrm "xrandr --output HDMI2 --auto --same-as eDP1 --scale 1.33x1.33"
@ -166,7 +166,7 @@ ds "df -h | head -n 1 && df -h | grep sd"
chownw "sudo chown -R kevin:wheel"
chwnm "sudo chown -R kevin:wheel /run/media/{{ .chezmoi.username }}"
# cd into backup folder and show backup sizes
lbu "cd /run/media/kevin/backup-hd/{{ .chezmoi.fullHostname }}/tar && lsd -l"
lbu "cd /run/media/kevin/backup-hd/{{ .chezmoi.hostname }}/tar && lsd -l"
# ]]] directory-related #
@ -180,7 +180,7 @@ rb "tmux kill-server; systemctl reboot"
lgo "i3-msg exit"
x "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
X "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
xl "xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE"
XL "xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE"
bt "~/linux-config/dot_config/i3blocks/scripts/executable_battery"
@ -190,7 +190,7 @@ bt "~/linux-config/dot_config/i3blocks/scripts/executable_battery"
# sound [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
{{ if eq .chezmoi.hostname "nzxt" }}
vlm "alsamixer -c 0"
vlh "alsamixer -c 2"
{{ else }}
@ -209,7 +209,7 @@ vlm "alsamixer -c 1"
# pcr "sudo pacman -Rns"
# pcud "sudo pacman -Sy"
# pcug "sudo pacman -Syu"
# xpc "pacman -Qqne > ~/{{ .chezmoi.os }}-config/txt/{{ .chezmoi.fullHostname }}-pkgs.txt && pacman -Qqme > ~/{{ .chezmoi.os }}-config/txt/{{ .chezmoi.fullHostname }}-aur.txt "
# xpc "pacman -Qqne > ~/{{ .chezmoi.os }}-config/txt/{{ .chezmoi.hostname }}-pkgs.txt && pacman -Qqme > ~/{{ .chezmoi.os }}-config/txt/{{ .chezmoi.hostname }}-aur.txt "
# ]]] pacman #
@ -432,7 +432,6 @@ tabu "tmux a -t backup || tmux new -s backup"
tacf "tmux a -t config || tmux new -s config"
tacm "tmux a -t codm || tmux new -s codm"
tacr "tmux a -t crimson || tmux new -s crimson"
taf "tmux a -t fortnite || tmux new -s fortnite"
taj "tmux a -t journal || tmux new -s journal"
tarh "tmux a -t red-hat || tmux new -s red-hat"
tar2 "tmux a -t red-hat-2 || tmux new -s red-hat-2"
@ -610,6 +609,7 @@ gqs "git-quick-stats -T"
# gsl "git shortlog"
gsh "git show"
gshh "git show HEAD"
gshs "git show --stat"
# ]]] diff/log #

7
aliases/key_dirs.tmpl

@ -53,7 +53,7 @@ sw ~/.local/share/nvim/swap/
tx ~/linux-config/txt
wd ~/.config/watson
{{ if eq .chezmoi.fullHostname "nzxt" }}
{{ if eq .chezmoi.hostname "nzxt" }}
b1 ~/coding/mf-site/themes/base16
2d ~/coding/godot-demos/2d-plat
ada ~/coding/ada-mario
@ -88,7 +88,7 @@ te ~/Pictures/twitch-emotes
{{ end }}
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
adb ~/coding/ada-mario/build
adm ~/coding/ada-mario/media
adp ~/coding/ada-mario-presentation
@ -160,7 +160,7 @@ kjf ~/coding/kogito/jenkins-test/full
kl ~/coding/kogito/shared-libraries
# operator [[[ #
ko ~/go/src/github.com/kiegroup/kogito-cloud-operator
ko ~/go/src/github.com/kiegroup/kogito-operator
kor ~/go/src/github.com/kiegroup/rhpam-kogito-operator
# koc ~/go/src/github.com/kiegroup/kogito-cloud-operator/cmd/kogito/command
koc ~/coding/kogito/kogito-cloud-operator
@ -171,6 +171,7 @@ kou ~/go/src/github.com/kiegroup/kogito-cloud-operator/cmd/kogito/command/util
ko2 ~/coding/kogito/kogito-cloud-operator-2
# ]]] operator #
kob ~/coding/kogito-operator-onboarding
kot ~/coding/kogito/optaplanner
kp ~/coding/kogito/kogito-pipelines
kp2 ~/coding/kogito/kogito-pipelines-2

1
aliases/key_files.tmpl

@ -106,6 +106,7 @@ j Jenkinsfile.
jd Jenkinsfile.deploy
klg ~/coding/kogito/shared-libraries/vars/githubscm.groovy
klm ~/coding/kogito/shared-libraries/vars/maven.groovy
kob ~/coding/kogito-operator-onboarding/README.md
kpr ~/coding/kogito/kogito-pipelines/Jenkinsfile.pr-bdd-tests
krt /home/kevin/coding/kogito/kogito-runtimes/jenkins-spock-tests/src/test/vars/JenkinsfilePromote.groovy
rd ~/Documents/red-hat/dates.md

4
dot_Xresources.tmpl

@ -1,6 +1,6 @@
/* dpi [[[ */
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
! Xft.dpi: 240
Xft.dpi: 230
{{ else }}
@ -20,7 +20,7 @@ Xft.rgba: rgb
URxvt*cursorBlink: 0
URxvt*cursorBlink: False
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11
URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11.5
! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12

2
dot_bashrc

@ -204,4 +204,4 @@ fi
# Both PC/Laptop }}}
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
source ~/aliases/.key_aliases
source /home/kevin/aliases/.key_aliases

11
dot_config/fish/config.fish.tmpl

@ -18,7 +18,7 @@ set -x GPG_TTY (tty)
set -U fish_greeting
# spv[[[
{{ if eq .chezmoi.fullHostname "nzxt" }}
{{ if eq .chezmoi.hostname "nzxt" }}
set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
set -U mfs_dir "/home/kevin/coding/mf-site"
source /home/kevin/coding/spotify-lib-vis/src/scripts/api-keys-fish.sh
@ -64,7 +64,7 @@ set SPACEFISH_VI_MODE_SUFFIX ''
set -x PASSWORD_STORE_CLIP_TIME 120
set -xU XSET_RATE 90
set -xU XSET_DELAY 200
{{ if and (eq .chezmoi.fullHostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
{{ if and (eq .chezmoi.hostname "x1-carbon") (not (eq .chezmoi.username "root")) }}
xset r rate $XSET_DELAY $XSET_RATE
{{ end }}#]]]
@ -73,10 +73,10 @@ set -xU BROWSER "firefox"
set -xU FZF_DEFAULT_COMMAND "find ."
set -x PHONE_IP "192.168.0.11"
set -x WORK_LAPTOP_IP "kmok@192.168.0.12"
set -x PHONE_IP "192.168.0.12"
set -x WORK_LAPTOP_IP "kmok@192.168.0.16"
{{ if eq .chezmoi.fullHostname "nzxt" }}
{{ if eq .chezmoi.hostname "nzxt" }}
set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1)
set -x JENKINS_TOKEN 114a1b2e8693b57fa6f4bce88e2deee8cc
status --is-interactive; and source (pyenv init -|psub)
@ -209,6 +209,7 @@ abbr shrm "shred-rm"
abbr shs "scan-history"
abbr svp "server-pages"
abbr ta "tmux-attach"
abbr taf "tmux-attach fn"
abbr tao "tmux-attach obs"
abbr thes "thesaurus"
# abbr usc "us-to-cad"

18
dot_config/i3/config.tmpl

@ -6,7 +6,7 @@ set $term kitty
# set $term_alt kitty
# set $term_alt st
set $term_alt urxvt
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
exec dunst
exec compton
exec imwheel
@ -131,7 +131,7 @@ bindsym $mod+Mod4+grave exec redshift -x
# backlight [[[ #
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
bindsym Shift+F1 exec xbacklight -set 10
bindsym Shift+F2 exec xbacklight -set 20
bindsym Shift+F3 exec xbacklight -set 30
@ -200,7 +200,7 @@ for_window [class="^.*"] border pixel 3
# gaps bottom 0
gaps inner 0
gaps outer 0
{{ if eq .chezmoi.fullHostname "nzxt" }}
{{ if eq .chezmoi.hostname "nzxt" }}
# border_radius $border_radius
{{ end }}
@ -258,7 +258,7 @@ bindsym $mod+minus move workspace to output left
bindsym $mod+plus move workspace to output right
# move focused window
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
bindsym Control+Shift+h move left 50px
bindsym Control+Shift+j move down 50px
bindsym Control+Shift+k move up 50px
@ -301,7 +301,7 @@ bindsym Control+$mod+a floating enable; resize set 400px 150px; move absolute po
set $make_st_script "/home/kevin/st/make-st.sh"
# test
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
bindsym Control+Shift+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script
bindsym Control+Shift+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script
bindsym Control+$mod+z exec feh --bg-fill ~/Pictures/Backgrounds/dim/black.jpg
@ -317,10 +317,10 @@ bindsym Control+$mod+y exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Back
# ws names [[[ #
set $ws1 "1 "
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
set $secondary "HDMI2"
set $main "eDP1"
{{ else if eq .chezmoi.fullHostname "nzxt" }}
{{ else if eq .chezmoi.hostname "nzxt" }}
set $secondary "DVI-I-1"
set $main "HDMI-0"
{{ end }}
@ -555,7 +555,7 @@ set $bar_trans 00
set $main_ws_trans aa
bar {
i3bar_command i3bar -t
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
font pango:$sb_font 17
{{ else }}
# font pango:$sb_font 17
@ -585,7 +585,7 @@ bar {
bar {
output $secondary
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
font pango:$sb_font 18
{{ else }}
font pango:$sb_font 20

6
dot_config/i3blocks/i3blocks-secondary.conf.tmpl

@ -19,7 +19,7 @@ color=#cbe4ff
# sys.monitoring [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
{{ if eq .chezmoi.hostname "nzxt" }}
[temperature]
label=
interval=5
@ -67,7 +67,7 @@ interval=60
[calendar]
interval=30
label=
# {{ if eq .chezmoi.fullHostname "nzxt" }}
# {{ if eq .chezmoi.hostname "nzxt" }}
# DATEFMT=+%H:%M.%a-%m-%d
# {{ else }}
# DATEFMT=+%H:%M
@ -80,7 +80,7 @@ WIDTH=220
# ]]] time #
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
# [temperature]
# label=
# interval=5

20
dot_config/i3blocks/i3blocks.conf.tmpl

@ -20,11 +20,11 @@ color=#cbe4ff
# TICKER=PEJ
# interval=30
[ticker]
# label=DOGE 
label=🐶 
TICKER=DOGE-USD
interval=30
# [ticker]
# # label=DOGE 
# label=🐶 
# TICKER=DOGE-USD
# interval=30
[ticker]
label=ADA 
@ -50,7 +50,7 @@ interval=30
# volume/spotify [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
{{ if eq .chezmoi.hostname "nzxt" }}
[volume]
interval=once
signal=1
@ -78,7 +78,7 @@ interval=5
# laptop [[[ #
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
[battery]
label=⚡
interval=30
@ -93,7 +93,7 @@ label=
interval=5
{{ end }}
# {{ if eq .chezmoi.fullHostname "nzxt" }}
# {{ if eq .chezmoi.hostname "nzxt" }}
# [wifi]
# label=
# instance=wlp4s0
@ -107,7 +107,7 @@ interval=5
[calendar]
interval=30
label=
# {{ if eq .chezmoi.fullHostname "nzxt" }}
# {{ if eq .chezmoi.hostname "nzxt" }}
# DATEFMT=+%H:%M
# {{ else }}
# DATEFMT=+%H:%M.%a-%m-%d
@ -121,7 +121,7 @@ WIDTH=220
# sys.monitoring [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
{{ if eq .chezmoi.hostname "nzxt" }}
# [temperature]
# label=
# interval=5

421
dot_config/picom/picom.conf

@ -0,0 +1,421 @@
# 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;
# Avoid drawing shadows on dock/panel windows. This option is deprecated,
# you should use the *wintypes* option in your config file instead.
#
# no-dock-shadow = false
# Don't draw shadows on drag-and-drop windows. This option is deprecated,
# you should use the *wintypes* option in your config file instead.
#
# no-dnd-shadow = false
# 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
# Do not paint shadows on shaped windows. Note shaped windows
# here means windows setting its shape through X Shape extension.
# Those using ARGB background is beyond our control.
# Deprecated, use
# shadow-exclude = 'bounding_shaped'
# or
# shadow-exclude = 'bounding_shaped && !rounded_corners'
# instead.
#
# shadow-ignore-shaped = ''
# 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 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
# }}} shadows #
# 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 = 10
# Specify a list of conditions of windows that should not be faded.
# fade-exclude = []
# Do not fade on window open/close.
# no-fading-openclose = true
# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc.
# no-fading-destroyed-argb = false
# }}} fading #
# transparency/opacity {{{ #
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
inactive-opacity = 1
# inactive-opacity = 0.9;
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
# frame-opacity = 1.0
frame-opacity = 0.7;
# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0)
# menu-opacity = 1.0
# Let inactive opacity set by -i override the '_NET_WM_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 always 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 = []
# }}} transparency/opacity #
# bg blurring {{{ #
# Parameters for background blurring, see the *BLUR* section for more information.
# blur-method =
# blur-size = 12
#
# blur-deviation = false
# 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"
];
# }}} bg blurring #
# general {{{ #
# 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_OPACITY' on client windows, useful for window managers
# not passing '_NET_WM_OPACITY' of client windows to frame windows.
#
# detect-client-opacity = false
detect-client-opacity = true;
# Specify refresh rate of the screen. If not specified or 0, picom will
# try detecting this with X RandR extension.
#
# refresh-rate = 60
refresh-rate = 0
# Limit picom 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 =
# 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. 'WM_TRANSIENT_FOR' has higher priority if
# detect-transient is enabled, too.
#
# detect-client-leader = false
detect-client-leader = true
# 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 = false
# 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 everytime, 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.
# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
# in the source tree for examples.
#
# glx-fshader-win = ''
# 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
# 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'
# }}} general #
# window settings {{{ #
# 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.
#
# 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; }
dnd = { shadow = false; }
popup_menu = { opacity = 0.8; }
dropdown_menu = { opacity = 0.8; }
};
# }}} window settings #

2
dot_config/spotify/Users/polarbier-user/prefs.tmpl

@ -4,7 +4,7 @@ ui.track_notifications_enabled=false
ui.show_friend_feed=false
audio.play_bitrate_enumeration=4
app.player.volume=40000
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
app.browser.zoom-level=300
{{ else }}
app.browser.zoom-level=75

2
dot_config/st/config.def.h.tmpl

@ -7,7 +7,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
static char *font = "DejaVuSansMono Nerd Font Mono:pixelsize=33:antialias=true:autohint=true";
{{ else }}
static char *font = "DejaVuSansMono Nerd Font Mono:pixelsize=20:antialias=true:autohint=true";

2
dot_xinitrc.tmpl

@ -12,7 +12,7 @@ redshift -O 3000
xset r rate $XSET_DELAY $XSET_RATE
# exec /home/kevin/Downloads/dwm/reload-dwm.sh
{{ if eq .chezmoi.fullHostname "nzxt" }}
{{ if eq .chezmoi.hostname "nzxt" }}
dunst &
compton -b
imwheel &

2
dot_zshrc

@ -176,4 +176,4 @@ export GPG_TTY=$(tty)
export PASSWORD_STORE_CLIP_TIME=120
#exec fish
source ~/aliases/.key_aliases
source /home/kevin/aliases/.key_aliases

6
scripts/executable_ticker

@ -87,9 +87,9 @@ for symbol in $(IFS=' '; echo "${SYMBOLS[*]}" | tr '[:lower:]' '[:upper:]'); do
if [[ "$symbol" == "USDCAD=X" ]]; then
printf "%0.4f\n" "$price"
elif [[ "$symbol" == "BTC-USD" || "$symbol" == "ETH-USD" ]]; then
echo "$price" | cut -c 1-3
elif (( $(echo "$price > 1000" | bc -l) )); then
printf "%'0.0f\n" "$price" | cut -c 2-5
echo "$price" | cut -c 2-3
elif (( $(echo "$price > 10000" | bc -l) )); then
printf "%'0.0f\n" "$price" | cut -c 2-4
# elif (( $(echo "$price < 1" | bc -l) )); then
# printf "%0.3f\n" "$price"
else

2
scripts/executable_xmodmap-custom.tmpl

@ -3,7 +3,7 @@
DELAY=200
RATE=90
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
{{ if eq .chezmoi.hostname "x1-carbon" }}
xmodmap ~/.Xmodmap-laptop &> /dev/null
{{ else }}
xmodmap ~/.Xmodmap &> /dev/null

Loading…
Cancel
Save