From d7b9d570f38f74846bf0308355e88be87e45161a Mon Sep 17 00:00:00 2001 From: ITmail-dk <48917593+ITmail-dk@users.noreply.github.com> Date: Sat, 8 Jan 2022 09:11:05 +0100 Subject: [PATCH] =?UTF-8?q?fix=C2=B4s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bspwm-install-martin-dte-debian.sh | 8 ---- config/bspwm/bspwmrc-vm | 70 ++++++++++++++++++++++++++++++ config/sxhkd/sxhkdrc | 4 +- install-scripts/vm-install-mics.sh | 4 ++ install.sh | 47 ++++++++++++++++++++ 5 files changed, 123 insertions(+), 10 deletions(-) create mode 100644 config/bspwm/bspwmrc-vm create mode 100644 install.sh diff --git a/bspwm-install-martin-dte-debian.sh b/bspwm-install-martin-dte-debian.sh index ee2ffe4..ff85ec6 100644 --- a/bspwm-install-martin-dte-debian.sh +++ b/bspwm-install-martin-dte-debian.sh @@ -5,11 +5,6 @@ cd ~/bspwm-install-ma-dte # Do, mkdir, copy, copy, echo files. . ~/bspwm-install-ma-dte/install-scripts/mkdir-cp-chmod-echo-files.sh - -# Not for production version -#read -p "Troubleshooting - Press a key to continue the installation." - - # Add Software & Packages. . ~/bspwm-install-ma-dte/install-scripts/apt-install-packages.sh @@ -30,9 +25,6 @@ echo " " echo " " echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-" -# Clean up and delete folders and other installation files ON / OFF -#cd ~ -#rm -r ~/bspwm-install-ma-dte/ sleep 1 read -p "You are ready to reboot... Press [Enter] key to Reboot System." diff --git a/config/bspwm/bspwmrc-vm b/config/bspwm/bspwmrc-vm new file mode 100644 index 0000000..1aafe98 --- /dev/null +++ b/config/bspwm/bspwmrc-vm @@ -0,0 +1,70 @@ +#! /bin/sh + +pgrep -x sxhkd > /dev/null || sxhkd & + +#bspc monitor (-d or NAME) also the number that should be on that screen. +#example of reverse order on screens. +#bspc monitor Screen-1 -s Screen-2 + +#bspc monitor -d I II III IV V VI VII VIII IX X + +# set the screen resolution and you can find your maximum resolution with this Command. +# Run xrandr in the terminal. +xrandr -s 1920x1080 & + +bspc monitor -d 1 2 3 4 5 6 7 8 9 10 + +bspc config border_width 1 +bspc config normal_border_color "#0A1B2A" +bspc config active_border_color "#313745" +bspc config focused_border_color "#FF0A1B2A" + +bspc config window_gap 7 + +bspc config split_ratio 0.50 +bspc config top_padding 28 + +bspc config borderless_monocle true +bspc config gapless_monocle true +bspc config single_monocle true + +bspc config remove_unplugged_monitors true +bspc config remove_disabled_monitors true + +bspc config focus_follows_pointer true +bspc config pointer_follows_monitor true +bspc config click_to_focus false + +bspc config pointer_modifier mod1 +bspc config pointer_action1 resize_side + +# Rule Commands - General Syntax. +# bspc rule -a, --add (|*)[:(|\*)[:(|*)]] +# [*-o*|--one-shot] [monitor=MONITOR_SEL|desktop=DESKTOP_SEL|node=NODE_SEL] +# [state=STATE] [layer=LAYER] [split_dir=DIR] [split_ratio=RATIO] +# [(hidden|sticky|private|locked|marked|center|follow|manage|focus|border)=(on|off)] +# [rectangle=WxH+X+Y] + +# To Fine Use xprop on terminal. + +# Example # bspc rule -a Google-chrome desktop='^2' follow=on border=off + +bspc rule -a Google-chrome desktop='^2' follow=on border=off +bspc rule -a Firefox desktop='^2' follow=on border=off +bspc rule -a Gimp desktop='^6' follow=on layer=above border=off +bspc rule -a mplayer2 state=floating +bspc rule -a Inkscape desktop='^7' follow=on border=off +bspc rule -a Kupfer.py focus=on +bspc rule -a Screenkey manage=off + + +# Automatically start up programs. +picom & +#feh --bg-fill ~/wallpapers/default-wallpaper.jpg & +nitrogen --restore & +#pulseaudio --kill & +#sleep 3 +#pulseaudio --start & +xscreensaver -nosplash & +#sleep 2 +$HOME/.config/polybar/run-polybar.sh & diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc index 93ebed1..8489063 100644 --- a/config/sxhkd/sxhkdrc +++ b/config/sxhkd/sxhkdrc @@ -157,10 +157,10 @@ super + {Left,Down,Up,Right} # # super + alt + Up - amixer -D pulse sset Master 5%+ && notify-send "Volume up 5%" + amixer -D pulse sset Master 5%+ super + alt + Down - amixer -D pulse sset Master 5%- && notify-send "Volume down 5%" + amixer -D pulse sset Master 5%- # # diff --git a/install-scripts/vm-install-mics.sh b/install-scripts/vm-install-mics.sh index 91ea06b..1e3adf1 100644 --- a/install-scripts/vm-install-mics.sh +++ b/install-scripts/vm-install-mics.sh @@ -2,6 +2,10 @@ cd ~/bspwm-install-ma-dte/ +mv ~/.config/bspwm/bspwmrc bspwmrc-org +cp ~/bspwm-install-ma-dte/config/bspwm/bspwmrc-vm ~/.config/bspwm/bspwmrc +chmod +x ~/.config/bspwm/bspwmrc + mv ~/.config/sxhkd/sxhkdrc sxhkdrc-org cp ~/bspwm-install-ma-dte/config/sxhkd/sxhkdrc-vm ~/.config/sxhkd/sxhkdrc chmod +x ~/.config/sxhkd/sxhkdrc \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..3bfa714 --- /dev/null +++ b/install.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +# Remember that this menu uses this apt package "dialog" + +HEIGHT=35 +WIDTH=80 +CHOICE_HEIGHT=5 +BACKTITLE="Martin BSPwm DTE - The installation" +TITLE="Martin DTE - BSPwm installation" +MENU="Choose you system from the following options:" + +OPTIONS=(1 "AMD Driver" + 2 "AMD Driver + NVIDIA" + 3 "Intel Driver" + 4 "Intel + NVIDIA Driver" + 5 "Virtual Machine - New SUPER KEY to ALT KEY" + 6 "Do nothing and Reboot") + +CHOICE=$(dialog --clear \ + --backtitle "$BACKTITLE" \ + --title "$TITLE" \ + --menu "$MENU" \ + $HEIGHT $WIDTH $CHOICE_HEIGHT \ + "${OPTIONS[@]}" \ + 2>&1 >/dev/tty) + +clear +case $CHOICE in + 1) + sudo apt install -y amd64-microcode && systemctl reboot + ;; + 2) + sudo apt install -y amd64-microcode nvidia-detect nvidia-driver && systemctl reboot + ;; + 3) + sudo apt install -y intel-microcode && systemctl reboot + ;; + 4) + sudo apt install -y intel-microcode nvidia-detect nvidia-driver && systemctl reboot + ;; + 5) + . ~/bspwm-install-ma-dte/install-scripts/vm-install-mics.sh && systemctl reboot + ;; + 6) + systemctl reboot + ;; +esac \ No newline at end of file