add user and install scripts

This commit is contained in:
ITmail-dk
2022-01-06 11:57:50 +01:00
parent 8552186946
commit c264b45a9d
11 changed files with 272 additions and 4 deletions

26
config/mpd/mpd.conf Normal file
View File

@@ -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"
}

84
config/picom/picom.conf Normal file
View File

@@ -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;

View File

@@ -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

View File

@@ -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"

View File

@@ -0,0 +1,7 @@
inputbar {
children: [entry];
}
listview {
lines: 3;
}

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

10
user-scripts/powermenu.sh Normal file
View File

@@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB