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
#!/bin/bash | |
declare process_echo_history | |
declare last_process_status | |
spinner() { | |
#spinner animation | |
local pid=$! | |
local delay=0.20 | |
local spinstr='|/-\' | |
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do | |
local temp=${spinstr#?} |
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
# pacman -Qqn | pacman --overwrite=* -S - | |
warning: a52dec-0.7.4-11 is up to date -- reinstalling | |
warning: aalib-1.4rc5-14 is up to date -- reinstalling | |
warning: abseil-cpp-20220623.1-1 is up to date -- reinstalling | |
warning: accounts-qml-module-0.7-4 is up to date -- reinstalling | |
warning: accountsservice-22.08.8-2 is up to date -- reinstalling | |
warning: acl-2.3.1-2 is up to date -- reinstalling | |
warning: acpi-1.7-3 is up to date -- reinstalling | |
warning: acpid-2.0.33-1 is up to date -- reinstalling | |
warning: adobe-source-code-pro-fonts-2.038ro+1.058it+1.018var-1 is up to date -- reinstalling |
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
// ==UserScript== | |
// @name Youtube Comment Reply | |
// @namespace Violentmonkey Scripts | |
// @match https://www.youtube.com/comments | |
// @grant none | |
// ==/UserScript== | |
// | |
(function () { |
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
--- /opt/toggldesktop/TogglDesktop.sh 2018-10-29 14:49:37.695585963 +0530 | |
+++ /opt/toggldesktop/TogglDesktop.sh 2018-10-29 14:48:49.882253006 +0530 | |
@@ -15,6 +15,7 @@ | |
XDG=$XDG_CURRENT_DESKTOP | |
if [[ "$XDG" = "X-Cinnamon" || "$XDG" = "XFCE" || "$XDG" = "Pantheon" || "$XDG" = "i3" || "$XDG" = "LXDE" || "$XDG" = "MATE" || "$XDG" = "Budgie:GNOME" ]]; then | |
+ QT_QPA_PLATFORMTHEME=gtk3 | |
DBUS_SESSION_BUS_ADDRESS="" | |
dbus-launch $dirname/$appname "$@" & | |
else |
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
#!/bin/sh | |
# Take password prompt from STDIN, print password to STDOUT | |
# the sed piece just removes the colon from the provided | |
# prompt: rofi -p already gives us a colon | |
rofi -dmenu \ | |
-password \ | |
-no-fixed-num-lines \ | |
-p "$(printf "$1" | sed s/://)" |
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
// ==UserScript== | |
// @name Youtube 480p | |
// @version 1 | |
// @grant none | |
// @run-at document-start | |
// @include https://www.youtube.com/* | |
// @version 1.1 | |
// @downloadURL https://gist.githubusercontent.com/BlurryFlurry/04124b45c0c4ec653cd2dae5a0ed266a/raw/.user.js | |
// @updateURL https://gist.githubusercontent.com/BlurryFlurry/04124b45c0c4ec653cd2dae5a0ed266a/raw/.user.js | |
// ==/UserScript== |
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
# use vi mode | |
setw -g mode-keys vi | |
# remap prefix to control + a | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# move around panes like in vim | |
bind j select-pane -D |