mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-04 13:17:21 +02:00
Compare commits
2 Commits
b1094e8492
...
da02c114ae
Author | SHA1 | Date | |
---|---|---|---|
da02c114ae | |||
8f978bfdd0 |
@ -1,6 +1,6 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "Darkman toggle",
|
"name": "darkman toggle",
|
||||||
"command": "darkman toggle"
|
"command": "darkman toggle"
|
||||||
},
|
},
|
||||||
{
|
{
|
42
conf/kdeconnect-remote-commands-finnish.json
Normal file
42
conf/kdeconnect-remote-commands-finnish.json
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "darkman toggle",
|
||||||
|
"command": "darkman toggle"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Lukitse näyttö",
|
||||||
|
"command": "loginctl lock-session"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sammuta",
|
||||||
|
"command": "systemctl poweroff"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Käynnistä uudelleen",
|
||||||
|
"command": "systemctl reboot"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Kuvankaappaus [kaikki näytöt]",
|
||||||
|
"command": "spectacle --background --pointer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Kuvankaappaus aktiivisesta ikkunasta",
|
||||||
|
"command": "spectacle --background --pointer --activewindow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Valmiustila",
|
||||||
|
"command": "systemctl suspend"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Top#5 muistia käyttävät prosessit",
|
||||||
|
"command": "kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --ping-msg \"$(ps -eo pid,%mem,cmd --sort=-%mem | head -n 6)\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Avaa näyttölukitus",
|
||||||
|
"command": "loginctl unlock-session"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "[Älä] Häiritse",
|
||||||
|
"command": "qdbus org.kde.kglobalaccel /component/plasmashell invokeShortcut \"toggle do not disturb\""
|
||||||
|
}
|
||||||
|
]
|
@ -19,10 +19,19 @@ rm -v /etc/resolv.conf
|
|||||||
# tee -p = operate in a more appropriate MODE with pipes.
|
# tee -p = operate in a more appropriate MODE with pipes.
|
||||||
printf 'nameserver ::1\nnameserver 127.0.0.1\nnameserver 127.0.0.53\nsearch .\noptions timeout:1 attempts:5 rotate edns0 trust-ad\n' | tee -p /etc/resolv.conf
|
printf 'nameserver ::1\nnameserver 127.0.0.1\nnameserver 127.0.0.53\nsearch .\noptions timeout:1 attempts:5 rotate edns0 trust-ad\n' | tee -p /etc/resolv.conf
|
||||||
|
|
||||||
# Remove all other permissions than everyone reading resolv.conf
|
# Are we on Fedora Atomic?
|
||||||
chmod -v a=r /etc/resolv.conf
|
if [[ ! -d /sysroot/ostree ]]; then
|
||||||
# Make resolv.conf immutable again so it's pretty sure nothing else edits it.
|
# Remove all other permissions than everyone reading resolv.conf
|
||||||
#chattr -V +i /etc/resolv.conf
|
chmod -v a=r /etc/resolv.conf
|
||||||
|
# Make resolv.conf immutable again so it's pretty sure nothing else edits it
|
||||||
|
chattr -V +i /etc/resolv.conf
|
||||||
|
else
|
||||||
|
# We are on Fedora Atomic and thus won't want to cause additional errors
|
||||||
|
chmod -v 0644 /sysroot/ostree/deploy/fedora/deploy/*/etc/resolv.conf | true
|
||||||
|
chmod -v 0644 /sysroot/ostree/repo/extensions/rpmostree/private/commit/usr/etc/resolv.conf | true
|
||||||
|
chattr -V -i /sysroot/ostree/deploy/fedora/deploy/*/etc/resolv.conf | true
|
||||||
|
chattr -V -i /sysroot/ostree/repo/extensions/rpmostree/private/commit/usr/etc/resolv.conf | true
|
||||||
|
fi
|
||||||
|
|
||||||
# Let's just see it's ok
|
# Let's just see it's ok
|
||||||
ls -l /etc/resolv.conf
|
ls -l /etc/resolv.conf
|
||||||
|
@ -31,10 +31,19 @@ rm -v /etc/resolv.conf
|
|||||||
# tee -p = operate in a more appropriate MODE with pipes.
|
# tee -p = operate in a more appropriate MODE with pipes.
|
||||||
printf 'nameserver 127.0.0.53\nnameserver 127.0.0.53\nnameserver 127.0.0.53\nsearch .\noptions timeout:1 attempts:5 rotate edns0 trust-ad\n' | tee -p /etc/resolv.conf
|
printf 'nameserver 127.0.0.53\nnameserver 127.0.0.53\nnameserver 127.0.0.53\nsearch .\noptions timeout:1 attempts:5 rotate edns0 trust-ad\n' | tee -p /etc/resolv.conf
|
||||||
|
|
||||||
# Remove all other permissions than everyone reading resolv.conf
|
# Are we on Fedora Atomic?
|
||||||
chmod -v a=r /etc/resolv.conf
|
if [[ ! -d /sysroot/ostree ]]; then
|
||||||
# Make resolv.conf immutable again so it's pretty sure nothing else edits it.
|
# Remove all other permissions than everyone reading resolv.conf
|
||||||
#chattr -V +i /etc/resolv.conf
|
chmod -v a=r /etc/resolv.conf
|
||||||
|
# Make resolv.conf immutable again so it's pretty sure nothing else edits it
|
||||||
|
chattr -V +i /etc/resolv.conf
|
||||||
|
else
|
||||||
|
# We are on Fedora Atomic and thus won't want to cause additional errors
|
||||||
|
chmod -v 0644 /sysroot/ostree/deploy/fedora/deploy/*/etc/resolv.conf | true
|
||||||
|
chmod -v 0644 /sysroot/ostree/repo/extensions/rpmostree/private/commit/usr/etc/resolv.conf | true
|
||||||
|
chattr -V -i /sysroot/ostree/deploy/fedora/deploy/*/etc/resolv.conf | true
|
||||||
|
chattr -V -i /sysroot/ostree/repo/extensions/rpmostree/private/commit/usr/etc/resolv.conf | true
|
||||||
|
fi
|
||||||
|
|
||||||
# Let's just see it's ok
|
# Let's just see it's ok
|
||||||
ls -l /etc/resolv.conf
|
ls -l /etc/resolv.conf
|
||||||
|
@ -24,10 +24,19 @@ rm -v /etc/resolv.conf
|
|||||||
# tee -p = operate in a more appropriate MODE with pipes.
|
# tee -p = operate in a more appropriate MODE with pipes.
|
||||||
printf "nameserver %b\nnameserver %b\nnameserver %b\nsearch .\noptions timeout:1 attempts:5 rotate edns0 trust-ad\n" "$1" "$2" "$3" | tee -p /etc/resolv.conf
|
printf "nameserver %b\nnameserver %b\nnameserver %b\nsearch .\noptions timeout:1 attempts:5 rotate edns0 trust-ad\n" "$1" "$2" "$3" | tee -p /etc/resolv.conf
|
||||||
|
|
||||||
# Remove all other permissions than everyone reading resolv.conf
|
# Are we on Fedora Atomic?
|
||||||
chmod -v a=r /etc/resolv.conf
|
if [[ ! -d /sysroot/ostree ]]; then
|
||||||
# Make resolv.conf immutable again so it's pretty sure nothing else edits it.
|
# Remove all other permissions than everyone reading resolv.conf
|
||||||
#chattr -V +i /etc/resolv.conf
|
chmod -v a=r /etc/resolv.conf
|
||||||
|
# Make resolv.conf immutable again so it's pretty sure nothing else edits it
|
||||||
|
chattr -V +i /etc/resolv.conf
|
||||||
|
else
|
||||||
|
# We are on Fedora Atomic and thus won't want to cause additional errors
|
||||||
|
chmod -v 0644 /sysroot/ostree/deploy/fedora/deploy/*/etc/resolv.conf | true
|
||||||
|
chmod -v 0644 /sysroot/ostree/repo/extensions/rpmostree/private/commit/usr/etc/resolv.conf | true
|
||||||
|
chattr -V -i /sysroot/ostree/deploy/fedora/deploy/*/etc/resolv.conf | true
|
||||||
|
chattr -V -i /sysroot/ostree/repo/extensions/rpmostree/private/commit/usr/etc/resolv.conf | true
|
||||||
|
fi
|
||||||
|
|
||||||
# Let's just see it's ok
|
# Let's just see it's ok
|
||||||
ls -l /etc/resolv.conf
|
ls -l /etc/resolv.conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user