From 3ab7ee5b4811af91d5ecf720862114b376588b44 Mon Sep 17 00:00:00 2001 From: NaiJi Date: Wed, 19 Oct 2022 08:02:18 +0400 Subject: [PATCH] Init --- LICENSE | 24 +++ i3wm/.Xresources | 50 ++++++ i3wm/.bashrc | 142 +++++++++++++++ i3wm/config | 250 +++++++++++++++++++++++++++ i3wm/i3status.conf | 74 ++++++++ i3wm/lightdm-gtk-greeter.conf | 65 +++++++ install.sh | 49 ++++++ pacman/pacman.conf | 100 +++++++++++ qt-creator/clangformat/.clang-format | 20 +++ qt-creator/styles/better_inkpot.xml | 67 +++++++ qt-creator/styles/nord.xml | 67 +++++++ qt-creator/styles/somewhat_red.xml | 77 +++++++++ 12 files changed, 985 insertions(+) create mode 100644 LICENSE create mode 100644 i3wm/.Xresources create mode 100644 i3wm/.bashrc create mode 100644 i3wm/config create mode 100644 i3wm/i3status.conf create mode 100644 i3wm/lightdm-gtk-greeter.conf create mode 100644 install.sh create mode 100644 pacman/pacman.conf create mode 100644 qt-creator/clangformat/.clang-format create mode 100644 qt-creator/styles/better_inkpot.xml create mode 100644 qt-creator/styles/nord.xml create mode 100644 qt-creator/styles/somewhat_red.xml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3c577b0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to \ No newline at end of file diff --git a/i3wm/.Xresources b/i3wm/.Xresources new file mode 100644 index 0000000..0a965b4 --- /dev/null +++ b/i3wm/.Xresources @@ -0,0 +1,50 @@ +*faceName: xos4 Terminus +*faceSize: 12 +*selectToClipboard: true + +*background: #000000 +*foreground: #cccccc +*fading: 8 +*fadeColor: black +*cursorColor: #ff99cc +*pointerColorBackground: #ff99cc +*pointerColorForeground: #ff99cc + +*VT100.colorBDMode: true +*VT100.colorULMode: true +*VT100.veryBoldColors: 6 + +! black +*.color0: #282a2e +*.color8: #373b41 + +! red +*.color1: #b361bc +*.color9: #d88be0 + +! green +*.color2: #7f336d +*.color10: #9b4b88 + +! yellow +*.color3: #9d5fde +*.color11: #c58efe + +! blue +*.color4: #715f9d +*.color12: #9681c8 + +! magenta +*.color5: #85678f +*.color13: #b294bb + +! cyan +*.color6: #8d5e72 +*.color14: #bf8ea3 + +! white +*.color7: #707880 +*.color15: #c5c8c6 + +Xcursor.theme: xcursor-breeze +Xcursor.size: 0 diff --git a/i3wm/.bashrc b/i3wm/.bashrc new file mode 100644 index 0000000..9678428 --- /dev/null +++ b/i3wm/.bashrc @@ -0,0 +1,142 @@ +# +# ~/.bashrc +# + +[[ $- != *i* ]] && return + +colors() { + local fgc bgc vals seq0 + + printf "Color escapes are %s\n" '\e[${value};...;${value}m' + printf "Values 30..37 are \e[33mforeground colors\e[m\n" + printf "Values 40..47 are \e[43mbackground colors\e[m\n" + printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n" + + # foreground colors + for fgc in {30..37}; do + # background colors + for bgc in {40..47}; do + fgc=${fgc#37} # white + bgc=${bgc#40} # black + + vals="${fgc:+$fgc;}${bgc}" + vals=${vals%%;} + + seq0="${vals:+\e[${vals}m}" + printf " %-9s" "${seq0:-(default)}" + printf " ${seq0}TEXT\e[m" + printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m" + done + echo; echo + done +} + +[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion + +# Change the window title of X terminals +case ${TERM} in + xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*) + PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"' + ;; + screen*) + PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"' + ;; +esac + +use_color=true + +# Set colorful PS1 only on colorful terminals. +# dircolors --print-database uses its own built-in database +# instead of using /etc/DIR_COLORS. Try to use the external file +# first to take advantage of user additions. Use internal bash +# globbing instead of external grep binary. +safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM +match_lhs="" +[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)" +[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(/dev/null \ + && match_lhs=$(dircolors --print-database) +[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true + +if ${use_color} ; then + # Enable colors for ls, etc. Prefer ~/.dir_colors #64489 + if type -P dircolors >/dev/null ; then + if [[ -f ~/.dir_colors ]] ; then + eval $(dircolors -b ~/.dir_colors) + elif [[ -f /etc/DIR_COLORS ]] ; then + eval $(dircolors -b /etc/DIR_COLORS) + fi + fi + + if [[ ${EUID} == 0 ]] ; then + PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] ' + else + PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] ' + fi + + alias ls='ls --color=auto' + alias grep='grep --colour=auto' + alias egrep='egrep --colour=auto' + alias fgrep='fgrep --colour=auto' +else + if [[ ${EUID} == 0 ]] ; then + # show root@ when we don't have colors + PS1='\u@\h \W \$ ' + else + PS1='\u@\h \w \$ ' + fi +fi + +unset use_color safe_term match_lhs sh + +alias cp="cp -i" # confirm before overwriting something +alias df='df -h' # human-readable sizes +alias free='free -m' # show sizes in MB +alias np='nano -w PKGBUILD' +alias more=less + +xhost +local:root > /dev/null 2>&1 + +complete -cf sudo + +# Bash won't get SIGWINCH if another process is in the foreground. +# Enable checkwinsize so that bash will check the terminal size when +# it regains control. #65623 +# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11) +shopt -s checkwinsize + +shopt -s expand_aliases + +# export QT_SELECT=4 + +# Enable history appending instead of overwriting. #139609 +shopt -s histappend + +# +# # ex - archive extractor +# # usage: ex +ex () +{ + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xjf $1 ;; + *.tar.gz) tar xzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar x $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xf $1 ;; + *.tbz2) tar xjf $1 ;; + *.tgz) tar xzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1;; + *.7z) 7z x $1 ;; + *) echo "'$1' cannot be extracted via ex()" ;; + esac + else + echo "'$1' is not a valid file" + fi +} + +alias fehr="feh -ZFrz." +alias fehz="feh -ZFr." diff --git a/i3wm/config b/i3wm/config new file mode 100644 index 0000000..65cc436 --- /dev/null +++ b/i3wm/config @@ -0,0 +1,250 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 9 + +# Start XDG autostart .desktop files using dex. See also +# https://wiki.archlinux.org/index.php/XDG_Autostart +exec --no-startup-id dex --autostart --environment i3 + +# launch categorized menu +bindsym $mod+z exec --no-startup-id morc_menu + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec uxterm + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id dmenu_run +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec "rofi -modi drun,run -show drun" +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+colon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-msg exit" + +# resize window (you can also use the mouse for that) +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 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 semicolon 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 + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec --no-startup-id pamac-tray +exec --no-startup-id xautolock -time 320 -locker i3lock -i /usr/share/backgrounds/my-lockscreen.png +exec --no-startup-id keepassxc +exec --no-startup-id qbittorrent +exec_always --no-startup-id ff-theme-util +exec_always --no-startup-id fix_xcursor + +exec feh --bg-fill /usr/share/backgrounds/my-wallpaper.jpg + +#navigate workspaces next / previous +bindsym $mod+Ctrl+plus workspace next +bindsym $mod+Ctrl+minus workspace prev + +# Resizing windows by 10 in i3 using keyboard only +bindsym $mod+Ctrl+Right resize shrink width 5 px or 5 ppt +bindsym $mod+Ctrl+Up resize grow height 5 px or 5 ppt +bindsym $mod+Ctrl+Down resize shrink height 5 px or 5 ppt +bindsym $mod+Ctrl+Left resize grow width 5 px or 5 ppt + +bindsym $mod+Ctrl+b exec terminal -e 'bmenu' +bindsym $mod+F2 exec firefox +bindsym $mod+F3 exec pcmanfm + +# change borders +bindsym $mod+u border none +bindsym $mod+y border pixel 1 +bindsym $mod+n border normal + +for_window [class="firefox"] border none + +# vivid: e582ef +# mild light: f7e0f4 +# mild dark: 322027 + +# class border backgr. text indicator child_border +client.focused #e582ef #000000 #f7e0f4 #f7e0f4 #322027 +client.focused_inactive #333333 #000000 #ffffff #484e50 #5f676a +client.unfocused #333333 #000000 #888888 #292d2e #222222 +client.urgent #e582ef #e582ef #000000 #e582ef #000000 +client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c + +client.background #322027 + +bar { + status_command i3status + colors { + background #000000 + statusline #f7e0f4 + focused_workspace #e582ef #000000 #ffffff + active_workspace #000000 #000000 #000000 + inactive_workspace #322027 #000000 #A5AE9B + urgent_workspace #ffffff #E3A9FF #000000 + } +} + +# Set shut down, restart and locking features +bindsym $mod+0 mode "$mode_system" +set $mode_system (l)ock, (e)xit, (s)uspend, (r)eboot, (Shift+s)hutdown +mode "$mode_system" { + bindsym l exec i3lock -i /usr/share/backgrounds/my-lockscreen.png, mode "default" + bindsym s exec --no-startup-id i3exit suspend, mode "default" + bindsym e exec --no-startup-id i3exit logout, mode "default" + bindsym r exec --no-startup-id i3exit reboot, mode "default" + bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" + + # exit system mode: "Enter" or "Escape" + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+Print exec --no-startup-id maim -s | xclip -selection clipboard -t image/png -i +bindsym Print exec --no-startup-id maim | xclip -selection clipboard -t image/png -i diff --git a/i3wm/i3status.conf b/i3wm/i3status.conf new file mode 100644 index 0000000..696f276 --- /dev/null +++ b/i3wm/i3status.conf @@ -0,0 +1,74 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + interval = 5 + color_good = "#FFF73A" + color_bad = "#E344BD" + color_degraded = "#E49CD3" +} + +# order += "ipv6" +order += "wireless _first_" +order += "cpu_usage" +order += "disk /" +order += "disk /home/naiji/hdd1/" +order += "disk /home/naiji/hdd2/" +# order += "disk /home" +# order += "ethernet _first_" +# order += "battery all" +# order += "load" +order += "memory" +order += "tztime local" + +cpu_usage { + format = " cpu %usage " +} + +load { + format = " load %1min " + # max_threshold = 0.3 +} + +disk "/" { + # format = " hdd %avail " + format = " / %avail " +} + +disk "/home/naiji/hdd1/" { + # format = " hdd %avail " + format = " ~/hdd1 %avail " +} + +disk "/home/naiji/hdd2/" { + # format = " hdd %avail " + format = " ~/hdd2 %avail " +} + +ethernet _first_ { +# if you use %speed, i3status requires root privileges + format_up = " lan: %ip %speed " + format_down = " no lan " +} + +memory { + format = " RAM [%used | %available] " + threshold_degraded = "1G" + format_degraded = " MEMORY < %available " +} + +tztime local { + # format = "%Y-%m-%d %H:%M:%S" + format = " %d/%m/%Y | %H:%M " +} + +wireless _first_ { + format_up = " %quality at %essid %ip " + format_down = " wifi dead " +} diff --git a/i3wm/lightdm-gtk-greeter.conf b/i3wm/lightdm-gtk-greeter.conf new file mode 100644 index 0000000..405da1c --- /dev/null +++ b/i3wm/lightdm-gtk-greeter.conf @@ -0,0 +1,65 @@ +# LightDM GTK+ Configuration +# Available configuration options listed below. +# +# Appearance: +# theme-name = GTK+ theme to use +# icon-theme-name = Icon theme to use +# cursor-theme-name = Cursor theme to use +# cursor-theme-size = Cursor size to use +# background = Background file to use, either an image path or a color (e.g. #772953) +# user-background = false|true ("true" by default) Display user background (if available) +# transition-duration = Length of time (in milliseconds) to transition between background images ("500" by default) +# transition-type = ease-in-out|linear|none ("ease-in-out" by default) +# +# Fonts: +# font-name = Font to use +# xft-antialias = false|true Whether to antialias Xft fonts +# xft-dpi = Resolution for Xft in dots per inch (e.g. 96) +# xft-hintstyle = none|slight|medium|hintfull What degree of hinting to use +# xft-rgba = none|rgb|bgr|vrgb|vbgr Type of subpixel antialiasing +# +# Login window: +# active-monitor = Monitor to display greeter window (name or number). Use #cursor value to display greeter at monitor with cursor. Can be a semicolon separated list +# position = x y ("50% 50%" by default) Login window position +# default-user-image = Image used as default user icon, path or #icon-name +# hide-user-image = false|true ("false" by default) +# +# Panel: +# panel-position = top|bottom ("top" by default) +# clock-format = strftime-format string, e.g. %H:%M +# indicators = semi-colon ";" separated list of allowed indicator modules. Built-in indicators include "~a11y", "~language", "~session", "~power", "~clock", "~host", "~spacer". Unity indicators can be represented by short name (e.g. "sound", "power"), service file name, or absolute path +# +# Accessibility: +# a11y-states = states of accessibility features: "name" - save state on exit, "-name" - disabled at start (default value for unlisted), "+name" - enabled at start. Allowed names: contrast, font, keyboard, reader. +# keyboard = command to launch on-screen keyboard (e.g. "onboard") +# keyboard-position = x y[;width height] ("50%,center -0;50% 25%" by default) Works only for "onboard" +# reader = command to launch screen reader (e.g. "orca") +# at-spi-enabled = false|true ("true" by default) Enables accessibility at-spi-command if the greeter is built with it enabled +# +# Security: +# allow-debugging = false|true ("false" by default) +# screensaver-timeout = Timeout (in seconds) until the screen blanks when the greeter is called as lockscreen +# +# Template for per-monitor configuration: +# [monitor: name] +# background = overrides default value +# user-background = overrides default value +# laptop = false|true ("false" by default) Marks monitor as laptop display +# transition-duration = overrides default value +# +[greeter] +background=/usr/share/backgrounds/my-greeter.jpg +#user-background= +#theme-name= +#icon-theme-name= +#font-name= +#xft-antialias= +#xft-dpi= +#xft-hintstyle= +#xft-rgba= +#indicators= +#clock-format= +#keyboard= +#reader= +position=25 550 +#screensaver-timeout= diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..86d18ab --- /dev/null +++ b/install.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +echo "Master, starting system deploy (^^ )" +echo " " +echo " " + +sudo pacman -Suy htop pcmanfm qtcreator mpv keepassxc clang qbittorrent xterm terminus-font firefox sfml xclip wireguard-tools wget p7zip unzip zip rsync neofetch mumble lxappearance gcc cmake gdb feh soundkonverter picard +yay -S telegram-desktop visual-studio-code-bin unrar mednaffe element-desktop kid3 + +sudo cp -f ./i3wm/lightdm-gtk-greeter.conf /etc/lightdm/ +sudo cp -f ./i3wm/i3status.conf /etc/ +sudo cp -f ./pacman/* /etc/ +mkdir ~/.config/i3/ +cp -f ./i3wm/config ~/.config/i3/config +cp -f ./i3wm/.Xresources ~ +cp -f ./i3wm/.bashrc ~ + +mkdir ~/.config/QtProject/ +mkdir ~/.config/QtProject/qtcreator/ +mkdir ~/.config/QtProject/qtcreator/styles/ +mkdir ~/.config/QtProject/qtcreator/beautifier/ +mkdir ~/.config/QtProject/qtcreator/beautifier/clangformat/ +mkdir ~/.config/QtProject/qtcreator/beautifier/clangformat/Linux/ +cp -f ./qt-creator/styles/* ~/.config/QtProject/qtcreator/styles/ +cp -f ./qt-creator/clangformat/.clang-format ~/.config/QtProject/qtcreator/beautifier/clangformat/Linux/ + +git config --global user.name "NaiJi" +git config --global user.email "naijiworld@protonmail.com" + +echo " " +echo " " +echo "Now downloading wallpapers!" +echo " " +echo " " + +sudo wget https://konachan.net/image/0addf104d25fcad2c283e711fb1a3487/Konachan.com%20-%20345835%20animal_ears%20bikini%20blue_archive%20breasts%20close%20fang%20foxgirl%20halo%20hasumi_%28hasubatake39%29%20hat%20kuda_izuna%20shorts%20swimsuit%20tail%20wristwear.jpg -O /usr/share/backgrounds/my-wallpaper.jpg +sudo wget https://konachan.net/image/f04f77e3e96970ce643ef327ae8adfaf/Konachan.com%20-%20346792%20barefoot%20beach%20bikini%20blue_archive%20brown_hair%20clouds%20green_eyes%20hat%20izayoi_nonomi%20long_hair%20navel%20samart_normal%20sky%20swimsuit.jpg -O /usr/share/backgrounds/my-wallpaper-2.jpg +sudo wget https://konachan.net/jpeg/4ffaae111e151140a836fb363de1cf53/Konachan.com%20-%20345914%20animal_ears%20aqua_eyes%20ass%20barefoot%20blue_archive%20blush%20breasts%20cleavage%20food%20gray_hair%20halo%20mr.zhuo%20popsicle%20swimsuit%20water%20wolfgirl.jpg -O /usr/share/backgrounds/my-greeter.jpg + +echo " " +echo " " +echo "Master, your PC is ready! Now sync your keepassxc" +echo "Don't forget to move ssh keys and wireguard setup" +echo "Optionally re-install your theme:" +echo "https://www.gnome-look.org/p/1838855/" +echo "https://www.gnome-look.org/p/1654368" +echo "https://www.gnome-look.org/p/1661959" +echo " " +echo "A-a-a-and reboot! Thank you!! ^^" diff --git a/pacman/pacman.conf b/pacman/pacman.conf new file mode 100644 index 0000000..2bc7ce6 --- /dev/null +++ b/pacman/pacman.conf @@ -0,0 +1,100 @@ +# +# /etc/pacman.conf +# +# See the pacman.conf(5) manpage for option and repository directives + +# +# GENERAL OPTIONS +# +[options] +# The following paths are commented out with their default values listed. +# If you wish to use different paths, uncomment and update the paths. +#RootDir = / +#DBPath = /var/lib/pacman/ +#CacheDir = /var/cache/pacman/pkg/ +#LogFile = /var/log/pacman.log +#GPGDir = /etc/pacman.d/gnupg/ +#HookDir = /etc/pacman.d/hooks/ +HoldPkg = pacman glibc +#XferCommand = /usr/bin/curl -L -C - -f -o %o %u +#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u +#CleanMethod = KeepInstalled +Architecture = auto + +# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup +#IgnorePkg = +#IgnoreGroup = + +#NoUpgrade = +#NoExtract = + +# Misc options +#UseSyslog +Color +#NoProgressBar +CheckSpace +#VerbosePkgLists +#ParallelDownloads = 5 + +# By default, pacman accepts packages signed by keys that its local keyring +# trusts (see pacman-key and its man page), as well as unsigned packages. +SigLevel = Required DatabaseOptional +LocalFileSigLevel = Optional +#RemoteFileSigLevel = Required + +# NOTE: You must run `pacman-key --init` before first using pacman; the local +# keyring can then be populated with the keys of all official Arch Linux +# packagers with `pacman-key --populate archlinux`. + +# +# REPOSITORIES +# - can be defined here or included from another file +# - pacman will search repositories in the order defined here +# - local/custom mirrors can be added here or in separate files +# - repositories listed first will take precedence when packages +# have identical names, regardless of version number +# - URLs will have $repo replaced by the name of the current repo +# - URLs will have $arch replaced by the name of the architecture +# +# Repository entries are of the format: +# [repo-name] +# Server = ServerName +# Include = IncludePath +# +# The header [repo-name] is crucial - it must be present and +# uncommented to enable the repo. +# + +# The testing repositories are disabled by default. To enable, uncomment the +# repo name header and Include lines. You can add preferred servers immediately +# after the header, and they will be used before the default mirrors. + +#[testing] +#Include = /etc/pacman.d/mirrorlist + +[core] +Include = /etc/pacman.d/mirrorlist + +[extra] +Include = /etc/pacman.d/mirrorlist + +#[community-testing] +#Include = /etc/pacman.d/mirrorlist + +[community] +Include = /etc/pacman.d/mirrorlist + +# If you want to run 32 bit applications on your x86_64 system, +# enable the multilib repositories as required here. + +#[multilib-testing] +#Include = /etc/pacman.d/mirrorlist + +[multilib] +Include = /etc/pacman.d/mirrorlist + +# An example of a custom package repository. See the pacman manpage for +# tips on creating your own repositories. +#[custom] +#SigLevel = Optional TrustAll +#Server = file:///home/custompkgs diff --git a/qt-creator/clangformat/.clang-format b/qt-creator/clangformat/.clang-format new file mode 100644 index 0000000..ea46a82 --- /dev/null +++ b/qt-creator/clangformat/.clang-format @@ -0,0 +1,20 @@ +IndentWidth: 4 +BreakBeforeBraces: Allman +AlignAfterOpenBracket: Align +AlignArrayOfStructures: Right +AllowShortBlocksOnASingleLine: Empty +AllowShortFunctionsOnASingleLine: None +BraceWrapping: + AfterClass: true + AfterControlStatement: true + AfterEnum: true + AfterFunction: true + AfterNamespace: true + AfterObjCDeclaration: true + AfterStruct: true + AfterUnion: true + BeforeCatch: true + BeforeElse: true + IndentBraces: true + + diff --git a/qt-creator/styles/better_inkpot.xml b/qt-creator/styles/better_inkpot.xml new file mode 100644 index 0000000..7f53550 --- /dev/null +++ b/qt-creator/styles/better_inkpot.xml @@ -0,0 +1,67 @@ + + +