Massive Changes

This commit is contained in:
sankalp committed 2024-01-30 16:35:51 +05:45
1 parent a7e329db94
commit 5e86735afc
39 files changed
+263 -402

No files matched your search

+19 -16
View File
@@ -14,17 +14,25 @@ git clone https://aur.archlinux.org/paru-bin.git
* makepkg -Si
<b>Install Dependencies / Packages </b>
```
paru -S fnm hyprland keyb rofi-file-browser-extended-git imv brightnessctl yazi waybar playerctl wf-recorder kvantum swaylock-effects-git qt5ct qt6ct nwg-look mpv-mpris pacman-contrib swayidle pavucontrol pamixer file-roller htop adobe-source-code-pro-fonts ttf-fira-code ttf-jetbrains-mono-nerd ttf-jetbrains-mono noto-fonts-emoji ttf-droid otf-font-awesome ttf-cascadia-code-nerd ttf-bitstream-vera ttf-croscore ttf-dejavu ttf-droid ttf-ibm-plex ttf-liberation noto-fonts gnu-free-fonts linux-headers alsa-utils less wlroots vlc thunar thunar-volman thunar-archive-plugin udiskie mtpfs jmtpfs gvfs-gphoto2 gvfs-mtp mousepad rofi-lbonn-wayland-git network-manager-applet lsd cava geany geany-plugin swaync tumbler unzip zip unrar polkit-gnome xdg-user-dirs grim slurp gnome-system-monitor jq blueberyy-wayland polkit-kde-agent cbonsai zathura-pdf-mupdf zathura yt-dlp ffmpegthumbnailer xdotool wmctrl zsh lazygit xdg-desktop-portal-gtk gtk-engine-murrine lxappearance xsel bc
```
> **Warning**
>
> DO NOT blindly run this. Backup your dots beforehand.
<b> Installing automatically</b>
```
git clone https://github.com/S4NKALP/hyprland
```
<details>
<summary><h3>Manual Installation</h3></summary>
<b> Dependency
```
paru -S fnm hyprland keyb rofi-file-browser-extended-git imv brightnessctl yazi waybar playerctl wf-recorder kvantum swaylock-effects-git qt5ct qt6ct nwg-look mpv-mpris pacman-contrib swayidle pavucontrol pamixer file-roller adobe-source-code-pro-fonts ttf-fira-code ttf-jetbrains-mono-nerd ttf-jetbrains-mono noto-fonts-emoji otf-font-awesome ttf-cascadia-code-nerd ttf-bitstream-vera ttf-croscore ttf-dejavu ttf-droid ttf-ibm-plex ttf-liberation noto-fonts gnu-free-fonts linux-headers alsa-utils less wlroots thunar thunar-volman thunar-archive-plugin udiskie mtpfs jmtpfs gvfs-gphoto2 gvfs-mtp rofi-lbonn-wayland-git network-manager-applet lsd cava geany geany-plugin swaync tumbler unzip zip unrar polkit-gnome xdg-user-dirs grim slurp jq polkit-kde-agent zathura-pdf-mupdf zathura yt-dlp ffmpegthumbnailer xdotool wmctrl zsh lazygit xdg-desktop-portal-gtk gtk-engine-murrine lxappearance xsel bc clipshit bluez bluez-utils swww kitty imagemagick
```
<b> Install GTK Themes,Icons,Cursor
@@ -37,23 +45,18 @@ git clone https://github.com/S4NKALP/hyprland.git
cd hyprland
cp -r wallpapers ~/Pictures
cp -r config/* ~/.config
cd misc
cp -r fonts ~/.local/
cp .zshenv ~/
cp -r bin ~/.local/
cp -r misc/bin ~/.local
cp -r misc/.zshenv ~/
chmod +x ~/.config/hypr/scripts/*
chmod +x ~/.config/hypr/UserScripts/*
```
* GTK Themes
```
git clone https://github.com/Fausto-Korpsvart/Tokyo-Night-GTK-Theme.git
cd Tokyo-Night-GTK-Theme/
sudo cp -r themes/Tokyonight-Dark-BL-LB /usr/share/themes/
sudo cp -r icons/Tokyonight-Dark /usr/share/icons/
sudo cp -r Tokyo-Night-GTK-Theme/themes/Tokyonight-Dark-BL-LB /usr/share/themes/
sudo cp -r Tokyo-Night-GTK-Theme/icons/Tokyonight-Dark /usr/share/icons/
sudo tar -xf "assets/Bibata-Modern-Ice.tar.xz" -C /usr/share/icons/
```
-110
View File
@@ -1,110 +0,0 @@
; mousepad GtkAccelMap rc-file -*- scheme -*-
; this file is an automated accelerator map dump
;
; (gtk_accel_path "<Actions>/app.mousepad-plugin-shortcuts" "")
; (gtk_accel_path "<Actions>/win.edit.convert.spaces-to-tabs" "")
; (gtk_accel_path "<Actions>/app.preferences.view.smart-backspace" "")
; (gtk_accel_path "<Actions>/app.preferences.view.highlight-current-line" "")
; (gtk_accel_path "<Actions>/app.preferences.file.make-backup" "")
; (gtk_accel_path "<Actions>/win.preferences.window.toolbar-visible" "")
; (gtk_accel_path "<Actions>/app.preferences.window.client-side-decorations" "")
; (gtk_accel_path "<Actions>/win.search.find-and-replace" "<Primary>r")
; (gtk_accel_path "<Actions>/win.file.save-all" "")
; (gtk_accel_path "<Actions>/win.edit.duplicate-line-selection" "")
; (gtk_accel_path "<Actions>/win.edit.move.line-up" "<Alt>Up")
; (gtk_accel_path "<Actions>/win.edit.convert.transpose" "<Primary>t")
; (gtk_accel_path "<Actions>/win.document.go-to-tab(4)" "<Alt>5")
; (gtk_accel_path "<Actions>/win.edit.undo" "<Primary>z")
; (gtk_accel_path "<Actions>/win.file.save-as" "<Primary><Shift>s")
; (gtk_accel_path "<Actions>/app.preferences.window.remember-size" "")
; (gtk_accel_path "<Actions>/app.preferences" "")
; (gtk_accel_path "<Actions>/win.edit.convert.tabs-to-spaces" "")
; (gtk_accel_path "<Actions>/app.preferences.window.remember-state" "")
; (gtk_accel_path "<Actions>/app.preferences.window.path-in-title" "")
; (gtk_accel_path "<Actions>/win.view.fullscreen" "F11")
; (gtk_accel_path "<Actions>/win.document.previous-tab" "<Primary>Page_Up")
; (gtk_accel_path "<Actions>/app.preferences.view.show-whitespace.inside" "")
; (gtk_accel_path "<Actions>/win.file.new-window" "<Primary><Shift>n")
; (gtk_accel_path "<Actions>/app.state.search.incremental" "")
; (gtk_accel_path "<Actions>/app.preferences.view.show-whitespace" "")
; (gtk_accel_path "<Actions>/app.preferences.view.use-default-monospace-font" "")
; (gtk_accel_path "<Actions>/app.preferences.file.auto-reload" "")
; (gtk_accel_path "<Actions>/win.document.go-to-tab(5)" "<Alt>6")
; (gtk_accel_path "<Actions>/win.reset-font-size" "<Primary>0")
; (gtk_accel_path "<Actions>/win.file.save" "<Primary>s")
; (gtk_accel_path "<Actions>/win.help.about" "")
; (gtk_accel_path "<Actions>/win.file.new" "<Primary>n")
; (gtk_accel_path "<Actions>/app.preferences.file.add-last-end-of-line" "")
; (gtk_accel_path "<Actions>/win.preferences.window.menubar-visible" "<Primary>m")
; (gtk_accel_path "<Actions>/win.search.find-previous" "<Primary><Shift>g")
; (gtk_accel_path "<Actions>/app.preferences.window.expand-tabs" "")
; (gtk_accel_path "<Actions>/win.file.detach-tab" "<Primary>d")
; (gtk_accel_path "<Actions>/app.state.search.highlight-all" "")
; (gtk_accel_path "<Actions>/win.edit.paste" "<Primary>v")
; (gtk_accel_path "<Actions>/app.preferences.view.show-whitespace.leading" "")
; (gtk_accel_path "<Actions>/win.edit.copy" "<Primary>c")
; (gtk_accel_path "<Actions>/win.document.go-to-tab(6)" "<Alt>7")
; (gtk_accel_path "<Actions>/win.file.open-recent.new" "")
; (gtk_accel_path "<Actions>/win.file.close-window" "<Primary><Shift>w")
; (gtk_accel_path "<Actions>/win.file.new-from-template.new" "")
; (gtk_accel_path "<Actions>/win.edit.convert.strip-trailing-spaces" "")
; (gtk_accel_path "<Actions>/win.document.filetype" "")
; (gtk_accel_path "<Actions>/win.edit.paste-special.paste-from-history" "")
; (gtk_accel_path "<Actions>/win.view.select-font" "")
; (gtk_accel_path "<Actions>/win.edit.convert.to-lowercase" "")
; (gtk_accel_path "<Actions>/win.edit.convert.to-title-case" "")
; (gtk_accel_path "<Actions>/app.preferences.window.always-show-tabs" "")
; (gtk_accel_path "<Actions>/win.textview.menubar" "")
; (gtk_accel_path "<Actions>/win.document.go-to-tab(0)" "<Alt>1")
; (gtk_accel_path "<Actions>/win.document.go-to-tab(7)" "<Alt>8")
; (gtk_accel_path "<Actions>/win.search.find" "<Primary>f")
; (gtk_accel_path "<Actions>/app.quit" "<Primary>q")
; (gtk_accel_path "<Actions>/win.file.close-tab" "<Primary>w")
; (gtk_accel_path "<Actions>/win.edit.increase-indent" "<Primary>i")
; (gtk_accel_path "<Actions>/app.preferences.view.show-line-endings" "")
; (gtk_accel_path "<Actions>/win.edit.delete-selection" "Delete")
; (gtk_accel_path "<Actions>/win.edit.move.word-left" "<Alt>Left")
; (gtk_accel_path "<Actions>/win.edit.delete-line" "<Primary><Shift>Delete")
; (gtk_accel_path "<Actions>/win.document.line-ending" "")
; (gtk_accel_path "<Actions>/win.file.open-recent.clear-history" "")
; (gtk_accel_path "<Actions>/win.document.viewer-mode" "")
; (gtk_accel_path "<Actions>/app.preferences.view.show-whitespace.trailing" "")
; (gtk_accel_path "<Actions>/win.file.reload" "")
; (gtk_accel_path "<Actions>/win.document.tab.tab-size" "")
; (gtk_accel_path "<Actions>/win.edit.move.line-down" "<Alt>Down")
; (gtk_accel_path "<Actions>/win.document.go-to-tab(8)" "<Alt>9")
; (gtk_accel_path "<Actions>/win.document.go-to-tab(1)" "<Alt>2")
; (gtk_accel_path "<Actions>/app.preferences.view.show-line-numbers" "")
; (gtk_accel_path "<Actions>/win.search.go-to" "<Primary>l")
; (gtk_accel_path "<Actions>/app.preferences.view.color-scheme" "")
; (gtk_accel_path "<Actions>/app.preferences.file.monitor-changes" "")
; (gtk_accel_path "<Actions>/win.edit.paste-special.paste-as-column" "")
; (gtk_accel_path "<Actions>/app.preferences.window.remember-position" "")
; (gtk_accel_path "<Actions>/app.preferences.view.show-right-margin" "")
; (gtk_accel_path "<Actions>/win.edit.cut" "<Primary>x")
; (gtk_accel_path "<Actions>/win.search.find-next" "<Primary>g")
; (gtk_accel_path "<Actions>/app.mousepad-plugin-gspell" "<Primary>k")
; (gtk_accel_path "<Actions>/app.preferences.view.match-braces" "")
; (gtk_accel_path "<Actions>/win.edit.decrease-indent" "<Primary>u")
; (gtk_accel_path "<Actions>/win.increase-font-size" "<Primary>plus")
; (gtk_accel_path "<Actions>/app.preferences.view.word-wrap" "")
; (gtk_accel_path "<Actions>/win.document.go-to-tab(2)" "<Alt>3")
; (gtk_accel_path "<Actions>/app.preferences.view.insert-spaces" "")
; (gtk_accel_path "<Actions>/app.preferences.view.auto-indent" "")
; (gtk_accel_path "<Actions>/win.file.open" "<Primary>o")
; (gtk_accel_path "<Actions>/win.decrease-font-size" "<Primary>minus")
; (gtk_accel_path "<Actions>/win.file.print" "<Primary>p")
; (gtk_accel_path "<Actions>/win.document.next-tab" "<Primary>Page_Down")
; (gtk_accel_path "<Actions>/win.edit.move.word-right" "<Alt>Right")
; (gtk_accel_path "<Actions>/win.edit.select-all" "<Primary>a")
; (gtk_accel_path "<Actions>/win.edit.convert.to-uppercase" "")
; (gtk_accel_path "<Actions>/win.document.go-to-tab" "")
; (gtk_accel_path "<Actions>/win.preferences.window.statusbar-visible" "")
; (gtk_accel_path "<Actions>/win.edit.convert.to-opposite-case" "<Primary><Alt>u")
; (gtk_accel_path "<Actions>/app.preferences.window.cycle-tabs" "")
; (gtk_accel_path "<Actions>/app.preferences.view.indent-on-tab" "")
; (gtk_accel_path "<Actions>/win.help.contents" "F1")
; (gtk_accel_path "<Actions>/win.document.go-to-tab(3)" "<Alt>4")
; (gtk_accel_path "<Actions>/win.edit.redo" "<Primary>y")
; (gtk_accel_path "<Actions>/win.document.write-unicode-bom" "")
; (gtk_accel_path "<Actions>/app.preferences.window.toolbar-visible" "")
-212
View File
@@ -1,212 +0,0 @@
#? Config file for btop v. 1.2.13
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
color_theme = "/home/proxzima/.config/btop/themes/proxzima.theme"
#* If the theme set background should be shown, set to False if you want terminal background transparency.
theme_background = False
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
truecolor = True
#* Set to true to force tty mode regardless if a real tty has been detected or not.
#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols.
force_tty = False
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
#* Use whitespace " " as separator between different presets.
#* Example: "cpu:0:default,mem:0:tty,proc:1:default cpu:0:braille,proc:0:tty"
presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty"
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
vim_keys = False
#* Rounded corners on boxes, is ignored if TTY mode is ON.
rounded_corners = True
#* Default symbols to use for graph creation, "braille", "block" or "tty".
#* "braille" offers the highest resolution but might not be included in all fonts.
#* "block" has half the resolution of braille but uses more common characters.
#* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY.
#* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view.
graph_symbol = "braille"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_cpu = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_mem = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_net = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_proc = "default"
#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace.
shown_boxes = "cpu mem net proc"
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
update_ms = 1500
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
proc_sorting = "memory"
#* Reverse sorting order, True or False.
proc_reversed = False
#* Show processes as a tree.
proc_tree = True
#* Use the cpu graph colors in the process list.
proc_colors = True
#* Use a darkening gradient in the process list.
proc_gradient = True
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
proc_per_core = True
#* Show process memory as bytes instead of percent.
proc_mem_bytes = True
#* Show cpu graph for each process.
proc_cpu_graphs = True
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
proc_info_smaps = False
#* Show proc box on left side of screen instead of right.
proc_left = False
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
proc_filter_kernel = False
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
#* Select from a list of detected attributes from the options menu.
cpu_graph_upper = "total"
#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available.
#* Select from a list of detected attributes from the options menu.
cpu_graph_lower = "total"
#* Toggles if the lower CPU graph should be inverted.
cpu_invert_lower = True
#* Set to True to completely disable the lower CPU graph.
cpu_single_graph = False
#* Show cpu box at bottom of screen instead of top.
cpu_bottom = False
#* Shows the system uptime in the CPU box.
show_uptime = True
#* Show cpu temperature.
check_temp = True
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
cpu_sensor = "Auto"
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
show_coretemp = True
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
#* Format "x:y" x=core with wrong temp, y=core with correct temp, use space as separator between multiple entries.
#* Example: "4:0 5:1 6:3"
cpu_core_map = ""
#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine".
temp_scale = "celsius"
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
base_10_sizes = False
#* Show CPU frequency.
show_cpu_freq = True
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
clock_format = "%X"
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
background_update = True
#* Custom cpu model name, empty string to disable.
custom_cpu_name = ""
#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ".
#* Begin line with "exclude=" to change to exclude filter, otherwise defaults to "most include" filter. Example: disks_filter="exclude=/boot /home/user".
disks_filter = ""
#* Show graphs instead of meters for memory values.
mem_graphs = True
#* Show mem box below net box instead of above.
mem_below_net = False
#* Count ZFS ARC in cached and available memory.
zfs_arc_cached = True
#* If swap memory should be shown in memory box.
show_swap = True
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
swap_disk = True
#* If mem box should be split to also show disks info.
show_disks = True
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
only_physical = True
#* Read disks list from /etc/fstab. This also disables only_physical.
use_fstab = True
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
zfs_hide_datasets = False
#* Set to true to show available disk space for privileged users.
disk_free_priv = False
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
show_io_stat = True
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
io_mode = False
#* Set to True to show combined read/write io graphs in io mode.
io_graph_combined = False
#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ".
#* Example: "/mnt/media:100 /:20 /boot:1".
io_graph_speeds = ""
#* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False.
net_download = 100
net_upload = 100
#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest.
net_auto = True
#* Sync the auto scaling for download and upload to whichever currently has the highest scale.
net_sync = False
#* Starts with the Network Interface specified here.
net_iface = ""
#* Show battery stats in top right if battery is present.
show_battery = True
#* Which battery to use if multiple are present. "Auto" for auto detection.
selected_battery = "Auto"
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
log_level = "WARNING"
-3
View File
@@ -1,3 +0,0 @@
2022/06/30 (12:53:42) | ===> btop++ v.1.2.3
2022/06/30 (12:53:42) | ERROR: Failed to get size of terminal!
-43
View File
@@ -1,43 +0,0 @@
theme[main_bg]="#161925"
theme[main_fg]="#CDD6F4"
theme[title]="#CDD6F4"
theme[hi_fg]="#89B4FA"
theme[selected_bg]="#45475A"
theme[selected_fg]="#89B4FA"
theme[inactive_fg]="#7F849C"
theme[graph_text]="#F5E0DC"
theme[meter_bg]="#45475A"
theme[proc_misc]="#F5E0DC"
theme[cpu_box]="#74C7EC"
theme[mem_box]="#A6E3A1"
theme[net_box]="#CBA6F7"
theme[proc_box]="#F2CDCD"
theme[div_line]="#6C7086"
theme[temp_start]="#F9E2AF"
theme[temp_mid]="#FAB387"
theme[temp_end]="#F38BA8"
theme[cpu_start]="#74C7EC"
theme[cpu_mid]="#89DCEB"
theme[cpu_end]="#94E2D5"
theme[free_start]="#94E2D5"
theme[free_mid]="#94E2D5"
theme[free_end]="#A6E3A1"
theme[cached_start]="#F5C2E7"
theme[cached_mid]="#F5C2E7"
theme[cached_end]="#CBA6F7"
theme[available_start]="#F5E0DC"
theme[available_mid]="#F2CDCD"
theme[available_end]="#F2CDCD"
theme[used_start]="#FAB387"
theme[used_mid]="#FAB387"
theme[used_end]="#F38BA8"
theme[download_start]="#B4BEFE"
theme[download_mid]="#B4BEFE"
theme[download_end]="#CBA6F7"
theme[upload_start]="#B4BEFE"
theme[upload_mid]="#B4BEFE"
theme[upload_end]="#CBA6F7"
theme[process_start]="#74C7EC"
theme[process_mid]="#89DCEB"
theme[process_end]="#94E2D5"
+6 -6
View File
@@ -41,20 +41,20 @@ fn_notify () { # Send notification
}
fn_percentage () {
if [[ "$battery_percentage" -ge "$unplug_charger_threshold" ]] && [[ "$battery_status" != "Discharging" ]] && [[ "$battery_status" != "Full" ]] && (( (battery_percentage - last_notified_percentage) >= $interval )); then if $verbose; then echo "Prompt:UNPLUG: $battery_unplug_threshold $battery_status $battery_percentage" ; fi
fn_notify "-t 5000 " "CRITICAL" "Battery Charged" "Battery is at $battery_percentage%. You can unplug the charger!"
fn_notify "-t 2000 " "CRITICAL" "Battery Charged" "Battery is at $battery_percentage%. You can unplug the charger!"
last_notified_percentage=$battery_percentage
elif [[ "$battery_percentage" -le "$battery_critical_threshold" ]]; then
count=$(( timer > $mnt ? timer : $mnt )) # reset count
while [ $count -gt 0 ] && [[ $battery_status == "Discharging"* ]]; do
for battery in /sys/class/power_supply/BAT*; do battery_status=$(< "$battery/status") ; done
if [[ $battery_status != "Discharging" ]] ; then break ; fi
fn_notify "-t 5000 -r 69 " "CRITICAL" "Battery Critically Low" "$battery_percentage% is critically low. Device will execute $execute_critical in $((count/60)):$((count%60)) ."
fn_notify "-t 2000 -r 69 " "CRITICAL" "Battery Critically Low" "$battery_percentage% is critically low. Device will execute $execute_critical in $((count/60)):$((count%60)) ."
count=$((count-1))
sleep 1
done
[ $count -eq 0 ] && fn_action
elif [[ "$battery_percentage" -le "$battery_low_threshold" ]] && [[ "$battery_status" == "Discharging" ]] && (( (last_notified_percentage - battery_percentage) >= $interval )); then if $verbose; then echo "Prompt:LOW: $battery_low_threshold $battery_status $battery_percentage" ; fi
fn_notify "-t 5000 " "CRITICAL" "Battery Low" "Battery is at $battery_percentage%. Connect the charger."
fn_notify "-t 2000 " "CRITICAL" "Battery Low" "Battery is at $battery_percentage%. Connect the charger."
last_notified_percentage=$battery_percentage
fi
}
@@ -71,7 +71,7 @@ case "$battery_status" in # Handle the power supply status
if [[ "$prev_status" != "Discharging" ]] || [[ "$prev_status" == "Full" ]] ; then
prev_status=$battery_status
urgency=$([[ $battery_percentage -le "$battery_low_threshold" ]] && echo "CRITICAL" || echo "NORMAL")
fn_notify "-t 5000 -r 54321 " "$urgency" "Charger Plug OUT" "Battery is at $battery_percentage%."
fn_notify "-t 2000 -r 54321 " "$urgency" "Charger Plug OUT" "Battery is at $battery_percentage%."
$execute_discharging
fi
fn_percentage
@@ -81,7 +81,7 @@ case "$battery_status" in # Handle the power supply status
prev_status=$battery_status
count=$(( timer > $mnt ? timer : $mnt )) # reset count
urgency=$([[ "$battery_percentage" -ge $unplug_charger_threshold ]] && echo "CRITICAL" || echo "NORMAL")
fn_notify "-t 5000 -r 54321 " "$urgency" "Charger Plug In" "Battery is at $battery_percentage%."
fn_notify "-t 2000 -r 54321 " "$urgency" "Charger Plug In" "Battery is at $battery_percentage%."
$execute_charging
fi
fn_percentage
@@ -90,7 +90,7 @@ case "$battery_status" in # Handle the power supply status
if [[ $battery_status != "Discharging" ]]; then
now=$(date +%s)
if [[ "$prev_status" == *"harging"* ]] || ((now - lt >= $((notify*60)) )); then
fn_notify "-t 5000 -r 54321" "CRITICAL" "Battery Full" "Please unplug your Charger"
fn_notify "-t 2000 -r 54321" "CRITICAL" "Battery Full" "Please unplug your Charger"
prev_status=$battery_status lt=$now
$execute_charging
fi
+11
View File
@@ -20,6 +20,17 @@ blur (){
fi
}
animation() {
STATE=$(hyprctl -j getoption animations:enabled | jq ".int")
if [ "${STATE}" = "1" ]; then
hyprctl keyword animations:enabled 0
noti_n "Disable animation"
else
hyprctl keyword animations:enabled 1
noti_n "Enable animation"
fi
}
rainbowborder() {
function random_hex() {
+1
View File
@@ -23,6 +23,7 @@ declare -A menu_options=(
["gm GameMode"]="$RunCMD gamemode"
["bl ChangeBlur"]="$RunCMD blur"
["flt Float all window"]="hyprctl dispatch workspaceopt allfloat"
["hpa Toggle hyprland animation"]="$RunCMD animation"
["op1 enable_opaque"]="$RunCMD enable_opaque"
["op0 disable_opaque"]="$RunCMD disable_opaque"
#wallpaper
+1 -1
View File
@@ -41,7 +41,7 @@ print_info() {
info "${cl2} ╰─" uptime
prin "$(color 12)┣━━━━━━━━━━━\n Hardware Information \n━━━━━━━━━━━┫"
info "${cl4} ╭─" model
info "${cl4} ├─" cpu
info "${cl4} ├─" cpu
#info "${cl4} ├─" cpu_usage
#info "${cl4} ├─" gpu_driver
info "${cl4} ├─" gpu_driver
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 KiB

+1 -3
View File
@@ -141,10 +141,8 @@
"format-wifi": "{icon}",
"format-ethernet": "󰌘",
"format-disconnected": "󰌙",
"tooltip-format": "{ipaddr}  {bandwidthUpBytes}  {bandwidthDownBytes}",
"tooltip-format": "Network: <big><b>{essid}</b></big>\nSignal strength: <b>{signaldBm}dBm ({signalStrength}%)</b>\nFrequency: <b>{frequency}MHz</b>\nInterface: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nGateway: <b>{gwaddr}</b>\nNetmask: <b>{netmask}</b>",
"format-linked": "󰈁 {ifname} (No IP)",
"tooltip-format-wifi": "{essid} {icon} {signalStrength}%",
"tooltip-format-ethernet": "{ifname} 󰌘",
"tooltip-format-disconnected": "󰌙 Disconnected",
"max-length": 50,
"format-icons": ["󰤯 ","󰤟 ","󰤢 ","󰤥 ","󰤨 "]
+6 -8
View File
@@ -282,6 +282,8 @@
//"(.*) - Visual Studio Code": "$1 󰨞",
//"(.*)Visual Studio Code": "Code 󰨞",
"(.*) - codium": "$1 󰨞",
"(.*) - geany": "$1 ",
"(.*) - mousepad": "$1 ",
"(.*)codium": "Code 󰨞",
"(.*)Thunar": "$1 󰉋",
"(.*)yazi": "$1 󰉋",
@@ -328,10 +330,8 @@
"format-wifi": "{icon}",
"format-ethernet": "󰌘",
"format-disconnected": "󰌙",
"tooltip-format": "{ipaddr}  {bandwidthUpBytes}  {bandwidthDownBytes}",
"tooltip-format": "Network: <big><b>{essid}</b></big>\nSignal strength: <b>{signaldBm}dBm ({signalStrength}%)</b>\nFrequency: <b>{frequency}MHz</b>\nInterface: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nGateway: <b>{gwaddr}</b>\nNetmask: <b>{netmask}</b>",
"format-linked": "󰈁 {ifname} (No IP)",
"tooltip-format-wifi": "{essid} {icon} {signalStrength}%",
"tooltip-format-ethernet": "{ifname} 󰌘",
"tooltip-format-disconnected": "󰌙 Disconnected",
"max-length": 50,
"format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"]
@@ -343,10 +343,8 @@
"format-wifi": "{icon}  {bandwidthUpBytes}  {bandwidthDownBytes}",
"format-ethernet": "󰌘  {bandwidthUpBytes}  {bandwidthDownBytes}",
"format-disconnected": "󰌙",
"tooltip-format": "{ipaddr}",
"tooltip-format": "Network: <big><b>{essid}</b></big>\nSignal strength: <b>{signaldBm}dBm ({signalStrength}%)</b>\nFrequency: <b>{frequency}MHz</b>\nInterface: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nGateway: <b>{gwaddr}</b>\nNetmask: <b>{netmask}</b>",
"format-linked": "󰈁 {ifname} (No IP)",
"tooltip-format-wifi": "{essid} {icon} {signalStrength}%",
"tooltip-format-ethernet": "{ifname} 󰌘",
"tooltip-format-disconnected": "󰌙 Disconnected",
"max-length": 50,
"format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"]
@@ -433,8 +431,8 @@
},
"custom/clip": {
"format": "",
"exec": "echo ; echo Copying List Menu",
"format": "📋",
"exec": "echo ; echo 📋 Copying List Menu",
"on-click": "~/.config/hypr/scripts/RunCMD.sh clip",
"on-click-right": "~/.config/hypr/scripts/RunCMD.sh clip",
"interval" : 86400, // once every day
Executable
+218
View File
@@ -0,0 +1,218 @@
#!/usr/bin/env bash
#the main packages
install_stage=(
hyprland
fnm
keyb
rofi-file-browser-extended-git
imv
brightnessctl
yazi
waybar
playerctl
wf-recorder
kvantum
swaylock-effects-git
qt5ct
qt6ct
nwg-look
mpv-mpris
pacman-contrib
swayidle
pavucontrol
pamixer
file-roller
alsa-utils
linux-headers
less
wlroots
thunar
thunar-volman
thunar-archive-plugin
udiskie
mtpfs
jmtpfs
gvfs-gphoto2
gvfs-mtp
rofi-lbonn-wayland-git
network-manager-applet
lsd
cava
geany
geany-plugin
swaync
tumbler
unzip
zip
unrar
polkit-gnome
xdg-user-dirs
clipshit
swww
kitty
imagemagick
bluez
bluez-utils
grim
slurp
jq
zathura
zathura-pdf-mupdf
yt-dlp
ffmpegthumbnailer
xdotool
wmctrl
zsh
lazygit
xdg-desktop-portal-gtk
gtk-engine-murrine
lxappearance
xsel
bc
sddm
adobe-source-code-pro-fonts
ttf-fira-code
ttf-jetbrains-mono-nerd
ttf-jetbrains-mono
noto-fonts-emoji
ttf-droid
otf-font-awesome
ttf-cascadia-code-nerd
ttf-bitstream-vera
ttf-croscore
ttf-dejavu
ttf-ibm-plex
ttf-liberation
noto-fonts
gnu-free-fonts
)
# set some colors
CNT="[\e[1;36mNOTE\e[0m]"
COK="[\e[1;32mOK\e[0m]"
CER="[\e[1;31mERROR\e[0m]"
CAT="[\e[1;37mATTENTION\e[0m]"
CWR="[\e[1;35mWARNING\e[0m]"
CAC="[\e[1;33mACTION\e[0m]"
INSTLOG="install.log"
# Function to display the script logo
show_logo() {
echo -en "
#####################################
# #
# @author : 00xZ4CKX #
#  GitHub : @S4NKALP #
#  Developer : Sankalp Tharu #
# 﫥 Copyright : Sankalp Tharu #
# #
#####################################
Warning! Please do Backup before going ahead. Do at your own risk.
"
}
# function that would show a progress bar to the user
show_progress() {
while ps | grep $1 &> /dev/null;
do
echo -n "."
sleep 2
done
echo -en "Done!\n"
sleep 2
}
# function that will test for a package and if not found it will attempt to install it
install_software() {
# First lets see if the package is there
if paru -Q $1 &>> /dev/null ; then
echo -e "$COK - $1 is already installed."
else
# no package found so installing
echo -en "$CNT - Now installing $1 ."
paru -S --noconfirm $1 &>> $INSTLOG &
show_progress $!
# test to make sure package installed
if paru -Q $1 &>> /dev/null ; then
echo -e "\e[1A\e[K$COK - $1 was installed."
else
# if this is hit then a package is missing, exit to review log
echo -e "\e[1A\e[K$CER - $1 install had failed, please check the install.log"
exit
fi
fi
}
# clear the screen
clear
# Display the logo
show_logo
sleep 1
# let the user know that we will use sudo
echo -e "$CNT - This script will run some commands that require sudo. You will be prompted to enter your password.
If you are worried about entering your password then you may want to review the content of the script."
sleep 1
# give the user an option to exit out
read -rep $'[\e[1;33mACTION\e[0m] - Would you like to continue with the install (y,n) ' CONTINST
if [[ $CONTINST == "Y" || $CONTINST == "y" ]]; then
echo -e "$CNT - Setup starting..."
else
echo -e "$CNT - This script will now exit, no changes were made to your system."
exit
fi
### Install all of the above pacakges ####
read -rep $'[\e[1;33mACTION\e[0m] - Would you like to install the packages? (y,n) ' INST
if [[ $INST == "Y" || $INST == "y" ]]; then
# Stage 1 - main components
echo -e "$CNT - Installing main components, this may take a while..."
for SOFTWR in ${install_stage[@]}; do
install_software $SOFTWR
done
# Start the bluetooth service
echo -e "$CNT - Starting the Bluetooth Service..."
sudo systemctl enable --now bluetooth.service &>> $INSTLOG
sleep 2
# Enable the sddm login manager service
echo -e "$CNT - Enabling the SDDM Service..."
sudo systemctl enable sddm &>> $INSTLOG
sleep 2
fi
### Copy Config Files ###
read -rep $'[\e[1;33mACTION\e[0m] - Would you like to copy config files? (y,n) ' CFG
if [[ $CFG == "Y" || $CFG == "y" ]]; then
echo -e "$CNT - Copying config files..."
# copying wallpapers
cp -r wallpapers ~/Pictures
cp -r config/* ~/.config
mkdir -p ~/.local
cp -r misc/bin ~/.local
cp -r misc/.zshenv ~/
# giving permissions
chmod +x ~/.config/hypr/scripts/*
# installing gtk themes
git clone https://github.com/Fausto-Korpsvart/Tokyo-Night-GTK-Theme.git
sudo cp -r Tokyo-Night-GTK-Theme/themes/Tokyonight-Dark-BL-LB /usr/share/themes/
sudo cp -r Tokyo-Night-GTK-Theme/icons/Tokyonight-Dark /usr/share/icons/
sudo tar -xf "assets/Bibata-Modern-Ice.tar.xz" -C /usr/share/icons/
echo -e "$CNT - Copying successful!"
fi