forked from ilosrim/my-configs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
986 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 Xinux - Linux O'zbekiston | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
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 OR COPYRIGHT HOLDERS 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,36 @@ | ||
<h3 align="center"><b>ilosrim</b></h3> | ||
<img src="./.config/win-neofetch.png" alt="Windows PowerShell config" align="center"> | ||
<img src="./ilosrim/powershell.png" alt="Windows PowerShell config" align="center"> | ||
|
||
* **Operatsion Tizim:** Windows 11 Pro 86_64 | ||
* **Terminal:** Windows Terminal | ||
* **Shrift:** Hack Regular Nerd Font Complete Mono Windows Compatible | ||
* **Ranglar Sxemasi:** [`Powerline`](https://github.com/b-ryan/powerline-shell) | ||
- **Operatsion Tizim:** Windows 10 Pro 86_64 | ||
- **Terminal:** PowerShell Terminal | ||
- **Shrift:** Raster Fonts | ||
|
||
<hr /> | ||
<img src="./ilosrim/PowerShell/win-neofetch.png" alt="Windows PowerShell config" align="center"> | ||
|
||
- **Operatsion Tizim:** Windows 11 Pro 86_64 | ||
- **Terminal:** Windows Terminal | ||
- **Shrift:** Hack Regular Nerd Font Complete Mono Windows Compatible | ||
- **Ranglar Sxemasi:** [`Powerline`](https://github.com/b-ryan/powerline-shell) | ||
|
||
<hr /> | ||
<img src="./ilosrim/win-arch-2.png" alt="Windows & Linux" align="center"> | ||
|
||
- **Operatsion Tizim:** Arch Linux on Windows 10 Pro 86_64 | ||
- **Terminal:** Fish | ||
- **Shrift:** Hack Regular Nerd Font | ||
|
||
<hr /> | ||
<img src="./ilosrim/winMacUx.png" alt="Windows Mac Linux" align="center"> | ||
|
||
- **Operatsion Tizim:** Ubuntu on Windows 10 Pro 86_64 | ||
- **Terminal:** Fish | ||
- **Shrift:** Hack Regular Nerd Font | ||
|
||
|
||
<hr /> | ||
<img src="./ilosrim/firefox-theme/images/ff_protonbutquantum.png" alt="Windows PowerShell config" align="center"> | ||
|
||
- **Operatsion Tizim:** Parqinsa | ||
|
||
<h3 align="center">Bu yerda sizning konfiglaringiz bo'lishi mumkin...</h3> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
80 changes: 80 additions & 0 deletions
80
ilosrim/PowerShell/powershell_script/Microsoft.PowerShell_profile.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
Clear-Host | ||
|
||
# Set Default location | ||
Set-Location D: | ||
|
||
# function prompt { $p = Split-Path -leaf -path (Get-Location) "$p> " } | ||
|
||
# function prompt { "[$(('mirjr@dev'+$PWD).replace($HOME, '~'))]> " } | ||
|
||
# function prompt { "$( ( Get-Location | Get-Item ).Name )>" } | ||
|
||
# function prompt {'mirjr@dev:' + $(Get-Location | Split-Path -Leaf) + "$ "} | ||
|
||
function Write-BranchName () { | ||
try { | ||
$branch = git rev-parse --abbrev-ref HEAD | ||
|
||
if ($branch -eq "HEAD") { | ||
# we're probably in detached HEAD state, so print the SHA | ||
$branch = git rev-parse --short HEAD | ||
Write-Host " ($branch)" -ForegroundColor "red" | ||
} | ||
else { | ||
# we're on an actual branch, so print it | ||
Write-Host " ($branch)" -ForegroundColor "blue" | ||
} | ||
} | ||
catch { | ||
# we'll end up here if we're in a newly initiated git repo | ||
Write-Host " (no branches yet)" -ForegroundColor "yellow" | ||
} | ||
} | ||
|
||
function prompt { | ||
$base = "mirjr@$env:COMPUTERNAME " | ||
$date = (get-date -Format "yyyy-MM-dd HH:mm:ss") | ||
$path = "$($executionContext.SessionState.Path.CurrentLocation)" # $(Get-Location | Split-Path -Leaf) | ||
$userPrompt = "$('$' * ($nestedPromptLevel + 1)) " | ||
|
||
Write-Host "`n$base" -ForegroundColor DarkGreen -NoNewline | ||
write-host "$date" -ForegroundColor Yellow -NoNewline | ||
write-host " | " -ForegroundColor DarkGray -NoNewline | ||
|
||
if (Test-Path .git) { | ||
Write-Host $path -NoNewline -ForegroundColor Yellow | ||
Write-BranchName | ||
} | ||
else { | ||
# we're not in a repo so don't bother displaying branch name/sha | ||
Write-Host $path -ForegroundColor Yellow | ||
} | ||
|
||
return $userPrompt | ||
} | ||
|
||
|
||
# Arxiv | ||
# function Prompt | ||
# { | ||
# write-host "mirjr@$env:COMPUTERNAME " -ForegroundColor DarkGreen -NoNewline | ||
# write-host (get-date -Format "yyyy-MM-dd HH:mm:ss") -ForegroundColor Yellow -NoNewline | ||
# write-host " | " -ForegroundColor DarkGray -NoNewline | ||
# if( (Get-Location).Drive -ne $null) | ||
# { | ||
# write-host (Get-Location) | ||
# $networkdrive = $false | ||
# } | ||
# else | ||
# { | ||
# $networkdrive = $true | ||
# $first, $second, $third, $folder = (Get-Location).path.Split("\") | ||
# write-host "\" -NoNewline | ||
# $folder | foreach-object { | ||
# write-host "\$_" -NoNewline | ||
# } | ||
# write-host | ||
# } | ||
# write-host "$" -NoNewline | ||
# return " " | ||
# } |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Firefox Proton Square | ||
*Recreates the feel of Quantum with its squared tabs and menus. No rounded corners to be seen.* | ||
|
||
|
||
|
||
 | ||
|
||
If you hate rounded corners like me, this is for you. Only square corners. | ||
|
||
These tweaks attempt to recreate the feel of Quantum with its squared tabs and menus, but in the Proton UI. As of FF91, the `about:config` option to disable proton has been deprecated, leaving CSS as the main way to revert the UI. | ||
|
||
## Features | ||
|
||
**Tab & Menu Design** | ||
- Square corners | ||
- Colored context line above selected tab | ||
- Divide Line between tabs | ||
|
||
**Custom Accent Color** | ||
- Consistent, customizable accent color across Firefox | ||
|
||
**Customizable** | ||
- User customizable variables can be found in the `userVariables.css` file for easy access | ||
- Static file retains saved preferences, does not need to be updated | ||
|
||
|
||
## How to Install? | ||
|
||
1. Enable `userChrome.css` Support. | ||
- Go to `about:config` | ||
- `toolkit.legacyUserProfileCustomizations.stylesheets` to `true` | ||
2. Find Profile Directory. | ||
- Go to `about:support` | ||
- Open Profile Directory | ||
3. Copy Files | ||
- create `chrome` directory at profile | ||
- download the `userChrome.css`, `userContent.css`, and `userVariables.css` files from the latest release | ||
- copy the files into the `chrome` directory | ||
4. Restart Firefox | ||
|
||
To update, repeat steps 2-4. `userVariables.css` does NOT need to be replaced. | ||
|
||
[Thunderbird is also supported.](../../wiki/Thunderbird-Install) | ||
|
||
|
||
## Custom Preferences | ||
**`userVariables.css`** | ||
> Restart Firefox to apply changes | ||
- Custom color controlled by `--custom-accent-color: <insert color here>;` | ||
- Tab divider color controlled by `--custom-tab-divider-color: <insert color here>;` | ||
- Use hex color code or [color name](https://www.w3schools.com/cssref/css_colors.asp) | ||
- set divider color = none, to disable dividers | ||
- Set height of the tabs | ||
- Scale the size of sync avatar | ||
|
||
**`about:config`** | ||
- Use default window controls in title bar (linux only) by creating the pref `browser.windowcontrolbuttons.overwrite` = `true` | ||
- default buttons with light/dark theme () vs. OS themed buttons () | ||
- Re-round sync profile picture by creating the pref `browser.syncavatar.round` = `true` | ||
- Color the separator in the app menu by creating the pref `browser.appmenugradient.overwrite` = `true` | ||
-  | ||
|
||
|
||
|
||
## Suggested Tweaks | ||
**`about:config`** | ||
- set `browser.tabs.tabMinWidth` to `150` px or desired width | ||
- set `widget.non-native-theme.gtk.scrollbar.round-thumb` to `false` to square the scrollbar (linux only) | ||
- change `layout.css.devPixelsPerPx` to scale the whole browser (1.0 represents 100% scaling) | ||
- re-enable compact density by setting `browser.compactmode.show` to `true` | ||
|
||
|
||
**Addons** | ||
- [Stylus](https://addons.mozilla.org/en-US/firefox/addon/styl-us/) or similar for editing webpage CSS | ||
- create custom rules to apply `*{border-radius: 0 !important}` to square *most* elements on webpages | ||
- *may result in webpage breakages, apply at own risk* | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.