diff --git a/bspwm/.Xresources b/bspwm/.Xresources new file mode 100644 index 0000000..e1eb5f2 --- /dev/null +++ b/bspwm/.Xresources @@ -0,0 +1,66 @@ +Xft.dpi: 192 +Xft.autohint: 0 +Xft.lcdfilter: lcddefault +Xft.hintstyle: hintfull +Xft.hinting: 1 +Xft.antialias: 1 +Xft.rgba: rgb +rofi.dpi: 192 + +!--------------------xdefauls +URxvt.font: xft:terminus:size=13 +URxvt.depth: 32 +urxvt*termName: rxvt +urxvt*scrollBar: false +urxvt*matcher.button: 1 +urxvt.transparent: false +urxvt.boldFont: +URxvt.letterSpace: -1 +Xft*dpi: 96 +Xft*antialias: true +Xft*hinting: true +Xft*hintstyle: hintfull +URxvt*cursorUnderline: true +Xft*rgba: rgb +URxvt*geometry: 160x45 +*internalBorder: 26 +URxvt*fading: 0 +URxvt*tintColor: #ffffff +URxvt*shading: 0 +URxvt*inheritPixmap: False +! special +*.foreground: #aaaaaa +*.background: [95]#161b21 +*.cursorColor: #aaaaaa + +! black +*.color0: #9ea2a5 +*.color8: #9ea2a5 + +! red +*.color1: #8b6066 +*.color9: #8b6066 + +! green +*.color2: #9a7e62 +*.color10: #9a7e62 + +! yellow +*.color3: #e7d869 +*.color11: #e7d869 + +! blue +*.color4: #354f73 +*.color12: #354f73 + +! magenta +*.color5: #55465b +*.color13: #55465b + +! cyan +*.color6: #716467 +*.color14: #716467 + +! white +*.color7: #aaaaaa +*.color15: #a7a9a8 diff --git a/bspwm/.gitkeep b/bspwm/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bspwm/.profile b/bspwm/.profile new file mode 100644 index 0000000..6049f2f --- /dev/null +++ b/bspwm/.profile @@ -0,0 +1,3 @@ +export GDK_SCALE=2 +export GDK_DPI_SCALE=0.5 +export QT_AUTO_SCREEN_SCALE_FACTOR=1 diff --git a/bspwm/bspwm.sh b/bspwm/bspwm.sh new file mode 100644 index 0000000..a5939f4 --- /dev/null +++ b/bspwm/bspwm.sh @@ -0,0 +1,48 @@ +#!/bin/bash + +sudo timedatectl set-ntp true +sudo hwclock --systohc + +sudo reflector -c Switzerland -a 12 --sort rate --save /etc/pacman.d/mirrorlist +sudo pacman -Syy + +sudo firewall-cmd --add-port=1025-65535/tcp --permanent +sudo firewall-cmd --add-port=1025-65535/udp --permanent +sudo firewall-cmd --reload +# sudo virsh net-autostart default + +git clone https://aur.archlinux.org/pikaur.git +cd pikaur/ +makepkg -si --noconfirm + +#pikaur -S --noconfirm lightdm-slick-greeter +#pikaur -S --noconfirm lightdm-settings +#pikaur -S --noconfirm polybar +#pikaur -S --noconfirm nerd-fonts-iosevka +#pikaur -S --noconfirm ttf-icomoon-feather + +#pikaur -S --noconfirm system76-power +#sudo systemctl enable --now system76-power +#sudo system76-power graphics integrated +#pikaur -S --noconfirm gnome-shell-extension-system76-power-git +#pikaur -S --noconfirm auto-cpufreq +#sudo systemctl enable --now auto-cpufreq + +echo "MAIN PACKAGES" + +sleep 5 + +sudo pacman -S --noconfirm xorg light-locker lightdm bspwm sxhkd firefox rxvt-unicode picom nitrogen lxappearance dmenu nautilus arandr simplescreenrecorder alsa-utils pulseaudio alsa-utils pulseaudio-alsa pavucontrol arc-gtk-theme arc-icon-theme obs-studio vlc dina-font tamsyn-font bdf-unifont ttf-bitstream-vera ttf-croscore ttf-dejavu ttf-droid gnu-free-fonts ttf-ibm-plex ttf-liberation ttf-linux-libertine noto-fonts font-bh-ttf ttf-roboto tex-gyre-fonts ttf-ubuntu-font-family ttf-anonymous-pro ttf-cascadia-code ttf-fantasque-sans-mono ttf-fira-mono ttf-hack ttf-fira-code ttf-inconsolata ttf-jetbrains-mono ttf-monofur adobe-source-code-pro-fonts cantarell-fonts inter-font ttf-opensans gentium-plus-font ttf-junicode adobe-source-han-sans-otc-fonts adobe-source-han-serif-otc-fonts noto-fonts-cjk noto-fonts-emoji ttf-font-awesome awesome-terminal-fonts archlinux-wallpaper rofi playerctl scrot obs-studio dunst pacman-contrib + +#sudo flatpak install -y spotify +#sudo flatpak install -y kdenlive + +sudo systemctl enable lightdm + +mkdir -p .config/{bspwm,sxhkd,dunst} + +install -Dm755 /usr/share/doc/bspwm/examples/bspwmrc ~/.config/bspwm/bspwmrc +install -Dm644 /usr/share/doc/bspwm/examples/sxhkdrc ~/.config/sxhkd/sxhkdrc + +printf "\e[1;32mCHANGE NECESSARY FILES BEFORE REBOOT\e[0m" + diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc new file mode 100644 index 0000000..3a6a70d --- /dev/null +++ b/bspwm/bspwmrc @@ -0,0 +1,28 @@ +#! /bin/sh + +pgrep -x sxhkd > /dev/null || sxhkd & + +setxkbmap ch & +light-locker & +/usr/bin/dunst & +bash /home/ermanno/.config/polybar/forest/launch.sh & +nitrogen --restore +xrandr --output DisplayPort-0 --mode 3840x2160 & +picom --no-fading-openclose & + +bspc monitor DisplayPort-0 -d I II III IV V +bspc monitor DisplayPort-1 -d VI +bspc config border_width 0 +bspc config window_gap 12 + +bspc config split_ratio 0.52 +bspc config borderless_monocle true +bspc config gapless_monocle true + +bspc rule -a Gimp desktop='^8' state=floating follow=on +bspc rule -a firefox desktop='^2' +bspc rule -a Spotify desktop='^5' +bspc rule -a Virt-manager desktop='^4' state=floating +bspc rule -a Org.gnome.Nautilus state=floating +bspc rule -a Kupfer.py focus=on +bspc rule -a Screenkey manage=off diff --git a/bspwm/polybar/blocks/bars.ini b/bspwm/polybar/blocks/bars.ini new file mode 100644 index 0000000..c245f34 --- /dev/null +++ b/bspwm/polybar/blocks/bars.ini @@ -0,0 +1,600 @@ +;; ┌────────────────────────────────────────────────────┐ +;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▄░█▀█░█▀▄░█▀▀│ +;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█▀▄░█▀█░█▀▄░▀▀█│ +;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀░░▀░▀░▀░▀░▀▀▀│ +;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░│ +;; └────────────────────────────────────────────────────┘ + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[bar] +fill = ⏽ +empty = ⏽ +indicator = ⏽ +; Nerd font :   ,  ⏽,  樂 籠 錄 , 雷 絛 + +[module/volume] +type = internal/alsa + +; Soundcard to be used +; Usually in the format hw:# where # is the card number +; You can find the different card numbers in `/proc/asound/cards` +master-soundcard = default +speaker-soundcard = default +headphone-soundcard = default + +; Name of the master, speaker and headphone mixers +; Use the following command to list available mixer controls: +; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p" +; If master, speaker or headphone-soundcard isn't the default, +; use `amixer -c # scontrols` instead where # is the number +; of the master, speaker or headphone soundcard respectively +; +; Default: Master +master-mixer = Master + +; Optionally define speaker and headphone mixers +; Default: none +;;speaker-mixer = Speaker +; Default: none +;;headphone-mixer = Headphone + +; NOTE: This is required if headphone_mixer is defined +; Use the following command to list available device controls +; $ amixer controls | sed -r "/CARD/\!d; s/.*=([0-9]+).*name='([^']+)'.*/printf '%3.0f: %s\n' '\1' '\2'/e" | sort +; You may also need to use `amixer -c # controls` as above for the mixer names +; Default: none +;;headphone-id = 9 + +; Use volume mapping (similar to amixer -M and alsamixer), where the increase in volume is linear to the ear +; Default: false +;;mapped = true + +; Interval for volume increase/decrease (in percent points) +; Default: 5 +interval = 5 + +; Available tags: +; (default) +; +; +format-volume = +format-volume-prefix =  +format-volume-prefix-padding = 1 +format-volume-prefix-background = ${color.blue} +format-volume-prefix-foreground = ${color.foreground} +format-volume-background = ${color.background-alt} +format-volume-foreground = ${color.foreground} +format-volume-overline = ${color.background} +format-volume-underline = ${color.background} + +; Available tags: +; (default) +; +; +format-muted = +format-muted-prefix =  +format-muted-prefix-padding = 1 +format-muted-prefix-background = ${color.red} +format-muted-overline = ${color.background} +format-muted-underline = ${color.background} + +; Available tokens: +; %percentage% (default) +label-volume = %percentage%% +label-volume-background = ${color.background-alt} +label-volume-padding = 1 + +; Available tokens: +; %percentage% (default +label-muted = "Muted" +label-muted-foreground = ${color.foreground} +label-muted-background = ${color.background-alt} +label-muted-padding = 1 + +; Only applies if is used +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-2 =  +ramp-volume-background = ${color.blue} +ramp-volume-padding = 1 + +; Only applies if is used +bar-volume-format = " %fill%%indicator%%empty% " +bar-volume-width = 10 +bar-volume-gradient = false + +bar-volume-indicator = ${bar.indicator} +bar-volume-indicator-foreground = ${color.foreground} + +bar-volume-fill = ${bar.fill} +bar-volume-foreground-0 = ${color.foreground} +bar-volume-foreground-1 = ${color.foreground} +bar-volume-foreground-2 = ${color.foreground} + +bar-volume-empty = ${bar.empty} +bar-volume-empty-foreground = ${color.gray} + +; If defined, it will replace when +; headphones are plugged in to `headphone_control_numid` +; If undefined, will be used for both +; Only applies if is used +ramp-headphones-0 =  +ramp-headphones-background = ${color.blue} +ramp-headphones-padding = 1 + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/brightness] +;type = internal/xbacklight +type = internal/backlight + +; Use the following command to list available cards: +; $ ls -1 /sys/class/backlight/ +;card = intel_backlight +card = amdgpu_bl0 + +; Available tags: +;