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
diff --git a/src/kcms/rules/kcmrules.cpp b/src/kcms/rules/kcmrules.cpp | |
index b794a06a9f..a10d80e6a4 100644 | |
--- a/src/kcms/rules/kcmrules.cpp | |
+++ b/src/kcms/rules/kcmrules.cpp | |
@@ -316,7 +316,7 @@ QModelIndex KCMKWinRules::findRuleWithProperties(const QVariantMap &info, bool w | |
const QString title = info.value("caption").toString(); | |
const QString machine = info.value("clientMachine").toString(); | |
const bool isLocalHost = info.value("localhost").toBool(); | |
- | |
+ const bool isFullscreen = info.value("fullscreen").toBool(); |
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
import machine | |
import time | |
uart = machine.UART(1, baudrate=115200, tx=machine.Pin(4), rx=machine.Pin(5), timeout=20) | |
while True: | |
if uart.any(): | |
res = uart.readline().decode('utf-8') | |
if 'U-Boot Boot Menu' in res: | |
print('yes') | |
uart.write('') |
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/zsh | |
pool=zdata | |
devices=$(zpool status -P $pool | grep /dev/ | awk '{print $1}') | |
intervalinsec=120 | |
while true; do | |
zpool iostat -HyL zdata $intervalinsec 1 | | |
grep -q '0 0 0 0' ; res=$? |
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 | |
find_list() { | |
a="$(zfs list -t filesystem,volume -s origin -H -o name,origin -r $1)" | |
grep -P -- '-$' <<< "$a" | cut -f1 | |
grep -Pv -- '-$' <<< "$a" | |
} | |
SSH() { | |
ssh $remote_path $@ | |
} |
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
git_release() { | |
curl -sL https://github.com/${repo}/releases/ | | |
xmllint -html -xpath '//a[contains(@href, "releases")]/text()' - 2> /dev/null | | |
grep -P '^v' | head -n1 | |
} | |
git_download() { | |
repo=${1} | |
file=${2} | |
version=$(git_release) |
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
aurpkg=proton-ge-custom | |
data="$(curl https://aur.archlinux.org/cgit/aur.git/tree/.SRCINFO\?h\=$aurpkg 2> /dev/null | grep source\ = | cut -f 2- -d =)" | |
( | |
echo '<services> | |
<service name="tar_scm"> | |
<param name="scm">git</param> | |
<param name="url">'"https://aur.archlinux.org/${aurpkg}.git"'</param> | |
</service>' |
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 | |
card_name='Generic [HD-Audio Generic], device 0: ALC1220 Analog [ALC1220 Analog]' ##### PLEASE EDIT THIS | |
card_name=$(sed -e 's/\[/\\\[/g' -e 's/\]/\\\]/g' <<< "$card_name") | |
[[ -z "$1" || -n "$2" ]] && { | |
echo usage: $(basename $0) '[:num]?(%)(-+)' | |
echo same number / percentage accepted by 'amixer set' | |
echo ie vol 5%+ | |
echo ie vol 5 | |
exit 1 |
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 -e | |
if [ -z "$1" ]; then | |
echo 'usage: [OPTIONS] <file>|<dir>' | |
echo 'same as btrfs filesystem defrag (look at its --help)' | |
exit | |
fi | |
if [ ! "$(id -u)" -eq 0 ]; then | |
echo 'This probably needs root, if not edit' "$0" | |
echo 'Remove line 10: sed -e '\''10d'\'' -i' "$0" | |
exit 2 |
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
[%General] | |
author=Tsu Jan | |
comment=A minimalistic dark theme inspired by the Arc GTK theme | |
x11drag=all | |
alt_mnemonic=true | |
left_tabs=true | |
attach_active_tab=true | |
mirror_doc_tabs=true | |
group_toolbar_buttons=false | |
toolbar_item_spacing=1 |
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
html, html > *, html > * > *, .browser-toolbar { | |
border: none !important; | |
-moz-appearance: none !important; | |
box-shadow: none !important; | |
background: transparent!important; | |
} | |
.titlebar-color, .browser-toolbar, findbar { | |
background: rgba(49, 54, 59, 0.75)!important; | |
} |
NewerOlder