Skip to content

Commit

Permalink
Apply patch, use implicit path of bash
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor committed Mar 4, 2024
1 parent 9f6905d commit 5268ec6
Show file tree
Hide file tree
Showing 37 changed files with 45 additions and 38 deletions.
2 changes: 1 addition & 1 deletion hyprland-config/hypr/UserScripts/QuickEdit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Rofi menu for Quick Edit / View of Settings (SUPER E)

configs="$HOME/.config/hypr/configs"
Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/UserScripts/RainbowBorders.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

function random_hex() {
random_hex=("0xff$(openssl rand -hex 3)")
Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/UserScripts/RofiBeats.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Directory for icons
iDIR="$HOME/.config/swaync/icons"
Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/UserScripts/Sounds.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# This script is used to play system sounds.

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/UserScripts/WallpaperAutoChange.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# source https://wiki.archlinux.org/title/Hyprland#Using_a_script_to_change_wallpaper_every_X_minutes

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/UserScripts/WallpaperRandom.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for Random Wallpaper ( CTRL ALT W)

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/UserScripts/WallpaperSelect.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# This script for selecting wallpapers (SUPER W)

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/UserScripts/Weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# From https://raw.githubusercontent.com/rxyhn/dotfiles/main/home/rxyhn/modules/desktop/waybar/scripts/waybar-wttr.py

## ensure to insert city inside ""
city = ""
city = "Kolkata"
import json
import requests
from datetime import datetime
Expand Down
4 changes: 2 additions & 2 deletions hyprland-config/hypr/UserScripts/Weather.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash

city=
city=Kolkata
cachedir=~/.cache/rbn
cachefile=${0##*/}-$1

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/UserScripts/ZshChangeTheme.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

themes_dir="$HOME/.oh-my-zsh/themes"
file_extension=".zsh-theme"
Expand Down
3 changes: 2 additions & 1 deletion hyprland-config/hypr/initial-boot.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash

# A bash script designed to run only once dotfiles installed

# THIS SCRIPT CAN BE DELETED ONCE SUCCESSFULLY BOOTED!! And also, edit ~/.config/hypr/configs/Settings.conf
Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/AirplaneMode.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Airplane Mode. Turning on or off all wifi using rfkill.

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/Brightness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for Monitor backlights (if supported) using brightnessctl

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/BrightnessKbd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for keyboard backlights (if supported) using brightnessctl

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/ChangeBlur.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
## Script for changing blurs on the fly

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/ChangeLayout.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# for changing Hyprland Layouts (Master or Dwindle) on the fly

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/ClipManager.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Clipboard Manager. This script uses cliphist, rofi, and wl-copy.

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/DarkLight.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# For Dark and Light switching
# Note: Scripts are looking for keywords Light or Dark except for wallpapers as the are in a separate folders
Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/GameMode.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Game Mode. Turning off all animations

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/KeyHints.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Keyhints. Idea got from Garuda Hyprland

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/LockScreen.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# For Swaylock

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/MediaCtrl.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Playerctl

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/Polkit-NixOS.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# For NixOS starting of polkit-gnome. Dec 2023, the settings stated in NixOS wiki does not work so have to manual start it

Expand Down
8 changes: 7 additions & 1 deletion hyprland-config/hypr/scripts/Polkit.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# This is for polkits, it will start from top and will stop if the top is executed

# NixOS detected so load the correct script
if cat /etc/os-release | grep -iq 'ID=nixos'; then
source ./Polkit-NixOS.sh
exit 0
fi

# Polkit possible paths files to check
polkit=(
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/PortalHyprland.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# For manually starting xdg-desktop-portal

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/PywalSwww.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Pywal Colors for current wallpaper

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/Refresh.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Scripts for refreshing waybar, rofi, swaync, pywal colors

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/RefreshNoWaybar.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##

# Modified version of Refresh but no waybar refresh
Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/RofiEmoji.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Rofi Emoticons. Not my own. Cant remember the source

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/ScreenShot.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Screenshots scripts

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/SwitchKeyboardLayout.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# This is for changing kb_layouts. Set kb_layouts in $settings_file

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/TouchPad.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# For disabling touchpad.

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/Volume.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Scripts for volume controls for audio and mic

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/WaybarCava.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##

# Not my own work. This was added through Github PR. Credit to original author
Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/WaybarLayout.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for waybar layout or configs

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/WaybarStyles.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for waybar styles

Expand Down
2 changes: 1 addition & 1 deletion hyprland-config/hypr/scripts/Wlogout.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##

# wlogout (Power, Screen Lock, Suspend, etc)
Expand Down

0 comments on commit 5268ec6

Please sign in to comment.