Compare commits

...

2 Commits

Author SHA1 Message Date
18c56607e5 remove script growthrate.py 2023-10-22 11:59:04 +02:00
015061ccba waybar backlight icon percent position changer 2023-10-22 11:55:33 +02:00
3 changed files with 1 additions and 25 deletions

View File

@ -13,7 +13,6 @@ alias shutdown='systemctl poweroff'
alias v='nvim'
alias vi='nvim'
alias vim='nvim'
alias rw='~/dotfiles/waybar/reload.sh'
# GIT
alias gs="git status"

View File

@ -1,23 +0,0 @@
# DESC: Python script to calculate the growth rate of two numbers
import rich
import pyperclip
from rich.console import Console
from rich.prompt import FloatPrompt
# Show prompts
console = Console()
num1 = FloatPrompt.ask("Old value")
num2 = FloatPrompt.ask("New value")
# Calculate the growth rate
gr = ((num2-num1)/num1)
percentage = "{:.2%}".format(gr)
# Print result to the console
console.print(percentage, style="bold")
# Copy result into the system clipboard
pyperclip.copy(percentage)
print("Result has been copied to the clipboard!")

View File

@ -222,7 +222,7 @@
//Backlight
"backlight": {
"device": "intel_backlight",
"format": "{percent}% {icon}",
"format": "{icon} {percent}%",
"format-icons": ["󰃞", "󰃠"]
},