Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
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
/* Hides tabs toolbar | |
* | |
* Source: | |
* https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_toolbar.css | |
*/ | |
:root[tabsintitlebar] { | |
--uc-toolbar-height: 40px; | |
} | |
:root[tabsintitlebar][uidensity="compact"] { |
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 | |
# | |
# Provides easy access to editing config files. | |
files= | |
list_configs() { | |
printf "%s\n" "Configs available:" " " | |
sed -n '/case $i in/,/esac/p' "$0" \ |
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
# The current version of the config schema | |
version: 1 | |
# What protocol to use when performing git operations. | |
# Supported values: ssh, https | |
git_protocol: https | |
# What editor gh should run when creating issues, pull requests, etc. | |
# If blank, will refer to environment. | |
editor: |
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 in ~/.gitconfig like this: | |
# | |
# [include] | |
# path = ~/.gitaliases | |
[alias] | |
# Attempt to write to the clipboard using xsel or xclip; fails silently | |
set-clipboard = !xsel -ib &> /dev/null || \ | |
xclip -selection clipboard -in &> /dev/null |
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
const { getClipboard } = require(`${process.mainModule.path}/utils`) | |
const { execSync } = require('child_process') | |
// Modify to your hearth's content! | |
// Function to run a command and return the output or error | |
const runCmd = (command) => { | |
try { | |
const output = execSync(command, { encoding: 'utf8' }) | |
return output |
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 | |
# | |
# Packages installed from AUR that use anything Qt related, fail to start after | |
# upgrading. | |
# | |
# So far this seems to be the solution, that I had googled now at least 3 times | |
# after breaking some apps: | |
# "Reinstall qt5-styleplugins from scratch. Do NOT use the cached download" | |
yay -S --answerclean All --answerdiff None --answeredit None \ |
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
/* my overrides */ | |
// https://github.com/arkenfox/user.js/ | |
/* override recipe: enable session restore ***/ | |
/* 0102: set startup page [SETUP-CHROME] | |
* 0=blank, 1=home, 2=last visited page, 3=resume previous session | |
* [NOTE] Session Restore is cleared with history (2811, 2812), and not used in Private Browsing mode | |
* [SETTING] General>Startup>Restore previous session ***/ | |
user_pref("browser.startup.page", 3); | |
/* 1003: disable storing extra session data [SETUP-CHROME] |
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 | |
# | |
# ╔═════╗ ╔═══╗ | |
# ║ S ║ ║ V ║ Screen Layout Switcher | |
# ╚═════╝ ║ ║ | |
# ╔═════╗ ╚═══╝ Handle switching the layout of the connected monitors: | |
# ║ P ║ (S)econdary, (V)ertical, and (P)rimary | |
# ╚═════╝ Usage: ./switch-screenlayout.sh [1-4] | |
# Debug options |
NewerOlder