Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ alias feh='feh --bg-fill'
alias ytdl='yt-dlp -o "~/Vids/%(title)s.%(ext)s"'
alias ytdlm='yt-dlp -x --audio-format opus --audio-quality 32K -o "/home/m/Music/%(title)s.%(ext)s"'
alias vifm='$HOME/.config/vifm/scripts/vifmrun'
alias gitmika='git config user.name "Mika Elias Richter" && git config user.email "mika-elias.richter@tuilmenau.de"'
alias gitMulti='git config user.name "Multiiiiii" && git config user.email "multimitamiensaft@gmail.com"'
alias gitconf='git config user.name && git config user.email'
source /usr/share/autojump/autojump.bash

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
slstatus/config.h
slstatus/config.dev.h
11 changes: 11 additions & 0 deletions .scripts/screenoff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

outputs=$(xrandr | awk '/ disconnected/{print $1}')

selected_output=$(printf "%s\n" "${outputs[@]}" | dmenu -l $(echo "$outputs" | wc -l) -i -p "Select output to disconnect:")


if [ -n "$selected_output" ]; then
xrandr --output "$selected_output" --off
fi

23 changes: 23 additions & 0 deletions .scripts/wificonnect
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

check_escape() {
if [ $? -ne 0 ]; then
exit 0 # Exit the script
fi
}

available_networks=$(nmcli device wifi list | awk 'match($0, /.{5}(.*?)In/, m) {print substr($0, RSTART+27, RLENGTH-29)}')

check_escape

selected_network=$(printf "%s\n" "${available_networks[@]}" | dmenu -l $(echo "$available_networks" | wc -l) -i -p "Select network:")

check_escape

password=$(echo "" | dmenu -p "Enter the password:")



if [ -n "$selected_network"]; then
nmcli device wifi connect "$selected_network" password "$password"
fi
2 changes: 2 additions & 0 deletions Scripts/Brightness.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

echo "$(brightnessctl get | awk '{print int(100*($1/64764))}')"
2 changes: 1 addition & 1 deletion Scripts/Vpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ vpn_status=$(mullvad status -v)

if [[ $vpn_status == *"Connected"* ]]; then
# Extract location from the status output
location=$(echo "$vpn_status" | awk '/Connected/ {print $6, $7}')
location=$(echo "$vpn_status" | awk '/Visible location/ {print $3 $4}')
echo " $location"
else
echo ""
Expand Down
58 changes: 58 additions & 0 deletions debpkginstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@

#!/bin/bash

# Update the package list and upgrade installed packages
sudo apt update && sudo apt upgrade -y

# Read the package list
while IFS= read -r package; do
# Check if the package is available in the official repositories
if apt-cache show "$package" >/dev/null 2>&1; then
echo "Installing $package with apt..."
sudo apt install -y "$package"
else
echo "$package is not available in the official repositories."
fi
done < <(cat <<EOF
curl
git
nvim
htop
nvtop
vifm
cmake
cmatrix
fastfetch
nvtop
mpv
mupdf
syncplay
yt-dlp
neovim
udiskie
unzip
warp
nodejs
npm
xclip
xdotool
ufw
python3
python3-pip
zip
xwallpaper
build-essential
libx11-dev
libxft-dev
libxinerama-dev
libxrandr-dev
libxkbcommon-dev
libx11-xcb-dev
libxcb-util-dev
libxcb-keysyms-dev
EOF
)

sudo npm install -g udiskie-dmenu
sudo pip3 install pywal

11 changes: 6 additions & 5 deletions dmenu/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
"Hack:size=10"
"monospace:size=15"
};
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
static const char *colors[SchemeLast][2] = {
Expand All @@ -14,9 +14,10 @@ static const char *colors[SchemeLast][2] = {
// [SchemeSel] = { "#E5E9F0", "#88C0D0" },
// [SchemeOut] = { "#000000", "#00ffff" },

[SchemeNorm] = { "#f1be9b", "#020914" },
[SchemeSel] = { "#f1be9b", "#565879"},
[SchemeOut] = { "#f1be9b", "#DA6748" },
//Dracula
[SchemeNorm] = { "#ffffff", "#282a36" },
[SchemeSel] = { "#ffffff", "#bd93f9" },
[SchemeOut] = { "#000000", "#00ffff" },
};
/* -l and -g options; controls number of lines and columns in grid if > 0 */
static unsigned int lines = 10;
Expand All @@ -29,4 +30,4 @@ static unsigned int columns = 1;
static const char worddelimiters[] = " ";

/* Size of the window border */
static const unsigned int border_width = 0;
static const unsigned int border_width = 2;
Binary file removed dmenu/dmenu
Binary file not shown.
Binary file removed dmenu/dmenu.o
Binary file not shown.
Binary file removed dmenu/drw.o
Binary file not shown.
Binary file removed dmenu/stest
Binary file not shown.
Binary file removed dmenu/stest.o
Binary file not shown.
Binary file removed dmenu/util.o
Binary file not shown.
12 changes: 6 additions & 6 deletions dwm/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ static const Rule rules[] = {
/* class instance title tags mask switchtotag isfloating isterminal noswallow monitor */
{ "Gimp", NULL, NULL, 0, 0, 1, 0, 0, -1 },
{ "warp-share",NULL, NULL, 0, 0, 1, 0, 0, -1 },
{ "waterfox", NULL, NULL, 1 << 8, 1, 0, 0, 0, -1 },
{ "firedragon", NULL, NULL, 1 << 8, 1, 0, 0, 0, -1 },
{ "thunderbird", NULL, NULL, 1 << 4, 1, 0, 0, 0, -1 },
{ "ArmCord", NULL, NULL, 1 << 2, 0, 0, 0, 0, -1 },
{ "St", NULL, NULL, 0, 0, 0, 1, 0, -1 },
{ NULL, NULL, "Event Tester", 0, 0, 0, 0, 1, -1 },
{ NULL, NULL, "ncspot", 1 << 3, 1, 0, 0, 0, -1 },
{ NULL, NULL, "vifm", 1 << 1, 1, 0, 1, 0, -1 },
{ "mpv", NULL, NULL, 1 << 7, 1, 0, 0, 0, -1 },
{ NULL, "sxiv", NULL, 1 << 6, 1, 0, 0, 0, -1 },
{ "mpv", NULL, NULL, 1 << 7, 0, 0, 0, 0, -1 },
{ NULL, "sxiv", NULL, 1 << 6, 0, 0, 0, 0, -1 },
};
/* layout(s) */
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
Expand Down Expand Up @@ -100,12 +100,12 @@ static const char *volupcmd[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@",
static const char *voldowncmd[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-1000", NULL };
static const char *mutevolcmd[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL };
static const char *mutemiccmd[] = { "pactl", "set-source-mute", "@DEFAULT_SOURCE@", "toggle", NULL };
static const char *brightupcmd[] = { "xbacklight", "-inc", "10", NULL };
static const char *brightdowncmd[] = { "xbacklight", "-dec", "10", NULL };
static const char *brightupcmd[] = { "brightnessctl", "set", "+10", NULL };
static const char *brightdowncmd[] = { "brightnessctl", "set", "10-", NULL };
static const char *nextcmd[] = { "playerctl", "next", NULL };
static const char *prevcmd[] = { "playerctl", "previous", NULL };
static const char *lockcmd[] = { "betterlockscreen", "-l", NULL };
static const char *browsercmd[] = { "waterfox", NULL };
static const char *browsercmd[] = { "firedragon", NULL };
static const char *filemanagercmd[] = { "st", "./.config/vifm/scripts/vifmrun", NULL };
static const char *ncpsotcmd[] = { "st", "ncspot", NULL };
static const char *discordcmd[] = { "armcord", NULL };
Expand Down
Binary file modified dwm/drw.o
Binary file not shown.
Binary file modified dwm/dwm
Binary file not shown.
Binary file modified dwm/dwm.o
Binary file not shown.
Binary file modified dwm/util.o
Binary file not shown.
40 changes: 29 additions & 11 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@

#!/bin/bash

read -p "Is this a minimal intsall (no wm)? [Y/n]" yn
: ${yn:=y}
if [[ $yn == [Yy]* ]]; then

echo "Skipping..."

else
sudo mv dwm.desktop /usr/share/xsessions/
sudo mv dwm.sh /usr/local/bin/
fi

echo "Choose your distribution:"
echo "1) Debian"
echo "2) Arch"
echo "3) other"

read -p "Enter your choice: " choice

case $choice in
1)
echo "You chose Debian."
./debpkginstall.sh
;;
2)
echo "You use Arch btw."
paru
chaos
pkg_arch
;;
*)
echo "Figure it out I guess"
;;
esac

paru() {
read -p "Do you have Paru? [y/N]" yn
: ${yn:=n}
if [[ $yn == [Yy]* ]]; then
Expand All @@ -29,7 +42,9 @@ else
"
./getparu.sh
fi
}

chaos(){
read -p "Do you have ChaoticAUR? [y/N]" yn
: ${yn:=n}
if [[ $yn == [Yy]* ]]; then
Expand All @@ -52,7 +67,9 @@ else
"
sudo ./ChaoticAUR.sh
fi
}

pkg_arch(){
read -p "Do you have the nessesary packages? [y/N]" yn
: ${yn:=n}
if [[ $yn == [Yy]* ]]; then
Expand All @@ -76,6 +93,7 @@ else
"
./pkginstall.sh
fi
}

echo "
_ _ _
Expand Down
1 change: 0 additions & 1 deletion packages.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
armcord-bin
autojump
base
base-devel
Expand Down
Binary file modified slstatus/components/battery.o
Binary file not shown.
Binary file modified slstatus/components/cat.o
Binary file not shown.
Binary file modified slstatus/components/cpu.o
Binary file not shown.
Binary file modified slstatus/components/datetime.o
Binary file not shown.
Binary file modified slstatus/components/disk.o
Binary file not shown.
Binary file modified slstatus/components/entropy.o
Binary file not shown.
Binary file modified slstatus/components/hostname.o
Binary file not shown.
Binary file modified slstatus/components/ip.o
Binary file not shown.
Binary file modified slstatus/components/kernel_release.o
Binary file not shown.
Binary file modified slstatus/components/keyboard_indicators.o
Binary file not shown.
Binary file modified slstatus/components/keymap.o
Binary file not shown.
Binary file modified slstatus/components/load_avg.o
Binary file not shown.
Binary file modified slstatus/components/netspeeds.o
Binary file not shown.
Binary file modified slstatus/components/num_files.o
Binary file not shown.
Binary file modified slstatus/components/ram.o
Binary file not shown.
Binary file modified slstatus/components/run_command.o
Binary file not shown.
Binary file modified slstatus/components/swap.o
Binary file not shown.
Binary file modified slstatus/components/temperature.o
Binary file not shown.
Binary file modified slstatus/components/uptime.o
Binary file not shown.
Binary file modified slstatus/components/user.o
Binary file not shown.
Binary file modified slstatus/components/volume.o
Binary file not shown.
Binary file modified slstatus/components/wifi.o
Binary file not shown.
9 changes: 4 additions & 5 deletions slstatus/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,17 @@ static const char unknown_str[] = "";
*/
static const struct arg args[] = {
/* function format argument */
{ wifi_perc, "[ %s%% ", "wlp3s0"},
{ netspeed_rx, "%sB/s] ", "wlp3s0" },
{ netspeed_tx, "[ %sB/s ", "wlp1s0" },
{ wifi_perc, "  %s%% ", "wlp1s0"},
{ netspeed_rx, " %sB/s] ", "wlp1s0" },
{ run_command, "[%s ]", "./Suckless/Scripts/Vpn.sh"},
{ run_command, "[ %s", "./Suckless/Scripts/Batterystatus.sh"},
{ battery_perc, "%s%%", "BAT0"},
{ battery_remaining, " %s] ", "BAT0"},
{ cpu_perc, "[ %s%%] ", NULL },
{ ram_perc, "[ %s%%] ", NULL },
//{ temp, "TEMP:%s° ", "/sys/class/thermal/thermal_zone1" },
//{ temp, ",%s° ", "/sys/class/thermal/thermal_zone0" },
{ run_command, "[%s] ", "./Suckless/Scripts/Volume.sh"},
{ run_command, "[%s] ", "./Suckless/Scripts/Mic.sh"},
{ run_command, "[ %s%%] ", "xbacklight -get | awk '{print int($1)}'" },
{ run_command, "[ %s%%] ", "./Suckless/Scripts/Brightness.sh" },
{ datetime, "[ %s", "%F][ %T] " },
};
Binary file modified slstatus/slstatus
Binary file not shown.
Binary file modified slstatus/slstatus.o
Binary file not shown.
Binary file modified slstatus/util.o
Binary file not shown.
2 changes: 0 additions & 2 deletions st/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,7 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Home, zoomreset, {.f = 0} },
{ TERMMOD, XK_C, clipcopy, {.i = 0} },
{ TERMMOD, XK_V, clippaste, {.i = 0} },
{ MODKEY, XK_c, clipcopy, {.i = 0} },
{ ShiftMask, XK_Insert, clippaste, {.i = 0} },
{ MODKEY, XK_v, clippaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
{ ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
Expand Down