diff --git a/bspwm/.config/bspwm/.amara b/bspwm/.config/bspwm/.amara deleted file mode 100644 index 1a14630..0000000 --- a/bspwm/.config/bspwm/.amara +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/zsh -# put machine dependent stuff here - - -#chromium & -#termite & -# -#bspc rule -a mupdf desktop=5 -#mupdf /home/dino/Dropbox/Bachelor\ Informatica/Openstaand/Kansrekening\ en\ Statistiek\ \(TI2216M\)\ Q1/Boeken,\ Readers,\ Dictaat/Antwoorden.pdf -#mupdf ~/Dropbox/Bachelor\ Informatica/Openstaand/TI2216M/Introduction\ to\ Probability\ and\ Statistics.pdf - -bspc rule -a Plank layer=above manage=on border=off -plank & -blueman-applet & - -feh --bg-scale ~/Pictures/wallpapers/Black_Lamborghini_Huracan2_4k.jpg - diff --git a/bspwm/.config/bspwm/.liekaliek b/bspwm/.config/bspwm/.liekaliek deleted file mode 100644 index 3b87dca..0000000 --- a/bspwm/.config/bspwm/.liekaliek +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -# put machine dependent stuff here - -pkill -x wallpaper.sh -wallpaper.sh & diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc deleted file mode 100755 index a9677ed..0000000 --- a/bspwm/.config/bspwm/bspwmrc +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/zsh - -if [ -f ~/.env ]; then - . ~/.env -fi - -eval $(setup_monitors) - -bspc config border_width $(echo "2 * $HIDPI_SCALE_FACTOR" | bc) -bspc config window_gap $(echo "24 * $HIDPI_SCALE_FACTOR" | bc) -bspc config focused_border_color "#FFFFFF" -bspc config normal_border_color "#756bb1" - -bspc config split_ratio 0.5 -bspc config borderless_monocle true -bspc config gapless_monocle true -bspc config focus_follows_pointer true - -#monintor_count=$(bspc query -M | wc -l) -#if [[ $monintor_count == 1 ]]; then -# bspc monitor -d 1 2 3 4 5 6 7 8 9 10 -#elif [[ $monintor_count == 2 ]]; then -# bspc monitor $MON0 -d 6 7 8 9 10 -# bspc monitor $MON1 -d 1 2 3 4 5 -#fi - -bspc rule -a Gimp desktop=8 follow=on state=floating -bspc rule -a Gimp-2.8:gimp-2.8 desktop=8 follow=on state=floating -bspc rule -a chromium desktop=1 follow=on -bspc rule -a Firefox desktop=1 follow=on -bspc rule -a jetbrains-pycharm desktop=3 follow=on -bspc rule -a jetbrains-phpstorm desktop=4 follow=on -bspc rule -a MPlayer state=floating -bspc rule -a Screenkey manage=off -bspc rule -a XCalc:xcalc state=floating -bspc rule -a Gtkdialog:gtkdialog state=floating - -xsetroot -cursor_name left_ptr -setsid sxhkd & - -pkill dunst -if [ "$HIDPI_SCALE_FACTOR" = "2" ]; then - dunst -geom "600x9-12+60" -fn "Droid Sans Mono 18" &! -else - dunst & -fi - -if [ -f "$HOME/.config/bspwm/.$HOST" ]; then - source "$HOME/.config/bspwm/.$HOST" -fi - -setsid panel & - -[ -f ~/.config/conky/.conkyrc.$HOST ] && conky -c ~/.config/conky/.conkyrc.$HOST & - -sleep 1 -if [[ $monintor_count == 2 || $HIDPI_SCALE_FACTOR == 1 ]]; then - stalonetray -i 24 -geometry 1x1-570+0 & -else - stalonetray & -fi - -# fix for java apps -#wmname LG3D - -# just place stalonetray above bar -sleep 1 -xdo above -t "$(xdo id -a bar)" $(xdo id -n stalonetray) & - diff --git a/compton/.config/compton.conf b/compton/.config/compton.conf deleted file mode 100644 index 8180f97..0000000 --- a/compton/.config/compton.conf +++ /dev/null @@ -1,22 +0,0 @@ -backend = "glx"; -paint-on-overlay = true; -glx-no-stencil = true; -# glx-no-rebind-pixmap = true; -vsync = "opengl-swc"; -unredir-if-possible = true; - -shadow = true; -clear-shadow = true; -no-dock-shadow = true; -shadow-radius = 10; -shadow-offset-x = -12; -shadow-offset-y = -12; -shadow-opacity = 0.3; -no-dnd-shadow = true; - -fading = true; -fade-delta = 2; -fade-in-step = 0.01; -fade-out-step = 0.01; - -shadow-exclude = ["n:w:*VirtualBox*", "class_g = 'Conky'"]; diff --git a/conky/.config/conky/.conkyrc.amara b/conky/.config/conky/.conkyrc.amara deleted file mode 100644 index 648ec06..0000000 --- a/conky/.config/conky/.conkyrc.amara +++ /dev/null @@ -1,88 +0,0 @@ --- vim: ts=4 sw=4 noet ai cindent syntax=lua ---[[ -Conky, a system monitor, based on torsmo - -Any original torsmo code is licensed under the BSD license - -All code written since the fork of torsmo is licensed under the GPL - -Please see COPYING for details - -Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen -Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) -All rights reserved. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program. If not, see . -]] - -conky.config = { - alignment = 'bottom_left', - background = false, - border_width = 1, - cpu_avg_samples = 2, - default_color = '#ffffff', - default_outline_color = 'white', - default_shade_color = 'white', - draw_borders = false, - draw_graph_borders = true, - draw_outline = false, - draw_shades = false, - use_xft = true, - font = 'Liberation Mono:size=10', - gap_x = 60, - gap_y = 40, - minimum_height = 5, - minimum_width = 5, - net_avg_samples = 2, - no_buffers = true, - out_to_console = false, - out_to_stderr = false, - extra_newline = false, - own_window = true, - own_window_class = 'Conky', - own_window_type = 'desktop', - own_window_transparent = true, - own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', - own_window_argb_visual = true, - own_window_argb_value = 255, - stippled_borders = 0, - update_interval = 5.0, - uppercase = false, - use_spacer = 'left', - pad_percents = 2, - show_graph_scale = false, - show_graph_range = false, - double_buffer = true -} - -conky.text = [[ -$nodename - $kernel - -${color}Uptime:$color $uptime -Updates available: ${execi 3600 checkupdates | wc -l} - -CPU: $color ${cpubar cpu0 10,430} $cpu% -RAM: $color ${membar 10,430} $memperc% - -${color}Disk Space:${font} - / $color${fs_used /} ${fs_bar 10,300 /} ${fs_free /} - -${color}Networking:${font} -Internal IP:$color ${addr wlp7s0} -External IP:$color ${execi 3600 wget -O - http://dinohensen.nl/echoip.php} - -Up: $color ${upspeedgraph wlp7s0 20,430 66ffff 6600ff -l -t} ${upspeed wlp7s0} -Down:$color ${downspeedgraph wlp7s0 20,430 -l} ${downspeed wlp7s0} -Total-up: ${totalup wlp7s0} -Total-down: ${totaldown wlp7s0} -]] diff --git a/conky/.config/conky/.conkyrc.emilia b/conky/.config/conky/.conkyrc.emilia deleted file mode 100644 index b53155e..0000000 --- a/conky/.config/conky/.conkyrc.emilia +++ /dev/null @@ -1,100 +0,0 @@ --- vim: ts=4 sw=4 noet ai cindent syntax=lua ---[[ -Conky, a system monitor, based on torsmo - -Any original torsmo code is licensed under the BSD license - -All code written since the fork of torsmo is licensed under the GPL - -Please see COPYING for details - -Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen -Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) -All rights reserved. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program. If not, see . -]] - -conky.config = { - alignment = 'bottom_left', - background = false, - border_width = 0, - cpu_avg_samples = 2, - default_color = 'white', - default_outline_color = 'white', - default_shade_color = 'white', - draw_borders = false, - draw_graph_borders = true, - draw_outline = false, - draw_shades = false, - use_xft = true, - font = 'Roboto Mono:size=8', - gap_x = 30, - gap_y = 120, - minimum_height = 5, - minimum_width = 5, - net_avg_samples = 2, - no_buffers = true, - out_to_console = false, - out_to_stderr = false, - extra_newline = false, - own_window = true, - own_window_class = 'Conky', - own_window_type = 'desktop', - own_window_transparent = true, - own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', - own_window_argb_visual = true, - own_window_argb_value = 255, - stippled_borders = 0, - update_interval = 2.0, - uppercase = false, - use_spacer = 'none', - show_graph_scale = false, - show_graph_range = false, - double_buffer = true -} - -conky.text = [[ -$nodename - $sysname $kernel on $machine - -${color}Uptime:$color $uptime -${color}CPU 1:$color ${freq_g 1} GHz | ${color}CPU 2:$color ${freq_g 2} GHz -${color}CPU 3:$color ${freq_g 3} GHz | ${color}CPU 4:$color ${freq_g 4} GHz - -${color}CPU Usage:$color $cpu% -${cpubar cpu0 18} -${color}RAM Usage:$color $mem/$memmax - $memperc% -${membar 18} - -${color}${font Roboto Mono:style=Bold:size=9}File systems:${font} - / $color${fs_used /}/${fs_size /} ${fs_bar 18 /} - /home $color${fs_used /home}/${fs_size /home} ${fs_bar 18 /home} - /data $color${fs_used /data}/${fs_size /data} ${fs_bar 18 /data} - -${color}${font Roboto Mono:style=Bold:size=9}Networking:${font} -Internal IP:$color ${addr wlp2s0} -External IP:$color ${execi 3600 wget -O - http://dinohensen.nl/echoip.php} -Up:$color ${upspeed wlp2s0} ${color} - Down:$color ${downspeed wlp2s0} - -${color}Processes:$color $processes ${color}Running:$color $running_processes - -${color}Name PID CPU% MEM% -${color} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} -${color} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} -${color} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} -${color} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} -${color} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5} -${color} ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6} -${color} ${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7} - -]] diff --git a/conky/.config/conky/.conkyrc.liekaliek b/conky/.config/conky/.conkyrc.liekaliek deleted file mode 100644 index 367bc56..0000000 --- a/conky/.config/conky/.conkyrc.liekaliek +++ /dev/null @@ -1,86 +0,0 @@ --- vim: ts=4 sw=4 noet ai cindent syntax=lua ---[[ -Conky, a system monitor, based on torsmo - -Any original torsmo code is licensed under the BSD license - -All code written since the fork of torsmo is licensed under the GPL - -Please see COPYING for details - -Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen -Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) -All rights reserved. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program. If not, see . -]] - -conky.config = { - alignment = 'top_right', - background = false, - border_width = 0, - cpu_avg_samples = 2, - default_color = '#9999aa', - default_outline_color = 'white', - default_shade_color = 'white', - draw_borders = false, - draw_graph_borders = true, - draw_outline = false, - draw_shades = false, - use_xft = true, - font = 'Terminus:size=10', - gap_x = 20, - gap_y = 40, - minimum_height = 5, - minimum_width = 5, - net_avg_samples = 2, - no_buffers = true, - out_to_console = false, - out_to_stderr = false, - extra_newline = false, - own_window = true, - own_window_class = 'Conky', - own_window_type = 'desktop', - own_window_transparent = true, - own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', - own_window_argb_visual = true, - own_window_argb_value = 255, - stippled_borders = 0, - update_interval = 1.0, - uppercase = false, - use_spacer = 'none', - show_graph_scale = false, - show_graph_range = false, - double_buffer = true -} - -conky.text = [[ -$nodename - $kernel -${color}Uptime:$color $uptime - -${cpugraph cpu1 ccccff ff0000 -t} -${cpugraph cpu2 333366 ff0000 -t} -${cpugraph cpu3 9999cc ff0000 -t} -${cpugraph cpu4 ffffff ff0000 -t} - -${color}RAM Usage:$color $mem/$memmax - $memperc% -${membar 10} - -${color}${font Roboto Mono:style=Bold:size=9}File systems:${font} - / $color${fs_used /}/${fs_size /} ${fs_bar 10 /} - -${color}${font Roboto Mono:style=Bold:size=9}Networking:${font} -Internal IP:$color ${addr wlp2s0} -External IP:$color ${execi 3600 wget -O - https://www.dinohensen.nl/echoip.php} -Up:$color ${upspeed wlp2s0} ${color} - Down:$color ${downspeed wlp2s0} -]] diff --git a/conky/.config/conky/conkyrc.dailyscripture b/conky/.config/conky/conkyrc.dailyscripture deleted file mode 100644 index c85daf4..0000000 --- a/conky/.config/conky/conkyrc.dailyscripture +++ /dev/null @@ -1,70 +0,0 @@ --- vim: ts=4 sw=4 noet ai cindent syntax=lua ---[[ -Conky, a system monitor, based on torsmo - -Any original torsmo code is licensed under the BSD license - -All code written since the fork of torsmo is licensed under the GPL - -Please see COPYING for details - -Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen -Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) -All rights reserved. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program. If not, see . -]] - -conky.config = { - alignment = 'middle_middle', - background = false, - border_width = 0, - cpu_avg_samples = 2, - default_color = 'white', - default_outline_color = 'white', - default_shade_color = 'white', - draw_borders = false, - draw_graph_borders = true, - draw_outline = false, - draw_shades = false, - use_xft = true, - font = 'Ubuntu Light:size=14', - gap_x = 0, - gap_y = 0, - minimum_height = 5, - minimum_width = 5, - net_avg_samples = 2, - no_buffers = true, - out_to_console = false, - out_to_stderr = false, - extra_newline = false, - own_window = true, - own_window_class = 'Conky', - own_window_type = 'desktop', - own_window_transparent = true, - own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', - own_window_argb_visual = true, - own_window_argb_value = 255, - stippled_borders = 0, - update_interval = 2.0, - uppercase = false, - use_spacer = 'none', - show_graph_scale = false, - show_graph_range = false, - double_buffer = true -} - -conky.text = [[ -${execi 3600 daily_scripture | fmt -w 60 -g 60} -]] - diff --git a/dependencies b/dependencies deleted file mode 100644 index bb07c34..0000000 --- a/dependencies +++ /dev/null @@ -1,35 +0,0 @@ -stow -bspwm -sxhkd -dunst -stalonetray -lemonbar-xft-git -xtitle-git -sutils-git -termite -dmenu -jq -ttf-roboto-mono-ibx -ttf-font-awesome -xorg-server -xorg-xset -xorg-xsetroot -xorg-xinit -autojump -bc -alsa-utils -xorg-xrandr -feh -conky -wget -compton-git -cmake -clang -libnotify -zsh -redshift -gtkdialog -mpc -mygtkmenu -xbindkeys -xvkbd diff --git a/dunst/.config/dunst/dunstrc b/dunst/.config/dunst/dunstrc deleted file mode 100644 index 018f0e5..0000000 --- a/dunst/.config/dunst/dunstrc +++ /dev/null @@ -1,245 +0,0 @@ -[global] - font = Droid Sans Mono 8 - - # Allow a small subset of html markup: - # bold - # italic - # strikethrough - # underline - # - # For a complete reference see - # . - # If markup is not allowed, those tags will be stripped out of the - # message. - allow_markup = yes - - # The format of the message. Possible variables are: - # %a appname - # %s summary - # %b body - # %i iconname (including its path) - # %I iconname (without its path) - # %p progress value if set ([ 0%] to [100%]) or nothing - # Markup is allowed - format = "%s\n%b" - - # Sort messages by urgency. - sort = yes - - # Show how many messages are currently hidden (because of geometry). - indicate_hidden = yes - - # Alignment of message text. - # Possible values are "left", "center" and "right". - alignment = left - - # The frequency with wich text that is longer than the notification - # window allows bounces back and forth. - # This option conflicts with "word_wrap". - # Set to 0 to disable. - bounce_freq = 0 - - # 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 - - - # The geometry of the window: - # [{width}]x{height}[+/-{x}+/-{y}] - # The geometry of the message window. - # The height is measured in number of notifications everything else - # in pixels. If the width is omitted but the height is given - # ("-geometry x2"), the message window expands over the whole screen - # (dmenu-like). If width is 0, the window expands to the longest - # message displayed. A positive x is measured from the left, a - # negative from the right side of the screen. Y is measured from - # the top and down respectevly. - # The width can be negative. In this case the actual width is the - # screen width minus the width defined in within the geometry option. - geometry = "300x9-10+30" - - # Shrink window if it's smaller than the width. Will be ignored if - # width is 0. - shrink = yes - - # The transparency of the window. Range: [0; 100]. - # This option will only work if a compositing windowmanager is - # present (e.g. xcompmgr, compiz, etc.). - transparency = 0 - - # 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 - - # Which monitor should the notifications be displayed on. - monitor = 0 - - # Display notification on focused monitor. Possible modes are: - # mouse: follow mouse pointer - # keyboard: follow window with keyboard focus - # none: don't follow anything - # - # "keyboard" needs a windowmanager that exports the - # _NET_ACTIVE_WINDOW property. - # This should be the case for almost all modern windowmanagers. - # - # If this option is set to mouse or keyboard, the monitor option - # will be ignored. - follow = mouse - - # Should a notification popped up from history be sticky or timeout - # as if it would normally do. - sticky_history = yes - - # Maximum amount of notifications kept in history - history_length = 20 - - # Display indicators for URLs (U) and actions (A). - show_indicators = yes - - # The height of a single line. If the height is smaller than the - # font height, it will get raised to the font height. - # This adds empty space above and under the text. - line_height = 0 - - # Draw a line of "separatpr_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 - - # 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 - - # Print a notification on startup. - # This is mainly for error detection, since dbus (re-)starts dunst - # automatically after a crash. - startup_notification = false - - # dmenu path. - dmenu = /usr/bin/dmenu -p dunst: - - # Browser for opening urls in context menu. - browser = /usr/bin/firefox -new-tab - - # Align icons left/right/off - icon_position = off - - # Paths to default icons. - icon_folders = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ - -[frame] - width = 3 - color = "#aaaaaa" - -[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 = ctrl+space - - # Close all notifications. - close_all = ctrl+shift+space - - # Redisplay last message(s). - # On the US keyboard layout "grave" is normally above TAB and left - # of "1". - history = ctrl+grave - - # Context menu. - context = ctrl+shift+period - -[urgency_low] - # IMPORTANT: colors have to be defined in quotation marks. - # Otherwise the "#" and following would be interpreted as a comment. - background = "#222222" - foreground = "#888888" - timeout = 10 - -[urgency_normal] - background = "#285577" - foreground = "#ffffff" - timeout = 10 - -[urgency_critical] - background = "#900000" - foreground = "#ffffff" - timeout = 0 - - -# Every section that isn't one of the above is interpreted as a rules to -# override settings for certain messages. -# Messages can be matched by "appname", "summary", "body", "icon", "category", -# "msg_urgency" and you can override the "timeout", "urgency", "foreground", -# "background", "new_icon" and "format". -# Shell-like globbing will get expanded. -# -# SCRIPTING -# You can specify a script that gets run when the rule matches by -# setting the "script" option. -# The script will be called as follows: -# script appname summary body icon urgency -# where urgency can be "LOW", "NORMAL" or "CRITICAL". -# -# NOTE: if you don't want a notification to be displayed, set the format -# to "". -# NOTE: It might be helpful to run dunst -print in a terminal in order -# to find fitting options for rules. - -#[espeak] -# summary = "*" -# script = dunst_espeak.sh - -#[script-test] -# summary = "*script*" -# script = dunst_test.sh - -#[ignore] -# # This notification will not be displayed -# summary = "foobar" -# format = "" - -#[signed_on] -# appname = Pidgin -# summary = "*signed on*" -# urgency = low -# -#[signed_off] -# appname = Pidgin -# summary = *signed off* -# urgency = low -# -#[says] -# appname = Pidgin -# summary = *says* -# urgency = critical -# -#[twitter] -# appname = Pidgin -# summary = *twitter.com* -# urgency = normal -# -# vim: ft=cfg diff --git a/icm/.W2486L.icm b/icm/.W2486L.icm deleted file mode 100755 index 42e574e..0000000 Binary files a/icm/.W2486L.icm and /dev/null differ diff --git a/install.sh b/install.sh index 7933303..d77d190 100755 --- a/install.sh +++ b/install.sh @@ -2,8 +2,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -# first install some deps -pacaur -S --needed --noconfirm $(cat $DIR/dependencies) # using stow to deploy dotfiles stow */ -t "$HOME" @@ -16,9 +14,6 @@ stow */ -t "$HOME" # TODO install Padawan server -if [ -n "$DISPLAY" ]; then - xrdb -merge ~/.Xresources -fi vim +PluginInstall +qall diff --git a/misc/.local/share/applications/feh_browser.desktop b/misc/.local/share/applications/feh_browser.desktop deleted file mode 100644 index 6dbd467..0000000 --- a/misc/.local/share/applications/feh_browser.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Type=Application -Name=feh_browser -Exec=feh_browser %f --scale-down -Categories=Other; -MimeType=image/jpeg;image/png -Terminal=false diff --git a/msmtp/.msmtp-gmail.gpg b/msmtp/.msmtp-gmail.gpg deleted file mode 100644 index 6d2d125..0000000 Binary files a/msmtp/.msmtp-gmail.gpg and /dev/null differ diff --git a/msmtp/.msmtprc b/msmtp/.msmtprc deleted file mode 100644 index d38f4f5..0000000 --- a/msmtp/.msmtprc +++ /dev/null @@ -1,19 +0,0 @@ -# Set default values for all following accounts. -defaults -auth on -tls on -tls_starttls on -tls_trust_file /etc/ssl/certs/ca-certificates.crt -logfile ~/.msmtp.log - -# Gmail -account gmail -host smtp.gmail.com -port 587 -from dino.hensen@gmail.com -user dino.hensen@gmail.com -password -passwordeval "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.msmtp-gmail.gpg" - -# Set a default account -account default : gmail diff --git a/scripts/bin/addsite b/scripts/bin/addsite new file mode 100755 index 0000000..a12cc36 --- /dev/null +++ b/scripts/bin/addsite @@ -0,0 +1,55 @@ +#!/bin/bash + +SITENAME=$1 +SITE_DIR="/var/www/$1" +DATE_TODAY=$(date "+%Y-%m-%d") +echo "Adding site $1" + +if [ -d $SITE_DIR ]; then + echo "site $1 already exists" + exit +fi + +sudo mkdir $SITE_DIR +sudo chown dhensen:www-data $SITE_DIR + +LATEST_WORDPRESS="/home/dhensen/wordpress-${DATE_TODAY}.tar.gz" + +if [ ! -f "$LATEST_WORDPRESS" ]; then + echo "downloading latest wp" + wget -O "$LATEST_WORDPRESS" https://wordpress.org/latest.tar.gz +fi + +tar xf $LATEST_WORDPRESS -C $SITE_DIR +mv $SITE_DIR/wordpress $SITE_DIR/public_html +sudo chown -R dhensen:wordpress $SITE_DIR/public_html + +sudo find $SITE_DIR/public_html -type f -exec chmod 664 {} + +sudo find $SITE_DIR/public_html -type d -exec chmod 775 {} + +#sudo chmod 660 $SITE_DIR/public_html/wp-config.php + +# mysql username max 16 characters long +USERNAME=$(echo ${SITENAME:0:16}) +PASSWORD=$(date +%s | sha256sum | base64 | head -c 16 ; echo) +DATABASE_NAME=$(echo ${SITENAME:0:64}) + +echo "About to enter your mysql root passsword..." + +echo "CREATE USER '$USERNAME'@'%' IDENTIFIED BY '$PASSWORD';" \ + "GRANT USAGE ON *.* TO '$USERNAME'@'%' IDENTIFIED BY '$PASSWORD' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;" \ + "CREATE DATABASE IF NOT EXISTS \`$DATABASE_NAME\`;" \ + "GRANT ALL PRIVILEGES ON \`$DATABASE_NAME\`.* TO '$USERNAME'@'%';" \ + | mysql -uroot -p + +echo "------------------------" +echo "user: $USERNAME" +echo "password: $PASSWORD" +echo "database: $DATABASE_NAME" +echo "------------------------" + +cat $SITE_DIR/public_html/wp-config-sample.php | sed "s/database_name_here/$DATABASE_NAME/g" \ + | sed "s/username_here/$USERNAME/g" | sed "s/password_here/$PASSWORD/g" > $SITE_DIR/public_html/wp-config.php + +sudo sh -c "sed 's/SITENAME/$SITENAME/' /home/dhensen/template-site.conf > /etc/apache2/sites-available/${SITENAME}.conf" +sudo a2ensite $SITENAME +sudo service apache2 reload diff --git a/scripts/bin/cert_renewal.py b/scripts/bin/cert_renewal.py new file mode 100755 index 0000000..d2b75b4 --- /dev/null +++ b/scripts/bin/cert_renewal.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 + +import configparser + +config = configparser.ConfigParser() +config.read('/home/dhensen/cert_enabled_sites.ini') + +def _format_domain_entry(domain): + return ['-d', domain] + +commands = [] +for section in config.sections(): + command = ['sudo', 'certbot', '--apache', '--redirect'] + for domain in config[section].values(): + command = command + _format_domain_entry(domain) + + commands.append(command) + +print(" && ".join(map(lambda cmd: " ".join(cmd), commands))) diff --git a/stalonetray/.stalonetrayrc b/stalonetray/.stalonetrayrc deleted file mode 100644 index 5c4237a..0000000 --- a/stalonetray/.stalonetrayrc +++ /dev/null @@ -1,137 +0,0 @@ -# vim:filetype=config:tw=80:et -# -# This is sample ~/.stalonetrayrc, resembling default configuration. -# Remember: command line parameters take precedence. -# -# Directives introduced in 0.8 are marked with "NEW in 0.8" -# -#################################################################### -# -# stalonetray understands following directives -# -#################################################################### - -# background # color can be specified as an HTML hex triplet or - # as a name from rgb.txt, note that '#' must be quoted -background "#000000" - -# decorations # set trays window decorations; possible values for - # decspec are: all, title, border, none -decorations none - -# display # as usual - -# dockapp_mode # set dockapp mode, which can be either simple (for - # e.g. OpenBox, wmaker for WindowMaker, or none - # (default). NEW in 0.8. -dockapp_mode simple - -# fuzzy_edges [] # enable fuzzy edges and set fuzziness level. level - # can be from 0 (disabled) to 3; this setting works - # with tinting and/or transparent and/or pixmap - # backgrounds -fuzzy_edges 3 - -# geometry # tray's geometry in standard X notation; width and - # height are specified in slot_size multiples -geometry 1x1-1080+0 # bar_height: 48px, icon_size: 40px, padding: 4px - -# grow_gravity # one of N, S, E, W, NW, NE, SW, SE; tray will grow - # in the direction opposite to one specified by - # grow_gravity; if horizontal or vertical - # direction is not specified, tray will not grow in - # that direction -grow_gravity E - -# icon_gravity # icon placement gravity, one of NW, NE, SW, SE -icon_gravity NE - -# icon_size # specifies dimensions of typical icon slot -icon_size 48 - -# log_level # controls the amount of logging output, level can - # be err (default), info, or trace (enabled only - # when stalonetray configured with --enable-debug) - # NEW in 0.8. -log_level err - -# kludges kludge[,kludge] # enable specific kludges to work around - # non-conforming WMs and/or stalonetray bugs. - # NEW in 0.8. Argument is a - # comma-separated list of - # * fix_window_pos - fix tray window position on - # erroneous moves by WM - # * force_icons_size - ignore resize events on all - # icons; force their size to be equal to - # icon_size - # * use_icon_hints - use icon window hints to - # dtermine icon size - -# max_geometry # maximal tray dimensions; 0 in width/height means - # no limit -max_geometry 10x1 - -# no_shrink [] # disables shrink-back mode -no_shrink false - -# parent_bg [] # whether to use pseudo-transparency - # (looks better when reparented into smth like FvwmButtons) -parent_bg true - -# pixmap_bg # use pixmap from specified xpm file for (tiled) background -# pixmap_bg /home/user/.stalonetraybg.xpm - -# scrollbars # enable/disable scrollbars; mode is either - # vertical, horizontal, all or none (default) - # NEW in 0.8. -scrollbars none - -# scrollbars-size # scrollbars step in pixels; default is slot_size / 4 -# scrollbars-step 8 - -# scrollbars-step # scrollbars step in pixels; default is slot_size / 2 -# scrollbars-step 32 - -# slot_size # specifies size of icon slot, defaults to - # icon_size NEW in 0.8. - -# skip_taskbar [] # hide tray`s window from the taskbar -skip_taskbar true - -# sticky [] # make a tray`s window sticky across the - # desktops/pages -sticky true - -# tint_color # set tinting color -tint_color white - -# tint_level # set tinting level; level ranges from 0 (disabled) - # to 255 -tint_level 0 - -# transparent [] # whether to use root-transparency (background - # image must be set with Esetroot or compatible utility) -transparent false - -# vertical [] # whether to use vertical layout (horisontal layout - # is used by default) -vertical false - -# window_layer # set the EWMH-compatible window layer; one of: - # bottom, normal, top -window_layer top - -# window_strut # enable/disable window struts for tray window (to - # avoid converting of tray window by maximized - # windows); mode defines to which screen border tray - # will be attached; it can be either top, bottom, - # left, right, none or auto (default) -window_strut auto - -# window_type # set the EWMH-compatible window type; one of: - # desktop, dock, normal, toolbar, utility -window_type dock - -# xsync [] # whether to operate on X server synchronously (SLOOOOW) -xsync false - diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc deleted file mode 100644 index dfd8500..0000000 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ /dev/null @@ -1,146 +0,0 @@ -# -# bspwm hotkeys -# - -# Quit BSPWM -super + alt + Escape - prompt_signout -# pkill panel; \ -# bspc quit - -# Close the selected windows -super + {_,shift + }w - bspc node -{c,k} - -# Cycle the layout of the selected desktop (monocle,tiled) -super + m - bspc desktop -l next - -# Adjust split ratios of the tree of the selected desktop so that all windows occupy same area -super + b - bspc node @focused:/ -B - -# Toggle the state for the selected window -super + {t,shift + t,s,f} - bspc node -t '~{tiled,pseudo_tiled,floating,fullscreen}' - -# set the node flags -super + ctrl + {x,y,z} - bspc node -g {locked,sticky,private} - -# Focus on the last window or desktop -super + {grave,Tab} - bspc {node,desktop} -f last - -# Swap the last window to the given window -super + apostrophe - bspc node -s last - -# Select older or newer window than the focused on in history, without overwriting history -super + {o,i} - bspc wm -h off; \ - bspc node {older,newer} -f; \ - bspc wm -h on - -# Transplant the selected window to the given window -super + y - bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused - -# Swap the biggest window with the given window -super + g - bspc node -s biggest - -# Focus/Swap the selected or given window left,down,up,right -super + {_,shift + }{h,j,k,l} - bspc node -{f,s} {west,south,north,east} - -# focus the node for the given path jump -super + shift + {p,b,comma,period} - bspc node -f @{parent,brother,first,second} - -# Focus next or previous window on the current desktop (super+c, super+shift+c) -super + {_,shift + }c - bspc node -f {next,prev}.local - -# Circulate the leaves of the tree backward or forward -super + {comma,period} - bspc node @focused:/ -C {backward,forward} - -# Focus previous or next desktop -super + bracket{left,right} - bspc desktop -f {prev,next} - -# Preselect the splitting area of the selected windows -super + ctrl + {h,j,k,l} - bspc node -p {west,south,north,east} - -# cancel the preselection for the focused node -super + ctrl + space - bspc node -p cancel - -# cancel the preselection for the focused desktop -super + ctrl + shift + space - bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel - -# Set or change the splitting ratio of the selected edge of the current window in the given direction -super + alt + {h,j,k,l} - bspc node @{west -r -10,south -r +10,north -r -10,east -r +10} - -# Set or change the splitting ratio of the selected edge of the current window in the given direction -super + alt + shift + {h,j,k,l} - bspc node @{east -r -10,north -r +10,south -r -10,west -r +10} - -# Set splitting ratio -super + ctrl + {1-9} - bspc node -o 0.{1-9} - -# Focus the selected desktop/Send window to desktop -super + {_,shift + }{1-9,0} - bspc {desktop -f,node -d} '{1-9,10}' - #bspc {desktop -f,node -d} '^{1-9,10}' # desktop order of occurence from left to right - -# Increase or decrease window_gap -super + {minus,equal} - adjust_gap {-,+} - -# -# wm independent hotkeys -# - -# Spawn terminal -super + Return - termite - -# Dmenu -super + space - dmenu_launcher - - -# Volume -XF86Audio{RaiseVolume,LowerVolume,Mute} - volumectl {up 2, down 2, toggle-mute}; \ - panel_volume - -# Music Controls -XF86Audio{Next,Play,Prev} - mpc {next,toggle,prev} - -# Brightness -XF86MonBrightness{Up,Down} - light -{A,U} 5% - -# Internet -XF86HomePage - chromium google.com - -# Calculator -XF86Calculator - gnome-calculator - -# make sxhkd reload its configuration files: -super + Escape - pkill -USR1 -x sxhkd - -# start all applications -~asciitilde; r; u; n - start_all diff --git a/termite/.config/termite/config b/termite/.config/termite/config deleted file mode 100644 index c60cb7c..0000000 --- a/termite/.config/termite/config +++ /dev/null @@ -1,88 +0,0 @@ -[options] -scroll_on_output = false -scroll_on_keystroke = true -audible_bell = false -mouse_autohide = false -allow_bold = true -dynamic_title = true -urgent_on_bell = true -clickable_url = true -font = Roboto Mono 12 -scrollback_lines = 10000 -search_wrap = true -#icon_name = terminal -#geometry = 640x480 - -# "system", "on" or "off" -cursor_blink = off - -# "block", "underline" or "ibeam" -cursor_shape = block - -# $BROWSER is used by default if set, with xdg-open as a fallback -#browser = xdg-open - -# set size hints for the window -#size_hints = false - -# Hide links that are no longer valid in url select overlay mode -filter_unmatched_urls = true - -# emit escape sequences for other keys modified by Control -#modify_other_keys = false - -[colors] -cursor = #daba8b -foreground = #daba8b -foreground_bold = #ffffff -#background = rgba(51, 51, 51, 0.97) -background = #111111 - -# if unset, will reverse foreground and background -#highlight = #000000 - -# black -color0 = #0c0d0e -color8 = #737475 - -# red -color1 = #e31a1c -color9 = #e31a1c - -# green -color2 = #31a354 -color10 = #31a354 - -# yellow -color3 = #dca060 -color11 = #dca060 - -# blue -color4 = #3182bd -color12 = #3182bd - -# magenta -color5 = #756bb1 -color13 = #756bb1 - -# cyan -color6 = #80b1d3 -color14 = #80b1d3 - -# white -color7 = #b7b8b9 -color15 = #fcfdfe - -[hints] -#font = Monospace 12 -#foreground = #dcdccc -#background = #3f3f3f -#active_foreground = #e68080 -#active_background = #3f3f3f -#padding = 2 -#border = #3f3f3f -#border_width = 0.5 -#roundness = 2.0 - -# vim: ft=dosini cms=#%s - diff --git a/wallpapers/Pictures/wallpapers/wallhaven-246428.png b/wallpapers/Pictures/wallpapers/wallhaven-246428.png deleted file mode 100644 index 6e183f2..0000000 Binary files a/wallpapers/Pictures/wallpapers/wallhaven-246428.png and /dev/null differ diff --git a/xfiles/.Xresources b/xfiles/.Xresources deleted file mode 100644 index 6c632a6..0000000 --- a/xfiles/.Xresources +++ /dev/null @@ -1,52 +0,0 @@ -! vim: set filetype=xdefaults : - -! see /etc/X11/xinit/xinitrc.d/xft-settings.sh -!Xft.dpi: 192 -!Xft.autohint: 0 -!Xft.lcdfilter: lcddefault -!Xft.hintstyle: hintfull -!Xft.hinting: 1 -!Xft.antialias: 1 -!Xft.rgba: rgb - -*.foreground: #daba8b -*.background: #333333 - -!black -*.color0: #0c0d0e -*.color8: #737475 -!red -*.color1: #e31a1c -*.color9: #e31a1c -!green -*.color2: #31a354 -*.color10: #31a354 -!yellow -*.color3: #dca060 -*.color11: #dca060 -!blue -*.color4: #3182bd -*.color12: #3182bd -!magenta -*.color5: #756bb1 -*.color13: #756bb1 -!cyan -*.color6: #80b1d3 -*.color14: #80b1d3 -!white -*.color7: #b7b8b9 -*.color15: #fcfdfe - -URxvt*borderColor: [90]#333333 -URxvt*colorBD: #daba8b -URxvt*cursorColor: #ff8939 -URxvt*cursorColor2: #151515 -URxvt.scrollBar: false - -URxvt.font: xft:Terminus:size=12 -URxvt.boldFont: xft:Terminus:size=12:style=Bold -URxvt.italicFont: xft:Terminus:size=12 -URxvt.bolditalicFont: xft:Terminus:size=12 - -URxvt.depth: 32 -URxvt.background: [90]#333333 diff --git a/xfiles/.Xresources.standing b/xfiles/.Xresources.standing deleted file mode 100644 index 055dd9a..0000000 --- a/xfiles/.Xresources.standing +++ /dev/null @@ -1,8 +0,0 @@ -Xft.dpi: 96 -Xft.autohint: 0 -Xft.lcdfilter: lcddefault -Xft.hintstyle: hintfull -Xft.hinting: 1 -Xft.antialias: 1 -Xft.rgba: rgb - diff --git a/xfiles/.xbindkeysrc b/xfiles/.xbindkeysrc deleted file mode 100644 index b089c69..0000000 --- a/xfiles/.xbindkeysrc +++ /dev/null @@ -1,5 +0,0 @@ -# Sample .xbindkeysrc for a G9x mouse. -"/usr/bin/xvkbd -text '\[Alt_L]\[Left]'" - b:8 -"/usr/bin/xvkbd -text '\[Alt_L]\[Right]'" - b:9 diff --git a/xfiles/.xinitrc b/xfiles/.xinitrc deleted file mode 100644 index 0b84a0e..0000000 --- a/xfiles/.xinitrc +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -userresources=$HOME/.Xresources -usermodmap=$HOME/.Xmodmap -sysresources=/etc/X11/xinit/.Xresources -sysmodmap=/etc/X11/xinit/.Xmodmap - -# merge in defaults and keymaps - -if [ -f $sysresources ]; then - xrdb -merge $sysresources -fi - -if [ -f $sysmodmap ]; then - xmodmap $sysmodmap -fi - -if [ -f "$userresources" ]; then - xrdb -merge "$userresources" -fi - -if [ -f "$usermodmap" ]; then - xmodmap "$usermodmap" -fi - -# start some nice programs - -if [ -d /etc/X11/xinit/xinitrc.d ] ; then - for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do - [ -x "$f" ] && . "$f" - done - unset f -fi - -xsetroot -cursor_name left_ptr -# toggle between us and us+alt-intl (deadkeys) with shift+toggle -setxkbmap -layout us,us -variant ,alt-intl -option grp:shifts_toggle -xset r rate 220 30 -eval $(ssh-agent) -redshift -m randr -r -l 52.0685:4.5094 -t 5700:3000 & -compton --config ~/.config/compton.conf -CGb -#conky & -[ ! -s ~/.config/mpd/pid ] && mpd -~/log_acpi - -monitor_count=$(xrandr | grep -c " connected") -if [ $monitor_count == 2 ]; then - # Upscale HDMI1 -# xrandr --output HDMI1 --scale 2x2 --mode 1920x1080 --fb 7680x2160 --pos 0x0 --left-of eDP1 -# xrandr --output eDP1 --scale 1x1 --pos 3840x0 - - # Downscale eDP1, because the 7680x2160 is too much for the integrated GPU - xrandr --output HDMI1 --scale 1x1 --mode 1920x1080 --fb 3840x1080 --pos 0x0 --left-of eDP1 - xrandr --output eDP1 --scale 0.5x0.5 --pos 1920x0 - xrdb -merge ./.Xresources.standing -else - xrandr --dpi 192 -fi - -export HIDPI_SCALE_FACTOR=$(echo "$(xrdb -query | grep dpi | grep -o '[0-9]*') / 96" | bc) - -exec bspwm diff --git a/xfiles/.xprofile b/xfiles/.xprofile deleted file mode 100644 index 13494e2..0000000 --- a/xfiles/.xprofile +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -export PATH="/home/dino/bin:$PATH" - -xset r rate 220 30 -if [ "$GDMSESSION" = "bspwm" ]; then - # keyboard - setxkbmap -layout us,us -variant ,alt-intl -option grp:shifts_toggle - xbindkeys & - - # mouse - xsetroot -cursor_name left_ptr - - # other programs - eval $(ssh-agent) - redshift -m randr -r -l 52.0685:4.5094 -t 5700:2700 & - - [ ! -s ~/.config/mpd/pid ] && mpd - - # compositor - compton --config ~/.config/compton.conf -CG & - - # swap 8 and 9 so that back and forward buttons are the way I like it - if [ -n $(lsusb | grep -o '09da:9066') ]; then - xmodmap -e 'pointer = 1 2 3 4 5 6 7 9 8 10 11 12' & - fi - # todo: run only when using that trust mouse - - (sleep 5 && journalctl -S "$(date "+%F %T")" --no-pager -f -u earlyoom.service | notifier "EarlyOOM" &) -fi - -#xcalib -d :0 ~/.W2486L.icm -export _JAVA_AWT_WM_NONREPARENTING=1 -java_nonreparenting_wm_hack.sh - -xdg_menu --format openbox | ./bin/openbox_to_mygtkmenu.php > ~/mymenu diff --git a/zsh/.zshrc b/zsh/.zshrc index ddbca98..72729ce 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,5 +1,5 @@ # Path to your oh-my-zsh installation. -export ZSH=/home/dino/.oh-my-zsh +export ZSH=/home/dhensen/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ @@ -45,11 +45,11 @@ HISTSIZE=1000 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(git) +plugins=(autojump git) # User configuration -export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" -export PATH="/home/dino/bin:$PATH" +#export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" +export PATH="/home/dhensen/bin:$PATH" # export MANPATH="/usr/local/man:$MANPATH" source $ZSH/oh-my-zsh.sh @@ -71,8 +71,6 @@ export COMPOSER_HOME=~/.composer alias composer="composer --ansi" export PATH=$PATH:$HOME/.composer/vendor/bin -. /usr/share/autojump/autojump.zsh - function genpasswd() { local l=$1 [ "$l" = "" ] && l=20 @@ -101,8 +99,5 @@ alias ta='tmux attach || tmux new' alias tk='tmux kill-server' alias bim='vim' -. /opt/google-cloud-sdk/completion.zsh.inc -. /opt/google-cloud-sdk/path.zsh.inc - - -export BROWSER=chromium +#. /opt/google-cloud-sdk/completion.zsh.inc +#. /opt/google-cloud-sdk/path.zsh.inc