Skip to content

Instantly share code, notes, and snippets.

View Akselmo's full-sized avatar
🦎
I have moved to Codeberg for my main projects!

Akseli Akselmo

🦎
I have moved to Codeberg for my main projects!
View GitHub Profile
@Akselmo
Akselmo / pointer_barrier.sh
Last active August 11, 2023 04:33
Restrict mouse to screen
#!/bin/bash
#Not my script! Found it when searching the web for this kind of option.
#Saved for future reference
#Run with "bash restrictmouse.sh 0 0 1919 1080" to restrict the mouse to your first monitor
#Run inside terminal so it's easier to close the script when done
#Needs xdotool to work
borderxl=$1
borderyu=$2
@Akselmo
Akselmo / kbr.sh
Created September 9, 2022 22:22
kdesrc-build-and-run
#!/usr/bin/env bash
if [ -z "$1" ]
then
echo "No app given"
exit
else
echo "Building and running: $1"
fi
@Akselmo
Akselmo / .clang-format
Last active July 16, 2022 00:31
My clang format
---
BasedOnStyle: LLVM
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveMacros: 'true'
AlignConsecutiveAssignments: 'true'
AlignConsecutiveDeclarations: 'false'
AlignEscapedNewlines: Right
AlignTrailingComments: 'true'
AlignAfterOpenBracket: 'true'
AllowShortBlocksOnASingleLine: 'false'
@Akselmo
Akselmo / build_test_breeze.sh
Created June 15, 2022 13:27
quick script to build and test breeze
#!/bin/bash
kdesrc-build breeze
source ~/Repositories/kde/build/breeze/prefix.sh
dbus-run-session kwin_wayland systemsettings
@Akselmo
Akselmo / openpgp.md
Created April 29, 2022 19:33
openpgp.md