Skript move_config_files.sh by měl již vytvořit složky v home/.confit a přesunout soubory. I3 congif povolen tiling a picom

This commit is contained in:
archos 2024-05-27 08:55:00 +02:00
parent 6d2a5b954f
commit 7470940ea1
2 changed files with 71 additions and 66 deletions

View File

@ -1,14 +1,14 @@
exec --no-startup-id ~/set_once.sh
# exec --no-startup-id ~/set_once.sh
# This file is a modified version based on default i3-config-wizard config
# source is available here:
# https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/main/etc/skel/.config/i3/config
# https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/master/.config/i3/config
# Maintainer: joekamprad [joekamprad //a_t// endeavouros.com]
# https://endeavouros.com
#
# iconic font icon search: https://fontawesome.com/v4.7/cheatsheet/
#
# --> to update this run the following command (will backup existing setup file)
# wget --backups=1 https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/main/etc/skel/.config/i3/config -P ~/.config/i3/
# wget --backups=1 https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/main/.config/i3/config -P ~/.config/i3/
#
# Endeavouros-i3 config file
# Source for complete framework of our i3 config and theming here: https://github.com/endeavouros-team/endeavouros-i3wm-setup
@ -71,16 +71,16 @@ bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
# switch to workspace
bindcode $mod+10 workspace $ws1
bindcode $mod+11 workspace $ws2
bindcode $mod+12 workspace $ws3
bindcode $mod+13 workspace $ws4
bindcode $mod+14 workspace $ws5
bindcode $mod+15 workspace $ws6
bindcode $mod+16 workspace $ws7
bindcode $mod+17 workspace $ws8
bindcode $mod+18 workspace $ws9
bindcode $mod+19 workspace $ws10
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# switch to workspace with numpad keys
bindcode $mod+87 workspace $ws1
@ -107,16 +107,16 @@ bindcode $mod+Mod2+81 workspace $ws9
bindcode $mod+Mod2+90 workspace $ws10
# move focused container to workspace
bindcode $mod+Shift+10 move container to workspace $ws1
bindcode $mod+Shift+11 move container to workspace $ws2
bindcode $mod+Shift+12 move container to workspace $ws3
bindcode $mod+Shift+13 move container to workspace $ws4
bindcode $mod+Shift+14 move container to workspace $ws5
bindcode $mod+Shift+15 move container to workspace $ws6
bindcode $mod+Shift+16 move container to workspace $ws7
bindcode $mod+Shift+17 move container to workspace $ws8
bindcode $mod+Shift+18 move container to workspace $ws9
bindcode $mod+Shift+19 move container to workspace $ws10
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
# move focused container to workspace with numpad keys
bindcode $mod+Shift+Mod2+87 move container to workspace $ws1
@ -143,16 +143,16 @@ bindcode $mod+Shift+81 move container to workspace $ws9
bindcode $mod+Shift+90 move container to workspace $ws10
# resize window (you can also use the mouse for that):
#mode "resize" {
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window's width.
# Pressing right will grow the window's width.
# Pressing up will shrink the window's height.
# Pressing down will grow the window's height.
# bindsym h resize shrink width 10 px or 10 ppt
# bindsym j resize grow height 10 px or 10 ppt
# bindsym k resize shrink height 10 px or 10 ppt
# bindsym l resize grow width 10 px or 10 ppt
# bindsym j resize shrink width 10 px or 10 ppt
# bindsym k resize grow height 10 px or 10 ppt
# bindsym l resize shrink height 10 px or 10 ppt
# bindsym ; resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
# bindsym Left resize shrink width 10 px or 10 ppt
@ -161,11 +161,11 @@ bindcode $mod+Shift+90 move container to workspace $ws10
# bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
# bindsym Return mode "default"
# bindsym Escape mode "default"
#}
bindsym Return mode "default"
bindsym Escape mode "default"
}
#bindsym $mod+r mode "resize"
bindsym $mod+r mode "resize"
######################################
# keybindings for different actions: #
@ -179,6 +179,8 @@ bindsym $mod+q kill
# exit-menu
bindsym $mod+Shift+e exec --no-startup-id ~/.config/i3/scripts/powermenu
#aktualizace systému
bindsym $mod+Shift+u exec i3-sensible-terminal -e "yay -Syu"
# Lock the system
# lock with a picture:
@ -289,7 +291,7 @@ bindsym $mod+p exec --no-startup-id /usr/local/bin/switch-audio-port
## App shortcuts
bindsym $mod+w exec --no-startup-id /usr/bin/firefox
bindsym $mod+n exec --no-startup-id /usr/bin/thunar
bindsym Print exec --no-startup-id scrot ~/%Y-%m-%d-%T-screenshot.png && notify-send "Screenshot saved to ~/$(date +"%Y-%m-%d-%T")-screenshot.png"
#bindsym Print exec --no-startup-id scrot ~/%Y-%m-%d-%T-screenshot.png && notify-send "Screenshot saved to ~/$(date +"%Y-%m-%d-%T")-screenshot.png"
# Power Profiles menu switcher (rofi)
bindsym $mod+Shift+p exec --no-startup-id ~/.config/i3/scripts/power-profiles
@ -325,14 +327,14 @@ assign [class="Xfce4-terminal"] $ws1
assign [class="(?i)firefox"] $ws2
assign [class="Thunar"] $ws3
assign [class="thunderbird"] $ws4
assign [class="TelegramDesktop"] $ws5
assign [class="Gajim"] $ws5
# automatic set focus new window if it opens on another workspace than the current:
for_window [class=Xfce4-terminal] focus
for_window [class=(?i)firefox] focus
for_window [class=Thunar] focus
for_window [class=Thunderbird] focus
for_window [class=TelegramDesktop] focus
for_window [class=gajim] focus
##############
# compositor #
@ -358,7 +360,7 @@ for_window [class=TelegramDesktop] focus
# For modifications, it can be copied to ~/.config/picom/picom.conf or ~/.config/picom.conf
# install picom package (yay -S picom)
# start using default config
#exec_always --no-startup-id picom -b
exec_always --no-startup-id picom -b
#
# for custom config:
#exec_always --no-startup-id picom --config ~/.config/picom.conf
@ -376,7 +378,7 @@ exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
# if enabled you should comment welcome app.
# https://github.com/jceb/dex
#exec --no-startup-id dex -a -s /etc/xdg/autostart/:~/.config/autostart/
exec --no-startup-id dex --autostart --environment i3
#exec --no-startup-id dex --autostart --environment i3
# start welcome app
#exec --no-startup-id sh /usr/share/endeavouros/scripts/welcome --startdelay=3
@ -388,7 +390,6 @@ exec --no-startup-id dex --autostart --environment i3
#exec --no-startup-id setxkbmap -layout 'us,sk' -variant altgr-intl,qwerty -option 'grp:alt_caps_toggle'
# start conky:
#exec_always --no-startup-id conky
# start a script to setup displays
# uncomment the next line, use arandr to setup displays and save the file as monitor:
@ -396,7 +397,6 @@ exec --no-startup-id ~/.screenlayout/monitor.sh
# set wallpaper
# exec --no-startup-id sleep 2 && nitrogen --restore
exec --no-startup-id sleep 1 && feh --bg-fill /usr/share/endeavouros/backgrounds/endeavouros-wallpaper.png
# set powersavings for display:
exec --no-startup-id xset s 480 dpms 600 600 600
@ -419,20 +419,22 @@ exec --no-startup-id xset s 480 dpms 600 600 600
#exec --no-startup-id /usr/bin/dunst --config ~/.config/dunst/dunstrc
# may need to run dbus-launch explicitly:
#exec --no-startup-id dbus-launch /usr/bin/dunst
exec --no-startup-id /usr/bin/dunst
exec --no-startup-id dunst
#exec --no-startup-id /usr/bin/dunst
# alternative if you installed aside with XFCE4:
# exec --no-startup-id /usr/lib/xfce4/notifyd/xfce4-notifyd &
# autotiling script
# https://github.com/nwg-piotr/autotiling
# `yay -S autotiling ;) (it is in AUR)
#exec_always --no-startup-id autotiling
exec_always --no-startup-id autotiling
# Autostart apps as you like
#exec --no-startup-id sleep 2 && xfce4-terminal
exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md
#exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/endeavouros-i3wm-setup/blob/main/force-knowledge.md
#exec --no-startup-id sleep 3 && thunar
###############
# system tray #
###############
@ -443,10 +445,10 @@ exec --no-startup-id sleep 7 && firefox https://github.com/endeavouros-team/ende
#exec --no-startup-id blueberry-tray
# networkmanager-applet
#exec --no-startup-id nm-applet
exec --no-startup-id nm-applet
# clipman-applet
#exec --no-startup-id xfce4-clipman
exec --no-startup-id xfce4-clipman
##################
# floating rules #
@ -509,7 +511,7 @@ client.urgent $urgentred $urgentred $white $yellowbrown $yellowbrown
bar {
font pango: Noto Sans Regular 10
status_command i3blocks -c ~/.config/i3/i3blocks.conf
position bottom
position top
# i3bar_command i3bar --transparency
# it could be that you have no primary display set: set one (xrandr --output <output> --primary)
# reference: https://i3wm.org/docs/userguide.html#_tray_output

View File

@ -1,5 +1,5 @@
#!/bin/bash
#Tento skript je určen pro instalaci pomícníka AUR YAY a balíčků z Arch User Repository (AUR).
#Tento skript automatizuje proces instalace potřebných balíčků, nastavení AUR helperu, přesunu konfiguračních souborů do příslušných adresářů a další potřebné kroky.
##################################################################################################################
# Written to be used on 64 bits computers
# Author : Archos
@ -10,25 +10,28 @@
# PEČLIVĚ SKRIPT ZKONTROLUJTE. SPUŠTĚNÍ JE NA VAŠE VLASTNÍ RIZIKO.
#
##################################################################################################################
# Název balíčku z AUR
package_name="autotiling picom"
# Kontrola, zda je git nainstalován
if ! command -v git &>/dev/null; then
echo "Instaluji git..."
sudo pacman -S git --needed --noconfirm
fi
# Definice cesty k repozitáři a domovského adresáře
REPO_PATH="/path/to/cloned/repository"
HOME_PATH="$HOME"
# Kontrola, zda je nainstalován pomocník pro AUR (např. yay)
if ! command -v yay &>/dev/null; then
echo "Instaluji Yay (AUR helper)..."
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si --noconfirm
cd ..
rm -rf yay
fi
# Funkce pro kopírování souborů
copy_files() {
src_dir=$1
dst_dir=$2
# Vytvoří cílový adresář, pokud neexistuje
mkdir -p "$dst_dir"
# Kopíruje všechny soubory z source do destination
cp -ar $src_dir/* $dst_dir/
}
# Příklad kopírování konfiguračních souborů
copy_files "$REPO_PATH/.config/dunst" "$HOME_PATH/.config/dunst"
copy_files "$REPO_PATH/.config/gtk-3.0" "$HOME_PATH/.config/gtk-3.0"
copy_files "$REPO_PATH/.config/i3" "$HOME_PATH/.config/i3"
copy_files "$REPO_PATH/.config/nano" "$HOME_PATH/.config/nano"
copy_files "$REPO_PATH/.config/rofi" "$HOME_PATH/.config/rofi"
copy_files "$REPO_PATH/.config/xfce4/terminal" "$HOME_PATH/.config/xfce4/terminal"
echo "Konfigurační soubory byly úspěšně přesunuty."
# Instalace balíčku z AUR pomocí Yay
echo "Instaluji $package_name z AUR..."
yay -S $package_name --noconfirm