diff --git a/config/mpd/mpd.conf b/config/mpd/mpd.conf new file mode 100644 index 0000000..1bdb362 --- /dev/null +++ b/config/mpd/mpd.conf @@ -0,0 +1,26 @@ +bind_to_address "0.0.0.0" + +# Recommended location for database +db_file "~/.local/share/mpd/database" + +# Logs to systemd journal +log_file "~/.local/share/mpd/log" + +# The music directory is by default the XDG directory, uncomment to amend and choose a different directory +music_directory "~/music" + +# Uncomment to enable the functionalities +playlist_directory "~/.local/share/mpd/playlists" +pid_file "~/.local/share/mpd/pid" +state_file "~/.local/share/mpd/state" +sticker_file "~/.local/share/mpd/sticker.sql" + +auto_update "yes" +auto_update_depth "0" + +restore_paused "yes" + +audio_output { + type "pulse" + name "pulse audio" +} \ No newline at end of file diff --git a/config/picom/picom.conf b/config/picom/picom.conf new file mode 100644 index 0000000..5732a9e --- /dev/null +++ b/config/picom/picom.conf @@ -0,0 +1,84 @@ +backend = "glx"; +glx-no-stencil = true; +glx-copy-from-front = false; + +# Opacity +active-opacity = 1; +inactive-opacity = 1; +frame-opacity = 1; +inactive-opacity-override = false; +blur-background = true; +blur-background-exclude = [ +]; + +blur-method = "dual_kawase"; +blur-strength = 6; + +# Fading +fading = true; +fade-delta = 4; +no-fading-openclose = false; + +fade-exclude = [ ]; + +# Other +mark-wmwin-focused = true; +mark-ovredir-focused = true; +detect-rounded-corners = true; +detect-client-opacity = true; +refresh-rate = 0; +vsync = true; +dbe = false; +unredir-if-possible = false; +focus-exclude = [ ]; +detect-transient = true; +detect-client-leader = true; + +# Window type settings +wintypes: +{ + dock = { + shadow = false; + }; +}; + +opacity-rule = [ + "80:class_g = 'Rofi'", + "80:class_g = 'Alacritty' && focused", + "70:class_g = 'Alacritty' && !focused" +]; + +shadow = true; +shadow-radius = 12; +shadow-offset-x = -5; +shadow-offset-y = -5; +shadow-opacity = 0.5; + +shadow-exclude = [ + "! name~=''", + "name = 'Notification'", + "name = 'Plank'", + "name = 'Docky'", + "name = 'Kupfer'", + "name = 'xfce4-notifyd'", + "name = 'cpt_frame_window'", + "name *= 'VLC'", + "name *= 'compton'", + "name *= 'picom'", + "name *= 'Chromium'", + "name *= 'Chrome'", + "class_g = 'Firefox' && argb", + "class_g = 'Conky'", + "class_g = 'Kupfer'", + "class_g = 'Synapse'", + "class_g ?= 'Notify-osd'", + "class_g ?= 'Cairo-dock'", + "class_g ?= 'Xfce4-notifyd'", + "class_g ?= 'Xfce4-power-manager'", + "_GTK_FRAME_EXTENTS@:c", + "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" +]; + +corner-radius = 0 + +xrender-sync-fence = true; \ No newline at end of file diff --git a/config/polybar/config b/config/polybar/config index 866cefe..14261b0 100644 --- a/config/polybar/config +++ b/config/polybar/config @@ -89,7 +89,7 @@ font-5 = "DejaVuSansMono Nerd Font:style=Book:size=12;2" modules-left = bspwm xwindow ;modules-center = mpd -modules-right = pulseaudio cpu memory wlan eth date temperature battery powermenu +modules-right = pulseaudio cpu memory wlan eth date temperature battery powermenu session ; Models list - filesystem xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu @@ -477,6 +477,17 @@ menu-2-0-exec = systemctl poweroff menu-2-1 =  menu-2-1-exec = menu-open-0 + +[module/session] +type = custom/text + +click-left = powermenu.sh +content = %{T4}%{T-} +content-background = ${colors.shade-2} +content-foreground = ${colors.shade-5} +content-padding = 1 + + [settings] screenchange-reload = true ;compositing-background = xor diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi index 2f31597..71b56b8 100644 --- a/config/rofi/config.rasi +++ b/config/rofi/config.rasi @@ -1,2 +1,82 @@ +configuration { + display-drun: "Applications:"; + display-window: "Windows:"; + drun-display-format: "{name}"; + font: "DejaVuSansMono Nerd Font Book 10"; + modi: "window,run,drun"; +} + +@theme "/dev/null" + +* { + bg: #11121D; + bg-alt: #444b6a; + + fg: #FFFFFF; + fg-alt: #787c99; + + background-color: @bg; + + border: 0; + margin: 0; + padding: 0; + spacing: 0; +} + +window { + width: 30%; +} + +element { + padding: 8 0; + text-color: @fg-alt; +} + +element selected { + text-color: @fg; +} + +element-text { + background-color: inherit; + text-color: inherit; + vertical-align: 0.5; +} + +element-icon { + size: 30; +} + +entry { + background-color: @bg-alt; + padding: 12; + text-color: @fg; +} + +inputbar { + children: [prompt, entry]; +} + +listview { + padding: 8 12; + background-color: @bg; + columns: 1; + lines: 8; +} + +mainbox { + background-color: @bg; + children: [inputbar, listview]; +} + +prompt { + background-color: @bg-alt; + enabled: true; + padding: 12 0 0 12; + text-color: @fg; +} + +/* vim: ft=sass + // Theme location is "/usr/share/rofi/themes/name.rasi" -@theme "/usr/share/rofi/themes/Arc-Dark.rasi" + +//@theme "/usr/share/rofi/themes/Arc-Dark.rasi" diff --git a/config/rofi/powermenu.rasi b/config/rofi/powermenu.rasi new file mode 100644 index 0000000..3c7f85a --- /dev/null +++ b/config/rofi/powermenu.rasi @@ -0,0 +1,7 @@ +inputbar { + children: [entry]; +} + +listview { + lines: 3; +} \ No newline at end of file diff --git a/install-scripts/apt-install-all-packages.sh b/install-scripts/apt-install-all-packages.sh index 43d0b41..392d98d 100644 --- a/install-scripts/apt-install-all-packages.sh +++ b/install-scripts/apt-install-all-packages.sh @@ -16,10 +16,10 @@ sleep 3 sudo apt update && sudo apt upgrade -y # Core packages to be installed -sudo apt install -y xorg x11-xserver-utils arandr autorandr dialog bspwm sxhkd sddm picom polybar xautolock i3lock-fancy network-manager kitty psmisc rofi pcmanfm tlp font-manager gvfs-backends nitrogen emacs lxpolkit xbacklight lxappearance htop mc mpv feh sxiv pulseaudio pulsemixer npm curl firefox-esr +sudo apt install -y xorg x11-xserver-utils arandr autorandr dialog bspwm sxhkd sddm picom polybar xautolock i3lock-fancy network-manager kitty psmisc rofi pcmanfm tlp font-manager gvfs-backends nitrogen emacs lxpolkit xbacklight lxappearance htop mc mpv feh sxiv pulseaudio pulsemixer npm curl imagemagick scrot firefox-esr # Software & Packages -sudo apt install -y ranger neovim flameshot cmus ncmpcpp notify-osd imagemagick neofetch flatpak cava obs-studio +sudo apt install -y ranger neovim flameshot cmus ncmpcpp notify-osd neofetch flatpak cava obs-studio # More Software & Packages ON / OFF sudo apt install -y zsh git wireguard wireguard-tools libreoffice libreoffice-gtk3 libreoffice-style-breeze libreoffice-l10n-da inkscape gimp rawtherapee darktable okular diff --git a/install-scripts/mkdir-cp-chmod-echo-files.sh b/install-scripts/mkdir-cp-chmod-echo-files.sh index 57391a2..961bd32 100644 --- a/install-scripts/mkdir-cp-chmod-echo-files.sh +++ b/install-scripts/mkdir-cp-chmod-echo-files.sh @@ -9,6 +9,8 @@ mkdir ~/.config mkdir ~/.themes mkdir ~/.fonts mkdir ~/.icons +mkdir ~/.local +mkdir ~/.local/bin mkdir ~/wallpapers mkdir ~/miscellaneous mkdir ~/downloads @@ -31,6 +33,8 @@ cp -r ~/bspwm-install-ma-dte/fonts/* ~/.fonts/ cp -r ~/bspwm-install-ma-dte/themes/* ~/.themes/ cp -r ~/bspwm-install-ma-dte/music/* ~/music/ cp -r ~/bspwm-install-ma-dte/wallpapers/* ~/wallpapers/ +cp -r ~/bspwm-install-ma-dte/local-files/* ~/.local/ +cp -r ~/bspwm-install-ma-dte/user-scripts/* ~/.local/bin # Echo config to files. YES / NO echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-" @@ -62,6 +66,7 @@ echo "bgcolor=#191a1b" >> ~/.config/nitrogen/bg-saved.cfg #echo " chmod +x files." #echo " " #echo "-'-'-'-'-'-'-'-'-'-'-'-'-" + chmod +x ~/.config/bspwm/bspwmrc chmod +x ~/.config/sxhkd/sxhkdrc diff --git a/user-scripts/changebrightness.sh b/user-scripts/changebrightness.sh new file mode 100644 index 0000000..7ab7362 --- /dev/null +++ b/user-scripts/changebrightness.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +function send_notification() { + brightness=$(printf "%.0f\n" $(brillo -G)) + dunstify -a "changebrightness" -u low -r 9991 -h int:value:"$brightness" -i "brightness-$1" "Brightness: $brightness%" -t 2000 +} + +case $1 in +up) + brillo -A 5 -q + send_notification $1 + ;; +down) + brillo -U 5 -q + send_notification $1 + ;; +esac \ No newline at end of file diff --git a/user-scripts/changevolume.sh b/user-scripts/changevolume.sh new file mode 100644 index 0000000..e431985 --- /dev/null +++ b/user-scripts/changevolume.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +function send_notification() { + volume=$(pamixer --get-volume) + dunstify -a "changevolume" -u low -r "9993" -h int:value:"$volume" -i "volume-$1" "Volume: ${volume}%" -t 2000 +} + +case $1 in +up) + # Set the volume on (if it was muted) + pamixer -u + pamixer -i 5 --allow-boost + send_notification $1 + ;; +down) + pamixer -u + pamixer -d 5 --allow-boost + send_notification $1 + ;; +mute) + pamixer -t + if $(pamixer --get-mute); then + dunstify -i volume-mute -a "changevolume" -t 2000 -r 9993 -u low "Muted" + else + send_notification up + fi + ;; +esac \ No newline at end of file diff --git a/user-scripts/powermenu.sh b/user-scripts/powermenu.sh new file mode 100644 index 0000000..66ae7fe --- /dev/null +++ b/user-scripts/powermenu.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +chosen=$(printf " Power Off\n Restart\n Lock" | rofi -dmenu -i -theme-str '@import "powermenu.rasi"') + +case "$chosen" in + " Power Off") poweroff ;; + " Restart") reboot ;; + " Lock") i3lock-fancy -gpf DejaVu Sans -- scrot -z ;; + *) exit 1 ;; +esac \ No newline at end of file diff --git a/wallpapers/1080p/pexels-valdemaras-d-1647962.jpg b/wallpapers/1080p/pexels-valdemaras-d-1647962.jpg deleted file mode 100644 index 04e00b5..0000000 Binary files a/wallpapers/1080p/pexels-valdemaras-d-1647962.jpg and /dev/null differ