From 78711d4f23c4ae56d0f8ab30e9d90601c166e492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czy=C5=BC?= Date: Fri, 19 Jul 2024 15:42:36 +0200 Subject: [PATCH] desktop & packages --- .config/dwm | 1 + .config/screenlayout/main.sh | 5 +++ .config/yadm/bootstrap | 6 ++++ .gitmodules | 3 ++ .xinitrc | 59 ++++++++++++++++++++++++++++++++++++ packages | 38 +++++++++++++++++++++++ rebuild | 2 ++ 7 files changed, 114 insertions(+) create mode 160000 .config/dwm create mode 100644 .config/screenlayout/main.sh create mode 100644 .config/yadm/bootstrap create mode 100644 .gitmodules create mode 100644 .xinitrc create mode 100644 packages create mode 100755 rebuild diff --git a/.config/dwm b/.config/dwm new file mode 160000 index 0000000..d4fed3c --- /dev/null +++ b/.config/dwm @@ -0,0 +1 @@ +Subproject commit d4fed3cac603ea386d57b8c96f6bc49b3c2eec64 diff --git a/.config/screenlayout/main.sh b/.config/screenlayout/main.sh new file mode 100644 index 0000000..9944db2 --- /dev/null +++ b/.config/screenlayout/main.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +xrandr --output HDMI-0 --mode 1920x1080 --rate 60.00 --pos 0x360 --rotate normal \ + --output DP-0 --mode 2560x1440 --rate 74.92 --pos 4480x0 --rotate normal \ + --output DP-2 --primary --mode 2560x1440 --rate 74.92 --pos 1920x0 --rotate normal diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap new file mode 100644 index 0000000..3ebd845 --- /dev/null +++ b/.config/yadm/bootstrap @@ -0,0 +1,6 @@ +#!/bin/sh + +cd "$HOME" + +echo "Init submodules" +yadm submodule update --recursive --init diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a49ee66 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".config/dwm"] + path = .config/dwm + url = git@github.com:eRgo35/dwm.git diff --git a/.xinitrc b/.xinitrc new file mode 100644 index 0000000..0eaa4e5 --- /dev/null +++ b/.xinitrc @@ -0,0 +1,59 @@ +#!/bin/sh + +# screen layout for zion +$HOME/.config/screenlayout/main.sh + +# no bell +xset -b + +# theming +export QT_QPA_PLATFORMTHEME=qt5ct +export DESKTOP_SESSION=plasma +export XDG_CURRENT_DESKTOP=dwm + +# mouse cursor +xsetroot -cursor_name left_ptr & + +# compositor +picom -b --vsync & + +# fix java window issues +export _JAVA_AWT_WM_NONREPARENTING=1 & + +# keyboard layout +setxkbmap pl & + +# local fonts in ~/.fonts +xset +fp /usr/share/fonts/local & +xset +fp /usr/share/fonts/misc & +xset +fp ~/.fonts & +xset fp rehash & +fc-cache -fv & + +# powersaving options +xset +dpms +xset dpms 1200 1800 2100 & +xset s on & +xset s 900 & + +# theming and colors +bash $HOME/.fehbg & +xrdb -merge ~/.Xresources + +# screen lock +xss-lock -v -- betterlockscreen -l --time-format '%I:%M %p' & + +# xdg desktop portal +/usr/lib/xdg-desktop-portal-gtk & + +# notification daemon +dunst & + +# screenshot daemon +flameshot & + +# dwm status bar +bash $HOME/.config/dwm/bar.sh & disown + +# dwm +exec dwm diff --git a/packages b/packages new file mode 100644 index 0000000..cb5ba5e --- /dev/null +++ b/packages @@ -0,0 +1,38 @@ +git +yadm +vi +vim +neovim +rustup +openssh +xorg +zsh +picom +xdg-desktop-portal-gtk +dunst +flameshot +xss-lock +betterlockscreen-git +xorg-xinit +dmenu +firefox +kitty +nemo +openbsd-netcat +noto-fonts +noto-fonts-cjk +noto-fonts-emoji +noto-fonts-extra +texlive-latexextra +texlive-fontsextra +ttf-noto-nerd +wget +htop +btop +xdg-utils +nano +iwd +wireless_tools +wpa_supplicant +smartmontools + diff --git a/rebuild b/rebuild new file mode 100755 index 0000000..8bfa0d3 --- /dev/null +++ b/rebuild @@ -0,0 +1,2 @@ +#!/bin/sh +paru -S --needed - < ~/packages