Difference between revisions of "IT-OS-Config-Samer"

From wiki.samerhijazi.net
Jump to navigation Jump to search
(Terminal: elementary)
(Tweaks)
 
(33 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
=Tweaks=
 +
*https://wiki.archlinux.org/title/Mouse_acceleration#Disabling_mouse_acceleration
 +
*https://freepctech.com/how-to/turn-off-mouse-acceleration/
 +
*https://www.youtube.com/watch?v=YkvTMnKajHE
 +
*org/gnome/desktop/peripherals/mouse/acceleration-profile
 +
 
=Needed-Apps=
 
=Needed-Apps=
 
* https://gist.github.com/grenade/6363978
 
* https://gist.github.com/grenade/6363978
Line 13: Line 19:
 
* https://www.gnome-look.org/p/1334194/
 
* https://www.gnome-look.org/p/1334194/
 
* https://unetbootin.github.io/
 
* https://unetbootin.github.io/
 +
 +
* Wallpapers: https://www.wallpaperflare.com/
  
 
=System Arch=
 
=System Arch=
Line 21: Line 29:
 
- sda4: rest >> /home
 
- sda4: rest >> /home
 
</pre>
 
</pre>
==bashrc==
+
==Prompt Customization==
* Colors: https://gist.github.com/vratiu/9780109
+
* https://wiki.archlinux.org/title/Bash/Prompt_customization
 
<pre class="code">
 
<pre class="code">
\[\033[0m\]    #No Format
+
\e[00;33;41m      # Start color scheme (\e[); (Text-Format; Foreground ; Background); Stop color scheme (m).
\[\033[0;32m\] #Green
+
\[\033[00;34;41m\] # Start color scheme (\[\033); (Text-Format; Foreground ; Background); Stop color scheme (m\]).
\[\033[0;33m\] #Yellow
+
-----------
\[\033[0;34m\] #Blue
+
Text-Format:
\[\033[0;36m\] #Cyan  
+
00: Normal Text
 +
01: Bold
 +
02: ???
 +
03: Italic
 +
04: Underlined text
 +
-----------
 +
Fortground:
 +
30: Black
 +
31: Red
 +
32: Green
 +
33: Yellow
 +
34: Blue
 +
35: Purple
 +
36: Cyan
 +
37: White
 +
-----------
 +
Background:
 +
40: Black
 +
41: Red
 +
42: Green
 +
43: Yellow
 +
44: Blue
 +
45: Purple
 +
46: Cyan
 +
47: White
 
</pre>
 
</pre>
 
<pre class="code">
 
<pre class="code">
PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\][\w]\[\033[00m\]\n\$ "
+
PS1="\[\033[32m\]\u@\h:\[\033[34m\][\w]\[\033[32m\]$(__git_ps1)\[\033[0m\]\n$ "
PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\][\w] \[\033[00;32m\]($(git branch 2>/dev/null | grep "^*"))\[\033[00m\]\n\$ "
+
---
 +
PROMPT_COMMAND=
 +
echo -ne "\033]0;Git\a"
 
</pre>
 
</pre>
 
<pre class="code">
 
<pre class="code">
 
alias ls='ls -alh'
 
alias ls='ls -alh'
 +
alias ll='ls -alF'
 
alias cls='clear'
 
alias cls='clear'
 
alias sysu='sudo dnf update'
 
alias sysu='sudo dnf update'
 
alias sysi='sudo dnf install'
 
alias sysi='sudo dnf install'
 
alias sysr='sudo dnf remove'
 
alias sysr='sudo dnf remove'
</pre>
+
alias mc='LANG=en_EN.UTF-8 mc'
 
 
==DPI-Resoulation==
 
<pre class="code">
 
# http://dpi.lv/
 
# HP-Box: 15.6" @ (1366 x 768) >> 100 DPI
 
# HP-Box: 17.3" @ (1366 x 768) >> 91 DPI
 
xdpyinfo | grep dots
 
 
</pre>
 
</pre>
  
Line 61: Line 89:
 
* Tool (GTK+ Widget Factory): gtk3-widget-factory
 
* Tool (GTK+ Widget Factory): gtk3-widget-factory
 
* Arc-Theme-Colors: https://www.color-hex.com/color-palette/36646
 
* Arc-Theme-Colors: https://www.color-hex.com/color-palette/36646
==Terminal: gnome==
+
==Terminal==
 +
===Sams===
 
<pre class="code">
 
<pre class="code">
BG= #3c3c3c
+
BG= #2E2E2E
 
FG= #D3D7CF
 
FG= #D3D7CF
 
Pallete: ['#073642','#dc322f','#859900','#b58900','#268bd2','#ec0048','#2aa198','#94a3a5','#586e75','#cb4b16','#859900','#b58900','#268bd2','#d33682','#2aa198','#6c71c4']
 
Pallete: ['#073642','#dc322f','#859900','#b58900','#268bd2','#ec0048','#2aa198','#94a3a5','#586e75','#cb4b16','#859900','#b58900','#268bd2','#d33682','#2aa198','#6c71c4']
 
</pre>
 
</pre>
 +
===Dracula===
 +
<pre class="code">
 +
BG= #282A36
 +
FG= #F8F8F2
 +
Pallete-gnome: ['#262626', '#E356A7', '#42E66C', '#E4F34A', '#9B6BDF', '#E64747', '#75D7EC', '#EFA554', '#7A7A7A', '#FF79C6', '#50FA7B', '#F1FA8C', '#BD93F9', '#FF5555', '#8BE9FD', '#FFB86C']
 +
Pallete-eos: #262626:#E356A7:#42E66C:#E4F34A:#9B6BDF:#E64747:#75D7EC:#EFA554:#7A7A7A:#FF79C6:#50FA7B:#F1FA8C:#BD93F9:#FF5555:#8BE9FD:#FFB86C
 +
</pre>
 +
 
==Terminal: elementary==
 
==Terminal: elementary==
 
<pre class="code">
 
<pre class="code">
Line 92: Line 129:
 
###############################################
 
###############################################
 
</pre>
 
</pre>
 +
==CSS-Style==
 
<pre class="code">
 
<pre class="code">
 
~/.config/gtk-3.0/gtk.css
 
~/.config/gtk-3.0/gtk.css
---------------------------
+
/*********************/
 
notebook tab {
 
notebook tab {
 
   min-height: 0;
 
   min-height: 0;
Line 105: Line 143:
 
   margin: 1px;
 
   margin: 1px;
 
}
 
}
...
+
/*********************
 +
* wingpanel support *
 +
********************/
 +
.panel { 
 +
  background-color: rgba(47,55,66,1.0); 
 +
  transition: all 1s ease-in-out;
 +
}   
 +
.panel.maximized { 
 +
  background-color: rgba(47,55,66,1.0);
 +
}
 +
/*********************/
 
VteTerminal,
 
VteTerminal,
 
TerminalScreen {
 
TerminalScreen {
 
padding: 10px 10px 10px 10px;
 
padding: 10px 10px 10px 10px;
 
-VteTerminal-inner-border: 10px 10px 10px 10px;
 
-VteTerminal-inner-border: 10px 10px 10px 10px;
 +
}
 +
</pre>
 +
 +
==Plank-Theme==
 +
Save the new Theme under the following Folder:
 +
<pre class="code">
 +
~/.local/share/plank/themes
 +
</pre>
 +
 +
==Fonts==
 +
* "'''Cascadia Mono'''" with Size: '''10'''
 +
* https://github.com/microsoft/cascadia-code/releases
 +
* Use "ttf" Version
 +
* Colors: One Half Dark https://github.com/sonph/onehalf
 +
* https://github.com/aarowill/base16-gnome-terminal
 +
<pre class="code">
 +
{
 +
"background": "#282C34",
 +
"black": "#282C34",
 +
"blue": "#61AFEF",
 +
"brightBlack": "#5A6374",
 +
"brightBlue": "#61AFEF",
 +
"brightCyan": "#56B6C2",
 +
"brightGreen": "#98C379",
 +
"brightPurple": "#C678DD",
 +
"brightRed": "#E06C75",
 +
"brightWhite": "#DCDFE4",
 +
"brightYellow": "#E5C07B",
 +
"cursorColor": "#FFFFFF",
 +
"cyan": "#56B6C2",
 +
"foreground": "#DCDFE4",
 +
"green": "#98C379",
 +
"name": "One Half Dark",
 +
"purple": "#C678DD",
 +
"red": "#E06C75",
 +
"selectionBackground": "#FFFFFF",
 +
"white": "#DCDFE4",
 +
"yellow": "#E5C07B"
 
}
 
}
 
</pre>
 
</pre>
Line 149: Line 235:
 
convert example.png -resize 200 example.png        # Width 200
 
convert example.png -resize 200 example.png        # Width 200
 
convert example.png -resize x100 example.png        # Hight 100
 
convert example.png -resize x100 example.png        # Hight 100
 +
</pre>
 +
<pre class="code">
 +
inkscape –-export-type=png image.svg
 
</pre>
 
</pre>

Latest revision as of 12:57, 6 September 2022

Tweaks

Needed-Apps

System Arch

- sda1: 01GB >> /boot/efi
- sda2: 02GB >> swap
- sda3: 70GB >> /
- sda4: rest >> /home

Prompt Customization

\e[00;33;41m       # Start color scheme (\e[); (Text-Format; Foreground ; Background); Stop color scheme (m).
\[\033[00;34;41m\] # Start color scheme (\[\033); (Text-Format; Foreground ; Background); Stop color scheme (m\]).
-----------
Text-Format:
00: Normal Text
01: Bold
02: ???
03: Italic
04: Underlined text
-----------
Fortground:
30: Black
31: Red
32: Green
33: Yellow
34: Blue
35: Purple
36: Cyan
37: White
-----------
Background:
40: Black
41: Red
42: Green
43: Yellow
44: Blue
45: Purple
46: Cyan
47: White
PS1="\[\033[32m\]\u@\h:\[\033[34m\][\w]\[\033[32m\]$(__git_ps1)\[\033[0m\]\n$ "
---
PROMPT_COMMAND=
echo -ne "\033]0;Git\a"
alias ls='ls -alh'
alias ll='ls -alF'
alias cls='clear'
alias sysu='sudo dnf update'
alias sysi='sudo dnf install'
alias sysr='sudo dnf remove'
alias mc='LANG=en_EN.UTF-8 mc'

Setting VIM

  • File: .vimrc
map <C-a> <esc>ggVG<CR>

Themeing

Terminal

Sams

BG= #2E2E2E
FG= #D3D7CF
Pallete: ['#073642','#dc322f','#859900','#b58900','#268bd2','#ec0048','#2aa198','#94a3a5','#586e75','#cb4b16','#859900','#b58900','#268bd2','#d33682','#2aa198','#6c71c4']

Dracula

BG= #282A36
FG= #F8F8F2
Pallete-gnome: ['#262626', '#E356A7', '#42E66C', '#E4F34A', '#9B6BDF', '#E64747', '#75D7EC', '#EFA554', '#7A7A7A', '#FF79C6', '#50FA7B', '#F1FA8C', '#BD93F9', '#FF5555', '#8BE9FD', '#FFB86C']
Pallete-eos: #262626:#E356A7:#42E66C:#E4F34A:#9B6BDF:#E64747:#75D7EC:#EFA554:#7A7A7A:#FF79C6:#50FA7B:#F1FA8C:#BD93F9:#FF5555:#8BE9FD:#FFB86C

Terminal: elementary

BG= rgba(46, 46, 46, 0.95) : #2E2E2E
FG= #a5a5a5
Pallete: '#073642:#dc322f:#859900:#b58900:#268bd2:#ec0048:#2aa198:#94a3a5:#586e75:#cb4b16:#859900:#b58900:#268bd2:#d33682:#2aa198:#6c71c4'

Terminal: Arc

Terminal-BG= #4B5162 alternativ #282A36
Terminal-FG= #D3D7CF
Taskbar    = #001823 bzw. rgba(0, 24, 35, 1)
Taskbar    = #001923 bzw. rgba(0, 25, 35, 1)

Mix-Colors

###############################################
# Created by cinnamon-settings - please do not edit or reformat.
#
style "cs-scrollbar-style" {
GtkScrollbar::slider-width = 10
}
class "GtkScrollbar" style "cs-scrollbar-style"
###############################################

CSS-Style

~/.config/gtk-3.0/gtk.css
/*********************/
notebook tab {
  min-height: 0;
  padding: 2px;
}
notebook tab button {
  min-height: 0;
  min-width: 0;
  padding: 1px;
  margin: 1px;
}
/*********************
* wingpanel support *
********************/
.panel {  
   background-color: rgba(47,55,66,1.0);  
   transition: all 1s ease-in-out;
}    
.panel.maximized {  
   background-color: rgba(47,55,66,1.0); 
}
/*********************/
VteTerminal,
TerminalScreen {
padding: 10px 10px 10px 10px;
-VteTerminal-inner-border: 10px 10px 10px 10px;
}

Plank-Theme

Save the new Theme under the following Folder:

~/.local/share/plank/themes

Fonts

{
"background": "#282C34",
"black": "#282C34",
"blue": "#61AFEF",
"brightBlack": "#5A6374",
"brightBlue": "#61AFEF",
"brightCyan": "#56B6C2",
"brightGreen": "#98C379",
"brightPurple": "#C678DD",
"brightRed": "#E06C75",
"brightWhite": "#DCDFE4",
"brightYellow": "#E5C07B",
"cursorColor": "#FFFFFF",
"cyan": "#56B6C2",
"foreground": "#DCDFE4",
"green": "#98C379",
"name": "One Half Dark",
"purple": "#C678DD",
"red": "#E06C75",
"selectionBackground": "#FFFFFF",
"white": "#DCDFE4",
"yellow": "#E5C07B"
}

Setting OS

OS: ubuntu

  • Ubuntu 18.04 LTS: ubuntu/bionic64
sudo apt install curl
sudo apt install nodejs
sudo apt install npm
sudo apt install python
...
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt install docker-ce
sudo usermod -aG docker $USER
...
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
...
sudo apt update
sudo apt-get upgrade

OS: fedora


Images

sudo dnf install ImageMagick
convert howtogeek.png howtogeek.jpg
convert howtogeek.png -quality 95 howtogeek.jpg
convert example.png -resize 200x100 example.png
convert example.png -resize 200x100! example.png
convert example.png -resize 200 example.png         # Width 200
convert example.png -resize x100 example.png        # Hight 100
inkscape –-export-type=png image.svg