From 9cb235ea04cd2365a4de0620b2c865922dc57050 Mon Sep 17 00:00:00 2001 From: kd Date: Sun, 24 May 2020 16:27:26 -0400 Subject: added fedora configs --- Scripts/.config/Scripts/autostart.sh | 22 +++-- Scripts/.config/Scripts/setbg | 6 +- Scripts/.config/Scripts/wp | 2 +- bspwm/.config/bspwm/bspwmrc | 14 ++- compton/.config/compton.conf | 108 +++++---------------- tmux/.config/tmux/plugins/tpm/CHANGELOG.md | 0 tmux/.config/tmux/plugins/tpm/HOW_TO_PLUGIN.md | 0 tmux/.config/tmux/plugins/tpm/LICENSE.md | 0 tmux/.config/tmux/plugins/tpm/README.md | 0 tmux/.config/tmux/plugins/tpm/bin/clean_plugins | 0 tmux/.config/tmux/plugins/tpm/bin/install_plugins | 0 tmux/.config/tmux/plugins/tpm/bin/update_plugins | 0 .../tmux/plugins/tpm/scripts/check_tmux_version.sh | 0 .../tmux/plugins/tpm/scripts/clean_plugins.sh | 0 .../tpm/scripts/helpers/plugin_functions.sh | 0 .../tpm/scripts/helpers/shell_echo_functions.sh | 0 .../tpm/scripts/helpers/tmux_echo_functions.sh | 0 .../tmux/plugins/tpm/scripts/helpers/tmux_utils.sh | 0 .../tmux/plugins/tpm/scripts/helpers/utility.sh | 0 .../tmux/plugins/tpm/scripts/install_plugins.sh | 0 .../tmux/plugins/tpm/scripts/source_plugins.sh | 0 .../tmux/plugins/tpm/scripts/update_plugin.sh | 0 .../tpm/scripts/update_plugin_prompt_handler.sh | 0 tmux/.config/tmux/plugins/tpm/scripts/variables.sh | 0 tmux/.config/tmux/plugins/tpm/tpm | 0 tmux/.config/tmux/tmux_start.conf | 6 +- tmux/.tmux/plugins/tpm | 2 +- 27 files changed, 55 insertions(+), 105 deletions(-) mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/CHANGELOG.md mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/HOW_TO_PLUGIN.md mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/LICENSE.md mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/README.md mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/bin/clean_plugins mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/bin/install_plugins mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/bin/update_plugins mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/check_tmux_version.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/clean_plugins.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/helpers/plugin_functions.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/helpers/shell_echo_functions.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/helpers/tmux_echo_functions.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/helpers/tmux_utils.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/helpers/utility.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/install_plugins.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/source_plugins.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/update_plugin.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/update_plugin_prompt_handler.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/scripts/variables.sh mode change 100644 => 100755 tmux/.config/tmux/plugins/tpm/tpm diff --git a/Scripts/.config/Scripts/autostart.sh b/Scripts/.config/Scripts/autostart.sh index ea4d60b..bcd5e54 100755 --- a/Scripts/.config/Scripts/autostart.sh +++ b/Scripts/.config/Scripts/autostart.sh @@ -10,7 +10,7 @@ function run { } # Common programs -~/.config/Scripts/screen.sh d && sleep 2s +#~/.config/Scripts/screen.sh d && sleep 2s setxkbmap -layout us -variant altgr-intl -option caps:escape xmodmap -e "keycode 135 = Super_R" xset s off -dpms @@ -18,12 +18,20 @@ run dunst run mpd run nm-applet run compton -#run wal -i ~/.config/wall1.jpg -run setbg ~/.config/wall.png -run synclient TouchpadOff=1 -run /usr/bin/xflux -l 43.6404 -g -79.3995 -run st -c email -e neomutt -run brave +setbg ~/.config/wall.png + +FEDORA=$(hostnamectl | grep -qw Fedora && echo $?) +if [ $FEDORA -eq 0 ]; +then + xinput --set-prop "Synaptics TM3276-031" "Device Enabled" 0 + run vivaldi-stable +else + synclient TouchpadOff=1 + run /usr/bin/xflux -l 43.6404 -g -79.3995 + run st -c email -e neomutt + run brave +fi + run keepassxc amixer -c 0 set Headphone 100% unmute run dropbox diff --git a/Scripts/.config/Scripts/setbg b/Scripts/.config/Scripts/setbg index 5637ca0..1084471 100755 --- a/Scripts/.config/Scripts/setbg +++ b/Scripts/.config/Scripts/setbg @@ -10,9 +10,9 @@ WALLPAPER_HOME="$HOME/.config/wall.png" -[ -f "$1" ] && cp "$1" "$WALLPAPER_HOME" && notify-send -i "$WALLPAPER_HOME" "Wallpaper changed." +[ -f "$1" ] && cp -f "$1" "$WALLPAPER_HOME" && notify-send -i "$WALLPAPER_HOME" "Wallpaper changed." -[ -d "$1" ] && cp "$(find "$1" -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -type f | shuf -n 1)" "$WALLPAPER_HOME" && notify-send -i "$WALLPAPER_HOME" "Random Wallpaper chosen." +[ -d "$1" ] && cp -f "$(find "$1" -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -type f | shuf -n 1)" "$WALLPAPER_HOME" && notify-send -i "$WALLPAPER_HOME" "Random Wallpaper chosen." # If pywal is installed, use it. -wal -c && wal -i "$WALLPAPER_HOME" +wal -c && wal -o $HOME/.config/Scripts/done.sh -i "$WALLPAPER_HOME" diff --git a/Scripts/.config/Scripts/wp b/Scripts/.config/Scripts/wp index bc2ca6d..e36b9e0 100755 --- a/Scripts/.config/Scripts/wp +++ b/Scripts/.config/Scripts/wp @@ -1,4 +1,4 @@ #!/bin/sh -find $HOME/Downloads/wallpapers -type f | shuf | sxiv - +find $HOME/Pictures/wallpapers -type f | shuf | sxiv - diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index df75c57..6b6940b 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -4,21 +4,25 @@ sxhkd -c $HOME/.config/sxhkd/sxhkdrc & sxhkd -c $HOME/.config/sxhkd/sxhkdrc_bspwm & m=$(bspc query -M | wc -l) +MON=$(xrandr --query | grep -w 'connected' | awk '{print $1}' | head -n 1) if [ "$m" = 1 ] then - bspc monitor LVDS-1 -d 1 2 3 4 5 6 7 8 9 10 + bspc monitor "$MON" -d 1 2 3 4 5 6 7 8 9 10 elif [ "$m" = 2 ] then - bspc monitor LVDS-1 -d 1 2 3 4 5 6 7 8 9 + bspc monitor "$MON" -d 1 2 3 4 5 6 7 8 9 bspc monitor VGA-1 -d 10 else - bspc monitor LVDS-1 -d 1 2 3 4 5 6 7 8 9 10 + bspc monitor "$MON" -d 1 2 3 4 5 6 7 8 9 10 fi bspc config border_width 3 -bspc config window_gap 3 +bspc config window_gap 24 -bspc config split_ratio 0.52 +bspc config active_border_color '#0C1115' + + +bspc config split_ratio 0.70 bspc config borderless_monocle true bspc config gapless_monocle true bspc config click_to_focus button1 diff --git a/compton/.config/compton.conf b/compton/.config/compton.conf index 0c93613..5799d40 100644 --- a/compton/.config/compton.conf +++ b/compton/.config/compton.conf @@ -1,92 +1,30 @@ -# Shadow -shadow = false; -no-dnd-shadow = true; -no-dock-shadow = true; -clear-shadow = false; -shadow-radius = 10; -shadow-offset-x = -7; -shadow-offset-y = -7; -#shadow-opacity = 0.7; -# shadow-red = 0.0; -# shadow-green = 0.0; -# shadow-blue = 0.0; -shadow-exclude = [ - "!focused", - "name = 'Notification'", - "class_g = 'Conky'", - "class_g ?= 'Notify-osd'", - "class_g = 'Cairo-clock'", - "_GTK_FRAME_EXTENTS@:c" -]; -# shadow-exclude = "n:e:Notification"; -# shadow-exclude-reg = "x10+0+0"; -# xinerama-shadow-crop = true; +# New Start: A modern Arch workflow built with an emphasis on functionality. +# Copyright (C) 2017-2018 Donovan Glover -# Opacity -menu-opacity = 1.0; -inactive-opacity = 0.9; -active-opacity = 1.0; -frame-opacity = 1.0; -inactive-opacity-override = false; -alpha-step = 0.06; -# inactive-dim = 0.2; -# inactive-dim-fixed = true; -# blur-background = true; -# blur-background-frame = true; -blur-kern = "3x3box"; -# 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-background-fixed = true; -blur-background-exclude = [ - "window_type = 'dock'", - "window_type = 'desktop'", - "_GTK_FRAME_EXTENTS@:c" -]; -opacity-rule = [ "30:class_g = 'polybar'" ]; +# Enable shadows (very important, as this makes everything look really nice) +shadow = true -# Fading -fading = true; -fade-delta = 4; -fade-in-step = 0.03; -fade-out-step = 0.03; -#no-fading-openclose = true; -# no-fading-destroyed-argb = true; -fade-exclude = [ ]; +# Disable shadow on docks like polybar +#no-dock-shadow = true -# Other -backend = "xrender"; -mark-wmwin-focused = true; -mark-ovredir-focused = false; -# use-ewmh-active-win = true; -detect-rounded-corners = true; -detect-client-opacity = true; -refresh-rate = 0; -vsync = "none"; -dbe = false; -paint-on-overlay = true; -# sw-opti = true; -# unredir-if-possible = true; -# unredir-if-possible-delay = 5000; -# unredir-if-possible-exclude = [ ]; -focus-exclude = [ "class_g = 'Cairo-clock'" , "class_g = 'Firefox'", "class_g = 'Vivaldi-stable'", "class_g = 'mpv'", "class_g = 'zathura'", "_NET_WM_NAME@:s = 'rofi'"]; -detect-transient = true; -detect-client-leader = true; -invert-color-include = [ ]; -# resize-damage = 1; +# Disable shadow for drag-and-drop functionality +no-dnd-shadow = true -# GLX backend -# glx-no-stencil = true; -glx-copy-from-front = false; -# glx-use-copysubbuffermesa = true; -# glx-no-rebind-pixmap = true; -glx-swap-method = "undefined"; -# glx-use-gpushader4 = true; -# xrender-sync = true; -# xrender-sync-fence = true; +# Fade windows when you open and close them, as well as change workspaces +fading = false -# Window type settings -wintypes: -{ - tooltip = { fade = true; shadow = false; opacity = 0.85; focus = true; }; -}; +# Shadow settings +shadow-radius = 8 +shadow-opacity = 0.5 +shadow-offset-x = -10 +shadow-offset-y = -10 +# Fade settings +fade-in-step = 0.04 +fade-out-step = 0.04 +fade-delta = 10 +# Add transparency to bspwm borders +#frame-opacity = 0.5 + +# vim:ft=dosini diff --git a/tmux/.config/tmux/plugins/tpm/CHANGELOG.md b/tmux/.config/tmux/plugins/tpm/CHANGELOG.md old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/HOW_TO_PLUGIN.md b/tmux/.config/tmux/plugins/tpm/HOW_TO_PLUGIN.md old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/LICENSE.md b/tmux/.config/tmux/plugins/tpm/LICENSE.md old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/README.md b/tmux/.config/tmux/plugins/tpm/README.md old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/bin/clean_plugins b/tmux/.config/tmux/plugins/tpm/bin/clean_plugins old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/bin/install_plugins b/tmux/.config/tmux/plugins/tpm/bin/install_plugins old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/bin/update_plugins b/tmux/.config/tmux/plugins/tpm/bin/update_plugins old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/check_tmux_version.sh b/tmux/.config/tmux/plugins/tpm/scripts/check_tmux_version.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/clean_plugins.sh b/tmux/.config/tmux/plugins/tpm/scripts/clean_plugins.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/helpers/plugin_functions.sh b/tmux/.config/tmux/plugins/tpm/scripts/helpers/plugin_functions.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/helpers/shell_echo_functions.sh b/tmux/.config/tmux/plugins/tpm/scripts/helpers/shell_echo_functions.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/helpers/tmux_echo_functions.sh b/tmux/.config/tmux/plugins/tpm/scripts/helpers/tmux_echo_functions.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/helpers/tmux_utils.sh b/tmux/.config/tmux/plugins/tpm/scripts/helpers/tmux_utils.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/helpers/utility.sh b/tmux/.config/tmux/plugins/tpm/scripts/helpers/utility.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/install_plugins.sh b/tmux/.config/tmux/plugins/tpm/scripts/install_plugins.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/source_plugins.sh b/tmux/.config/tmux/plugins/tpm/scripts/source_plugins.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/update_plugin.sh b/tmux/.config/tmux/plugins/tpm/scripts/update_plugin.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/update_plugin_prompt_handler.sh b/tmux/.config/tmux/plugins/tpm/scripts/update_plugin_prompt_handler.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/scripts/variables.sh b/tmux/.config/tmux/plugins/tpm/scripts/variables.sh old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/plugins/tpm/tpm b/tmux/.config/tmux/plugins/tpm/tpm old mode 100644 new mode 100755 diff --git a/tmux/.config/tmux/tmux_start.conf b/tmux/.config/tmux/tmux_start.conf index 3cde5a5..5ccf47d 100644 --- a/tmux/.config/tmux/tmux_start.conf +++ b/tmux/.config/tmux/tmux_start.conf @@ -12,8 +12,8 @@ source-file ~/.config/tmux/tmux.conf # setup tmux_start session #new-session -s dropdownSession -n walls -new-session -n walls -c ~/Downloads/wallpapers -s "scratchpad" -send-keys 'vifm .' Enter +new-session -n scratch -c $HOME -s "scratchpad" +send-keys 'ranger' Enter new-window -n bash -c ~ send-keys 'neofetch' Enter -select-window -t walls +select-window -t scratch diff --git a/tmux/.tmux/plugins/tpm b/tmux/.tmux/plugins/tpm index 26d9ace..06d4122 160000 --- a/tmux/.tmux/plugins/tpm +++ b/tmux/.tmux/plugins/tpm @@ -1 +1 @@ -Subproject commit 26d9ace1b47f4591b2afdf333442a498311b6ace +Subproject commit 06d41226af02ca4f5bcf58169dd4f0a2aa42218c -- cgit v1.2.3